From 9ba6657852b999393dd07d976537e2bb5c8191f7 Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros Date: Mon, 18 Sep 2023 23:41:35 -0700 Subject: [PATCH 01/13] [ARM] Updating Azure.ResourceManager.MachineLearning to generate for 2023-06 preview. --- ...eManager.MachineLearning.netstandard2.0.cs | 8652 +++++++++++------ .../Samples/Sample_FeatureCollection.cs | 131 + .../Samples/Sample_FeatureResource.cs | 53 + .../Sample_FeaturesetContainerCollection.cs | 174 + ... => Sample_FeaturesetContainerResource.cs} | 70 +- .../Sample_FeaturesetVersionCollection.cs | 228 + .../Sample_FeaturesetVersionResource.cs | 264 + ...e_FeaturestoreEntityContainerCollection.cs | 174 + ...ple_FeaturestoreEntityContainerResource.cs | 127 + ...ple_FeaturestoreEntityVersionCollection.cs | 187 + ...mple_FeaturestoreEntityVersionResource.cs} | 79 +- .../Samples/Sample_LabelingJobCollection.cs | 230 + .../Samples/Sample_LabelingJobResource.cs | 268 + ...achineLearningBatchDeploymentCollection.cs | 24 +- ..._MachineLearningBatchDeploymentResource.cs | 18 +- ..._MachineLearningBatchEndpointCollection.cs | 24 +- ...le_MachineLearningBatchEndpointResource.cs | 24 +- ...Sample_MachineLearningComputeCollection.cs | 97 +- .../Sample_MachineLearningComputeResource.cs | 128 +- ...mple_MachineLearningDatastoreCollection.cs | 12 +- ...Sample_MachineLearningDatastoreResource.cs | 14 +- .../Sample_MachineLearningJobCollection.cs | 222 +- .../Sample_MachineLearningJobResource.cs | 379 +- ...chineLearningOnlineDeploymentCollection.cs | 14 +- ...MachineLearningOnlineDeploymentResource.cs | 20 +- ...MachineLearningOnlineEndpointCollection.cs | 24 +- ...e_MachineLearningOnlineEndpointResource.cs | 36 +- ...ningPrivateEndpointConnectionCollection.cs | 10 +- ...arningPrivateEndpointConnectionResource.cs | 60 +- ...ample_MachineLearningScheduleCollection.cs | 8 +- .../Sample_MachineLearningScheduleResource.cs | 6 +- ...mple_MachineLearningWorkspaceCollection.cs | 94 +- ...neLearningWorkspaceConnectionCollection.cs | 69 +- ...hineLearningWorkspaceConnectionResource.cs | 96 +- ...Sample_MachineLearningWorkspaceResource.cs | 274 +- .../Sample_OutboundRuleBasicResource.cs | 120 + ...ple_OutboundRuleBasicResourceCollection.cs | 166 + .../Samples/Sample_RegistryCodeCollection.cs | 169 + .../Samples/Sample_RegistryCodeResource.cs | 123 + .../Sample_RegistryCodeVersionCollection.cs | 180 + .../Sample_RegistryCodeVersionResource.cs | 165 + .../Samples/Sample_RegistryCollection.cs | 445 + .../Sample_RegistryComponentCollection.cs | 172 + .../Sample_RegistryComponentResource.cs | 126 + ...mple_RegistryComponentVersionCollection.cs | 184 + ...Sample_RegistryComponentVersionResource.cs | 135 + .../Samples/Sample_RegistryDataCollection.cs | 174 + .../Samples/Sample_RegistryDataResource.cs | 127 + .../Sample_RegistryDataVersionCollection.cs | 186 + .../Sample_RegistryDataVersionResource.cs | 169 + .../Sample_RegistryEnvironmentCollection.cs | 176 + .../Sample_RegistryEnvironmentResource.cs | 130 + ...le_RegistryEnvironmentVersionCollection.cs | 191 + ...mple_RegistryEnvironmentVersionResource.cs | 142 + .../Samples/Sample_RegistryModelCollection.cs | 169 + .../Samples/Sample_RegistryModelResource.cs | 123 + .../Sample_RegistryModelVersionCollection.cs | 190 + .../Sample_RegistryModelVersionResource.cs | 240 + .../Samples/Sample_RegistryResource.cs | 364 + .../Sample_SubscriptionResourceExtensions.cs | 8 +- ...n.cs => Sample_WorkspaceCodeCollection.cs} | 50 +- ...rce.cs => Sample_WorkspaceCodeResource.cs} | 52 +- ... Sample_WorkspaceCodeVersionCollection.cs} | 82 +- .../Sample_WorkspaceCodeVersionResource.cs | 165 + ...=> Sample_WorkspaceComponentCollection.cs} | 50 +- ...s => Sample_WorkspaceComponentResource.cs} | 52 +- ...le_WorkspaceComponentVersionCollection.cs} | 82 +- ...mple_WorkspaceComponentVersionResource.cs} | 52 +- ...n.cs => Sample_WorkspaceDataCollection.cs} | 50 +- ...rce.cs => Sample_WorkspaceDataResource.cs} | 52 +- ... Sample_WorkspaceDataVersionCollection.cs} | 86 +- ...=> Sample_WorkspaceDataVersionResource.cs} | 52 +- ... Sample_WorkspaceEnvironmentCollection.cs} | 50 +- ...=> Sample_WorkspaceEnvironmentResource.cs} | 52 +- ..._WorkspaceEnvironmentVersionCollection.cs} | 82 +- ...le_WorkspaceEnvironmentVersionResource.cs} | 52 +- ....cs => Sample_WorkspaceModelCollection.cs} | 50 +- ...ce.cs => Sample_WorkspaceModelResource.cs} | 52 +- ...Sample_WorkspaceModelVersionCollection.cs} | 84 +- .../Sample_WorkspaceModelVersionResource.cs | 206 + .../Customized/EncryptionUpdateProperties.cs | 21 + .../MachineLearningModelVersionCollection.cs | 98 - .../ArmMachineLearningModelFactory.cs | 2137 ++-- .../Extensions/MachineLearningExtensions.cs | 752 +- .../ResourceGroupResourceExtensionClient.cs | 7 + .../SubscriptionResourceExtensionClient.cs | 150 +- .../src/Generated/FeatureCollection.cs | 267 + .../src/Generated/FeatureData.cs | 45 + .../src/Generated/FeatureResource.cs | 153 + .../FeaturesetContainerCollection.cs | 348 + .../src/Generated/FeaturesetContainerData.cs | 45 + .../Generated/FeaturesetContainerResource.cs | 350 + .../Generated/FeaturesetVersionCollection.cs | 348 + .../src/Generated/FeaturesetVersionData.cs | 45 + .../Generated/FeaturesetVersionResource.cs | 480 + .../FeaturestoreEntityContainerCollection.cs | 348 + .../FeaturestoreEntityContainerData.cs | 45 + .../FeaturestoreEntityContainerResource.cs | 350 + .../FeaturestoreEntityVersionCollection.cs | 348 + .../FeaturestoreEntityVersionData.cs | 45 + ...s => FeaturestoreEntityVersionResource.cs} | 110 +- .../src/Generated/LabelingJobCollection.cs | 353 + .../src/Generated/LabelingJobData.cs | 45 + .../src/Generated/LabelingJobResource.cs | 506 + .../ExportSummaryOperationSource.cs | 31 + .../FeaturesetContainerOperationSource.cs | 40 + .../FeaturesetJobOperationSource.cs | 31 + .../FeaturesetVersionOperationSource.cs | 40 + ...turestoreEntityContainerOperationSource.cs | 40 + ...eaturestoreEntityVersionOperationSource.cs | 40 + .../LabelingJobOperationSource.cs | 40 + ...edNetworkProvisionStatusOperationSource.cs | 31 + ...utboundRuleBasicResourceOperationSource.cs | 40 + .../PackageResponseOperationSource.cs | 31 + .../RegistryCodeOperationSource.cs | 40 + .../RegistryCodeVersionOperationSource.cs | 40 + .../RegistryComponentOperationSource.cs | 40 + ...RegistryComponentVersionOperationSource.cs | 40 + .../RegistryDataOperationSource.cs | 40 + .../RegistryDataVersionOperationSource.cs | 40 + .../RegistryEnvironmentOperationSource.cs | 40 + ...gistryEnvironmentVersionOperationSource.cs | 40 + .../RegistryModelOperationSource.cs | 40 + .../RegistryModelVersionOperationSource.cs | 40 + .../RegistryOperationSource.cs | 40 + ...achineLearningBatchDeploymentCollection.cs | 4 +- .../MachineLearningBatchEndpointCollection.cs | 4 +- .../MachineLearningComputeResource.cs | 137 + .../Generated/MachineLearningDatastoreData.cs | 6 +- .../Generated/MachineLearningJobCollection.cs | 32 +- .../src/Generated/MachineLearningJobData.cs | 6 +- .../Generated/MachineLearningJobResource.cs | 41 +- ...chineLearningOnlineDeploymentCollection.cs | 4 +- ...MachineLearningOnlineEndpointCollection.cs | 4 +- .../MachineLearningOnlineEndpointResource.cs | 4 +- ...ningPrivateEndpointConnectionCollection.cs | 30 +- ...neLearningPrivateEndpointConnectionData.cs | 24 +- ...arningPrivateEndpointConnectionResource.cs | 18 +- .../MachineLearningScheduleCollection.cs | 4 +- .../MachineLearningScheduleResource.cs | 4 +- .../MachineLearningWorkspaceCollection.cs | 14 +- ...neLearningWorkspaceConnectionCollection.cs | 6 + .../MachineLearningWorkspaceConnectionData.cs | 6 +- ...hineLearningWorkspaceConnectionResource.cs | 103 +- .../Generated/MachineLearningWorkspaceData.cs | 193 +- .../MachineLearningWorkspaceResource.cs | 912 +- ...spaceConnectionProperties.Serialization.cs | 117 + ...eyAuthTypeWorkspaceConnectionProperties.cs | 37 + .../Models/AcrDetails.Serialization.cs | 79 + .../src/Generated/Models/AcrDetails.cs | 46 + .../Models/AllFeatures.Serialization.cs | 41 + .../src/Generated/Models/AllFeatures.cs | 26 + .../Models/AllNodes.Serialization.cs | 41 + .../src/Generated/Models/AllNodes.cs | 26 + .../AmlTokenComputeIdentity.Serialization.cs | 41 + .../Models/AmlTokenComputeIdentity.cs | 26 + ...spaceConnectionProperties.Serialization.cs | 117 + ...ApiKeyAuthWorkspaceConnectionProperties.cs | 69 + .../Models/ArmResourceId.Serialization.cs | 56 + .../src/Generated/Models/ArmResourceId.cs | 34 + .../Models/AssetProvisioningState.cs | 63 + .../Generated/Models/AutoDeleteCondition.cs | 51 + .../Models/AutoDeleteSetting.Serialization.cs | 71 + .../src/Generated/Models/AutoDeleteSetting.cs | 32 + .../Models/AutoMLJob.Serialization.cs | 82 +- .../src/Generated/Models/AutoMLJob.cs | 8 +- .../AutoMLVerticalRegression.Serialization.cs | 81 +- .../Models/AutoMLVerticalRegression.cs | 15 +- .../Models/AutoMLVerticalRegressionModel.cs | 2 +- .../AutologgerSettings.Serialization.cs | 41 + .../Generated/Models/AutologgerSettings.cs | 23 + ...AlertNotificationSettings.Serialization.cs | 41 + ...zMonMonitoringAlertNotificationSettings.cs | 26 + .../AzureDevOpsWebhook.Serialization.cs | 64 + .../Generated/Models/AzureDevOpsWebhook.cs | 27 + ...eMLBatchInferencingServer.Serialization.cs | 64 + .../Models/AzureMLBatchInferencingServer.cs | 31 + ...MLOnlineInferencingServer.Serialization.cs | 64 + .../Models/AzureMLOnlineInferencingServer.cs | 31 + .../Models/BaseEnvironmentId.Serialization.cs | 49 + .../src/Generated/Models/BaseEnvironmentId.cs | 39 + .../BaseEnvironmentSource.Serialization.cs | 39 + .../Generated/Models/BaseEnvironmentSource.cs | 32 + .../Models/BaseEnvironmentSourceType.cs | 48 + ...chDeploymentConfiguration.Serialization.cs | 39 + .../Models/BatchDeploymentConfiguration.cs | 32 + .../BatchDeploymentConfigurationType.cs | 51 + ...ntDeploymentConfiguration.Serialization.cs | 156 + ...ipelineComponentDeploymentConfiguration.cs | 48 + .../Models/BindOptions.Serialization.cs | 102 + .../src/Generated/Models/BindOptions.cs | 36 + ...eferenceForConsumptionDto.Serialization.cs | 61 + .../Models/BlobReferenceForConsumptionDto.cs | 52 + .../Models/CategoricalDataDriftMetric.cs | 54 + ...lDataDriftMetricThreshold.Serialization.cs | 72 + .../CategoricalDataDriftMetricThreshold.cs | 34 + .../Models/CategoricalDataQualityMetric.cs | 54 + ...ataQualityMetricThreshold.Serialization.cs | 72 + .../CategoricalDataQualityMetricThreshold.cs | 34 + .../CategoricalPredictionDriftMetric.cs | 54 + ...ctionDriftMetricThreshold.Serialization.cs | 72 + ...tegoricalPredictionDriftMetricThreshold.cs | 34 + .../Generated/Models/ClassificationModel.cs | 2 +- .../ClassificationModelPerformanceMetric.cs | 54 + ...erformanceMetricThreshold.Serialization.cs | 72 + ...ficationModelPerformanceMetricThreshold.cs | 34 + .../ClassificationTask.Serialization.cs | 81 +- .../Generated/Models/ClassificationTask.cs | 15 +- ...ificationTrainingSettings.Serialization.cs | 17 +- .../Models/ClassificationTrainingSettings.cs | 7 +- .../Models/CocoExportSummary.Serialization.cs | 108 + .../src/Generated/Models/CocoExportSummary.cs | 41 + .../Models/Collection.Serialization.cs | 109 + .../src/Generated/Models/Collection.cs | 40 + ...nstanceAutologgerSettings.Serialization.cs | 48 + .../ComputeInstanceAutologgerSettings.cs | 28 + .../Models/ComputeRuntimeDto.Serialization.cs | 44 + .../src/Generated/Models/ComputeRuntimeDto.cs | 28 + .../Models/ComputeSchedules.Serialization.cs | 20 +- .../src/Generated/Models/ComputeSchedules.cs | 6 +- .../src/Generated/Models/CosmosDbSettings.cs | 4 +- .../CreateMonitorAction.Serialization.cs | 49 + .../Generated/Models/CreateMonitorAction.cs | 39 + .../src/Generated/Models/CredentialsType.cs | 6 + .../Generated/Models/Cron.Serialization.cs | 78 + .../src/Generated/Models/Cron.cs | 48 + .../Models/CsvExportSummary.Serialization.cs | 108 + .../src/Generated/Models/CsvExportSummary.cs | 41 + .../CustomInferencingServer.Serialization.cs | 64 + .../Models/CustomInferencingServer.cs | 31 + .../Models/CustomKeys.Serialization.cs | 60 + .../src/Generated/Models/CustomKeys.cs | 32 + ...spaceConnectionProperties.Serialization.cs | 117 + ...CustomKeysWorkspaceConnectionProperties.cs | 54 + .../CustomMetricThreshold.Serialization.cs | 64 + .../Generated/Models/CustomMetricThreshold.cs | 51 + .../CustomMonitoringSignal.Serialization.cs | 193 + .../Models/CustomMonitoringSignal.cs | 83 + .../Models/CustomService.Serialization.cs | 173 + .../src/Generated/Models/CustomService.cs | 89 + .../Generated/Models/DataCollectionMode.cs | 51 + .../Models/DataCollector.Serialization.cs | 91 + .../src/Generated/Models/DataCollector.cs | 76 + ...aDriftMetricThresholdBase.Serialization.cs | 52 + .../Models/DataDriftMetricThresholdBase.cs | 47 + ...DataDriftMonitoringSignal.Serialization.cs | 205 + .../Models/DataDriftMonitoringSignal.cs | 114 + .../Models/DataImport.Serialization.cs | 287 + .../src/Generated/Models/DataImport.cs | 60 + .../Models/DataImportSource.Serialization.cs | 52 + .../src/Generated/Models/DataImportSource.cs | 36 + .../Generated/Models/DataImportSourceType.cs | 51 + ...ualityMetricThresholdBase.Serialization.cs | 52 + .../Models/DataQualityMetricThresholdBase.cs | 47 + ...taQualityMonitoringSignal.Serialization.cs | 182 + .../Models/DataQualityMonitoringSignal.cs | 110 + .../Models/DatabaseSource.Serialization.cs | 190 + .../src/Generated/Models/DatabaseSource.cs | 48 + .../DatasetExportSummary.Serialization.cs | 97 + .../Generated/Models/DatasetExportSummary.cs | 37 + .../src/Generated/Models/DatastoreType.cs | 6 + .../src/Generated/Models/DistributionType.cs | 3 + .../Generated/Models/Docker.Serialization.cs | 71 + .../src/Generated/Models/Docker.cs | 66 + ...AlertNotificationSettings.Serialization.cs | 64 + ...mailMonitoringAlertNotificationSettings.cs | 31 + .../Models/EmailNotificationEnableType.cs | 54 + ...nKeyVaultUpdateProperties.Serialization.cs | 23 + .../EncryptionKeyVaultUpdateProperties.cs | 29 + ...ncryptionUpdateProperties.Serialization.cs | 23 + .../Models/EncryptionUpdateProperties.cs | 34 + .../Models/Endpoint.Serialization.cs | 120 + .../src/Generated/Models/Endpoint.cs | 44 + .../Models/EndpointServiceConnectionStatus.cs | 60 + .../EnvironmentVariable.Serialization.cs | 74 + .../Generated/Models/EnvironmentVariable.cs | 70 + .../Models/EnvironmentVariableType.cs | 48 + .../src/Generated/Models/ExportFormatType.cs | 54 + .../Models/ExportSummary.Serialization.cs | 41 + .../src/Generated/Models/ExportSummary.cs | 50 + .../ExternalFqdnResponse.Serialization.cs | 6 +- .../Generated/Models/ExternalFqdnResponse.cs | 6 +- ...tionDriftMonitoringSignal.Serialization.cs | 125 + ...FeatureAttributionDriftMonitoringSignal.cs | 81 + .../Models/FeatureAttributionMetric.cs | 48 + ...ttributionMetricThreshold.Serialization.cs | 64 + .../FeatureAttributionMetricThreshold.cs | 45 + .../Models/FeatureData.Serialization.cs | 71 + .../src/Generated/Models/FeatureDataType.cs | 69 + .../Models/FeatureProperties.Serialization.cs | 163 + .../src/Generated/Models/FeatureProperties.cs | 37 + ...sourceArmPaginatedResult.Serialization.cs} | 23 +- .../FeatureResourceArmPaginatedResult.cs | 37 + .../FeatureStoreSettings.Serialization.cs | 70 + .../Generated/Models/FeatureStoreSettings.cs | 48 + .../Models/FeatureSubset.Serialization.cs | 60 + .../src/Generated/Models/FeatureSubset.cs | 41 + .../Models/FeatureWindow.Serialization.cs | 80 + .../src/Generated/Models/FeatureWindow.cs | 34 + ...turesetContainerCollectionGetAllOptions.cs | 33 + .../FeaturesetContainerData.Serialization.cs | 71 + ...uresetContainerProperties.Serialization.cs | 172 + .../Models/FeaturesetContainerProperties.cs | 36 + ...esourceArmPaginatedResult.Serialization.cs | 50 + ...esetContainerResourceArmPaginatedResult.cs | 37 + .../Models/FeaturesetJob.Serialization.cs | 131 + .../src/Generated/Models/FeaturesetJob.cs | 65 + ...esetJobArmPaginatedResult.Serialization.cs | 49 + .../Models/FeaturesetJobArmPaginatedResult.cs | 36 + .../FeaturesetSpecification.Serialization.cs | 56 + .../Models/FeaturesetSpecification.cs | 28 + ...setVersionBackfillContent.Serialization.cs | 70 + .../FeaturesetVersionBackfillContent.cs | 48 + ...eaturesetVersionCollectionGetAllOptions.cs | 37 + .../FeaturesetVersionData.Serialization.cs | 71 + ...aturesetVersionProperties.Serialization.cs | 290 + .../Models/FeaturesetVersionProperties.cs | 66 + ...esourceArmPaginatedResult.Serialization.cs | 50 + ...uresetVersionResourceArmPaginatedResult.cs | 37 + ...eEntityContainerCollectionGetAllOptions.cs | 33 + ...estoreEntityContainerData.Serialization.cs | 71 + ...EntityContainerProperties.Serialization.cs | 172 + .../FeaturestoreEntityContainerProperties.cs | 36 + ...esourceArmPaginatedResult.Serialization.cs | 50 + ...tityContainerResourceArmPaginatedResult.cs | 37 + ...oreEntityVersionCollectionGetAllOptions.cs | 37 + ...urestoreEntityVersionData.Serialization.cs | 71 + ...reEntityVersionProperties.Serialization.cs | 244 + .../FeaturestoreEntityVersionProperties.cs | 46 + ...esourceArmPaginatedResult.Serialization.cs | 50 + ...EntityVersionResourceArmPaginatedResult.cs | 37 + .../Generated/Models/FeaturestoreJobType.cs | 51 + .../Models/FileSystemSource.Serialization.cs | 87 + .../src/Generated/Models/FileSystemSource.cs | 32 + .../Models/FixedInputData.Serialization.cs | 116 + .../src/Generated/Models/FixedInputData.cs | 39 + .../src/Generated/Models/ForecastingModel.cs | 2 +- .../ForecastingSettings.Serialization.cs | 35 +- .../Generated/Models/ForecastingSettings.cs | 13 +- ...recastingTrainingSettings.Serialization.cs | 17 +- .../Models/ForecastingTrainingSettings.cs | 7 +- .../FqdnEndpointsPropertyBag.Serialization.cs | 37 + .../Models/FqdnEndpointsPropertyBag.cs | 28 + .../Models/FqdnOutboundRule.Serialization.cs | 82 + .../src/Generated/Models/FqdnOutboundRule.cs | 33 + .../Models/GenerationSafetyQualityMetric.cs | 75 + ...etyQualityMetricThreshold.Serialization.cs | 64 + .../GenerationSafetyQualityMetricThreshold.cs | 51 + ...tyQualityMonitoringSignal.Serialization.cs | 173 + ...GenerationSafetyQualityMonitoringSignal.cs | 66 + .../Models/GenerationTokenStatisticsMetric.cs | 51 + ...StatisticsMetricThreshold.Serialization.cs | 64 + ...enerationTokenStatisticsMetricThreshold.cs | 51 + ...tionTokenStatisticsSignal.Serialization.cs | 140 + .../Models/GenerationTokenStatisticsSignal.cs | 61 + .../Models/HdfsDatastore.Serialization.cs | 216 + .../src/Generated/Models/HdfsDatastore.cs | 64 + .../IdleShutdownSetting.Serialization.cs | 26 + .../Generated/Models/IdleShutdownSetting.cs | 21 + .../Generated/Models/Image.Serialization.cs | 74 + .../src/Generated/Models/Image.cs | 70 + .../Generated/Models/ImageAnnotationType.cs | 54 + .../Models/ImageMetadata.Serialization.cs | 49 + .../src/Generated/Models/ImageMetadata.cs | 36 + .../Models/ImageModelDistributionSettings.cs | 4 +- ...ModelDistributionSettingsClassification.cs | 4 +- ...odelDistributionSettingsObjectDetection.cs | 4 +- ...elSettingsObjectDetection.Serialization.cs | 32 +- .../ImageModelSettingsObjectDetection.cs | 10 +- .../src/Generated/Models/ImageType.cs | 51 + .../Models/ImportDataAction.Serialization.cs | 49 + .../src/Generated/Models/ImportDataAction.cs | 39 + .../Models/IncrementalDataRefresh.cs | 51 + .../Models/IndexColumn.Serialization.cs | 71 + .../src/Generated/Models/IndexColumn.cs | 32 + .../Models/InferencingServer.Serialization.cs | 42 + .../src/Generated/Models/InferencingServer.cs | 32 + .../Generated/Models/InferencingServerType.cs | 57 + .../src/Generated/Models/InputPathType.cs | 54 + .../IntellectualProperty.Serialization.cs | 56 + .../Generated/Models/IntellectualProperty.cs | 40 + .../src/Generated/Models/IsolationMode.cs | 54 + .../src/Generated/Models/JobInputType.cs | 2 +- .../Generated/Models/JobProvisioningState.cs | 57 + .../src/Generated/Models/JobTier.cs | 60 + .../src/Generated/Models/JobType.cs | 6 + ...KerberosKeytabCredentials.Serialization.cs | 73 + .../Models/KerberosKeytabCredentials.cs | 60 + .../KerberosKeytabSecrets.Serialization.cs | 64 + .../Generated/Models/KerberosKeytabSecrets.cs | 31 + ...rberosPasswordCredentials.Serialization.cs | 73 + .../Models/KerberosPasswordCredentials.cs | 60 + .../KerberosPasswordSecrets.Serialization.cs | 64 + .../Models/KerberosPasswordSecrets.cs | 31 + ...cs => KeyVaultProperties.Serialization.cs} | 26 +- .../Generated/Models/KeyVaultProperties.cs | 53 + .../Models/LabelCategory.Serialization.cs | 106 + .../src/Generated/Models/LabelCategory.cs | 40 + .../Models/LabelClass.Serialization.cs | 91 + .../src/Generated/Models/LabelClass.cs | 36 + ...LabelingDataConfiguration.Serialization.cs | 71 + .../Models/LabelingDataConfiguration.cs | 32 + .../Models/LabelingJobData.Serialization.cs | 71 + ...abelingJobImageProperties.Serialization.cs | 56 + .../Models/LabelingJobImageProperties.cs | 31 + .../LabelingJobInstructions.Serialization.cs | 57 + .../Models/LabelingJobInstructions.cs | 30 + ...abelingJobMediaProperties.Serialization.cs | 40 + .../Models/LabelingJobMediaProperties.cs | 32 + .../LabelingJobProperties.Serialization.cs | 529 + .../Generated/Models/LabelingJobProperties.cs | 122 + ...esourceArmPaginatedResult.Serialization.cs | 50 + .../LabelingJobResourceArmPaginatedResult.cs | 37 + ...LabelingJobTextProperties.Serialization.cs | 56 + .../Models/LabelingJobTextProperties.cs | 31 + .../Models/LakeHouseArtifact.Serialization.cs | 49 + .../src/Generated/Models/LakeHouseArtifact.cs | 34 + .../src/Generated/Models/LogTrainingMetric.cs | 51 + .../src/Generated/Models/LogValidationLoss.cs | 51 + .../MLAssistConfiguration.Serialization.cs | 40 + .../Generated/Models/MLAssistConfiguration.cs | 32 + ...sistConfigurationDisabled.Serialization.cs | 41 + .../Models/MLAssistConfigurationDisabled.cs | 26 + ...ssistConfigurationEnabled.Serialization.cs | 57 + .../Models/MLAssistConfigurationEnabled.cs | 46 + .../Models/MLAssistConfigurationType.cs | 51 + .../Generated/Models/MLFlowAutologgerState.cs | 51 + .../MachineLearningAssetBase.Serialization.cs | 25 +- .../Models/MachineLearningAssetBase.cs | 14 +- ...earningAssetReferenceBase.Serialization.cs | 2 +- .../MachineLearningAssetReferenceBase.cs | 2 +- ...earningAzureBlobDatastore.Serialization.cs | 71 +- .../MachineLearningAzureBlobDatastore.cs | 15 +- ...zureDataLakeGen1Datastore.Serialization.cs | 71 +- ...chineLearningAzureDataLakeGen1Datastore.cs | 15 +- ...zureDataLakeGen2Datastore.Serialization.cs | 71 +- ...chineLearningAzureDataLakeGen2Datastore.cs | 15 +- ...earningAzureFileDatastore.Serialization.cs | 71 +- .../MachineLearningAzureFileDatastore.cs | 15 +- ...BatchDeploymentProperties.Serialization.cs | 25 +- ...achineLearningBatchDeploymentProperties.cs | 20 +- .../Models/MachineLearningCmkIdentity.cs | 6 +- ...ngCodeContainerProperties.Serialization.cs | 12 +- .../MachineLearningCodeContainerProperties.cs | 7 +- ...ningCodeVersionProperties.Serialization.cs | 35 +- .../MachineLearningCodeVersionProperties.cs | 11 +- ...MachineLearningCommandJob.Serialization.cs | 105 +- .../Models/MachineLearningCommandJob.cs | 30 +- ...ponentContainerProperties.Serialization.cs | 12 +- ...ineLearningComponentContainerProperties.cs | 7 +- ...omponentVersionProperties.Serialization.cs | 58 +- ...chineLearningComponentVersionProperties.cs | 15 +- ...ComputeInstanceProperties.Serialization.cs | 105 +- ...achineLearningComputeInstanceProperties.cs | 42 +- .../MachineLearningComputePowerAction.cs | 2 +- ...gComputeStartStopSchedule.Serialization.cs | 46 +- ...MachineLearningComputeStartStopSchedule.cs | 16 +- .../MachineLearningConnectionAuthType.cs | 12 + .../MachineLearningConnectionCategory.cs | 39 + ...tainerRegistryCredentials.Serialization.cs | 14 +- ...ineLearningContainerRegistryCredentials.cs | 14 +- .../Models/MachineLearningContainerType.cs | 9 +- ...rningCustomModelJobOutput.Serialization.cs | 71 +- .../MachineLearningCustomModelJobOutput.cs | 14 +- ...ningDataVersionProperties.Serialization.cs | 71 +- .../MachineLearningDataVersionProperties.cs | 21 +- ...rningDatastoreCredentials.Serialization.cs | 2 + .../MachineLearningDatastoreCredentials.cs | 2 +- ...arningDatastoreProperties.Serialization.cs | 27 +- .../MachineLearningDatastoreProperties.cs | 14 +- ...eLearningDatastoreSecrets.Serialization.cs | 2 + .../Models/MachineLearningDatastoreSecrets.cs | 2 +- ...mentResourceConfiguration.Serialization.cs | 58 +- ...LearningDeploymentResourceConfiguration.cs | 7 +- ...DistributionConfiguration.Serialization.cs | 1 + ...achineLearningDistributionConfiguration.cs | 2 +- ...ineLearningEncryptionKeyVaultProperties.cs | 47 - ...LearningEncryptionSetting.Serialization.cs | 49 +- .../MachineLearningEncryptionSetting.cs | 56 +- ...ineLearningEndpointDeploymentProperties.cs | 4 +- ...onmentContainerProperties.Serialization.cs | 12 +- ...eLearningEnvironmentContainerProperties.cs | 7 +- ...ironmentVersionProperties.Serialization.cs | 81 +- ...ineLearningEnvironmentVersionProperties.cs | 19 +- ...earningFlowModelJobOutput.Serialization.cs | 71 +- .../MachineLearningFlowModelJobOutput.cs | 14 +- ...achineLearningForecasting.Serialization.cs | 81 +- .../Models/MachineLearningForecasting.cs | 15 +- ...hineLearningFqdnEndpoints.Serialization.cs | 20 +- .../Models/MachineLearningFqdnEndpoints.cs | 18 +- .../MachineLearningFqdnEndpointsProperties.cs | 36 - ...chineLearningJobCollectionGetAllOptions.cs | 33 + .../MachineLearningJobPatch.Serialization.cs | 26 + .../Models/MachineLearningJobPatch.cs | 38 + ...hineLearningJobProperties.Serialization.cs | 61 +- .../Models/MachineLearningJobProperties.cs | 13 +- ...gJobResourceConfiguration.Serialization.cs | 58 +- ...MachineLearningJobResourceConfiguration.cs | 7 +- .../MachineLearningJobScheduleAction.cs | 6 +- ...MachineLearningJobService.Serialization.cs | 25 +- .../Models/MachineLearningJobService.cs | 20 +- .../Models/MachineLearningJobStatus.cs | 3 + ...ubernetesOnlineDeployment.Serialization.cs | 25 +- ...chineLearningKubernetesOnlineDeployment.cs | 5 +- ...thTypeWorkspaceConnection.Serialization.cs | 51 +- ...agedIdentityAuthTypeWorkspaceConnection.cs | 8 +- ...ngManagedOnlineDeployment.Serialization.cs | 25 +- .../MachineLearningManagedOnlineDeployment.cs | 5 +- ...gModelContainerProperties.Serialization.cs | 12 +- ...MachineLearningModelContainerProperties.cs | 7 +- ...ingModelVersionProperties.Serialization.cs | 81 +- .../MachineLearningModelVersionProperties.cs | 19 +- ...thTypeWorkspaceConnection.Serialization.cs | 51 +- ...LearningNoneAuthTypeWorkspaceConnection.cs | 8 +- ...rningNotebookResourceInfo.Serialization.cs | 19 +- .../MachineLearningNotebookResourceInfo.cs | 14 +- ...nlineDeploymentProperties.Serialization.cs | 25 +- ...chineLearningOnlineDeploymentProperties.cs | 8 +- ...gOnlineEndpointProperties.Serialization.cs | 36 +- ...MachineLearningOnlineEndpointProperties.cs | 7 +- .../MachineLearningOutputDeliveryMode.cs | 3 + ...thTypeWorkspaceConnection.Serialization.cs | 51 +- ...eLearningPatAuthTypeWorkspaceConnection.cs | 8 +- ...achineLearningPipelineJob.Serialization.cs | 59 +- .../Models/MachineLearningPipelineJob.cs | 4 +- ...neLearningPrivateEndpoint.Serialization.cs | 12 +- .../Models/MachineLearningPrivateEndpoint.cs | 6 +- ...ateEndpointConnectionData.Serialization.cs | 4 +- ...gPrivateEndpointServiceConnectionStatus.cs | 60 - ...arningPrivateLinkResource.Serialization.cs | 17 +- .../MachineLearningPrivateLinkResource.cs | 14 +- ...neLearningPrivateLinkResourceListResult.cs | 4 +- ...inkServiceConnectionState.Serialization.cs | 34 +- ...arningPrivateLinkServiceConnectionState.cs | 22 +- .../MachineLearningProvisioningState.cs | 2 +- .../MachineLearningPublicNetworkAccess.cs | 51 - ...ningResourceConfiguration.Serialization.cs | 58 +- .../MachineLearningResourceConfiguration.cs | 17 +- ...thTypeWorkspaceConnection.Serialization.cs | 51 +- ...eLearningSasAuthTypeWorkspaceConnection.cs | 8 +- ...ineLearningScheduleAction.Serialization.cs | 2 + .../Models/MachineLearningScheduleAction.cs | 2 +- ...chineLearningScheduleBase.Serialization.cs | 30 +- .../Models/MachineLearningScheduleBase.cs | 8 +- .../MachineLearningScheduleProperties.cs | 6 +- .../Models/MachineLearningScriptReference.cs | 4 +- ...SharedPrivateLinkResource.Serialization.cs | 28 +- ...achineLearningSharedPrivateLinkResource.cs | 20 +- .../MachineLearningSweepJob.Serialization.cs | 82 +- .../Models/MachineLearningSweepJob.cs | 8 +- .../MachineLearningTable.Serialization.cs | 71 +- .../Generated/Models/MachineLearningTable.cs | 13 +- ...ineLearningTableJobOutput.Serialization.cs | 71 +- .../Models/MachineLearningTableJobOutput.cs | 14 +- ...eLearningTrainingSettings.Serialization.cs | 17 +- .../Models/MachineLearningTrainingSettings.cs | 14 +- .../Models/MachineLearningTrialComponent.cs | 4 +- ...rningTritonModelJobOutput.Serialization.cs | 71 +- .../MachineLearningTritonModelJobOutput.cs | 14 +- ...earningUriFileDataVersion.Serialization.cs | 71 +- .../MachineLearningUriFileDataVersion.cs | 13 +- ...eLearningUriFileJobOutput.Serialization.cs | 71 +- .../Models/MachineLearningUriFileJobOutput.cs | 14 +- ...rningUriFolderDataVersion.Serialization.cs | 71 +- .../MachineLearningUriFolderDataVersion.cs | 13 +- ...earningUriFolderJobOutput.Serialization.cs | 71 +- .../MachineLearningUriFolderJobOutput.cs | 14 +- ...thTypeWorkspaceConnection.Serialization.cs | 51 +- ...namePasswordAuthTypeWorkspaceConnection.cs | 8 +- .../Models/MachineLearningValueFormat.cs | 48 - ...ConnectionManagedIdentity.Serialization.cs | 24 +- ...rningWorkspaceConnectionManagedIdentity.cs | 10 +- ...gWorkspaceConnectionPatch.Serialization.cs | 26 + ...MachineLearningWorkspaceConnectionPatch.cs | 25 + ...spaceConnectionProperties.Serialization.cs | 26 +- ...neLearningWorkspaceConnectionProperties.cs | 51 +- ...onnectionUsernamePassword.Serialization.cs | 22 +- ...ningWorkspaceConnectionUsernamePassword.cs | 10 +- ...hineLearningWorkspaceData.Serialization.cs | 403 +- ...MachineLearningWorkspaceDiagnoseContent.cs | 2 +- ...rkspaceDiagnoseProperties.Serialization.cs | 54 +- ...hineLearningWorkspaceDiagnoseProperties.cs | 48 +- ...ingWorkspaceGetKeysResult.Serialization.cs | 26 +- .../MachineLearningWorkspaceGetKeysResult.cs | 22 +- ...eLearningWorkspaceGetNotebookKeysResult.cs | 8 +- ...ingWorkspaceGetStorageAccountKeysResult.cs | 4 +- ...NotebookAccessTokenResult.Serialization.cs | 48 +- ...rningWorkspaceNotebookAccessTokenResult.cs | 34 +- ...ineLearningWorkspacePatch.Serialization.cs | 66 +- .../Models/MachineLearningWorkspacePatch.cs | 47 +- .../ManagedComputeIdentity.Serialization.cs | 59 + .../Models/ManagedComputeIdentity.cs | 33 + ...edNetworkProvisionContent.Serialization.cs | 26 + .../Models/ManagedNetworkProvisionContent.cs | 21 + ...gedNetworkProvisionStatus.Serialization.cs | 63 + .../Models/ManagedNetworkProvisionStatus.cs | 32 + .../ManagedNetworkSettings.Serialization.cs | 104 + .../Models/ManagedNetworkSettings.cs | 52 + .../Generated/Models/ManagedNetworkStatus.cs | 51 + ...ializationComputeResource.Serialization.cs | 56 + .../Models/MaterializationComputeResource.cs | 28 + .../MaterializationSettings.Serialization.cs | 152 + .../Models/MaterializationSettings.cs | 60 + .../Models/MaterializationStoreType.cs | 57 + .../src/Generated/Models/MediaType.cs | 51 + .../src/Generated/Models/MlflowAutologger.cs | 51 + .../ModelConfiguration.Serialization.cs | 71 + .../Generated/Models/ModelConfiguration.cs | 32 + .../Models/ModelPackageInput.Serialization.cs | 87 + .../src/Generated/Models/ModelPackageInput.cs | 62 + ...rmanceMetricThresholdBase.Serialization.cs | 52 + .../ModelPerformanceMetricThresholdBase.cs | 47 + .../ModelPerformanceSignal.Serialization.cs | 148 + .../Models/ModelPerformanceSignal.cs | 97 + .../src/Generated/Models/ModelTaskType.cs | 54 + ...rComputeConfigurationBase.Serialization.cs | 39 + .../Models/MonitorComputeConfigurationBase.cs | 32 + ...onitorComputeIdentityBase.Serialization.cs | 40 + .../Models/MonitorComputeIdentityBase.cs | 32 + .../Models/MonitorComputeIdentityType.cs | 51 + .../Generated/Models/MonitorComputeType.cs | 48 + .../Models/MonitorDefinition.Serialization.cs | 107 + .../src/Generated/Models/MonitorDefinition.cs | 84 + ...torServerlessSparkCompute.Serialization.cs | 65 + .../Models/MonitorServerlessSparkCompute.cs | 65 + ...tNotificationSettingsBase.Serialization.cs | 40 + ...MonitoringAlertNotificationSettingsBase.cs | 32 + .../Models/MonitoringAlertNotificationType.cs | 51 + .../MonitoringDataSegment.Serialization.cs | 90 + .../Generated/Models/MonitoringDataSegment.cs | 36 + .../Models/MonitoringFeatureDataType.cs | 51 + ...nitoringFeatureFilterBase.Serialization.cs | 41 + .../Models/MonitoringFeatureFilterBase.cs | 32 + .../Models/MonitoringFeatureFilterType.cs | 54 + .../MonitoringInputDataBase.Serialization.cs | 75 + .../Models/MonitoringInputDataBase.cs | 60 + .../Models/MonitoringInputDataType.cs | 54 + .../Generated/Models/MonitoringModelType.cs | 51 + .../Models/MonitoringNotificationMode.cs | 51 + .../MonitoringSignalBase.Serialization.cs | 69 + .../Generated/Models/MonitoringSignalBase.cs | 44 + .../Generated/Models/MonitoringSignalType.cs | 69 + .../Models/MonitoringTarget.Serialization.cs | 87 + .../src/Generated/Models/MonitoringTarget.cs | 38 + .../MonitoringThreshold.Serialization.cs | 56 + .../Generated/Models/MonitoringThreshold.cs | 28 + ...toringWorkspaceConnection.Serialization.cs | 102 + .../Models/MonitoringWorkspaceConnection.cs | 49 + .../src/Generated/Models/MultiSelect.cs | 51 + .../NlpFixedParameters.Serialization.cs | 232 + .../Generated/Models/NlpFixedParameters.cs | 60 + .../Models/NlpLearningRateScheduler.cs | 66 + .../NlpParameterSubspace.Serialization.cs | 240 + .../Generated/Models/NlpParameterSubspace.cs | 60 + .../Models/NlpSweepSettings.Serialization.cs | 64 + .../src/Generated/Models/NlpSweepSettings.cs | 42 + .../NlpVerticalLimitSettings.Serialization.cs | 32 +- .../Models/NlpVerticalLimitSettings.cs | 10 +- .../Generated/Models/Nodes.Serialization.cs | 39 + .../src/Generated/Models/Nodes.cs | 32 + .../src/Generated/Models/NodesValueType.cs | 51 + .../NotificationSetting.Serialization.cs | 134 + .../Generated/Models/NotificationSetting.cs | 50 + .../Models/NumericalDataDriftMetric.cs | 57 + ...lDataDriftMetricThreshold.Serialization.cs | 72 + .../NumericalDataDriftMetricThreshold.cs | 34 + .../Models/NumericalDataQualityMetric.cs | 54 + ...ataQualityMetricThreshold.Serialization.cs | 72 + .../NumericalDataQualityMetricThreshold.cs | 34 + .../Models/NumericalPredictionDriftMetric.cs | 57 + ...ctionDriftMetricThreshold.Serialization.cs | 72 + ...NumericalPredictionDriftMetricThreshold.cs | 34 + .../Models/OneLakeArtifact.Serialization.cs | 41 + .../src/Generated/Models/OneLakeArtifact.cs | 44 + .../Generated/Models/OneLakeArtifactType.cs | 48 + .../Models/OneLakeDatastore.Serialization.cs | 228 + .../src/Generated/Models/OneLakeDatastore.cs | 83 + ...ineInferenceConfiguration.Serialization.cs | 160 + .../Models/OnlineInferenceConfiguration.cs | 48 + .../Models/OutboundRule.Serialization.cs | 51 + .../src/Generated/Models/OutboundRule.cs | 40 + ...oundRuleBasicResourceData.Serialization.cs | 71 + .../OutboundRuleListResult.Serialization.cs | 50 + .../Models/OutboundRuleListResult.cs | 37 + .../src/Generated/Models/PackageBuildState.cs | 57 + .../Models/PackageInputDeliveryMode.cs | 51 + .../PackageInputPathBase.Serialization.cs | 41 + .../Generated/Models/PackageInputPathBase.cs | 32 + .../PackageInputPathId.Serialization.cs | 64 + .../Generated/Models/PackageInputPathId.cs | 31 + .../PackageInputPathUri.Serialization.cs | 65 + .../Generated/Models/PackageInputPathUri.cs | 33 + .../PackageInputPathVersion.Serialization.cs | 87 + .../Models/PackageInputPathVersion.cs | 35 + .../src/Generated/Models/PackageInputType.cs | 51 + .../Models/PackageRequest.Serialization.cs | 102 + .../src/Generated/Models/PackageRequest.cs | 60 + .../Models/PackageResponse.Serialization.cs | 153 + .../src/Generated/Models/PackageResponse.cs | 87 + .../Models/PartialJobBase.Serialization.cs | 33 + .../src/Generated/Models/PartialJobBase.cs | 38 + ...artialNotificationSetting.Serialization.cs | 39 + .../Models/PartialNotificationSetting.cs | 29 + ...endingUploadCredentialDto.Serialization.cs | 30 + .../Models/PendingUploadCredentialDto.cs | 32 + .../Models/PendingUploadCredentialType.cs | 48 + .../PendingUploadRequestDto.Serialization.cs | 38 + .../Models/PendingUploadRequestDto.cs | 23 + .../PendingUploadResponseDto.Serialization.cs | 59 + .../Models/PendingUploadResponseDto.cs | 36 + .../src/Generated/Models/PendingUploadType.cs | 51 + ...nDriftMetricThresholdBase.Serialization.cs | 52 + .../PredictionDriftMetricThresholdBase.cs | 47 + ...tionDriftMonitoringSignal.Serialization.cs | 133 + .../Models/PredictionDriftMonitoringSignal.cs | 99 + ...rivateEndpointDestination.Serialization.cs | 85 + .../Models/PrivateEndpointDestination.cs | 40 + ...ivateEndpointOutboundRule.Serialization.cs | 86 + .../Models/PrivateEndpointOutboundRule.cs | 33 + .../PrivateEndpointResource.Serialization.cs | 66 + .../Models/PrivateEndpointResource.cs | 31 + .../Models/ProgressMetrics.Serialization.cs | 72 + .../src/Generated/Models/ProgressMetrics.cs | 42 + .../src/Generated/Models/ProtectionLevel.cs | 51 + .../src/Generated/Models/Protocol.cs | 54 + .../Models/QueueSettings.Serialization.cs | 71 + .../src/Generated/Models/QueueSettings.cs | 32 + .../RandomSamplingAlgorithm.Serialization.cs | 25 +- .../Models/RandomSamplingAlgorithm.cs | 6 +- .../src/Generated/Models/Ray.Serialization.cs | 179 + .../src/Generated/Models/Ray.cs | 51 + .../Models/Recurrence.Serialization.cs | 112 + .../src/Generated/Models/Recurrence.cs | 50 + .../Models/RegistryData.Serialization.cs | 338 + ...stryModelVersionCollectionGetAllOptions.cs | 35 + .../Models/RegistryPatch.Serialization.cs | 42 + .../src/Generated/Models/RegistryPatch.cs | 30 + ...PrivateEndpointConnection.Serialization.cs | 197 + .../RegistryPrivateEndpointConnection.cs | 58 + ...inkServiceConnectionState.Serialization.cs | 94 + ...gistryPrivateLinkServiceConnectionState.cs | 36 + .../RegistryRegionArmDetails.Serialization.cs | 123 + .../Models/RegistryRegionArmDetails.cs | 41 + ...esourceArmPaginatedResult.Serialization.cs | 50 + ...gistryTrackedResourceArmPaginatedResult.cs | 37 + .../RegressionModelPerformanceMetric.cs | 54 + ...erformanceMetricThreshold.Serialization.cs | 72 + ...gressionModelPerformanceMetricThreshold.cs | 34 + ...egressionTrainingSettings.Serialization.cs | 17 +- .../Models/RegressionTrainingSettings.cs | 7 +- .../Models/RequestLogging.Serialization.cs | 67 + .../src/Generated/Models/RequestLogging.cs | 32 + .../src/Generated/Models/RollingRateType.cs | 60 + .../src/Generated/Models/RuleAction.cs | 51 + .../src/Generated/Models/RuleCategory.cs | 54 + .../src/Generated/Models/RuleStatus.cs | 51 + .../src/Generated/Models/RuleType.cs | 54 + .../Models/SasCredentialDto.Serialization.cs | 45 + .../src/Generated/Models/SasCredentialDto.cs | 33 + .../Generated/Models/ScheduleActionType.cs | 6 + .../SecretConfiguration.Serialization.cs | 80 + .../Generated/Models/SecretConfiguration.cs | 40 + .../src/Generated/Models/SecretsType.cs | 6 + .../Models/ServiceManagedResourcesSettings.cs | 6 +- ...spaceConnectionProperties.Serialization.cs | 117 + ...alAuthTypeWorkspaceConnectionProperties.cs | 37 + .../ServiceTagDestination.Serialization.cs | 97 + .../Generated/Models/ServiceTagDestination.cs | 48 + .../ServiceTagOutboundRule.Serialization.cs | 86 + .../Models/ServiceTagOutboundRule.cs | 33 + .../Models/SparkJob.Serialization.cs | 694 ++ .../src/Generated/Models/SparkJob.cs | 147 + .../Models/SparkJobEntry.Serialization.cs | 40 + .../src/Generated/Models/SparkJobEntry.cs | 32 + .../src/Generated/Models/SparkJobEntryType.cs | 51 + .../SparkJobPythonEntry.Serialization.cs | 49 + .../Generated/Models/SparkJobPythonEntry.cs | 39 + .../SparkJobScalaEntry.Serialization.cs | 49 + .../Generated/Models/SparkJobScalaEntry.cs | 39 + ...parkResourceConfiguration.Serialization.cs | 67 + .../Models/SparkResourceConfiguration.cs | 32 + .../Models/StaticInputData.Serialization.cs | 155 + .../src/Generated/Models/StaticInputData.cs | 56 + .../Models/StatusMessage.Serialization.cs | 71 + .../src/Generated/Models/StatusMessage.cs | 42 + .../Generated/Models/StatusMessageLevel.cs | 54 + .../StorageAccountDetails.Serialization.cs | 79 + .../Generated/Models/StorageAccountDetails.cs | 46 + .../SystemCreatedAcrAccount.Serialization.cs | 102 + .../Models/SystemCreatedAcrAccount.cs | 50 + ...stemCreatedStorageAccount.Serialization.cs | 132 + .../Models/SystemCreatedStorageAccount.cs | 79 + .../TableFixedParameters.Serialization.cs | 477 + .../Generated/Models/TableFixedParameters.cs | 104 + .../TableParameterSubspace.Serialization.cs | 493 + .../Models/TableParameterSubspace.cs | 104 + .../TableSweepSettings.Serialization.cs | 64 + .../Generated/Models/TableSweepSettings.cs | 42 + ...ableVerticalLimitSettings.Serialization.cs | 47 +- .../Models/TableVerticalLimitSettings.cs | 14 +- .../Generated/Models/TextAnnotationType.cs | 51 + .../TextClassification.Serialization.cs | 82 +- .../Generated/Models/TextClassification.cs | 16 +- ...tClassificationMultilabel.Serialization.cs | 82 +- .../Models/TextClassificationMultilabel.cs | 16 +- .../Generated/Models/TextNer.Serialization.cs | 82 +- .../src/Generated/Models/TextNer.cs | 16 +- .../Models/TmpfsOptions.Serialization.cs | 48 + .../src/Generated/Models/TmpfsOptions.cs | 28 + ...TopNFeaturesByAttribution.Serialization.cs | 56 + .../Models/TopNFeaturesByAttribution.cs | 31 + .../Models/TrailingInputData.Serialization.cs | 155 + .../src/Generated/Models/TrailingInputData.cs | 56 + .../src/Generated/Models/TrainingMode.cs | 54 + .../TritonInferencingServer.Serialization.cs | 64 + .../Models/TritonInferencingServer.cs | 31 + ...nownBaseEnvironmentSource.Serialization.cs | 41 + .../Models/UnknownBaseEnvironmentSource.cs | 20 + ...chDeploymentConfiguration.Serialization.cs | 41 + .../UnknownBatchDeploymentConfiguration.cs | 20 + ...aDriftMetricThresholdBase.Serialization.cs | 64 + .../UnknownDataDriftMetricThresholdBase.cs | 21 + .../UnknownDataImportSource.Serialization.cs | 64 + .../Models/UnknownDataImportSource.cs | 21 + ...ualityMetricThresholdBase.Serialization.cs | 64 + .../UnknownDataQualityMetricThresholdBase.cs | 21 + .../UnknownExportSummary.Serialization.cs | 86 + .../Generated/Models/UnknownExportSummary.cs | 26 + .../UnknownInferencingServer.Serialization.cs | 41 + .../Models/UnknownInferencingServer.cs | 20 + ...abelingJobMediaProperties.Serialization.cs | 41 + .../UnknownLabelingJobMediaProperties.cs | 20 + ...nownMLAssistConfiguration.Serialization.cs | 41 + .../Models/UnknownMLAssistConfiguration.cs | 20 + ...rmanceMetricThresholdBase.Serialization.cs | 64 + ...nownModelPerformanceMetricThresholdBase.cs | 21 + ...rComputeConfigurationBase.Serialization.cs | 41 + .../UnknownMonitorComputeConfigurationBase.cs | 20 + ...onitorComputeIdentityBase.Serialization.cs | 41 + .../UnknownMonitorComputeIdentityBase.cs | 20 + ...tNotificationSettingsBase.Serialization.cs | 41 + ...MonitoringAlertNotificationSettingsBase.cs | 20 + ...nitoringFeatureFilterBase.Serialization.cs | 41 + .../UnknownMonitoringFeatureFilterBase.cs | 20 + ...wnMonitoringInputDataBase.Serialization.cs | 116 + .../Models/UnknownMonitoringInputDataBase.cs | 27 + ...knownMonitoringSignalBase.Serialization.cs | 91 + .../Models/UnknownMonitoringSignalBase.cs | 24 + .../Models/UnknownNodes.Serialization.cs | 41 + .../src/Generated/Models/UnknownNodes.cs | 20 + .../UnknownOneLakeArtifact.Serialization.cs | 49 + .../Models/UnknownOneLakeArtifact.cs | 21 + .../UnknownOutboundRule.Serialization.cs | 71 + .../Generated/Models/UnknownOutboundRule.cs | 22 + ...knownPackageInputPathBase.Serialization.cs | 41 + .../Models/UnknownPackageInputPathBase.cs | 20 + ...endingUploadCredentialDto.Serialization.cs | 33 + .../UnknownPendingUploadCredentialDto.cs | 20 + ...nDriftMetricThresholdBase.Serialization.cs | 64 + ...knownPredictionDriftMetricThresholdBase.cs | 21 + .../UnknownSparkJobEntry.Serialization.cs | 41 + .../Generated/Models/UnknownSparkJobEntry.cs | 20 + .../Models/UnknownWebhook.Serialization.cs | 64 + .../src/Generated/Models/UnknownWebhook.cs | 21 + ...aceConnectionPropertiesV2.Serialization.cs | 51 +- .../UnknownWorkspaceConnectionPropertiesV2.cs | 8 +- .../UserCreatedAcrAccount.Serialization.cs | 56 + .../Generated/Models/UserCreatedAcrAccount.cs | 42 + ...UserCreatedStorageAccount.Serialization.cs | 56 + .../Models/UserCreatedStorageAccount.cs | 42 + .../Models/VolumeDefinition.Serialization.cs | 185 + .../src/Generated/Models/VolumeDefinition.cs | 79 + .../Generated/Models/VolumeDefinitionType.cs | 57 + .../Models/VolumeOptions.Serialization.cs | 56 + .../src/Generated/Models/VolumeOptions.cs | 28 + .../Generated/Models/Webhook.Serialization.cs | 51 + .../src/Generated/Models/Webhook.cs | 36 + .../src/Generated/Models/WebhookType.cs | 48 + ...kspaceConnectionAccessKey.Serialization.cs | 55 + .../Models/WorkspaceConnectionAccessKey.cs | 32 + ...WorkspaceConnectionApiKey.Serialization.cs | 44 + .../Models/WorkspaceConnectionApiKey.cs | 28 + ...esourceArmPaginatedResult.Serialization.cs | 14 +- ...ertiesV2BasicResourceArmPaginatedResult.cs | 10 +- ...onnectionServicePrincipal.Serialization.cs | 71 + .../WorkspaceConnectionServicePrincipal.cs | 38 + ...spaceDataVersionCollectionGetAllOptions.cs | 34 + .../WorkspaceHubConfig.Serialization.cs | 70 + .../Generated/Models/WorkspaceHubConfig.cs | 36 + .../WorkspaceListResult.Serialization.cs | 14 +- .../Generated/Models/WorkspaceListResult.cs | 10 +- ...aceModelVersionCollectionGetAllOptions.cs} | 10 +- ...cePrivateEndpointResource.Serialization.cs | 45 + .../WorkspacePrivateEndpointResource.cs | 32 + .../Generated/OutboundRuleBasicResource.cs | 297 + .../OutboundRuleBasicResourceCollection.cs | 341 + .../OutboundRuleBasicResourceData.cs | 57 + .../src/Generated/RegistryCodeCollection.cs | 343 + .../src/Generated/RegistryCodeResource.cs | 350 + .../RegistryCodeVersionCollection.cs | 347 + .../Generated/RegistryCodeVersionResource.cs | 366 + .../src/Generated/RegistryCollection.cs | 342 + .../Generated/RegistryComponentCollection.cs | 343 + .../Generated/RegistryComponentResource.cs | 350 + .../RegistryComponentVersionCollection.cs | 349 + .../RegistryComponentVersionResource.cs | 297 + .../src/Generated/RegistryData.cs | 100 + .../src/Generated/RegistryDataCollection.cs | 346 + .../src/Generated/RegistryDataResource.cs | 350 + ...on.cs => RegistryDataVersionCollection.cs} | 126 +- .../Generated/RegistryDataVersionResource.cs | 366 + .../RegistryEnvironmentCollection.cs | 346 + .../Generated/RegistryEnvironmentResource.cs | 350 + .../RegistryEnvironmentVersionCollection.cs | 352 + ... => RegistryEnvironmentVersionResource.cs} | 112 +- .../src/Generated/RegistryModelCollection.cs | 346 + .../src/Generated/RegistryModelResource.cs | 350 + .../RegistryModelVersionCollection.cs | 348 + .../Generated/RegistryModelVersionResource.cs | 442 + .../src/Generated/RegistryResource.cs | 943 ++ .../BatchDeploymentsRestOperations.cs | 2 +- .../BatchEndpointsRestOperations.cs | 2 +- .../CodeContainersRestOperations.cs | 2 +- .../CodeVersionsRestOperations.cs | 137 +- .../ComponentContainersRestOperations.cs | 2 +- .../ComponentVersionsRestOperations.cs | 30 +- .../RestOperations/ComputeRestOperations.cs | 174 +- .../DataContainersRestOperations.cs | 2 +- .../DataVersionsRestOperations.cs | 30 +- .../DatastoresRestOperations.cs | 2 +- .../EnvironmentContainersRestOperations.cs | 2 +- .../EnvironmentVersionsRestOperations.cs | 30 +- .../RestOperations/FeaturesRestOperations.cs | 347 + .../FeaturesetContainersRestOperations.cs | 501 + .../FeaturesetVersionsRestOperations.cs | 843 ++ ...turestoreEntityContainersRestOperations.cs | 501 + ...eaturestoreEntityVersionsRestOperations.cs | 545 ++ .../RestOperations/JobsRestOperations.cs | 138 +- .../LabelingJobsRestOperations.cs | 708 ++ .../ManagedNetworkProvisionsRestOperations.cs | 119 + ...anagedNetworkSettingsRuleRestOperations.cs | 445 + .../ModelContainersRestOperations.cs | 2 +- .../ModelVersionsRestOperations.cs | 121 +- .../OnlineDeploymentsRestOperations.cs | 2 +- .../OnlineEndpointsRestOperations.cs | 6 +- ...rivateEndpointConnectionsRestOperations.cs | 136 +- .../PrivateLinkResourcesRestOperations.cs | 18 +- .../RestOperations/QuotasRestOperations.cs | 2 +- .../RegistriesRestOperations.cs | 717 ++ .../RegistryCodeContainersRestOperations.cs | 453 + .../RegistryCodeVersionsRestOperations.cs | 596 ++ ...gistryComponentContainersRestOperations.cs | 453 + ...RegistryComponentVersionsRestOperations.cs | 505 + .../RegistryDataContainersRestOperations.cs | 461 + .../RegistryDataVersionsRestOperations.cs | 624 ++ ...stryEnvironmentContainersRestOperations.cs | 461 + ...gistryEnvironmentVersionsRestOperations.cs | 513 + .../RegistryModelContainersRestOperations.cs | 461 + .../RegistryModelVersionsRestOperations.cs | 727 ++ .../RestOperations/SchedulesRestOperations.cs | 2 +- .../RestOperations/UsagesRestOperations.cs | 2 +- .../VirtualMachineSizesRestOperations.cs | 2 +- .../WorkspaceConnectionsRestOperations.cs | 315 +- .../WorkspaceFeaturesRestOperations.cs | 2 +- .../WorkspacesRestOperations.cs | 570 +- ...llection.cs => WorkspaceCodeCollection.cs} | 90 +- ...erResource.cs => WorkspaceCodeResource.cs} | 90 +- ...n.cs => WorkspaceCodeVersionCollection.cs} | 98 +- .../Generated/WorkspaceCodeVersionResource.cs | 366 + ...ion.cs => WorkspaceComponentCollection.cs} | 90 +- ...ource.cs => WorkspaceComponentResource.cs} | 90 +- ...=> WorkspaceComponentVersionCollection.cs} | 96 +- ...s => WorkspaceComponentVersionResource.cs} | 74 +- ...llection.cs => WorkspaceDataCollection.cs} | 90 +- ...erResource.cs => WorkspaceDataResource.cs} | 90 +- .../WorkspaceDataVersionCollection.cs | 348 + ...rce.cs => WorkspaceDataVersionResource.cs} | 74 +- ...n.cs => WorkspaceEnvironmentCollection.cs} | 90 +- ...rce.cs => WorkspaceEnvironmentResource.cs} | 90 +- ... WorkspaceEnvironmentVersionCollection.cs} | 96 +- ...=> WorkspaceEnvironmentVersionResource.cs} | 74 +- ...lection.cs => WorkspaceModelCollection.cs} | 90 +- ...rResource.cs => WorkspaceModelResource.cs} | 90 +- ....cs => WorkspaceModelVersionCollection.cs} | 98 +- .../WorkspaceModelVersionResource.cs | 374 + .../src/autorest.md | 8 +- 986 files changed, 82561 insertions(+), 8321 deletions(-) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerCollection.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningCodeVersionResource.cs => Sample_FeaturesetContainerResource.cs} (51%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionCollection.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningModelVersionResource.cs => Sample_FeaturestoreEntityVersionResource.cs} (50%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResourceCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningCodeContainerCollection.cs => Sample_WorkspaceCodeCollection.cs} (81%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningCodeContainerResource.cs => Sample_WorkspaceCodeResource.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningCodeVersionCollection.cs => Sample_WorkspaceCodeVersionCollection.cs} (59%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionResource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningComponentContainerCollection.cs => Sample_WorkspaceComponentCollection.cs} (80%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningComponentContainerResource.cs => Sample_WorkspaceComponentResource.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningComponentVersionCollection.cs => Sample_WorkspaceComponentVersionCollection.cs} (58%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningComponentVersionResource.cs => Sample_WorkspaceComponentVersionResource.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningDataContainerCollection.cs => Sample_WorkspaceDataCollection.cs} (81%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningDataContainerResource.cs => Sample_WorkspaceDataResource.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningDataVersionCollection.cs => Sample_WorkspaceDataVersionCollection.cs} (58%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningDataVersionResource.cs => Sample_WorkspaceDataVersionResource.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningEnvironmentContainerCollection.cs => Sample_WorkspaceEnvironmentCollection.cs} (80%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningEnvironmentContainerResource.cs => Sample_WorkspaceEnvironmentResource.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningEnvironmentVersionCollection.cs => Sample_WorkspaceEnvironmentVersionCollection.cs} (59%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningEnvironmentVersionResource.cs => Sample_WorkspaceEnvironmentVersionResource.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningModelContainerCollection.cs => Sample_WorkspaceModelCollection.cs} (81%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningModelContainerResource.cs => Sample_WorkspaceModelResource.cs} (61%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_MachineLearningModelVersionCollection.cs => Sample_WorkspaceModelVersionCollection.cs} (58%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/EncryptionUpdateProperties.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningModelVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionData.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningModelVersionResource.cs => FeaturestoreEntityVersionResource.cs} (60%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ExportSummaryOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetContainerOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetJobOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityContainerOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/LabelingJobOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ManagedNetworkProvisionStatusOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/OutboundRuleBasicResourceOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/PackageResponseOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AccessKeyAuthTypeWorkspaceConnectionProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AccessKeyAuthTypeWorkspaceConnectionProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlTokenComputeIdentity.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlTokenComputeIdentity.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ApiKeyAuthWorkspaceConnectionProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ApiKeyAuthWorkspaceConnectionProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AssetProvisioningState.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteCondition.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteSetting.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteSetting.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzMonMonitoringAlertNotificationSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzMonMonitoringAlertNotificationSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLBatchInferencingServer.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLBatchInferencingServer.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLOnlineInferencingServer.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLOnlineInferencingServer.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSourceType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfigurationType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchPipelineComponentDeploymentConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchPipelineComponentDeploymentConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CocoExportSummary.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CocoExportSummary.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeRuntimeDto.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeRuntimeDto.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CreateMonitorAction.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CreateMonitorAction.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CsvExportSummary.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CsvExportSummary.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomInferencingServer.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomInferencingServer.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeys.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeys.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeysWorkspaceConnectionProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeysWorkspaceConnectionProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMonitoringSignal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMonitoringSignal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionMode.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMetricThresholdBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMetricThresholdBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImport.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImport.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSourceType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMetricThresholdBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMetricThresholdBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatasetExportSummary.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatasetExportSummary.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailMonitoringAlertNotificationSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailMonitoringAlertNotificationSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailNotificationEnableType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionKeyVaultUpdateProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionKeyVaultUpdateProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionUpdateProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionUpdateProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EndpointServiceConnectionStatus.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariable.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariable.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariableType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportFormatType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportSummary.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportSummary.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionDriftMonitoringSignal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionDriftMonitoringSignal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureDataType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{MachineLearningFqdnEndpointsProperties.Serialization.cs => FeatureResourceArmPaginatedResult.Serialization.cs} (51%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSubset.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSubset.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureWindow.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureWindow.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerCollectionGetAllOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetSpecification.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetSpecification.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionCollectionGetAllOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerCollectionGetAllOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionCollectionGetAllOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreJobType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FileSystemSource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FileSystemSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FixedInputData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FixedInputData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsSignal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsSignal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/HdfsDatastore.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/HdfsDatastore.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IdleShutdownSetting.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IdleShutdownSetting.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageAnnotationType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageMetadata.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageMetadata.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImportDataAction.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImportDataAction.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IncrementalDataRefresh.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IndexColumn.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IndexColumn.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServer.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServer.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServerType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InputPathType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IsolationMode.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobProvisioningState.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobTier.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabCredentials.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabCredentials.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabSecrets.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabSecrets.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordCredentials.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordCredentials.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordSecrets.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordSecrets.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{MachineLearningEncryptionKeyVaultProperties.Serialization.cs => KeyVaultProperties.Serialization.cs} (76%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelClass.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelClass.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingDataConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingDataConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobImageProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobImageProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobInstructions.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobInstructions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobMediaProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobMediaProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobTextProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobTextProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LakeHouseArtifact.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LakeHouseArtifact.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LogTrainingMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LogValidationLoss.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLFlowAutologgerState.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobCollectionGetAllOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointServiceConnectionStatus.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPublicNetworkAccess.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningValueFormat.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionPatch.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionPatch.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedComputeIdentity.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedComputeIdentity.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionContent.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionContent.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionStatus.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionStatus.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkStatus.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationComputeResource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationComputeResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationStoreType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MediaType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MlflowAutologger.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageInput.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageInput.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceMetricThresholdBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceMetricThresholdBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceSignal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceSignal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelTaskType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeConfigurationBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeConfigurationBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorDefinition.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorDefinition.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorServerlessSparkCompute.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorServerlessSparkCompute.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationSettingsBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationSettingsBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureDataType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringModelType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringNotificationMode.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringTarget.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringTarget.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringWorkspaceConnection.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringWorkspaceConnection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MultiSelect.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpFixedParameters.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpFixedParameters.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpLearningRateScheduler.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpParameterSubspace.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpParameterSubspace.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpSweepSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpSweepSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NodesValueType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifact.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifact.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifactType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeDatastore.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeDatastore.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineInferenceConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineInferenceConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleBasicResourceData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageBuildState.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputDeliveryMode.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathUri.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathUri.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathVersion.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathVersion.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialDto.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialDto.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadRequestDto.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadRequestDto.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadResponseDto.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadResponseDto.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMetricThresholdBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMetricThresholdBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMonitoringSignal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMonitoringSignal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProgressMetrics.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProgressMetrics.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProtectionLevel.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Protocol.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryModelVersionCollectionGetAllOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetric.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetricThreshold.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetricThreshold.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RollingRateType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleAction.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleCategory.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleStatus.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SasCredentialDto.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SasCredentialDto.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServicePrincipalAuthTypeWorkspaceConnectionProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServicePrincipalAuthTypeWorkspaceConnectionProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntry.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntry.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntryType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobPythonEntry.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobPythonEntry.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobScalaEntry.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobScalaEntry.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkResourceConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkResourceConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StaticInputData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StaticInputData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessageLevel.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableFixedParameters.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableFixedParameters.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableParameterSubspace.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableParameterSubspace.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableSweepSettings.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableSweepSettings.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextAnnotationType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TmpfsOptions.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TmpfsOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TopNFeaturesByAttribution.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TopNFeaturesByAttribution.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrailingInputData.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrailingInputData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrainingMode.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TritonInferencingServer.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TritonInferencingServer.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBaseEnvironmentSource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBaseEnvironmentSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBatchDeploymentConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBatchDeploymentConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataDriftMetricThresholdBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataDriftMetricThresholdBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataImportSource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataImportSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataQualityMetricThresholdBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataQualityMetricThresholdBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownExportSummary.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownExportSummary.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownInferencingServer.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownInferencingServer.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownLabelingJobMediaProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownLabelingJobMediaProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownModelPerformanceMetricThresholdBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownModelPerformanceMetricThresholdBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeConfigurationBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeConfigurationBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeIdentityBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeIdentityBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringAlertNotificationSettingsBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringAlertNotificationSettingsBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringFeatureFilterBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringFeatureFilterBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringInputDataBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringInputDataBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringSignalBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringSignalBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOneLakeArtifact.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOneLakeArtifact.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPackageInputPathBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPackageInputPathBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPendingUploadCredentialDto.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPendingUploadCredentialDto.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPredictionDriftMetricThresholdBase.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPredictionDriftMetricThresholdBase.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownSparkJobEntry.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownSparkJobEntry.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinitionType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeOptions.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WebhookType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionAccessKey.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionAccessKey.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionApiKey.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionApiKey.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionServicePrincipal.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionServicePrincipal.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceDataVersionCollectionGetAllOptions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{MachineLearningModelVersionCollectionGetAllOptions.cs => WorkspaceModelVersionCollectionGetAllOptions.cs} (77%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataResource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningDataVersionCollection.cs => RegistryDataVersionCollection.cs} (60%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionCollection.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningCodeVersionResource.cs => RegistryEnvironmentVersionResource.cs} (61%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkProvisionsRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeContainersRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeVersionsRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentContainersRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentVersionsRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataContainersRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataVersionsRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentContainersRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentVersionsRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelContainersRestOperations.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningCodeContainerCollection.cs => WorkspaceCodeCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningCodeContainerResource.cs => WorkspaceCodeResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningCodeVersionCollection.cs => WorkspaceCodeVersionCollection.cs} (63%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionResource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningComponentContainerCollection.cs => WorkspaceComponentCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningComponentContainerResource.cs => WorkspaceComponentResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningComponentVersionCollection.cs => WorkspaceComponentVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningComponentVersionResource.cs => WorkspaceComponentVersionResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningDataContainerCollection.cs => WorkspaceDataCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningDataContainerResource.cs => WorkspaceDataResource.cs} (69%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionCollection.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningDataVersionResource.cs => WorkspaceDataVersionResource.cs} (70%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningEnvironmentContainerCollection.cs => WorkspaceEnvironmentCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningEnvironmentContainerResource.cs => WorkspaceEnvironmentResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningEnvironmentVersionCollection.cs => WorkspaceEnvironmentVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningEnvironmentVersionResource.cs => WorkspaceEnvironmentVersionResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningModelContainerCollection.cs => WorkspaceModelCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningModelContainerResource.cs => WorkspaceModelResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{MachineLearningModelVersionCollection.cs => WorkspaceModelVersionCollection.cs} (61%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionResource.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs index 5b16e99c0264..e51640de8c2b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs @@ -1,5 +1,222 @@ namespace Azure.ResourceManager.MachineLearning { + public partial class FeatureCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected FeatureCollection() { } + public virtual Azure.Response Exists(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, string tags = null, string featureName = null, string description = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, string tags = null, string featureName = null, string description = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class FeatureData : Azure.ResourceManager.Models.ResourceData + { + public FeatureData(Azure.ResourceManager.MachineLearning.Models.FeatureProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeatureProperties Properties { get { throw null; } set { } } + } + public partial class FeatureResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected FeatureResource() { } + public virtual Azure.ResourceManager.MachineLearning.FeatureData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class FeaturesetContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected FeaturesetContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.FeaturesetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.FeaturesetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class FeaturesetContainerData : Azure.ResourceManager.Models.ResourceData + { + public FeaturesetContainerData(Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties Properties { get { throw null; } set { } } + } + public partial class FeaturesetContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected FeaturesetContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.FeaturesetContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetFeaturesetVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetFeaturesetVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.FeaturesetVersionCollection GetFeaturesetVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturesetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturesetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class FeaturesetVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected FeaturesetVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.FeaturesetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.FeaturesetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class FeaturesetVersionData : Azure.ResourceManager.Models.ResourceData + { + public FeaturesetVersionData(Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties Properties { get { throw null; } set { } } + } + public partial class FeaturesetVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected FeaturesetVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.FeaturesetVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.ResourceManager.ArmOperation Backfill(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> BackfillAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetFeature(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetFeatureAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.FeatureCollection GetFeatures() { throw null; } + public virtual Azure.Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturesetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturesetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class FeaturestoreEntityContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected FeaturestoreEntityContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class FeaturestoreEntityContainerData : Azure.ResourceManager.Models.ResourceData + { + public FeaturestoreEntityContainerData(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties Properties { get { throw null; } set { } } + } + public partial class FeaturestoreEntityContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected FeaturestoreEntityContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetFeaturestoreEntityVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetFeaturestoreEntityVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionCollection GetFeaturestoreEntityVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class FeaturestoreEntityVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected FeaturestoreEntityVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class FeaturestoreEntityVersionData : Azure.ResourceManager.Models.ResourceData + { + public FeaturestoreEntityVersionData(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties Properties { get { throw null; } set { } } + } + public partial class FeaturestoreEntityVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected FeaturestoreEntityVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class LabelingJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected LabelingJobCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string id, Azure.ResourceManager.MachineLearning.LabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string id, Azure.ResourceManager.MachineLearning.LabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class LabelingJobData : Azure.ResourceManager.Models.ResourceData + { + public LabelingJobData(Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties Properties { get { throw null; } set { } } + } + public partial class LabelingJobResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected LabelingJobResource() { } + public virtual Azure.ResourceManager.MachineLearning.LabelingJobData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string id) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation ExportLabels(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ExportSummary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExportLabelsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ExportSummary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Pause(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task PauseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Resume(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ResumeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.LabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.LabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class MachineLearningBatchDeploymentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningBatchDeploymentCollection() { } @@ -91,148 +308,26 @@ protected MachineLearningBatchEndpointResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatchWithIdentity body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatchWithIdentity body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class MachineLearningCodeContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningCodeContainerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } public partial class MachineLearningCodeContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningCodeContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningCodeContainerResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningCodeContainerResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetMachineLearningCodeVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningCodeVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionCollection GetMachineLearningCodeVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MachineLearningCodeVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningCodeVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } public partial class MachineLearningCodeVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningCodeVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningCodeVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningCodeVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MachineLearningComponentContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningComponentContainerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } public partial class MachineLearningComponentContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningComponentContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningComponentContainerResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningComponentContainerResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetMachineLearningComponentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningComponentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionCollection GetMachineLearningComponentVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MachineLearningComponentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningComponentVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } public partial class MachineLearningComponentVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningComponentVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningComponentVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningComponentVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class MachineLearningComputeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningComputeCollection() { } @@ -278,44 +373,16 @@ protected MachineLearningComputeResource() { } public virtual System.Threading.Tasks.Task StopAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MachineLearningDataContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningDataContainerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response UpdateCustomServices(System.Collections.Generic.IEnumerable customServices, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task UpdateCustomServicesAsync(System.Collections.Generic.IEnumerable customServices, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateIdleShutdownSetting(Azure.ResourceManager.MachineLearning.Models.IdleShutdownSetting idleShutdownSetting, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task UpdateIdleShutdownSettingAsync(Azure.ResourceManager.MachineLearning.Models.IdleShutdownSetting idleShutdownSetting, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class MachineLearningDataContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningDataContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningDataContainerProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningDataContainerResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningDataContainerResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetMachineLearningDataVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningDataVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionCollection GetMachineLearningDataVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class MachineLearningDatastoreCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningDatastoreCollection() { } @@ -354,128 +421,34 @@ protected MachineLearningDatastoreResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDatastoreData data, bool? skipValidation = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDatastoreData data, bool? skipValidation = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class MachineLearningDataVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningDataVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } public partial class MachineLearningDataVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningDataVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningDataVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningDataVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MachineLearningEnvironmentContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningEnvironmentContainerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } public partial class MachineLearningEnvironmentContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningEnvironmentContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningEnvironmentContainerResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningEnvironmentContainerResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetMachineLearningEnvironmentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningEnvironmentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionCollection GetMachineLearningEnvironmentVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MachineLearningEnvironmentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningEnvironmentVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } public partial class MachineLearningEnvironmentVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningEnvironmentVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningEnvironmentVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningEnvironmentVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public static partial class MachineLearningExtensions { + public static Azure.ResourceManager.MachineLearning.FeatureResource GetFeatureResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeaturesetContainerResource GetFeaturesetContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeaturesetVersionResource GetFeaturesetVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerResource GetFeaturestoreEntityContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionResource GetFeaturestoreEntityVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.LabelingJobResource GetLabelingJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningBatchDeploymentResource GetMachineLearningBatchDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningBatchEndpointResource GetMachineLearningBatchEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerResource GetMachineLearningCodeContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionResource GetMachineLearningCodeVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerResource GetMachineLearningComponentContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionResource GetMachineLearningComponentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComputeResource GetMachineLearningComputeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningDataContainerResource GetMachineLearningDataContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningDatastoreResource GetMachineLearningDatastoreResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningDataVersionResource GetMachineLearningDataVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerResource GetMachineLearningEnvironmentContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionResource GetMachineLearningEnvironmentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningJobResource GetMachineLearningJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningModelContainerResource GetMachineLearningModelContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningModelVersionResource GetMachineLearningModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineDeploymentResource GetMachineLearningOnlineDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointResource GetMachineLearningOnlineEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -491,8 +464,35 @@ public static partial class MachineLearningExtensions public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionResource GetMachineLearningWorkspaceConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceResource GetMachineLearningWorkspaceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceCollection GetMachineLearningWorkspaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetMachineLearningWorkspaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetMachineLearningWorkspacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetMachineLearningWorkspaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetMachineLearningWorkspacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.MachineLearning.OutboundRuleBasicResource GetOutboundRuleBasicResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryCollection GetRegistries(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetRegistries(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetRegistriesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetRegistry(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetRegistryAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryCodeResource GetRegistryCodeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryCodeVersionResource GetRegistryCodeVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryComponentResource GetRegistryComponentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryComponentVersionResource GetRegistryComponentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryDataResource GetRegistryDataResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryDataVersionResource GetRegistryDataVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryEnvironmentResource GetRegistryEnvironmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryEnvironmentVersionResource GetRegistryEnvironmentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryModelResource GetRegistryModelResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryModelVersionResource GetRegistryModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryResource GetRegistryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceCodeResource GetWorkspaceCodeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceCodeVersionResource GetWorkspaceCodeVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceComponentResource GetWorkspaceComponentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceComponentVersionResource GetWorkspaceComponentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceDataResource GetWorkspaceDataResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceDataVersionResource GetWorkspaceDataVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceEnvironmentResource GetWorkspaceEnvironmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceEnvironmentVersionResource GetWorkspaceEnvironmentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceModelResource GetWorkspaceModelResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.WorkspaceModelVersionResource GetWorkspaceModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable UpdateMachineLearningQuotas(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable UpdateMachineLearningQuotasAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -504,8 +504,8 @@ protected MachineLearningJobCollection() { } public virtual Azure.Response Exists(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, string jobType = null, string tag = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, string jobType = null, string tag = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } @@ -529,82 +529,19 @@ protected MachineLearningJobResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MachineLearningModelContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningModelContainerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, int? count = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, int? count = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class MachineLearningModelContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningModelContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningModelContainerResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningModelContainerResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetMachineLearningModelVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningModelVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionCollection GetMachineLearningModelVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MachineLearningModelVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MachineLearningModelVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, string orderBy = null, int? top = default(int?), string version = null, string description = null, int? offset = default(int?), string tags = null, string properties = null, string feed = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, string orderBy = null, int? top = default(int?), string version = null, string description = null, int? offset = default(int?), string tags = null, string properties = null, string feed = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } public partial class MachineLearningModelVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningModelVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningModelVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MachineLearningModelVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class MachineLearningOnlineDeploymentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningOnlineDeploymentCollection() { } @@ -726,7 +663,7 @@ public partial class MachineLearningPrivateEndpointConnectionData : Azure.Resour public MachineLearningPrivateEndpointConnectionData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint PrivateEndpoint { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.WorkspacePrivateEndpointResource PrivateEndpoint { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } } @@ -792,8 +729,8 @@ protected MachineLearningWorkspaceCollection() { } public virtual Azure.Response Exists(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } @@ -830,38 +767,53 @@ protected MachineLearningWorkspaceConnectionResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSecrets(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSecretsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class MachineLearningWorkspaceData : Azure.ResourceManager.Models.TrackedResourceData { public MachineLearningWorkspaceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public bool? AllowPublicAccessWhenBehindVnet { get { throw null; } set { } } public string ApplicationInsights { get { throw null; } set { } } + public System.Collections.Generic.IList AssociatedWorkspaces { get { throw null; } } + public System.Collections.Generic.IList ContainerRegistries { get { throw null; } } public string ContainerRegistry { get { throw null; } set { } } public int? CosmosDbCollectionsThroughput { get { throw null; } set { } } public string Description { get { throw null; } set { } } public System.Uri DiscoveryUri { get { throw null; } set { } } + public bool? EnableDataIsolation { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionSetting Encryption { get { throw null; } set { } } + public System.Collections.Generic.IList ExistingWorkspaces { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.FeatureStoreSettings FeatureStoreSettings { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } + public string HubResourceId { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public string ImageBuildCompute { get { throw null; } set { } } public bool? IsHbiWorkspace { get { throw null; } set { } } public bool? IsStorageHnsEnabled { get { throw null; } } public bool? IsV1LegacyMode { get { throw null; } set { } } public string KeyVault { get { throw null; } set { } } + public System.Collections.Generic.IList KeyVaults { get { throw null; } } + public string Kind { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings ManagedNetwork { get { throw null; } set { } } public System.Uri MlFlowTrackingUri { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo NotebookInfo { get { throw null; } } public string PrimaryUserAssignedIdentity { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } } public int? PrivateLinkCount { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } public string ServiceProvisionedResourceGroup { get { throw null; } } public System.Collections.Generic.IList SharedPrivateLinkResources { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } + public int? SoftDeleteRetentionInDays { get { throw null; } set { } } public string StorageAccount { get { throw null; } set { } } + public System.Collections.Generic.IList StorageAccounts { get { throw null; } } + public string SystemDatastoresAuthMode { get { throw null; } set { } } public System.Guid? TenantId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.WorkspaceHubConfig WorkspaceHubConfig { get { throw null; } set { } } public string WorkspaceId { get { throw null; } } } public partial class MachineLearningWorkspaceResource : Azure.ResourceManager.ArmResource @@ -873,41 +825,36 @@ protected MachineLearningWorkspaceResource() { } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? forceToPurge = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? forceToPurge = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Diagnose(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> DiagnoseAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceDataCollection GetAllWorkspaceData() { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetFeaturesetContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetFeaturesetContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.FeaturesetContainerCollection GetFeaturesetContainers() { throw null; } + public virtual Azure.Response GetFeaturestoreEntityContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetFeaturestoreEntityContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerCollection GetFeaturestoreEntityContainers() { throw null; } public virtual Azure.Response GetKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetLabelingJob(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetLabelingJobAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.LabelingJobCollection GetLabelingJobs() { throw null; } public virtual Azure.Response GetMachineLearningBatchEndpoint(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningBatchEndpointAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningBatchEndpointCollection GetMachineLearningBatchEndpoints() { throw null; } - public virtual Azure.Response GetMachineLearningCodeContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningCodeContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerCollection GetMachineLearningCodeContainers() { throw null; } - public virtual Azure.Response GetMachineLearningComponentContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningComponentContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerCollection GetMachineLearningComponentContainers() { throw null; } public virtual Azure.Response GetMachineLearningCompute(string computeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningComputeAsync(string computeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningComputeCollection GetMachineLearningComputes() { throw null; } - public virtual Azure.Response GetMachineLearningDataContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningDataContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerCollection GetMachineLearningDataContainers() { throw null; } public virtual Azure.Response GetMachineLearningDatastore(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningDatastoreAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningDatastoreCollection GetMachineLearningDatastores() { throw null; } - public virtual Azure.Response GetMachineLearningEnvironmentContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningEnvironmentContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerCollection GetMachineLearningEnvironmentContainers() { throw null; } public virtual Azure.Response GetMachineLearningJob(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningJobAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningJobCollection GetMachineLearningJobs() { throw null; } - public virtual Azure.Response GetMachineLearningModelContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningModelContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerCollection GetMachineLearningModelContainers() { throw null; } public virtual Azure.Response GetMachineLearningOnlineEndpoint(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningOnlineEndpointAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointCollection GetMachineLearningOnlineEndpoints() { throw null; } @@ -924,16 +871,35 @@ protected MachineLearningWorkspaceResource() { } public virtual System.Threading.Tasks.Task> GetNotebookAccessTokenAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetNotebookKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNotebookKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetOutboundRuleBasicResource(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetOutboundRuleBasicResourceAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceCollection GetOutboundRuleBasicResources() { throw null; } public virtual Azure.Pageable GetPrivateLinkResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetPrivateLinkResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetStorageAccountKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetStorageAccountKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkspaceCode(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceCodeAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceCodeCollection GetWorkspaceCodes() { throw null; } + public virtual Azure.Response GetWorkspaceComponent(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceComponentAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceComponentCollection GetWorkspaceComponents() { throw null; } + public virtual Azure.Response GetWorkspaceData(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceDataAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkspaceEnvironment(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceEnvironmentAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceEnvironmentCollection GetWorkspaceEnvironments() { throw null; } public virtual Azure.Pageable GetWorkspaceFeatures(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetWorkspaceFeaturesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkspaceModel(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceModelAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceModelCollection GetWorkspaceModels() { throw null; } public virtual Azure.ResourceManager.ArmOperation PrepareNotebook(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> PrepareNotebookAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation ProvisionManagedNetworkManagedNetworkProvision(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ProvisionManagedNetworkManagedNetworkProvisionAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation ResyncKeys(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -943,81 +909,853 @@ protected MachineLearningWorkspaceResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspacePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspacePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } -} -namespace Azure.ResourceManager.MachineLearning.Models -{ - public partial class AmlCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + public partial class OutboundRuleBasicResource : Azure.ResourceManager.ArmResource { - public AmlCompute() { } - public Azure.ResourceManager.MachineLearning.Models.AmlComputeProperties Properties { get { throw null; } set { } } + public static readonly Azure.Core.ResourceType ResourceType; + protected OutboundRuleBasicResource() { } + public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class OutboundRuleBasicResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected OutboundRuleBasicResourceCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class AmlComputeNodeInformation + public partial class OutboundRuleBasicResourceData : Azure.ResourceManager.Models.ResourceData { - internal AmlComputeNodeInformation() { } - public string NodeId { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState? NodeState { get { throw null; } } - public int? Port { get { throw null; } } - public System.Net.IPAddress PrivateIPAddress { get { throw null; } } - public System.Net.IPAddress PublicIPAddress { get { throw null; } } - public string RunId { get { throw null; } } + public OutboundRuleBasicResourceData(Azure.ResourceManager.MachineLearning.Models.OutboundRule properties) { } + public Azure.ResourceManager.MachineLearning.Models.OutboundRule Properties { get { throw null; } set { } } } - public partial class AmlComputeProperties + public partial class RegistryCodeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public AmlComputeProperties() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState? AllocationState { get { throw null; } } - public System.DateTimeOffset? AllocationStateTransitionOn { get { throw null; } } - public int? CurrentNodeCount { get { throw null; } } - public bool? EnableNodePublicIP { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } - public bool? IsolatedNetwork { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeStateCounts NodeStateCounts { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType? OSType { get { throw null; } set { } } - public System.BinaryData PropertyBag { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess? RemoteLoginPortPublicAccess { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AmlComputeScaleSettings ScaleSettings { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } - public int? TargetNodeCount { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningUserAccountCredentials UserAccountCredentials { get { throw null; } set { } } - public string VirtualMachineImageId { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority? VmPriority { get { throw null; } set { } } - public string VmSize { get { throw null; } set { } } + protected RegistryCodeCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string codeName, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string codeName, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class AmlComputeScaleSettings + public partial class RegistryCodeResource : Azure.ResourceManager.ArmResource { - public AmlComputeScaleSettings(int maxNodeCount) { } - public int MaxNodeCount { get { throw null; } set { } } - public int? MinNodeCount { get { throw null; } set { } } - public System.TimeSpan? NodeIdleTimeBeforeScaleDown { get { throw null; } set { } } + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryCodeResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRegistryCodeVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryCodeVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryCodeVersionCollection GetRegistryCodeVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryCodeVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryCodeVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class AmlToken : Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration + public partial class RegistryCodeVersionResource : Azure.ResourceManager.ArmResource { - public AmlToken() { } + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryCodeVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string registryName, Azure.ResourceManager.MachineLearning.RegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string registryName, Azure.ResourceManager.MachineLearning.RegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public static partial class ArmMachineLearningModelFactory - { + public partial class RegistryComponentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryComponentCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string componentName, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string componentName, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RegistryComponentResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryComponentResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string componentName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRegistryComponentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryComponentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryComponentVersionCollection GetRegistryComponentVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryComponentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryComponentVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RegistryComponentVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryComponentVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryData : Azure.ResourceManager.Models.TrackedResourceData + { + public RegistryData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public System.Uri DiscoveryUri { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public string IntellectualPropertyPublisher { get { throw null; } set { } } + public string Kind { get { throw null; } set { } } + public string ManagedResourceId { get { throw null; } set { } } + public System.Uri MlFlowRegistryUri { get { throw null; } set { } } + public System.Collections.Generic.IList PrivateEndpointConnections { get { throw null; } set { } } + public string PublicNetworkAccess { get { throw null; } set { } } + public System.Collections.Generic.IList RegionDetails { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } + } + public partial class RegistryDataCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryDataCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RegistryDataResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryDataResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRegistryDataVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryDataVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryDataVersionCollection GetRegistryDataVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryDataVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryDataVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RegistryDataVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryDataVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryEnvironmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryEnvironmentCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string environmentName, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string environmentName, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RegistryEnvironmentResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryEnvironmentResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRegistryEnvironmentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryEnvironmentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryEnvironmentVersionCollection GetRegistryEnvironmentVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryEnvironmentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryEnvironmentVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RegistryEnvironmentVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryEnvironmentVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryModelCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryModelCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string modelName, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string modelName, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RegistryModelResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryModelResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRegistryModelVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryModelVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryModelVersionCollection GetRegistryModelVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryModelVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected RegistryModelVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.RegistryModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.RegistryModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class RegistryModelVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryModelVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class RegistryResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected RegistryResource() { } + public virtual Azure.ResourceManager.MachineLearning.RegistryData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryDataCollection GetAllRegistryData() { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRegistryCode(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryCodeAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryCodeCollection GetRegistryCodes() { throw null; } + public virtual Azure.Response GetRegistryComponent(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryComponentAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryComponentCollection GetRegistryComponents() { throw null; } + public virtual Azure.Response GetRegistryData(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryDataAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRegistryEnvironment(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryEnvironmentAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryEnvironmentCollection GetRegistryEnvironments() { throw null; } + public virtual Azure.Response GetRegistryModel(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRegistryModelAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.RegistryModelCollection GetRegistryModels() { throw null; } + public virtual Azure.ResourceManager.ArmOperation RemoveRegions(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.RegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveRegionsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.RegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.MachineLearning.Models.RegistryPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.MachineLearning.Models.RegistryPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceCodeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceCodeCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceCodeResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceCodeResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkspaceCodeVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceCodeVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceCodeVersionCollection GetWorkspaceCodeVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceCodeVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceCodeVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string hash = null, string hashVersion = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string hash = null, string hashVersion = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceCodeVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceCodeVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceComponentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceComponentCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceComponentResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceComponentResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkspaceComponentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceComponentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceComponentVersionCollection GetWorkspaceComponentVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceComponentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceComponentVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceComponentVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceComponentVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceDataCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceDataCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceDataResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceDataResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkspaceDataVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceDataVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceDataVersionCollection GetWorkspaceDataVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceDataVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceDataVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.WorkspaceDataVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.WorkspaceDataVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceDataVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceDataVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceEnvironmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceEnvironmentCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceEnvironmentResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceEnvironmentResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkspaceEnvironmentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceEnvironmentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceEnvironmentVersionCollection GetWorkspaceEnvironmentVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceEnvironmentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceEnvironmentVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceEnvironmentVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceEnvironmentVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceModelCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceModelCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, int? count = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, int? count = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceModelResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceModelResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkspaceModelVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkspaceModelVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.WorkspaceModelVersionCollection GetWorkspaceModelVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkspaceModelVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected WorkspaceModelVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.WorkspaceModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.WorkspaceModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class WorkspaceModelVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected WorkspaceModelVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AccessKeyAuthTypeWorkspaceConnectionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties + { + public AccessKeyAuthTypeWorkspaceConnectionProperties() { } + public Azure.ResourceManager.MachineLearning.Models.WorkspaceConnectionAccessKey Credentials { get { throw null; } set { } } + } + public partial class AcrDetails + { + public AcrDetails() { } + public string ArmResourceId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SystemCreatedAcrAccount SystemCreatedAcrAccount { get { throw null; } set { } } + } + public partial class AllFeatures : Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureFilterBase + { + public AllFeatures() { } + } + public partial class AllNodes : Azure.ResourceManager.MachineLearning.Models.Nodes + { + public AllNodes() { } + } + public partial class AmlCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + { + public AmlCompute() { } + public Azure.ResourceManager.MachineLearning.Models.AmlComputeProperties Properties { get { throw null; } set { } } + } + public partial class AmlComputeNodeInformation + { + internal AmlComputeNodeInformation() { } + public string NodeId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState? NodeState { get { throw null; } } + public int? Port { get { throw null; } } + public System.Net.IPAddress PrivateIPAddress { get { throw null; } } + public System.Net.IPAddress PublicIPAddress { get { throw null; } } + public string RunId { get { throw null; } } + } + public partial class AmlComputeProperties + { + public AmlComputeProperties() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState? AllocationState { get { throw null; } } + public System.DateTimeOffset? AllocationStateTransitionOn { get { throw null; } } + public int? CurrentNodeCount { get { throw null; } } + public bool? EnableNodePublicIP { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } + public bool? IsolatedNetwork { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeStateCounts NodeStateCounts { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType? OSType { get { throw null; } set { } } + public System.BinaryData PropertyBag { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess? RemoteLoginPortPublicAccess { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AmlComputeScaleSettings ScaleSettings { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } + public int? TargetNodeCount { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningUserAccountCredentials UserAccountCredentials { get { throw null; } set { } } + public string VirtualMachineImageId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority? VmPriority { get { throw null; } set { } } + public string VmSize { get { throw null; } set { } } + } + public partial class AmlComputeScaleSettings + { + public AmlComputeScaleSettings(int maxNodeCount) { } + public int MaxNodeCount { get { throw null; } set { } } + public int? MinNodeCount { get { throw null; } set { } } + public System.TimeSpan? NodeIdleTimeBeforeScaleDown { get { throw null; } set { } } + } + public partial class AmlToken : Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration + { + public AmlToken() { } + } + public partial class AmlTokenComputeIdentity : Azure.ResourceManager.MachineLearning.Models.MonitorComputeIdentityBase + { + public AmlTokenComputeIdentity() { } + } + public partial class ApiKeyAuthWorkspaceConnectionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties + { + public ApiKeyAuthWorkspaceConnectionProperties() { } + public string CredentialsKey { get { throw null; } set { } } + } + public static partial class ArmMachineLearningModelFactory + { public static Azure.ResourceManager.MachineLearning.Models.AmlCompute AmlCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.AmlComputeProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.AmlComputeNodeInformation AmlComputeNodeInformation(string nodeId = null, System.Net.IPAddress privateIPAddress = null, System.Net.IPAddress publicIPAddress = null, int? port = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState? nodeState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState?), string runId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.AmlComputeProperties AmlComputeProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType? osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType?), string vmSize = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority? vmPriority = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority?), string virtualMachineImageId = null, bool? isolatedNetwork = default(bool?), Azure.ResourceManager.MachineLearning.Models.AmlComputeScaleSettings scaleSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningUserAccountCredentials userAccountCredentials = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess? remoteLoginPortPublicAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess?), Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState? allocationState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState?), System.DateTimeOffset? allocationStateTransitionOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null, int? currentNodeCount = default(int?), int? targetNodeCount = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeStateCounts nodeStateCounts = null, bool? enableNodePublicIP = default(bool?), System.BinaryData propertyBag = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLJob AutoMLJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary outputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null, Azure.ResourceManager.MachineLearning.Models.AutoMLVertical taskDetails = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLJob AutoMLJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary outputs = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null, Azure.ResourceManager.MachineLearning.Models.AutoMLVertical taskDetails = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.BlobReferenceForConsumptionDto BlobReferenceForConsumptionDto(System.Uri blobUri = null, Azure.ResourceManager.MachineLearning.Models.PendingUploadCredentialDto credential = null, string storageAccountArmId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.CocoExportSummary CocoExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string containerName = null, string snapshotPath = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.CsvExportSummary CsvExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string containerName = null, string snapshotPath = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.DatasetExportSummary DatasetExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string labeledAssetName = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ExportSummary ExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string format = "Unknown", string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeatureData FeatureData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeatureProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeaturesetContainerData FeaturesetContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties FeaturesetContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeaturesetJob FeaturesetJob(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string displayName = null, System.TimeSpan? duration = default(System.TimeSpan?), string experimentId = null, Azure.ResourceManager.MachineLearning.Models.FeatureWindow featureWindow = null, string jobId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType? featurestoreJobType = default(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeaturesetVersionData FeaturesetVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties FeaturesetVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable entities = null, Azure.ResourceManager.MachineLearning.Models.MaterializationSettings materializationSettings = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string specificationPath = null, string stage = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData FeaturestoreEntityContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties FeaturestoreEntityContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData FeaturestoreEntityVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties FeaturestoreEntityVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable indexColumns = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FqdnEndpointsPropertyBag FqdnEndpointsPropertyBag(Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.HdfsDatastore HdfsDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), string hdfsServerCertificate = null, string nameNodeAddress = null, string protocol = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ImageMetadata ImageMetadata(string currentImageVersion = null, string latestImageVersion = null, bool? isLatestOSImageVersion = default(bool?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.LabelingJobData LabelingJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties LabelingJobProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.LabelingDataConfiguration dataConfiguration = null, System.Uri jobInstructionsUri = null, System.Collections.Generic.IDictionary labelCategories = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties labelingJobMediaProperties = null, Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration mlAssistConfiguration = null, Azure.ResourceManager.MachineLearning.Models.ProgressMetrics progressMetrics = null, System.Guid? projectId = default(System.Guid?), Azure.ResourceManager.MachineLearning.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.JobProvisioningState?), System.Collections.Generic.IEnumerable statusMessages = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAksCompute MachineLearningAksCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeProperties MachineLearningAksComputeProperties(string clusterFqdn = null, System.Collections.Generic.IEnumerable systemServices = null, int? agentCount = default(int?), string agentVmSize = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose? clusterPurpose = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose?), Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfiguration sslConfiguration = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningAksNetworkingConfiguration aksNetworkingConfiguration = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType? loadBalancerType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType?), string loadBalancerSubnet = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeSecrets MachineLearningAksComputeSecrets(string userKubeConfig = null, string adminKubeConfig = null, string imagePullSecretName = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer MachineLearningAssetContainer(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, bool? isDefault = default(bool?), string accountName = null, string containerName = null, string endpoint = null, string protocol = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureDataLakeGen1Datastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, bool? isDefault = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?), string storeName = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAzureDataLakeGen2Datastore MachineLearningAzureDataLakeGen2Datastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, bool? isDefault = default(bool?), string accountName = null, string endpoint = null, string filesystem = null, string protocol = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAzureFileDatastore MachineLearningAzureFileDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, bool? isDefault = default(bool?), string accountName = null, string endpoint = null, string fileShareName = null, string protocol = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), string accountName = null, string containerName = null, string endpoint = null, string protocol = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?), string resourceGroup = null, string subscriptionId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureDataLakeGen1Datastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?), string storeName = null, string resourceGroup = null, string subscriptionId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAzureDataLakeGen2Datastore MachineLearningAzureDataLakeGen2Datastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), string accountName = null, string endpoint = null, string filesystem = null, string protocol = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?), string resourceGroup = null, string subscriptionId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAzureFileDatastore MachineLearningAzureFileDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), string accountName = null, string endpoint = null, string fileShareName = null, string protocol = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?), string resourceGroup = null, string subscriptionId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningBatchDeploymentData MachineLearningBatchDeploymentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchDeploymentProperties properties = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchDeploymentProperties MachineLearningBatchDeploymentProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, string compute = null, int? errorThreshold = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel? loggingLevel = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel?), int? maxConcurrencyPerInstance = default(int?), long? miniBatchSize = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase model = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction? outputAction = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction?), string outputFileName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentResourceConfiguration resources = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchRetrySettings retrySettings = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchDeploymentProperties MachineLearningBatchDeploymentProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, string compute = null, Azure.ResourceManager.MachineLearning.Models.BatchDeploymentConfiguration deploymentConfiguration = null, int? errorThreshold = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel? loggingLevel = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel?), int? maxConcurrencyPerInstance = default(int?), long? miniBatchSize = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase model = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction? outputAction = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction?), string outputFileName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentResourceConfiguration resources = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchRetrySettings retrySettings = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningBatchEndpointData MachineLearningBatchEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchEndpointProperties properties = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchEndpointProperties MachineLearningBatchEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode), string description = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = null, System.Collections.Generic.IDictionary properties = null, System.Uri scoringUri = null, System.Uri swaggerUri = null, string defaultsDeploymentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData MachineLearningCodeContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData MachineLearningCodeVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJob MachineLearningCommandJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.Core.ResourceIdentifier codeId = null, string command = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration distribution = null, Azure.Core.ResourceIdentifier environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits limits = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData parameters = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Uri codeUri = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJob MachineLearningCommandJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState? mlflowAutologger = default(Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState?), Azure.Core.ResourceIdentifier codeId = null, string command = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration distribution = null, Azure.Core.ResourceIdentifier environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits limits = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData parameters = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData MachineLearningComponentContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData MachineLearningComponentVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.BinaryData componentSpec = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComputeData MachineLearningComputeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstance MachineLearningComputeInstance(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceApplication MachineLearningComputeInstanceApplication(string displayName = null, System.Uri endpointUri = null) { throw null; } @@ -1028,12 +1766,12 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceDataMount MachineLearningComputeInstanceDataMount(string source = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType? sourceType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType?), string mountName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction? mountAction = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction?), string createdBy = null, string mountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState? mountState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState?), System.DateTimeOffset? mountedOn = default(System.DateTimeOffset?), string error = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceEnvironmentInfo MachineLearningComputeInstanceEnvironmentInfo(string name = null, string version = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation MachineLearningComputeInstanceLastOperation(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName? operationName = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName?), System.DateTimeOffset? operationOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus? operationStatus = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger? operationTrigger = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceProperties MachineLearningComputeInstanceProperties(string vmSize = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy? applicationSharingPolicy = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings sshSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceConnectivityEndpoints connectivityEndpoints = null, System.Collections.Generic.IEnumerable applications = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceCreatedBy createdBy = null, System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState? state = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType? computeInstanceAuthorizationType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAssignedUser personalComputeInstanceAssignedUser = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptsToExecute scripts = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation lastOperation = null, System.Collections.Generic.IEnumerable schedulesComputeStartStop = null, bool? enableNodePublicIP = default(bool?), System.Collections.Generic.IEnumerable containers = null, System.Collections.Generic.IEnumerable dataDisks = null, System.Collections.Generic.IEnumerable dataMounts = null, string versionsRuntime = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceProperties MachineLearningComputeInstanceProperties(string vmSize = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy? applicationSharingPolicy = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy?), Azure.ResourceManager.MachineLearning.Models.MlflowAutologger? mlflowAutologger = default(Azure.ResourceManager.MachineLearning.Models.MlflowAutologger?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings sshSettings = null, System.Collections.Generic.IEnumerable customServices = null, Azure.ResourceManager.MachineLearning.Models.ImageMetadata osImageMetadata = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceConnectivityEndpoints connectivityEndpoints = null, System.Collections.Generic.IEnumerable applications = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceCreatedBy createdBy = null, System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState? state = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType? computeInstanceAuthorizationType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAssignedUser personalComputeInstanceAssignedUser = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptsToExecute scripts = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation lastOperation = null, System.Collections.Generic.IEnumerable schedulesComputeStartStop = null, string idleTimeBeforeShutdown = null, bool? enableNodePublicIP = default(bool?), System.Collections.Generic.IEnumerable containers = null, System.Collections.Generic.IEnumerable dataDisks = null, System.Collections.Generic.IEnumerable dataMounts = null, string versionsRuntime = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings MachineLearningComputeInstanceSshSettings(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess? sshPublicAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess?), string adminUserName = null, int? sshPort = default(int?), string adminPublicKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties MachineLearningComputeProperties(string computeType = "Unknown", string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus? provisioningStatus = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction? action = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction?), Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType? triggerType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType?), Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceTrigger recurrence = null, Azure.ResourceManager.MachineLearning.Models.CronTrigger cron = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleBase schedule = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus? provisioningStatus = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction? action = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction?), Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType? triggerType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType?), Azure.ResourceManager.MachineLearning.Models.Recurrence recurrence = null, Azure.ResourceManager.MachineLearning.Models.Cron cron = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleBase schedule = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeSystemService MachineLearningComputeSystemService(string systemServiceType = null, string publicIPAddress = null, string version = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials MachineLearningContainerRegistryCredentials(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string username = null, System.Collections.Generic.IEnumerable passwords = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials MachineLearningContainerRegistryCredentials(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable passwords = null, string username = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDatabricksCompute MachineLearningDatabricksCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningDatabricksProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDatabricksComputeSecrets MachineLearningDatabricksComputeSecrets(string databricksAccessToken = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData MachineLearningDataContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDataContainerProperties properties = null) { throw null; } @@ -1041,7 +1779,7 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDataFactoryCompute MachineLearningDataFactoryCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDataLakeAnalytics MachineLearningDataLakeAnalytics(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), string dataLakeStoreAccountName = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningDatastoreData MachineLearningDatastoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties MachineLearningDatastoreProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, string datastoreType = "Unknown", bool? isDefault = default(bool?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties MachineLearningDatastoreProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, string datastoreType = "Unknown", Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData MachineLearningDataVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentLogs MachineLearningDeploymentLogs(string content = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResult MachineLearningDiagnoseResult(string code = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel? level = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel?), string message = null) { throw null; } @@ -1049,47 +1787,46 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthToken MachineLearningEndpointAuthToken(string accessToken = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? refreshOn = default(System.DateTimeOffset?), string tokenType = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProperties MachineLearningEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode), string description = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = null, System.Collections.Generic.IDictionary properties = null, System.Uri scoringUri = null, System.Uri swaggerUri = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData MachineLearningEnvironmentContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData MachineLearningEnvironmentVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting? autoRebuild = default(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting?), Azure.ResourceManager.MachineLearning.Models.MachineLearningBuildContext build = null, string condaFile = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType? environmentType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType?), string image = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerProperties inferenceConfig = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType? osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting? autoRebuild = default(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting?), Azure.ResourceManager.MachineLearning.Models.MachineLearningBuildContext build = null, string condaFile = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType? environmentType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType?), string image = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerProperties inferenceConfig = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType? osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType?), Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningError MachineLearningError(Azure.ResponseError error = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrice MachineLearningEstimatedVmPrice(double retailPrice = 0, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType), Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier vmTier = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices MachineLearningEstimatedVmPrices(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency billingCurrency = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency), Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure unitOfMeasure = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure), System.Collections.Generic.IEnumerable values = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoint MachineLearningFqdnEndpoint(string domainName = null, System.Collections.Generic.IEnumerable endpointDetails = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetail(int? port = default(int?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointsProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointsProperties MachineLearningFqdnEndpointsProperties(string category = null, System.Collections.Generic.IEnumerable endpoints = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(string category = null, System.Collections.Generic.IEnumerable endpoints = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningHDInsightCompute MachineLearningHDInsightCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningHDInsightProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningJobData MachineLearningJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties MachineLearningJobProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), string jobType = "Unknown", System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, int? port = default(int?), System.Collections.Generic.IDictionary properties = null, string status = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties MachineLearningJobProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), string jobType = "Unknown", Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, Azure.ResourceManager.MachineLearning.Models.Nodes nodes = null, int? port = default(int?), System.Collections.Generic.IDictionary properties = null, string status = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesCompute MachineLearningKubernetesCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesOnlineDeployment MachineLearningKubernetesOnlineDeployment(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceRequirements containerResourceRequirements = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningManagedOnlineDeployment MachineLearningManagedOnlineDeployment(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesOnlineDeployment MachineLearningKubernetesOnlineDeployment(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceRequirements containerResourceRequirements = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningManagedOnlineDeployment MachineLearningManagedOnlineDeployment(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData MachineLearningModelContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData MachineLearningModelVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IDictionary flavors = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, string jobName = null, string modelType = null, System.Uri modelUri = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeStateCounts MachineLearningNodeStateCounts(int? idleNodeCount = default(int?), int? runningNodeCount = default(int?), int? preparingNodeCount = default(int?), int? unusableNodeCount = default(int?), int? leavingNodeCount = default(int?), int? preemptedNodeCount = default(int?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookPreparationError MachineLearningNotebookPreparationError(string errorMessage = null, int? statusCode = default(int?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo MachineLearningNotebookResourceInfo(string fqdn = null, string resourceId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookPreparationError notebookPreparationError = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo MachineLearningNotebookResourceInfo(string fqdn = null, bool? isPrivateLinkEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookPreparationError notebookPreparationError = null, string resourceId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineDeploymentData MachineLearningOnlineDeploymentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties properties = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties MachineLearningOnlineDeploymentProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string endpointComputeType = "Unknown", string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties MachineLearningOnlineDeploymentProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string endpointComputeType = "Unknown", string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointData MachineLearningOnlineEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineEndpointProperties properties = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode), string description = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = null, System.Collections.Generic.IDictionary properties = null, System.Uri scoringUri = null, System.Uri swaggerUri = null, string compute = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), System.Collections.Generic.IDictionary traffic = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode), string description = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = null, System.Collections.Generic.IDictionary properties = null, System.Uri scoringUri = null, System.Uri swaggerUri = null, string compute = null, System.Collections.Generic.IDictionary mirrorTraffic = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), System.Collections.Generic.IDictionary traffic = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPasswordDetail MachineLearningPasswordDetail(string name = null, string value = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPipelineJob MachineLearningPipelineJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IDictionary inputs = null, System.Collections.Generic.IDictionary jobs = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData settings = null, Azure.Core.ResourceIdentifier sourceJobId = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier subnetArmId = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint privateEndpoint = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPipelineJob MachineLearningPipelineJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IDictionary inputs = null, System.Collections.Generic.IDictionary jobs = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData settings = null, Azure.Core.ResourceIdentifier sourceJobId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(Azure.Core.ResourceIdentifier id = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, Azure.ResourceManager.MachineLearning.Models.WorkspacePrivateEndpointResource privateEndpoint = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkResource MachineLearningPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName MachineLearningResourceName(string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceQuota MachineLearningResourceQuota(string id = null, string amlWorkspaceLocation = null, string resourceQuotaType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName name = null, long? limit = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? unit = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleBase MachineLearningScheduleBase(string id = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState? provisioningStatus = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningScheduleData MachineLearningScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProperties MachineLearningScheduleProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction action = null, string displayName = null, bool? isEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase trigger = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuCapacity MachineLearningSkuCapacity(int? @default = default(int?), int? maximum = default(int?), int? minimum = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType? scaleType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuDetail MachineLearningSkuDetail(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuCapacity capacity = null, string resourceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuSetting sku = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuSetting MachineLearningSkuSetting(string name = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier? tier = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJob MachineLearningSweepJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy earlyTermination = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJobLimits limits = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective objective = null, System.Collections.Generic.IDictionary outputs = null, Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm samplingAlgorithm = null, System.BinaryData searchSpace = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent trial = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJob MachineLearningSweepJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy earlyTermination = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJobLimits limits = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective objective = null, System.Collections.Generic.IDictionary outputs = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm samplingAlgorithm = null, System.BinaryData searchSpace = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent trial = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSynapseSpark MachineLearningSynapseSpark(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningSynapseSparkProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUsage MachineLearningUsage(string id = null, string amlWorkspaceLocation = null, string usageType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit? unit = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit?), long? currentValue = default(long?), long? limit = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageName name = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageName MachineLearningUsageName(string value = null, string localizedValue = null) { throw null; } @@ -1098,3581 +1835,5347 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVirtualMachineSecrets MachineLearningVirtualMachineSecrets(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials administratorAccount = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSize MachineLearningVmSize(string name = null, string family = null, int? vCpus = default(int?), int? gpus = default(int?), int? osVhdSizeMB = default(int?), int? maxResourceVolumeMB = default(int?), double? memoryGB = default(double?), bool? lowPriorityCapable = default(bool?), bool? isPremiumIOSupported = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices estimatedVmPrices = null, System.Collections.Generic.IEnumerable supportedComputeTypes = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionData MachineLearningWorkspaceConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceData MachineLearningWorkspaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, string workspaceId = null, string description = null, string friendlyName = null, string keyVault = null, string applicationInsights = null, string containerRegistry = null, string storageAccount = null, System.Uri discoveryUri = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionSetting encryption = null, bool? isHbiWorkspace = default(bool?), string serviceProvisionedResourceGroup = null, int? privateLinkCount = default(int?), string imageBuildCompute = null, bool? allowPublicAccessWhenBehindVnet = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo notebookInfo = null, int? cosmosDbCollectionsThroughput = default(int?), string primaryUserAssignedIdentity = null, System.Guid? tenantId = default(System.Guid?), bool? isStorageHnsEnabled = default(bool?), System.Uri mlFlowTrackingUri = null, bool? isV1LegacyMode = default(bool?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceData MachineLearningWorkspaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = default(bool?), string applicationInsights = null, System.Collections.Generic.IEnumerable associatedWorkspaces = null, System.Collections.Generic.IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, System.Uri discoveryUri = null, bool? enableDataIsolation = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionSetting encryption = null, System.Collections.Generic.IEnumerable existingWorkspaces = null, Azure.ResourceManager.MachineLearning.Models.FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = default(bool?), string hubResourceId = null, string imageBuildCompute = null, string keyVault = null, System.Collections.Generic.IEnumerable keyVaults = null, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings managedNetwork = null, System.Uri mlFlowTrackingUri = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, int? privateLinkCount = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), int? cosmosDbCollectionsThroughput = default(int?), string serviceProvisionedResourceGroup = null, System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = default(int?), string storageAccount = null, System.Collections.Generic.IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = default(bool?), string systemDatastoresAuthMode = null, System.Guid? tenantId = default(System.Guid?), bool? isV1LegacyMode = default(bool?), Azure.ResourceManager.MachineLearning.Models.WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseResult MachineLearningWorkspaceDiagnoseResult(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultValue value = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string userStorageKey = null, string userStorageResourceId = null, string appInsightsInstrumentationKey = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null, string userStorageArmId = null, string userStorageKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult MachineLearningWorkspaceGetNotebookKeysResult(string primaryAccessKey = null, string secondaryAccessKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetStorageAccountKeysResult MachineLearningWorkspaceGetStorageAccountKeysResult(string userStorageKey = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceNotebookAccessTokenResult MachineLearningWorkspaceNotebookAccessTokenResult(string notebookResourceId = null, string hostName = null, string publicDns = null, string accessToken = null, string tokenType = null, int? expiresIn = default(int?), string refreshToken = null, string scope = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceNotebookAccessTokenResult MachineLearningWorkspaceNotebookAccessTokenResult(string accessToken = null, int? expiresIn = default(int?), string hostName = null, string notebookResourceId = null, string publicDns = null, string refreshToken = null, string scope = null, string tokenType = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaUpdate MachineLearningWorkspaceQuotaUpdate(string id = null, string updateWorkspaceQuotasType = null, long? limit = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? unit = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit?), Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.TextClassificationMultilabel TextClassificationMultilabel(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? logVerbosity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity?), string targetColumnName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData = null, Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric? primaryMetric = default(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric?), string featurizationDatasetLanguage = null, Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings limitSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput validationData = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.TextNer TextNer(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? logVerbosity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity?), string targetColumnName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData = null, Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? primaryMetric = default(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric?), string featurizationDatasetLanguage = null, Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings limitSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput validationData = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings ManagedNetworkSettings(Azure.ResourceManager.MachineLearning.Models.IsolationMode? isolationMode = default(Azure.ResourceManager.MachineLearning.Models.IsolationMode?), string networkId = null, System.Collections.Generic.IDictionary outboundRules = null, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionStatus status = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.OneLakeDatastore OneLakeDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), Azure.ResourceManager.MachineLearning.Models.OneLakeArtifact artifact = null, string endpoint = null, string oneLakeWorkspaceName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData OutboundRuleBasicResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.OutboundRule properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PackageResponse PackageResponse(Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource baseEnvironmentSource = null, string buildId = null, Azure.ResourceManager.MachineLearning.Models.PackageBuildState? buildState = default(Azure.ResourceManager.MachineLearning.Models.PackageBuildState?), System.Collections.Generic.IReadOnlyDictionary environmentVariables = null, Azure.ResourceManager.MachineLearning.Models.InferencingServer inferencingServer = null, System.Collections.Generic.IEnumerable inputs = null, System.Uri logUri = null, Azure.ResourceManager.MachineLearning.Models.ModelConfiguration modelConfiguration = null, System.Collections.Generic.IReadOnlyDictionary tags = null, string targetEnvironmentId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PendingUploadResponseDto PendingUploadResponseDto(Azure.ResourceManager.MachineLearning.Models.BlobReferenceForConsumptionDto blobReferenceForConsumption = null, string pendingUploadId = null, Azure.ResourceManager.MachineLearning.Models.PendingUploadType? pendingUploadType = default(Azure.ResourceManager.MachineLearning.Models.PendingUploadType?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpointResource PrivateEndpointResource(Azure.Core.ResourceIdentifier id = null, string subnetArmId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ProgressMetrics ProgressMetrics(long? completedDatapointCount = default(long?), System.DateTimeOffset? incrementalDataLastRefreshOn = default(System.DateTimeOffset?), long? skippedDatapointCount = default(long?), long? totalDatapointCount = default(long?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.RegistryData RegistryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, System.Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, System.Uri mlFlowRegistryUri = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, System.Collections.Generic.IEnumerable regionDetails = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.SasCredentialDto SasCredentialDto(System.Uri sasUri = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ServiceTagDestination ServiceTagDestination(Azure.ResourceManager.MachineLearning.Models.RuleAction? action = default(Azure.ResourceManager.MachineLearning.Models.RuleAction?), System.Collections.Generic.IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.SparkJob SparkJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IEnumerable archives = null, string args = null, string codeId = null, System.Collections.Generic.IDictionary conf = null, Azure.ResourceManager.MachineLearning.Models.SparkJobEntry entry = null, string environmentId = null, System.Collections.Generic.IEnumerable files = null, System.Collections.Generic.IDictionary inputs = null, System.Collections.Generic.IEnumerable jars = null, System.Collections.Generic.IDictionary outputs = null, System.Collections.Generic.IEnumerable pyFiles = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.SparkResourceConfiguration resources = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.StatusMessage StatusMessage(string code = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel? level = default(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel?), string message = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.TextClassificationMultilabel TextClassificationMultilabel(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? logVerbosity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity?), string targetColumnName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData = null, Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric? primaryMetric = default(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric?), string featurizationDatasetLanguage = null, Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters fixedParameters = null, Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings limitSettings = null, System.Collections.Generic.IEnumerable searchSpace = null, Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings sweepSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput validationData = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.TextNer TextNer(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? logVerbosity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity?), string targetColumnName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData = null, Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? primaryMetric = default(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric?), string featurizationDatasetLanguage = null, Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters fixedParameters = null, Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings limitSettings = null, System.Collections.Generic.IEnumerable searchSpace = null, Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings sweepSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput validationData = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.WorkspacePrivateEndpointResource WorkspacePrivateEndpointResource(string id = null, string subnetArmId = null) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AssetProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AssetProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState left, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState left, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutoDeleteCondition : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutoDeleteCondition(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition CreatedGreaterThan { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition LastAccessedGreaterThan { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition left, Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition left, Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutoDeleteSetting + { + public AutoDeleteSetting() { } + public Azure.ResourceManager.MachineLearning.Models.AutoDeleteCondition? Condition { get { throw null; } set { } } + public string Value { get { throw null; } set { } } + } + public partial class AutoForecastHorizon : Azure.ResourceManager.MachineLearning.Models.ForecastHorizon + { + public AutoForecastHorizon() { } + } + public partial class AutoMLJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties + { + public AutoMLJob(Azure.ResourceManager.MachineLearning.Models.AutoMLVertical taskDetails) { } + public string EnvironmentId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.QueueSettings QueueSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration Resources { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AutoMLVertical TaskDetails { get { throw null; } set { } } + } + public abstract partial class AutoMLVertical + { + protected AutoMLVertical(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? LogVerbosity { get { throw null; } set { } } + public string TargetColumnName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput TrainingData { get { throw null; } set { } } + } + public partial class AutoMLVerticalRegression : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + { + public AutoMLVerticalRegression(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } + public System.Collections.Generic.IList CvSplitColumnNames { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableVerticalFeaturizationSettings FeaturizationSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableFixedParameters FixedParameters { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableVerticalLimitSettings LimitSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NCrossValidations NCrossValidations { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric? PrimaryMetric { get { throw null; } set { } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableSweepSettings SweepSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput TestData { get { throw null; } set { } } + public double? TestDataSize { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.RegressionTrainingSettings TrainingSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } + public double? ValidationDataSize { get { throw null; } set { } } + public string WeightColumnName { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutoMLVerticalRegressionModel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutoMLVerticalRegressionModel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel DecisionTree { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel ElasticNet { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel ExtremeRandomTrees { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel GradientBoosting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel KNN { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel LassoLars { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel LightGBM { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel RandomForest { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel SGD { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel XGBoostRegressor { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel left, Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel left, Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutoMLVerticalRegressionPrimaryMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutoMLVerticalRegressionPrimaryMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric NormalizedMeanAbsoluteError { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric NormalizedRootMeanSquaredError { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric R2Score { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric SpearmanCorrelation { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutoNCrossValidations : Azure.ResourceManager.MachineLearning.Models.NCrossValidations + { + public AutoNCrossValidations() { } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutoRebuildSetting : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutoRebuildSetting(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting OnBaseImageUpdate { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting left, Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting left, Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutoSeasonality : Azure.ResourceManager.MachineLearning.Models.ForecastingSeasonality + { + public AutoSeasonality() { } + } + public partial class AutoTargetLags : Azure.ResourceManager.MachineLearning.Models.TargetLags + { + public AutoTargetLags() { } + } + public partial class AutoTargetRollingWindowSize : Azure.ResourceManager.MachineLearning.Models.TargetRollingWindowSize + { + public AutoTargetRollingWindowSize() { } + } + public partial class AzMonMonitoringAlertNotificationSettings : Azure.ResourceManager.MachineLearning.Models.MonitoringAlertNotificationSettingsBase + { + public AzMonMonitoringAlertNotificationSettings() { } + } + public partial class AzureDevOpsWebhook : Azure.ResourceManager.MachineLearning.Models.Webhook + { + public AzureDevOpsWebhook() { } + } + public partial class AzureMLBatchInferencingServer : Azure.ResourceManager.MachineLearning.Models.InferencingServer + { + public AzureMLBatchInferencingServer() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration CodeConfiguration { get { throw null; } set { } } + } + public partial class AzureMLOnlineInferencingServer : Azure.ResourceManager.MachineLearning.Models.InferencingServer + { + public AzureMLOnlineInferencingServer() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration CodeConfiguration { get { throw null; } set { } } + } + public partial class BanditPolicy : Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy + { + public BanditPolicy() { } + public float? SlackAmount { get { throw null; } set { } } + public float? SlackFactor { get { throw null; } set { } } + } + public partial class BaseEnvironmentId : Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource + { + public BaseEnvironmentId(string resourceId) { } + public string ResourceId { get { throw null; } set { } } + } + public abstract partial class BaseEnvironmentSource + { + protected BaseEnvironmentSource() { } + } + public abstract partial class BatchDeploymentConfiguration + { + protected BatchDeploymentConfiguration() { } + } + public partial class BatchPipelineComponentDeploymentConfiguration : Azure.ResourceManager.MachineLearning.Models.BatchDeploymentConfiguration + { + public BatchPipelineComponentDeploymentConfiguration() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningIdAssetReference ComponentId { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Settings { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + } + public partial class BayesianSamplingAlgorithm : Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm + { + public BayesianSamplingAlgorithm() { } + } + public partial class BindOptions + { + public BindOptions() { } + public bool? CreateHostPath { get { throw null; } set { } } + public string Propagation { get { throw null; } set { } } + public string Selinux { get { throw null; } set { } } + } + public partial class BlobReferenceForConsumptionDto + { + internal BlobReferenceForConsumptionDto() { } + public System.Uri BlobUri { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.PendingUploadCredentialDto Credential { get { throw null; } } + public string StorageAccountArmId { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BlockedTransformer : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BlockedTransformer(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer CatTargetEncoder { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer CountVectorizer { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer HashOneHotEncoder { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer LabelEncoder { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer NaiveBayes { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer OneHotEncoder { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer TextTargetEncoder { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer TfIdf { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer WoETargetEncoder { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer WordEmbedding { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.BlockedTransformer other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.BlockedTransformer left, Azure.ResourceManager.MachineLearning.Models.BlockedTransformer right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.BlockedTransformer (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.BlockedTransformer left, Azure.ResourceManager.MachineLearning.Models.BlockedTransformer right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CategoricalDataDriftMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CategoricalDataDriftMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric JensenShannonDistance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric PearsonsChiSquaredTest { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric PopulationStabilityIndex { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric left, Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric left, Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class CategoricalDataDriftMetricThreshold : Azure.ResourceManager.MachineLearning.Models.DataDriftMetricThresholdBase + { + public CategoricalDataDriftMetricThreshold(Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.CategoricalDataDriftMetric Metric { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CategoricalDataQualityMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CategoricalDataQualityMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric DataTypeErrorRate { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric NullValueRate { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric OutOfBoundsRate { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric left, Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric left, Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class CategoricalDataQualityMetricThreshold : Azure.ResourceManager.MachineLearning.Models.DataQualityMetricThresholdBase + { + public CategoricalDataQualityMetricThreshold(Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.CategoricalDataQualityMetric Metric { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CategoricalPredictionDriftMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CategoricalPredictionDriftMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric JensenShannonDistance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric PearsonsChiSquaredTest { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric PopulationStabilityIndex { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric left, Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric left, Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class CategoricalPredictionDriftMetricThreshold : Azure.ResourceManager.MachineLearning.Models.PredictionDriftMetricThresholdBase + { + public CategoricalPredictionDriftMetricThreshold(Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.CategoricalPredictionDriftMetric Metric { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ClassificationModel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ClassificationModel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel BernoulliNaiveBayes { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel DecisionTree { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel ExtremeRandomTrees { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel GradientBoosting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel KNN { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel LightGBM { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel LinearSVM { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel LogisticRegression { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel MultinomialNaiveBayes { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel RandomForest { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel SGD { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel SVM { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel XGBoostClassifier { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ClassificationModel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ClassificationModel left, Azure.ResourceManager.MachineLearning.Models.ClassificationModel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ClassificationModel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ClassificationModel left, Azure.ResourceManager.MachineLearning.Models.ClassificationModel right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ClassificationModelPerformanceMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ClassificationModelPerformanceMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric Accuracy { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric Precision { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric Recall { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ClassificationModelPerformanceMetricThreshold : Azure.ResourceManager.MachineLearning.Models.ModelPerformanceMetricThresholdBase + { + public ClassificationModelPerformanceMetricThreshold(Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.ClassificationModelPerformanceMetric Metric { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ClassificationMultilabelPrimaryMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ClassificationMultilabelPrimaryMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric Accuracy { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric AUCWeighted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric AveragePrecisionScoreWeighted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric IOU { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric NormMacroRecall { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric PrecisionScoreWeighted { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ClassificationPrimaryMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ClassificationPrimaryMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric Accuracy { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric AUCWeighted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric AveragePrecisionScoreWeighted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric NormMacroRecall { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric PrecisionScoreWeighted { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ClassificationTask : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + { + public ClassificationTask(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } + public System.Collections.Generic.IList CvSplitColumnNames { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableVerticalFeaturizationSettings FeaturizationSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableFixedParameters FixedParameters { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableVerticalLimitSettings LimitSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NCrossValidations NCrossValidations { get { throw null; } set { } } + public string PositiveLabel { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? PrimaryMetric { get { throw null; } set { } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableSweepSettings SweepSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput TestData { get { throw null; } set { } } + public double? TestDataSize { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ClassificationTrainingSettings TrainingSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } + public double? ValidationDataSize { get { throw null; } set { } } + public string WeightColumnName { get { throw null; } set { } } + } + public partial class ClassificationTrainingSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningTrainingSettings + { + public ClassificationTrainingSettings() { } + public System.Collections.Generic.IList AllowedTrainingAlgorithms { get { throw null; } set { } } + public System.Collections.Generic.IList BlockedTrainingAlgorithms { get { throw null; } set { } } + } + public partial class CocoExportSummary : Azure.ResourceManager.MachineLearning.Models.ExportSummary + { + public CocoExportSummary() { } + public string ContainerName { get { throw null; } } + public string SnapshotPath { get { throw null; } } + } + public partial class Collection + { + public Collection() { } + public string ClientId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.DataCollectionMode? DataCollectionMode { get { throw null; } set { } } + public string DataId { get { throw null; } set { } } + public double? SamplingRate { get { throw null; } set { } } + } + public partial class ColumnTransformer + { + public ColumnTransformer() { } + public System.Collections.Generic.IList Fields { get { throw null; } set { } } + public System.BinaryData Parameters { get { throw null; } set { } } + } + public partial class CreateMonitorAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction + { + public CreateMonitorAction(Azure.ResourceManager.MachineLearning.Models.MonitorDefinition monitorDefinition) { } + public Azure.ResourceManager.MachineLearning.Models.MonitorDefinition MonitorDefinition { get { throw null; } set { } } + } + public partial class Cron + { + public Cron() { } + public string Expression { get { throw null; } set { } } + public string StartTime { get { throw null; } set { } } + public string TimeZone { get { throw null; } set { } } + } + public partial class CronTrigger : Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase + { + public CronTrigger(string expression) { } + public string Expression { get { throw null; } set { } } + } + public partial class CsvExportSummary : Azure.ResourceManager.MachineLearning.Models.ExportSummary + { + public CsvExportSummary() { } + public string ContainerName { get { throw null; } } + public string SnapshotPath { get { throw null; } } + } + public partial class CustomForecastHorizon : Azure.ResourceManager.MachineLearning.Models.ForecastHorizon + { + public CustomForecastHorizon(int value) { } + public int Value { get { throw null; } set { } } + } + public partial class CustomInferencingServer : Azure.ResourceManager.MachineLearning.Models.InferencingServer + { + public CustomInferencingServer() { } + public Azure.ResourceManager.MachineLearning.Models.OnlineInferenceConfiguration InferenceConfiguration { get { throw null; } set { } } + } + public partial class CustomKeysWorkspaceConnectionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties + { + public CustomKeysWorkspaceConnectionProperties() { } + public System.Collections.Generic.IDictionary CredentialsKeys { get { throw null; } } + } + public partial class CustomMetricThreshold + { + public CustomMetricThreshold(string metric) { } + public string Metric { get { throw null; } set { } } + public double? ThresholdValue { get { throw null; } set { } } + } + public partial class CustomMonitoringSignal : Azure.ResourceManager.MachineLearning.Models.MonitoringSignalBase + { + public CustomMonitoringSignal(string componentId, System.Collections.Generic.IEnumerable metricThresholds, Azure.ResourceManager.MachineLearning.Models.MonitoringWorkspaceConnection workspaceConnection) { } + public string ComponentId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary InputAssets { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } + public System.Collections.Generic.IList MetricThresholds { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringWorkspaceConnection WorkspaceConnection { get { throw null; } set { } } + } + public partial class CustomNCrossValidations : Azure.ResourceManager.MachineLearning.Models.NCrossValidations + { + public CustomNCrossValidations(int value) { } + public int Value { get { throw null; } set { } } + } + public partial class CustomSeasonality : Azure.ResourceManager.MachineLearning.Models.ForecastingSeasonality + { + public CustomSeasonality(int value) { } + public int Value { get { throw null; } set { } } + } + public partial class CustomService + { + public CustomService() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.Docker Docker { get { throw null; } set { } } + public System.Collections.Generic.IList Endpoints { get { throw null; } } + public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.Image Image { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList Volumes { get { throw null; } } + } + public partial class CustomTargetLags : Azure.ResourceManager.MachineLearning.Models.TargetLags + { + public CustomTargetLags(System.Collections.Generic.IEnumerable values) { } + public System.Collections.Generic.IList Values { get { throw null; } } + } + public partial class CustomTargetRollingWindowSize : Azure.ResourceManager.MachineLearning.Models.TargetRollingWindowSize + { + public CustomTargetRollingWindowSize(int value) { } + public int Value { get { throw null; } set { } } + } + public partial class DatabaseSource : Azure.ResourceManager.MachineLearning.Models.DataImportSource + { + public DatabaseSource() { } + public string Query { get { throw null; } set { } } + public string StoredProcedure { get { throw null; } set { } } + public System.Collections.Generic.IList> StoredProcedureParams { get { throw null; } set { } } + public string TableName { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DataCollectionMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DataCollectionMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.DataCollectionMode Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.DataCollectionMode Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.DataCollectionMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.DataCollectionMode left, Azure.ResourceManager.MachineLearning.Models.DataCollectionMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.DataCollectionMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.DataCollectionMode left, Azure.ResourceManager.MachineLearning.Models.DataCollectionMode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class DataCollector + { + public DataCollector(System.Collections.Generic.IDictionary collections) { } + public System.Collections.Generic.IDictionary Collections { get { throw null; } } + public System.Collections.Generic.IList RequestLoggingCaptureHeaders { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.RollingRateType? RollingRate { get { throw null; } set { } } + } + public abstract partial class DataDriftMetricThresholdBase + { + protected DataDriftMetricThresholdBase() { } + public double? ThresholdValue { get { throw null; } set { } } + } + public partial class DataDriftMonitoringSignal : Azure.ResourceManager.MachineLearning.Models.MonitoringSignalBase + { + public DataDriftMonitoringSignal(System.Collections.Generic.IEnumerable metricThresholds, Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase productionData, Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase referenceData) { } + public Azure.ResourceManager.MachineLearning.Models.MonitoringDataSegment DataSegment { get { throw null; } set { } } + public System.Collections.Generic.IDictionary FeatureDataTypeOverride { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureFilterBase Features { get { throw null; } set { } } + public System.Collections.Generic.IList MetricThresholds { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ProductionData { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ReferenceData { get { throw null; } set { } } + } + public partial class DataImport : Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties + { + public DataImport(System.Uri dataUri) : base (default(System.Uri)) { } + public string AssetName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.DataImportSource Source { get { throw null; } set { } } + } + public abstract partial class DataImportSource + { + protected DataImportSource() { } + public string Connection { get { throw null; } set { } } + } + public abstract partial class DataQualityMetricThresholdBase + { + protected DataQualityMetricThresholdBase() { } + public double? ThresholdValue { get { throw null; } set { } } + } + public partial class DataQualityMonitoringSignal : Azure.ResourceManager.MachineLearning.Models.MonitoringSignalBase + { + public DataQualityMonitoringSignal(System.Collections.Generic.IEnumerable metricThresholds, Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase productionData, Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase referenceData) { } + public System.Collections.Generic.IDictionary FeatureDataTypeOverride { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureFilterBase Features { get { throw null; } set { } } + public System.Collections.Generic.IList MetricThresholds { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ProductionData { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ReferenceData { get { throw null; } set { } } + } + public partial class DatasetExportSummary : Azure.ResourceManager.MachineLearning.Models.ExportSummary + { + public DatasetExportSummary() { } + public string LabeledAssetName { get { throw null; } } + } + public partial class Docker + { + public Docker() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public bool? Privileged { get { throw null; } set { } } + } + public partial class EmailMonitoringAlertNotificationSettings : Azure.ResourceManager.MachineLearning.Models.MonitoringAlertNotificationSettingsBase + { + public EmailMonitoringAlertNotificationSettings() { } + public Azure.ResourceManager.MachineLearning.Models.NotificationSetting EmailNotificationSetting { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EmailNotificationEnableType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EmailNotificationEnableType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType JobCancelled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType JobCompleted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType JobFailed { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType left, Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType left, Azure.ResourceManager.MachineLearning.Models.EmailNotificationEnableType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class EncryptionKeyVaultUpdateProperties + { + public EncryptionKeyVaultUpdateProperties(string keyIdentifier) { } + public string KeyIdentifier { get { throw null; } } + } + public partial class EncryptionUpdateProperties + { + public EncryptionUpdateProperties(Azure.ResourceManager.MachineLearning.Models.EncryptionKeyVaultUpdateProperties keyVaultProperties) { } + public EncryptionUpdateProperties(string keyIdentifier) { } + public string KeyIdentifier { get { throw null; } } + } + public partial class Endpoint + { + public Endpoint() { } + public string HostIP { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.Protocol? Protocol { get { throw null; } set { } } + public int? Published { get { throw null; } set { } } + public int? Target { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EndpointServiceConnectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Disconnected { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Rejected { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Timeout { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus left, Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus left, Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class EnvironmentVariable + { + public EnvironmentVariable() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public string Value { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.EnvironmentVariableType? VariableType { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EnvironmentVariableType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EnvironmentVariableType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.EnvironmentVariableType Local { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.EnvironmentVariableType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.EnvironmentVariableType left, Azure.ResourceManager.MachineLearning.Models.EnvironmentVariableType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.EnvironmentVariableType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.EnvironmentVariableType left, Azure.ResourceManager.MachineLearning.Models.EnvironmentVariableType right) { throw null; } + public override string ToString() { throw null; } + } + public abstract partial class ExportSummary + { + protected ExportSummary() { } + public System.DateTimeOffset? EndOn { get { throw null; } } + public long? ExportedRowCount { get { throw null; } } + public string LabelingJobId { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + } + public partial class FeatureAttributionDriftMonitoringSignal : Azure.ResourceManager.MachineLearning.Models.MonitoringSignalBase + { + public FeatureAttributionDriftMonitoringSignal(Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetricThreshold metricThreshold, System.Collections.Generic.IEnumerable productionData, Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase referenceData) { } + public Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetricThreshold MetricThreshold { get { throw null; } set { } } + public System.Collections.Generic.IList ProductionData { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ReferenceData { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FeatureAttributionMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FeatureAttributionMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric NormalizedDiscountedCumulativeGain { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric left, Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric left, Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class FeatureAttributionMetricThreshold + { + public FeatureAttributionMetricThreshold(Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.FeatureAttributionMetric Metric { get { throw null; } set { } } + public double? ThresholdValue { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FeatureDataType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FeatureDataType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeatureDataType Binary { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeatureDataType Boolean { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeatureDataType Datetime { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeatureDataType Double { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeatureDataType Float { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeatureDataType Integer { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeatureDataType Long { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeatureDataType String { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.FeatureDataType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.FeatureDataType left, Azure.ResourceManager.MachineLearning.Models.FeatureDataType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.FeatureDataType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.FeatureDataType left, Azure.ResourceManager.MachineLearning.Models.FeatureDataType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class FeatureProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + { + public FeatureProperties() { } + public Azure.ResourceManager.MachineLearning.Models.FeatureDataType? DataType { get { throw null; } set { } } + public string FeatureName { get { throw null; } set { } } + } + public partial class FeaturesetContainerCollectionGetAllOptions + { + public FeaturesetContainerCollectionGetAllOptions() { } + public string CreatedBy { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + } + public partial class FeaturesetContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer + { + public FeaturesetContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + } + public partial class FeaturesetJob + { + internal FeaturesetJob() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public string DisplayName { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } } + public string ExperimentId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType? FeaturestoreJobType { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.FeatureWindow FeatureWindow { get { throw null; } } + public string JobId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? Status { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } + } + public partial class FeaturesetVersionBackfillContent + { + public FeaturesetVersionBackfillContent() { } + public string Description { get { throw null; } set { } } + public string DisplayName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.FeatureWindow FeatureWindow { get { throw null; } set { } } + public string ResourceInstanceType { get { throw null; } set { } } + public System.Collections.Generic.IDictionary SparkConfiguration { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + public partial class FeaturesetVersionCollectionGetAllOptions + { + public FeaturesetVersionCollectionGetAllOptions() { } + public string CreatedBy { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public string VersionName { get { throw null; } set { } } + } + public partial class FeaturesetVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase + { + public FeaturesetVersionProperties() { } + public System.Collections.Generic.IList Entities { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MaterializationSettings MaterializationSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public string SpecificationPath { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + } + public partial class FeaturestoreEntityContainerCollectionGetAllOptions + { + public FeaturestoreEntityContainerCollectionGetAllOptions() { } + public string CreatedBy { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + } + public partial class FeaturestoreEntityContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer + { + public FeaturestoreEntityContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + } + public partial class FeaturestoreEntityVersionCollectionGetAllOptions + { + public FeaturestoreEntityVersionCollectionGetAllOptions() { } + public string CreatedBy { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public string VersionName { get { throw null; } set { } } + } + public partial class FeaturestoreEntityVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase + { + public FeaturestoreEntityVersionProperties() { } + public System.Collections.Generic.IList IndexColumns { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public string Stage { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FeaturestoreJobType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FeaturestoreJobType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType BackfillMaterialization { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType RecurrentMaterialization { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType left, Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType left, Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class FeatureStoreSettings + { + public FeatureStoreSettings() { } + public string OfflineStoreConnectionName { get { throw null; } set { } } + public string OnlineStoreConnectionName { get { throw null; } set { } } + public string SparkRuntimeVersion { get { throw null; } set { } } + } + public partial class FeatureSubset : Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureFilterBase + { + public FeatureSubset(System.Collections.Generic.IEnumerable features) { } + public System.Collections.Generic.IList Features { get { throw null; } } + } + public partial class FeatureWindow + { + public FeatureWindow() { } + public System.DateTimeOffset? FeatureWindowEnd { get { throw null; } set { } } + public System.DateTimeOffset? FeatureWindowStart { get { throw null; } set { } } + } + public partial class FileSystemSource : Azure.ResourceManager.MachineLearning.Models.DataImportSource + { + public FileSystemSource() { } + public string Path { get { throw null; } set { } } + } + public partial class FixedInputData : Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase + { + public FixedInputData(Azure.ResourceManager.MachineLearning.Models.JobInputType jobInputType, System.Uri uri) : base (default(Azure.ResourceManager.MachineLearning.Models.JobInputType), default(System.Uri)) { } + } + public abstract partial class ForecastHorizon + { + protected ForecastHorizon() { } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ForecastingModel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ForecastingModel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel Arimax { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel AutoArima { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel Average { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel DecisionTree { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel ElasticNet { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel ExponentialSmoothing { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel ExtremeRandomTrees { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel GradientBoosting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel KNN { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel LassoLars { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel LightGBM { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel Naive { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel Prophet { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel RandomForest { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel SeasonalAverage { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel SeasonalNaive { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel SGD { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel TCNForecaster { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel XGBoostRegressor { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ForecastingModel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ForecastingModel left, Azure.ResourceManager.MachineLearning.Models.ForecastingModel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ForecastingModel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ForecastingModel left, Azure.ResourceManager.MachineLearning.Models.ForecastingModel right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ForecastingPrimaryMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ForecastingPrimaryMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric NormalizedMeanAbsoluteError { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric NormalizedRootMeanSquaredError { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric R2Score { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric SpearmanCorrelation { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric right) { throw null; } + public override string ToString() { throw null; } + } + public abstract partial class ForecastingSeasonality + { + protected ForecastingSeasonality() { } + } + public partial class ForecastingSettings + { + public ForecastingSettings() { } + public string CountryOrRegionForHolidays { get { throw null; } set { } } + public int? CvStepSize { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag? FeatureLags { get { throw null; } set { } } + public System.Collections.Generic.IList FeaturesUnknownAtForecastTime { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ForecastHorizon ForecastHorizon { get { throw null; } set { } } + public string Frequency { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ForecastingSeasonality Seasonality { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration? ShortSeriesHandlingConfig { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TargetAggregationFunction? TargetAggregateFunction { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TargetLags TargetLags { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TargetRollingWindowSize TargetRollingWindowSize { get { throw null; } set { } } + public string TimeColumnName { get { throw null; } set { } } + public System.Collections.Generic.IList TimeSeriesIdColumnNames { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl? UseStl { get { throw null; } set { } } + } + public partial class ForecastingTrainingSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningTrainingSettings + { + public ForecastingTrainingSettings() { } + public System.Collections.Generic.IList AllowedTrainingAlgorithms { get { throw null; } set { } } + public System.Collections.Generic.IList BlockedTrainingAlgorithms { get { throw null; } set { } } + } + public partial class FqdnEndpointsPropertyBag + { + internal FqdnEndpointsPropertyBag() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints Properties { get { throw null; } } + } + public partial class FqdnOutboundRule : Azure.ResourceManager.MachineLearning.Models.OutboundRule + { + public FqdnOutboundRule() { } + public string Destination { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GenerationSafetyQualityMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GenerationSafetyQualityMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AcceptableCoherenceScorePerInstance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AcceptableFluencyScorePerInstance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AcceptableGroundednessScorePerInstance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AcceptableRelevanceScorePerInstance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AcceptableSimilarityScorePerInstance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AggregatedCoherencePassRate { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AggregatedFluencyPassRate { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AggregatedGroundednessPassRate { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AggregatedRelevancePassRate { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric AggregatedSimilarityPassRate { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric left, Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric left, Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class GenerationSafetyQualityMetricThreshold + { + public GenerationSafetyQualityMetricThreshold(Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.GenerationSafetyQualityMetric Metric { get { throw null; } set { } } + public double? ThresholdValue { get { throw null; } set { } } + } + public partial class GenerationSafetyQualityMonitoringSignal : Azure.ResourceManager.MachineLearning.Models.MonitoringSignalBase + { + public GenerationSafetyQualityMonitoringSignal(System.Collections.Generic.IEnumerable metricThresholds, double samplingRate) { } + public System.Collections.Generic.IList MetricThresholds { get { throw null; } } + public System.Collections.Generic.IList ProductionData { get { throw null; } set { } } + public double SamplingRate { get { throw null; } set { } } + public string WorkspaceConnectionId { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GenerationTokenStatisticsMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GenerationTokenStatisticsMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric TotalTokenCount { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric TotalTokenCountPerGroup { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric left, Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric left, Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class GenerationTokenStatisticsMetricThreshold + { + public GenerationTokenStatisticsMetricThreshold(Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.GenerationTokenStatisticsMetric Metric { get { throw null; } set { } } + public double? ThresholdValue { get { throw null; } set { } } + } + public partial class GenerationTokenStatisticsSignal : Azure.ResourceManager.MachineLearning.Models.MonitoringSignalBase + { + public GenerationTokenStatisticsSignal(System.Collections.Generic.IEnumerable metricThresholds, double samplingRate) { } + public System.Collections.Generic.IList MetricThresholds { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ProductionData { get { throw null; } set { } } + public double SamplingRate { get { throw null; } set { } } + } + public partial class GridSamplingAlgorithm : Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm + { + public GridSamplingAlgorithm() { } + } + public partial class HdfsDatastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties + { + public HdfsDatastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials, string nameNodeAddress) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } + public string HdfsServerCertificate { get { throw null; } set { } } + public string NameNodeAddress { get { throw null; } set { } } + public string Protocol { get { throw null; } set { } } + } + public partial class IdleShutdownSetting + { + public IdleShutdownSetting() { } + public string IdleTimeBeforeShutdown { get { throw null; } set { } } + } + public partial class Image + { + public Image() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.ImageType? ImageType { get { throw null; } set { } } + public string Reference { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ImageAnnotationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImageAnnotationType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType BoundingBox { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType Classification { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType InstanceSegmentation { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType left, Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType left, Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ImageClassification : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + { + public ImageClassification(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData, Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings limitSettings) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } + public Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings LimitSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageModelSettingsClassification ModelSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? PrimaryMetric { get { throw null; } set { } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageSweepSettings SweepSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } + public double? ValidationDataSize { get { throw null; } set { } } + } + public partial class ImageClassificationMultilabel : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + { + public ImageClassificationMultilabel(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData, Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings limitSettings) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } + public Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings LimitSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageModelSettingsClassification ModelSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric? PrimaryMetric { get { throw null; } set { } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageSweepSettings SweepSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } + public double? ValidationDataSize { get { throw null; } set { } } + } + public partial class ImageInstanceSegmentation : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + { + public ImageInstanceSegmentation(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData, Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings limitSettings) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } + public Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings LimitSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageModelSettingsObjectDetection ModelSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric? PrimaryMetric { get { throw null; } set { } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageSweepSettings SweepSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } + public double? ValidationDataSize { get { throw null; } set { } } + } + public partial class ImageLimitSettings + { + public ImageLimitSettings() { } + public int? MaxConcurrentTrials { get { throw null; } set { } } + public int? MaxTrials { get { throw null; } set { } } + public System.TimeSpan? Timeout { get { throw null; } set { } } + } + public partial class ImageMetadata + { + internal ImageMetadata() { } + public string CurrentImageVersion { get { throw null; } } + public bool? IsLatestOSImageVersion { get { throw null; } } + public string LatestImageVersion { get { throw null; } } + } + public partial class ImageModelDistributionSettings + { + public ImageModelDistributionSettings() { } + public string AmsGradient { get { throw null; } set { } } + public string Augmentations { get { throw null; } set { } } + public string Beta1 { get { throw null; } set { } } + public string Beta2 { get { throw null; } set { } } + public string Distributed { get { throw null; } set { } } + public string EarlyStopping { get { throw null; } set { } } + public string EarlyStoppingDelay { get { throw null; } set { } } + public string EarlyStoppingPatience { get { throw null; } set { } } + public string EnableOnnxNormalization { get { throw null; } set { } } + public string EvaluationFrequency { get { throw null; } set { } } + public string GradientAccumulationStep { get { throw null; } set { } } + public string LayersToFreeze { get { throw null; } set { } } + public string LearningRate { get { throw null; } set { } } + public string LearningRateScheduler { get { throw null; } set { } } + public string ModelName { get { throw null; } set { } } + public string Momentum { get { throw null; } set { } } + public string Nesterov { get { throw null; } set { } } + public string NumberOfEpochs { get { throw null; } set { } } + public string NumberOfWorkers { get { throw null; } set { } } + public string Optimizer { get { throw null; } set { } } + public string RandomSeed { get { throw null; } set { } } + public string StepLRGamma { get { throw null; } set { } } + public string StepLRStepSize { get { throw null; } set { } } + public string TrainingBatchSize { get { throw null; } set { } } + public string ValidationBatchSize { get { throw null; } set { } } + public string WarmupCosineLRCycles { get { throw null; } set { } } + public string WarmupCosineLRWarmupEpochs { get { throw null; } set { } } + public string WeightDecay { get { throw null; } set { } } + } + public partial class ImageModelDistributionSettingsClassification : Azure.ResourceManager.MachineLearning.Models.ImageModelDistributionSettings + { + public ImageModelDistributionSettingsClassification() { } + public string TrainingCropSize { get { throw null; } set { } } + public string ValidationCropSize { get { throw null; } set { } } + public string ValidationResizeSize { get { throw null; } set { } } + public string WeightedLoss { get { throw null; } set { } } } - public partial class AutoForecastHorizon : Azure.ResourceManager.MachineLearning.Models.ForecastHorizon + public partial class ImageModelDistributionSettingsObjectDetection : Azure.ResourceManager.MachineLearning.Models.ImageModelDistributionSettings { - public AutoForecastHorizon() { } + public ImageModelDistributionSettingsObjectDetection() { } + public string BoxDetectionsPerImage { get { throw null; } set { } } + public string BoxScoreThreshold { get { throw null; } set { } } + public string ImageSize { get { throw null; } set { } } + public string MaxSize { get { throw null; } set { } } + public string MinSize { get { throw null; } set { } } + public string ModelSize { get { throw null; } set { } } + public string MultiScale { get { throw null; } set { } } + public string NmsIouThreshold { get { throw null; } set { } } + public string TileGridSize { get { throw null; } set { } } + public string TileOverlapRatio { get { throw null; } set { } } + public string TilePredictionsNmsThreshold { get { throw null; } set { } } + public string ValidationIouThreshold { get { throw null; } set { } } + public string ValidationMetricType { get { throw null; } set { } } } - public partial class AutoMLJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties + public partial class ImageModelSettings { - public AutoMLJob(Azure.ResourceManager.MachineLearning.Models.AutoMLVertical taskDetails) { } - public string EnvironmentId { get { throw null; } set { } } - public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration Resources { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AutoMLVertical TaskDetails { get { throw null; } set { } } + public ImageModelSettings() { } + public string AdvancedSettings { get { throw null; } set { } } + public bool? AmsGradient { get { throw null; } set { } } + public string Augmentations { get { throw null; } set { } } + public float? Beta1 { get { throw null; } set { } } + public float? Beta2 { get { throw null; } set { } } + public int? CheckpointFrequency { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowModelJobInput CheckpointModel { get { throw null; } set { } } + public string CheckpointRunId { get { throw null; } set { } } + public bool? Distributed { get { throw null; } set { } } + public bool? EarlyStopping { get { throw null; } set { } } + public int? EarlyStoppingDelay { get { throw null; } set { } } + public int? EarlyStoppingPatience { get { throw null; } set { } } + public bool? EnableOnnxNormalization { get { throw null; } set { } } + public int? EvaluationFrequency { get { throw null; } set { } } + public int? GradientAccumulationStep { get { throw null; } set { } } + public int? LayersToFreeze { get { throw null; } set { } } + public float? LearningRate { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler? LearningRateScheduler { get { throw null; } set { } } + public string ModelName { get { throw null; } set { } } + public float? Momentum { get { throw null; } set { } } + public bool? Nesterov { get { throw null; } set { } } + public int? NumberOfEpochs { get { throw null; } set { } } + public int? NumberOfWorkers { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.StochasticOptimizer? Optimizer { get { throw null; } set { } } + public int? RandomSeed { get { throw null; } set { } } + public float? StepLRGamma { get { throw null; } set { } } + public int? StepLRStepSize { get { throw null; } set { } } + public int? TrainingBatchSize { get { throw null; } set { } } + public int? ValidationBatchSize { get { throw null; } set { } } + public float? WarmupCosineLRCycles { get { throw null; } set { } } + public int? WarmupCosineLRWarmupEpochs { get { throw null; } set { } } + public float? WeightDecay { get { throw null; } set { } } } - public abstract partial class AutoMLVertical + public partial class ImageModelSettingsClassification : Azure.ResourceManager.MachineLearning.Models.ImageModelSettings { - protected AutoMLVertical(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? LogVerbosity { get { throw null; } set { } } - public string TargetColumnName { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput TrainingData { get { throw null; } set { } } + public ImageModelSettingsClassification() { } + public int? TrainingCropSize { get { throw null; } set { } } + public int? ValidationCropSize { get { throw null; } set { } } + public int? ValidationResizeSize { get { throw null; } set { } } + public int? WeightedLoss { get { throw null; } set { } } } - public partial class AutoMLVerticalRegression : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + public partial class ImageModelSettingsObjectDetection : Azure.ResourceManager.MachineLearning.Models.ImageModelSettings { - public AutoMLVerticalRegression(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } - public System.Collections.Generic.IList CvSplitColumnNames { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TableVerticalFeaturizationSettings FeaturizationSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TableVerticalLimitSettings LimitSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.NCrossValidations NCrossValidations { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric? PrimaryMetric { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput TestData { get { throw null; } set { } } - public double? TestDataSize { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.RegressionTrainingSettings TrainingSettings { get { throw null; } set { } } + public ImageModelSettingsObjectDetection() { } + public int? BoxDetectionsPerImage { get { throw null; } set { } } + public float? BoxScoreThreshold { get { throw null; } set { } } + public int? ImageSize { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric? LogTrainingMetrics { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.LogValidationLoss? LogValidationLoss { get { throw null; } set { } } + public int? MaxSize { get { throw null; } set { } } + public int? MinSize { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize? ModelSize { get { throw null; } set { } } + public bool? MultiScale { get { throw null; } set { } } + public float? NmsIouThreshold { get { throw null; } set { } } + public string TileGridSize { get { throw null; } set { } } + public float? TileOverlapRatio { get { throw null; } set { } } + public float? TilePredictionsNmsThreshold { get { throw null; } set { } } + public float? ValidationIouThreshold { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ValidationMetricType? ValidationMetricType { get { throw null; } set { } } + } + public partial class ImageObjectDetection : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + { + public ImageObjectDetection(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData, Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings limitSettings) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } + public Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings LimitSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageModelSettingsObjectDetection ModelSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric? PrimaryMetric { get { throw null; } set { } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageSweepSettings SweepSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } public double? ValidationDataSize { get { throw null; } set { } } - public string WeightColumnName { get { throw null; } set { } } + } + public partial class ImageSweepSettings + { + public ImageSweepSettings(Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType samplingAlgorithm) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy EarlyTermination { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType SamplingAlgorithm { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AutoMLVerticalRegressionModel : System.IEquatable + public readonly partial struct ImageType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public AutoMLVerticalRegressionModel(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel DecisionTree { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel ElasticNet { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel ExtremeRandomTrees { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel GradientBoosting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel KNN { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel LassoLars { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel LightGBM { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel RandomForest { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel SGD { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel XGBoostRegressor { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel other) { throw null; } + public ImageType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ImageType Azureml { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ImageType Docker { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ImageType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel left, Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel left, Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionModel right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ImageType left, Azure.ResourceManager.MachineLearning.Models.ImageType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ImageType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ImageType left, Azure.ResourceManager.MachineLearning.Models.ImageType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ImportDataAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction + { + public ImportDataAction(Azure.ResourceManager.MachineLearning.Models.DataImport dataImportDefinition) { } + public Azure.ResourceManager.MachineLearning.Models.DataImport DataImportDefinition { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct IncrementalDataRefresh : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IncrementalDataRefresh(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh left, Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh left, Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh right) { throw null; } public override string ToString() { throw null; } } + public partial class IndexColumn + { + public IndexColumn() { } + public string ColumnName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.FeatureDataType? DataType { get { throw null; } set { } } + } + public abstract partial class InferencingServer + { + protected InferencingServer() { } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AutoMLVerticalRegressionPrimaryMetric : System.IEquatable + public readonly partial struct InstanceSegmentationPrimaryMetric : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public AutoMLVerticalRegressionPrimaryMetric(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric NormalizedMeanAbsoluteError { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric NormalizedRootMeanSquaredError { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric R2Score { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric SpearmanCorrelation { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric other) { throw null; } + public InstanceSegmentationPrimaryMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric MeanAveragePrecision { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.AutoMLVerticalRegressionPrimaryMetric right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric right) { throw null; } public override string ToString() { throw null; } } - public partial class AutoNCrossValidations : Azure.ResourceManager.MachineLearning.Models.NCrossValidations + public partial class IntellectualProperty { - public AutoNCrossValidations() { } + public IntellectualProperty(string publisher) { } + public Azure.ResourceManager.MachineLearning.Models.ProtectionLevel? ProtectionLevel { get { throw null; } set { } } + public string Publisher { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AutoRebuildSetting : System.IEquatable + public readonly partial struct IsolationMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public AutoRebuildSetting(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting OnBaseImageUpdate { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting other) { throw null; } + public IsolationMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.IsolationMode AllowInternetOutbound { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.IsolationMode AllowOnlyApprovedOutbound { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.IsolationMode Disabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.IsolationMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting left, Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting left, Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.IsolationMode left, Azure.ResourceManager.MachineLearning.Models.IsolationMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.IsolationMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.IsolationMode left, Azure.ResourceManager.MachineLearning.Models.IsolationMode right) { throw null; } public override string ToString() { throw null; } } - public partial class AutoSeasonality : Azure.ResourceManager.MachineLearning.Models.ForecastingSeasonality + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct JobInputType : System.IEquatable { - public AutoSeasonality() { } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JobInputType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.JobInputType CustomModel { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobInputType Literal { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobInputType MlflowModel { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobInputType Mltable { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobInputType TritonModel { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobInputType UriFile { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobInputType UriFolder { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.JobInputType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.JobInputType left, Azure.ResourceManager.MachineLearning.Models.JobInputType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.JobInputType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.JobInputType left, Azure.ResourceManager.MachineLearning.Models.JobInputType right) { throw null; } + public override string ToString() { throw null; } } - public partial class AutoTargetLags : Azure.ResourceManager.MachineLearning.Models.TargetLags + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct JobProvisioningState : System.IEquatable { - public AutoTargetLags() { } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JobProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.JobProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobProvisioningState InProgress { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.JobProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.JobProvisioningState left, Azure.ResourceManager.MachineLearning.Models.JobProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.JobProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.JobProvisioningState left, Azure.ResourceManager.MachineLearning.Models.JobProvisioningState right) { throw null; } + public override string ToString() { throw null; } } - public partial class AutoTargetRollingWindowSize : Azure.ResourceManager.MachineLearning.Models.TargetRollingWindowSize + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct JobTier : System.IEquatable { - public AutoTargetRollingWindowSize() { } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JobTier(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.JobTier Basic { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobTier Null { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobTier Premium { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobTier Spot { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobTier Standard { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.JobTier other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.JobTier left, Azure.ResourceManager.MachineLearning.Models.JobTier right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.JobTier (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.JobTier left, Azure.ResourceManager.MachineLearning.Models.JobTier right) { throw null; } + public override string ToString() { throw null; } } - public partial class BanditPolicy : Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy + public partial class KerberosKeytabCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials { - public BanditPolicy() { } - public float? SlackAmount { get { throw null; } set { } } - public float? SlackFactor { get { throw null; } set { } } + public KerberosKeytabCredentials(Azure.ResourceManager.MachineLearning.Models.KerberosKeytabSecrets secrets, string kerberosKdcAddress, string kerberosPrincipal, string kerberosRealm) { } + public string KerberosKdcAddress { get { throw null; } set { } } + public string KerberosPrincipal { get { throw null; } set { } } + public string KerberosRealm { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.KerberosKeytabSecrets Secrets { get { throw null; } set { } } } - public partial class BayesianSamplingAlgorithm : Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm + public partial class KerberosKeytabSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets { - public BayesianSamplingAlgorithm() { } + public KerberosKeytabSecrets() { } + public string KerberosKeytab { get { throw null; } set { } } + } + public partial class KerberosPasswordCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials + { + public KerberosPasswordCredentials(Azure.ResourceManager.MachineLearning.Models.KerberosPasswordSecrets secrets, string kerberosKdcAddress, string kerberosPrincipal, string kerberosRealm) { } + public string KerberosKdcAddress { get { throw null; } set { } } + public string KerberosPrincipal { get { throw null; } set { } } + public string KerberosRealm { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.KerberosPasswordSecrets Secrets { get { throw null; } set { } } + } + public partial class KerberosPasswordSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets + { + public KerberosPasswordSecrets() { } + public string KerberosPassword { get { throw null; } set { } } + } + public partial class KeyVaultProperties + { + public KeyVaultProperties(string keyIdentifier, string keyVaultArmId) { } + public string IdentityClientId { get { throw null; } set { } } + public string KeyIdentifier { get { throw null; } set { } } + public string KeyVaultArmId { get { throw null; } set { } } + } + public partial class LabelCategory + { + public LabelCategory() { } + public System.Collections.Generic.IDictionary Classes { get { throw null; } set { } } + public string DisplayName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MultiSelect? MultiSelect { get { throw null; } set { } } + } + public partial class LabelClass + { + public LabelClass() { } + public string DisplayName { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Subclasses { get { throw null; } set { } } + } + public partial class LabelingDataConfiguration + { + public LabelingDataConfiguration() { } + public string DataId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.IncrementalDataRefresh? IncrementalDataRefresh { get { throw null; } set { } } + } + public partial class LabelingJobImageProperties : Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties + { + public LabelingJobImageProperties() { } + public Azure.ResourceManager.MachineLearning.Models.ImageAnnotationType? AnnotationType { get { throw null; } set { } } + } + public abstract partial class LabelingJobMediaProperties + { + protected LabelingJobMediaProperties() { } + } + public partial class LabelingJobProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties + { + public LabelingJobProperties() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.LabelingDataConfiguration DataConfiguration { get { throw null; } set { } } + public System.Uri JobInstructionsUri { get { throw null; } set { } } + public System.Collections.Generic.IDictionary LabelCategories { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties LabelingJobMediaProperties { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration MlAssistConfiguration { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ProgressMetrics ProgressMetrics { get { throw null; } } + public System.Guid? ProjectId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.JobProvisioningState? ProvisioningState { get { throw null; } } + public System.Collections.Generic.IReadOnlyList StatusMessages { get { throw null; } } + } + public partial class LabelingJobTextProperties : Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties + { + public LabelingJobTextProperties() { } + public Azure.ResourceManager.MachineLearning.Models.TextAnnotationType? AnnotationType { get { throw null; } set { } } + } + public partial class LakeHouseArtifact : Azure.ResourceManager.MachineLearning.Models.OneLakeArtifact + { + public LakeHouseArtifact(string artifactName) : base (default(string)) { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct BlockedTransformer : System.IEquatable + public readonly partial struct LearningRateScheduler : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public BlockedTransformer(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer CatTargetEncoder { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer CountVectorizer { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer HashOneHotEncoder { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer LabelEncoder { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer NaiveBayes { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer OneHotEncoder { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer TextTargetEncoder { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer TfIdf { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer WoETargetEncoder { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.BlockedTransformer WordEmbedding { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.BlockedTransformer other) { throw null; } + public LearningRateScheduler(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler Step { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler WarmupCosine { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler left, Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler left, Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct LogTrainingMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LogTrainingMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric Disable { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric Enable { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.BlockedTransformer left, Azure.ResourceManager.MachineLearning.Models.BlockedTransformer right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.BlockedTransformer (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.BlockedTransformer left, Azure.ResourceManager.MachineLearning.Models.BlockedTransformer right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric left, Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric left, Azure.ResourceManager.MachineLearning.Models.LogTrainingMetric right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ClassificationModel : System.IEquatable + public readonly partial struct LogValidationLoss : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ClassificationModel(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel BernoulliNaiveBayes { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel DecisionTree { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel ExtremeRandomTrees { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel GradientBoosting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel KNN { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel LightGBM { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel LinearSVM { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel LogisticRegression { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel MultinomialNaiveBayes { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel RandomForest { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel SGD { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel SVM { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationModel XGBoostClassifier { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.ClassificationModel other) { throw null; } + public LogValidationLoss(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.LogValidationLoss Disable { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.LogValidationLoss Enable { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.LogValidationLoss other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ClassificationModel left, Azure.ResourceManager.MachineLearning.Models.ClassificationModel right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.ClassificationModel (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ClassificationModel left, Azure.ResourceManager.MachineLearning.Models.ClassificationModel right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.LogValidationLoss left, Azure.ResourceManager.MachineLearning.Models.LogValidationLoss right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.LogValidationLoss (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.LogValidationLoss left, Azure.ResourceManager.MachineLearning.Models.LogValidationLoss right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningAccountKeyDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials + { + public MachineLearningAccountKeyDatastoreCredentials(Azure.ResourceManager.MachineLearning.Models.MachineLearningAccountKeyDatastoreSecrets secrets) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningAccountKeyDatastoreSecrets Secrets { get { throw null; } set { } } + } + public partial class MachineLearningAccountKeyDatastoreSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets + { + public MachineLearningAccountKeyDatastoreSecrets() { } + public string Key { get { throw null; } set { } } + } + public partial class MachineLearningAksCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + { + public MachineLearningAksCompute() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeProperties Properties { get { throw null; } set { } } + } + public partial class MachineLearningAksComputeProperties + { + public MachineLearningAksComputeProperties() { } + public int? AgentCount { get { throw null; } set { } } + public string AgentVmSize { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningAksNetworkingConfiguration AksNetworkingConfiguration { get { throw null; } set { } } + public string ClusterFqdn { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose? ClusterPurpose { get { throw null; } set { } } + public string LoadBalancerSubnet { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType? LoadBalancerType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfiguration SslConfiguration { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList SystemServices { get { throw null; } } + } + public partial class MachineLearningAksComputeSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeSecrets + { + internal MachineLearningAksComputeSecrets() { } + public string AdminKubeConfig { get { throw null; } } + public string ImagePullSecretName { get { throw null; } } + public string UserKubeConfig { get { throw null; } } + } + public partial class MachineLearningAksNetworkingConfiguration + { + public MachineLearningAksNetworkingConfiguration() { } + public string DnsServiceIP { get { throw null; } set { } } + public string DockerBridgeCidr { get { throw null; } set { } } + public string ServiceCidr { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ClassificationMultilabelPrimaryMetric : System.IEquatable + public readonly partial struct MachineLearningAllocationState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ClassificationMultilabelPrimaryMetric(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric Accuracy { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric AUCWeighted { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric AveragePrecisionScoreWeighted { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric IOU { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric NormMacroRecall { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric PrecisionScoreWeighted { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric other) { throw null; } + public MachineLearningAllocationState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState Resizing { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState Steady { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ClassificationPrimaryMetric : System.IEquatable + public readonly partial struct MachineLearningApplicationSharingPolicy : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ClassificationPrimaryMetric(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric Accuracy { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric AUCWeighted { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric AveragePrecisionScoreWeighted { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric NormMacroRecall { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric PrecisionScoreWeighted { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric other) { throw null; } + public MachineLearningApplicationSharingPolicy(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy Personal { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy Shared { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy left, Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy left, Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy right) { throw null; } public override string ToString() { throw null; } } - public partial class ClassificationTask : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + public partial class MachineLearningAssetBase : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase { - public ClassificationTask(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } - public System.Collections.Generic.IList CvSplitColumnNames { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TableVerticalFeaturizationSettings FeaturizationSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TableVerticalLimitSettings LimitSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.NCrossValidations NCrossValidations { get { throw null; } set { } } - public string PositiveLabel { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? PrimaryMetric { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput TestData { get { throw null; } set { } } - public double? TestDataSize { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ClassificationTrainingSettings TrainingSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } - public double? ValidationDataSize { get { throw null; } set { } } - public string WeightColumnName { get { throw null; } set { } } + public MachineLearningAssetBase() { } + public Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting AutoDeleteSetting { get { throw null; } set { } } + public bool? IsAnonymous { get { throw null; } set { } } + public bool? IsArchived { get { throw null; } set { } } } - public partial class ClassificationTrainingSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningTrainingSettings + public partial class MachineLearningAssetContainer : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase { - public ClassificationTrainingSettings() { } - public System.Collections.Generic.IList AllowedTrainingAlgorithms { get { throw null; } set { } } - public System.Collections.Generic.IList BlockedTrainingAlgorithms { get { throw null; } set { } } + public MachineLearningAssetContainer() { } + public bool? IsArchived { get { throw null; } set { } } + public string LatestVersion { get { throw null; } } + public string NextVersion { get { throw null; } } } - public partial class ColumnTransformer + public abstract partial class MachineLearningAssetReferenceBase { - public ColumnTransformer() { } - public System.Collections.Generic.IList Fields { get { throw null; } set { } } - public System.BinaryData Parameters { get { throw null; } set { } } + protected MachineLearningAssetReferenceBase() { } } - public partial class CronTrigger : Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase + public partial class MachineLearningAutoPauseProperties { - public CronTrigger(string expression) { } - public string Expression { get { throw null; } set { } } + public MachineLearningAutoPauseProperties() { } + public int? DelayInMinutes { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } } - public partial class CustomForecastHorizon : Azure.ResourceManager.MachineLearning.Models.ForecastHorizon + public partial class MachineLearningAutoScaleProperties { - public CustomForecastHorizon(int value) { } - public int Value { get { throw null; } set { } } + public MachineLearningAutoScaleProperties() { } + public bool? IsEnabled { get { throw null; } set { } } + public int? MaxNodeCount { get { throw null; } set { } } + public int? MinNodeCount { get { throw null; } set { } } } - public partial class CustomNCrossValidations : Azure.ResourceManager.MachineLearning.Models.NCrossValidations + public partial class MachineLearningAzureBlobDatastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties { - public CustomNCrossValidations(int value) { } - public int Value { get { throw null; } set { } } + public MachineLearningAzureBlobDatastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } + public string AccountName { get { throw null; } set { } } + public string ContainerName { get { throw null; } set { } } + public string Endpoint { get { throw null; } set { } } + public string Protocol { get { throw null; } set { } } + public string ResourceGroup { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } + public string SubscriptionId { get { throw null; } set { } } } - public partial class CustomSeasonality : Azure.ResourceManager.MachineLearning.Models.ForecastingSeasonality + public partial class MachineLearningAzureDataLakeGen1Datastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties { - public CustomSeasonality(int value) { } - public int Value { get { throw null; } set { } } + public MachineLearningAzureDataLakeGen1Datastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials, string storeName) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } + public string ResourceGroup { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } + public string StoreName { get { throw null; } set { } } + public string SubscriptionId { get { throw null; } set { } } + } + public partial class MachineLearningAzureDataLakeGen2Datastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties + { + public MachineLearningAzureDataLakeGen2Datastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials, string accountName, string filesystem) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } + public string AccountName { get { throw null; } set { } } + public string Endpoint { get { throw null; } set { } } + public string Filesystem { get { throw null; } set { } } + public string Protocol { get { throw null; } set { } } + public string ResourceGroup { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } + public string SubscriptionId { get { throw null; } set { } } + } + public partial class MachineLearningAzureFileDatastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties + { + public MachineLearningAzureFileDatastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials, string accountName, string fileShareName) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } + public string AccountName { get { throw null; } set { } } + public string Endpoint { get { throw null; } set { } } + public string FileShareName { get { throw null; } set { } } + public string Protocol { get { throw null; } set { } } + public string ResourceGroup { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } + public string SubscriptionId { get { throw null; } set { } } + } + public partial class MachineLearningBatchDeploymentPatch + { + public MachineLearningBatchDeploymentPatch() { } + public string PartialBatchDeploymentDescription { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + public partial class MachineLearningBatchDeploymentProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointDeploymentProperties + { + public MachineLearningBatchDeploymentProperties() { } + public string Compute { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.BatchDeploymentConfiguration DeploymentConfiguration { get { throw null; } set { } } + public int? ErrorThreshold { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel? LoggingLevel { get { throw null; } set { } } + public int? MaxConcurrencyPerInstance { get { throw null; } set { } } + public long? MiniBatchSize { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase Model { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction? OutputAction { get { throw null; } set { } } + public string OutputFileName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentResourceConfiguration Resources { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchRetrySettings RetrySettings { get { throw null; } set { } } + } + public partial class MachineLearningBatchEndpointProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProperties + { + public MachineLearningBatchEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode)) { } + public string DefaultsDeploymentName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? ProvisioningState { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningBatchLoggingLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningBatchLoggingLevel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel Debug { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel Info { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningBatchOutputAction : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningBatchOutputAction(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction AppendRow { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction SummaryOnly { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction right) { throw null; } + public override string ToString() { throw null; } } - public partial class CustomTargetLags : Azure.ResourceManager.MachineLearning.Models.TargetLags + public partial class MachineLearningBatchRetrySettings { - public CustomTargetLags(System.Collections.Generic.IEnumerable values) { } - public System.Collections.Generic.IList Values { get { throw null; } } + public MachineLearningBatchRetrySettings() { } + public int? MaxRetries { get { throw null; } set { } } + public System.TimeSpan? Timeout { get { throw null; } set { } } } - public partial class CustomTargetRollingWindowSize : Azure.ResourceManager.MachineLearning.Models.TargetRollingWindowSize + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningBillingCurrency : System.IEquatable { - public CustomTargetRollingWindowSize(int value) { } - public int Value { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningBillingCurrency(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency Usd { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency right) { throw null; } + public override string ToString() { throw null; } } - public abstract partial class ForecastHorizon + public partial class MachineLearningBuildContext { - protected ForecastHorizon() { } + public MachineLearningBuildContext(System.Uri contextUri) { } + public System.Uri ContextUri { get { throw null; } set { } } + public string DockerfilePath { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ForecastingModel : System.IEquatable + public readonly partial struct MachineLearningCachingType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ForecastingModel(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel Arimax { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel AutoArima { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel Average { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel DecisionTree { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel ElasticNet { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel ExponentialSmoothing { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel ExtremeRandomTrees { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel GradientBoosting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel KNN { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel LassoLars { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel LightGBM { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel Naive { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel Prophet { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel RandomForest { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel SeasonalAverage { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel SeasonalNaive { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel SGD { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel TCNForecaster { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingModel XGBoostRegressor { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.ForecastingModel other) { throw null; } + public MachineLearningCachingType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType ReadOnly { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType ReadWrite { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ForecastingModel left, Azure.ResourceManager.MachineLearning.Models.ForecastingModel right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.ForecastingModel (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ForecastingModel left, Azure.ResourceManager.MachineLearning.Models.ForecastingModel right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningCertificateDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials + { + public MachineLearningCertificateDatastoreCredentials(System.Guid clientId, Azure.ResourceManager.MachineLearning.Models.MachineLearningCertificateDatastoreSecrets secrets, System.Guid tenantId, string thumbprint) { } + public System.Uri AuthorityUri { get { throw null; } set { } } + public System.Guid ClientId { get { throw null; } set { } } + public System.Uri ResourceUri { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningCertificateDatastoreSecrets Secrets { get { throw null; } set { } } + public System.Guid TenantId { get { throw null; } set { } } + public string Thumbprint { get { throw null; } set { } } + } + public partial class MachineLearningCertificateDatastoreSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets + { + public MachineLearningCertificateDatastoreSecrets() { } + public string Certificate { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ForecastingPrimaryMetric : System.IEquatable + public readonly partial struct MachineLearningClusterPurpose : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ForecastingPrimaryMetric(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric NormalizedMeanAbsoluteError { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric NormalizedRootMeanSquaredError { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric R2Score { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric SpearmanCorrelation { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric other) { throw null; } + public MachineLearningClusterPurpose(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose DenseProd { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose DevTest { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose FastProd { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose left, Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose left, Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class ForecastingSeasonality + public partial class MachineLearningCodeConfiguration { - protected ForecastingSeasonality() { } + public MachineLearningCodeConfiguration(string scoringScript) { } + public Azure.Core.ResourceIdentifier CodeId { get { throw null; } set { } } + public string ScoringScript { get { throw null; } set { } } } - public partial class ForecastingSettings + public partial class MachineLearningCodeContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { - public ForecastingSettings() { } - public string CountryOrRegionForHolidays { get { throw null; } set { } } - public int? CvStepSize { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag? FeatureLags { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ForecastHorizon ForecastHorizon { get { throw null; } set { } } - public string Frequency { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ForecastingSeasonality Seasonality { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration? ShortSeriesHandlingConfig { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TargetAggregationFunction? TargetAggregateFunction { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TargetLags TargetLags { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TargetRollingWindowSize TargetRollingWindowSize { get { throw null; } set { } } - public string TimeColumnName { get { throw null; } set { } } - public System.Collections.Generic.IList TimeSeriesIdColumnNames { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl? UseStl { get { throw null; } set { } } + public MachineLearningCodeContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } } - public partial class ForecastingTrainingSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningTrainingSettings + public partial class MachineLearningCodeVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { - public ForecastingTrainingSettings() { } - public System.Collections.Generic.IList AllowedTrainingAlgorithms { get { throw null; } set { } } - public System.Collections.Generic.IList BlockedTrainingAlgorithms { get { throw null; } set { } } + public MachineLearningCodeVersionProperties() { } + public System.Uri CodeUri { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } } - public partial class GridSamplingAlgorithm : Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm + public partial class MachineLearningCommandJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties { - public GridSamplingAlgorithm() { } + public MachineLearningCommandJob(string command, Azure.Core.ResourceIdentifier environmentId) { } + public Azure.Core.ResourceIdentifier CodeId { get { throw null; } set { } } + public string Command { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration Distribution { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier EnvironmentId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits Limits { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState? MlflowAutologger { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } + public System.BinaryData Parameters { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.QueueSettings QueueSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration Resources { get { throw null; } set { } } } - public partial class ImageClassification : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + public partial class MachineLearningCommandJobLimits : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobLimits { - public ImageClassification(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData, Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings limitSettings) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } - public Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings LimitSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ImageModelSettingsClassification ModelSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? PrimaryMetric { get { throw null; } set { } } - public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ImageSweepSettings SweepSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } - public double? ValidationDataSize { get { throw null; } set { } } + public MachineLearningCommandJobLimits() { } } - public partial class ImageClassificationMultilabel : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + public partial class MachineLearningComponentContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { - public ImageClassificationMultilabel(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData, Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings limitSettings) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } - public Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings LimitSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ImageModelSettingsClassification ModelSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric? PrimaryMetric { get { throw null; } set { } } - public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ImageSweepSettings SweepSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } - public double? ValidationDataSize { get { throw null; } set { } } + public MachineLearningComponentContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } } - public partial class ImageInstanceSegmentation : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + public partial class MachineLearningComponentVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { - public ImageInstanceSegmentation(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData, Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings limitSettings) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } - public Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings LimitSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ImageModelSettingsObjectDetection ModelSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric? PrimaryMetric { get { throw null; } set { } } - public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ImageSweepSettings SweepSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } - public double? ValidationDataSize { get { throw null; } set { } } + public MachineLearningComponentVersionProperties() { } + public System.BinaryData ComponentSpec { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public string Stage { get { throw null; } set { } } } - public partial class ImageLimitSettings + public partial class MachineLearningComputeInstance : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { - public ImageLimitSettings() { } - public int? MaxConcurrentTrials { get { throw null; } set { } } - public int? MaxTrials { get { throw null; } set { } } - public System.TimeSpan? Timeout { get { throw null; } set { } } + public MachineLearningComputeInstance() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceProperties Properties { get { throw null; } set { } } } - public partial class ImageModelDistributionSettings + public partial class MachineLearningComputeInstanceApplication { - public ImageModelDistributionSettings() { } - public string AmsGradient { get { throw null; } set { } } - public string Augmentations { get { throw null; } set { } } - public string Beta1 { get { throw null; } set { } } - public string Beta2 { get { throw null; } set { } } - public string Distributed { get { throw null; } set { } } - public string EarlyStopping { get { throw null; } set { } } - public string EarlyStoppingDelay { get { throw null; } set { } } - public string EarlyStoppingPatience { get { throw null; } set { } } - public string EnableOnnxNormalization { get { throw null; } set { } } - public string EvaluationFrequency { get { throw null; } set { } } - public string GradientAccumulationStep { get { throw null; } set { } } - public string LayersToFreeze { get { throw null; } set { } } - public string LearningRate { get { throw null; } set { } } - public string LearningRateScheduler { get { throw null; } set { } } - public string ModelName { get { throw null; } set { } } - public string Momentum { get { throw null; } set { } } - public string Nesterov { get { throw null; } set { } } - public string NumberOfEpochs { get { throw null; } set { } } - public string NumberOfWorkers { get { throw null; } set { } } - public string Optimizer { get { throw null; } set { } } - public string RandomSeed { get { throw null; } set { } } - public string StepLRGamma { get { throw null; } set { } } - public string StepLRStepSize { get { throw null; } set { } } - public string TrainingBatchSize { get { throw null; } set { } } - public string ValidationBatchSize { get { throw null; } set { } } - public string WarmupCosineLRCycles { get { throw null; } set { } } - public string WarmupCosineLRWarmupEpochs { get { throw null; } set { } } - public string WeightDecay { get { throw null; } set { } } + internal MachineLearningComputeInstanceApplication() { } + public string DisplayName { get { throw null; } } + public System.Uri EndpointUri { get { throw null; } } + } + public partial class MachineLearningComputeInstanceAssignedUser + { + public MachineLearningComputeInstanceAssignedUser(string objectId, System.Guid tenantId) { } + public string ObjectId { get { throw null; } set { } } + public System.Guid TenantId { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningComputeInstanceAuthorizationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningComputeInstanceAuthorizationType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType Personal { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningComputeInstanceAutosave : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningComputeInstanceAutosave(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave Local { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave Remote { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave right) { throw null; } + public override string ToString() { throw null; } } - public partial class ImageModelDistributionSettingsClassification : Azure.ResourceManager.MachineLearning.Models.ImageModelDistributionSettings + public partial class MachineLearningComputeInstanceConnectivityEndpoints { - public ImageModelDistributionSettingsClassification() { } - public string TrainingCropSize { get { throw null; } set { } } - public string ValidationCropSize { get { throw null; } set { } } - public string ValidationResizeSize { get { throw null; } set { } } - public string WeightedLoss { get { throw null; } set { } } + internal MachineLearningComputeInstanceConnectivityEndpoints() { } + public string PrivateIPAddress { get { throw null; } } + public string PublicIPAddress { get { throw null; } } } - public partial class ImageModelDistributionSettingsObjectDetection : Azure.ResourceManager.MachineLearning.Models.ImageModelDistributionSettings + public partial class MachineLearningComputeInstanceContainer { - public ImageModelDistributionSettingsObjectDetection() { } - public string BoxDetectionsPerImage { get { throw null; } set { } } - public string BoxScoreThreshold { get { throw null; } set { } } - public string ImageSize { get { throw null; } set { } } - public string MaxSize { get { throw null; } set { } } - public string MinSize { get { throw null; } set { } } - public string ModelSize { get { throw null; } set { } } - public string MultiScale { get { throw null; } set { } } - public string NmsIouThreshold { get { throw null; } set { } } - public string TileGridSize { get { throw null; } set { } } - public string TileOverlapRatio { get { throw null; } set { } } - public string TilePredictionsNmsThreshold { get { throw null; } set { } } - public string ValidationIouThreshold { get { throw null; } set { } } - public string ValidationMetricType { get { throw null; } set { } } + internal MachineLearningComputeInstanceContainer() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave? Autosave { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceEnvironmentInfo Environment { get { throw null; } } + public string Gpu { get { throw null; } } + public string Name { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork? Network { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Services { get { throw null; } } } - public partial class ImageModelSettings + public partial class MachineLearningComputeInstanceCreatedBy { - public ImageModelSettings() { } - public string AdvancedSettings { get { throw null; } set { } } - public bool? AmsGradient { get { throw null; } set { } } - public string Augmentations { get { throw null; } set { } } - public float? Beta1 { get { throw null; } set { } } - public float? Beta2 { get { throw null; } set { } } - public int? CheckpointFrequency { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowModelJobInput CheckpointModel { get { throw null; } set { } } - public string CheckpointRunId { get { throw null; } set { } } - public bool? Distributed { get { throw null; } set { } } - public bool? EarlyStopping { get { throw null; } set { } } - public int? EarlyStoppingDelay { get { throw null; } set { } } - public int? EarlyStoppingPatience { get { throw null; } set { } } - public bool? EnableOnnxNormalization { get { throw null; } set { } } - public int? EvaluationFrequency { get { throw null; } set { } } - public int? GradientAccumulationStep { get { throw null; } set { } } - public int? LayersToFreeze { get { throw null; } set { } } - public float? LearningRate { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler? LearningRateScheduler { get { throw null; } set { } } - public string ModelName { get { throw null; } set { } } - public float? Momentum { get { throw null; } set { } } - public bool? Nesterov { get { throw null; } set { } } - public int? NumberOfEpochs { get { throw null; } set { } } - public int? NumberOfWorkers { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.StochasticOptimizer? Optimizer { get { throw null; } set { } } - public int? RandomSeed { get { throw null; } set { } } - public float? StepLRGamma { get { throw null; } set { } } - public int? StepLRStepSize { get { throw null; } set { } } - public int? TrainingBatchSize { get { throw null; } set { } } - public int? ValidationBatchSize { get { throw null; } set { } } - public float? WarmupCosineLRCycles { get { throw null; } set { } } - public int? WarmupCosineLRWarmupEpochs { get { throw null; } set { } } - public float? WeightDecay { get { throw null; } set { } } + internal MachineLearningComputeInstanceCreatedBy() { } + public string UserId { get { throw null; } } + public string UserName { get { throw null; } } + public string UserOrgId { get { throw null; } } } - public partial class ImageModelSettingsClassification : Azure.ResourceManager.MachineLearning.Models.ImageModelSettings + public partial class MachineLearningComputeInstanceDataDisk { - public ImageModelSettingsClassification() { } - public int? TrainingCropSize { get { throw null; } set { } } - public int? ValidationCropSize { get { throw null; } set { } } - public int? ValidationResizeSize { get { throw null; } set { } } - public int? WeightedLoss { get { throw null; } set { } } + internal MachineLearningComputeInstanceDataDisk() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType? Caching { get { throw null; } } + public int? DiskSizeGB { get { throw null; } } + public int? Lun { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType? StorageAccountType { get { throw null; } } } - public partial class ImageModelSettingsObjectDetection : Azure.ResourceManager.MachineLearning.Models.ImageModelSettings + public partial class MachineLearningComputeInstanceDataMount { - public ImageModelSettingsObjectDetection() { } - public int? BoxDetectionsPerImage { get { throw null; } set { } } - public float? BoxScoreThreshold { get { throw null; } set { } } - public int? ImageSize { get { throw null; } set { } } - public int? MaxSize { get { throw null; } set { } } - public int? MinSize { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize? ModelSize { get { throw null; } set { } } - public bool? MultiScale { get { throw null; } set { } } - public float? NmsIouThreshold { get { throw null; } set { } } - public string TileGridSize { get { throw null; } set { } } - public float? TileOverlapRatio { get { throw null; } set { } } - public float? TilePredictionsNmsThreshold { get { throw null; } set { } } - public float? ValidationIouThreshold { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ValidationMetricType? ValidationMetricType { get { throw null; } set { } } + internal MachineLearningComputeInstanceDataMount() { } + public string CreatedBy { get { throw null; } } + public string Error { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction? MountAction { get { throw null; } } + public System.DateTimeOffset? MountedOn { get { throw null; } } + public string MountName { get { throw null; } } + public string MountPath { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState? MountState { get { throw null; } } + public string Source { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType? SourceType { get { throw null; } } } - public partial class ImageObjectDetection : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + public partial class MachineLearningComputeInstanceEnvironmentInfo { - public ImageObjectDetection(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData, Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings limitSettings) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } - public Azure.ResourceManager.MachineLearning.Models.ImageLimitSettings LimitSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ImageModelSettingsObjectDetection ModelSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric? PrimaryMetric { get { throw null; } set { } } - public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ImageSweepSettings SweepSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } - public double? ValidationDataSize { get { throw null; } set { } } + internal MachineLearningComputeInstanceEnvironmentInfo() { } + public string Name { get { throw null; } } + public string Version { get { throw null; } } } - public partial class ImageSweepSettings + public partial class MachineLearningComputeInstanceLastOperation { - public ImageSweepSettings(Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType samplingAlgorithm) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy EarlyTermination { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType SamplingAlgorithm { get { throw null; } set { } } + internal MachineLearningComputeInstanceLastOperation() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName? OperationName { get { throw null; } } + public System.DateTimeOffset? OperationOn { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus? OperationStatus { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger? OperationTrigger { get { throw null; } } + } + public partial class MachineLearningComputeInstanceProperties + { + public MachineLearningComputeInstanceProperties() { } + public System.Collections.Generic.IReadOnlyList Applications { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy? ApplicationSharingPolicy { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType? ComputeInstanceAuthorizationType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceConnectivityEndpoints ConnectivityEndpoints { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Containers { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceCreatedBy CreatedBy { get { throw null; } } + public System.Collections.Generic.IList CustomServices { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList DataDisks { get { throw null; } } + public System.Collections.Generic.IReadOnlyList DataMounts { get { throw null; } } + public bool? EnableNodePublicIP { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } + public string IdleTimeBeforeShutdown { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation LastOperation { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MlflowAutologger? MlflowAutologger { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageMetadata OSImageMetadata { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAssignedUser PersonalComputeInstanceAssignedUser { get { throw null; } set { } } + public System.Collections.Generic.IList SchedulesComputeStartStop { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptsToExecute Scripts { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings SshSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState? State { get { throw null; } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } + public string VersionsRuntime { get { throw null; } } + public string VmSize { get { throw null; } set { } } + } + public partial class MachineLearningComputeInstanceSshSettings + { + public MachineLearningComputeInstanceSshSettings() { } + public string AdminPublicKey { get { throw null; } set { } } + public string AdminUserName { get { throw null; } } + public int? SshPort { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess? SshPublicAccess { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct InstanceSegmentationPrimaryMetric : System.IEquatable + public readonly partial struct MachineLearningComputeInstanceState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public InstanceSegmentationPrimaryMetric(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric MeanAveragePrecision { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric other) { throw null; } + public MachineLearningComputeInstanceState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState CreateFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Creating { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Deleting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState JobRunning { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Restarting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Running { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState SettingUp { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState SetupFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Starting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Stopped { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Stopping { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Unknown { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Unusable { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState UserSettingUp { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState UserSetupFailed { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.InstanceSegmentationPrimaryMetric right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningComputePatch + { + public MachineLearningComputePatch() { } + public Azure.ResourceManager.MachineLearning.Models.AmlComputeScaleSettings ScaleSettings { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct LearningRateScheduler : System.IEquatable + public readonly partial struct MachineLearningComputePowerAction : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public LearningRateScheduler(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler None { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler Step { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler WarmupCosine { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler other) { throw null; } + public MachineLearningComputePowerAction(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction Start { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction Stop { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler left, Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler left, Azure.ResourceManager.MachineLearning.Models.LearningRateScheduler right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningAccountKeyDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials - { - public MachineLearningAccountKeyDatastoreCredentials(Azure.ResourceManager.MachineLearning.Models.MachineLearningAccountKeyDatastoreSecrets secrets) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningAccountKeyDatastoreSecrets Secrets { get { throw null; } set { } } - } - public partial class MachineLearningAccountKeyDatastoreSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets + public abstract partial class MachineLearningComputeProperties { - public MachineLearningAccountKeyDatastoreSecrets() { } - public string Key { get { throw null; } set { } } + protected MachineLearningComputeProperties() { } + public string ComputeLocation { get { throw null; } set { } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public string Description { get { throw null; } set { } } + public bool? DisableLocalAuth { get { throw null; } set { } } + public bool? IsAttachedCompute { get { throw null; } } + public System.DateTimeOffset? ModifiedOn { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ProvisioningErrors { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? ProvisioningState { get { throw null; } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } } - public partial class MachineLearningAksCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningComputeProvisioningStatus : System.IEquatable { - public MachineLearningAksCompute() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeProperties Properties { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningComputeProvisioningStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus Completed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus Provisioning { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningAksComputeProperties + public abstract partial class MachineLearningComputeSecrets { - public MachineLearningAksComputeProperties() { } - public int? AgentCount { get { throw null; } set { } } - public string AgentVmSize { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningAksNetworkingConfiguration AksNetworkingConfiguration { get { throw null; } set { } } - public string ClusterFqdn { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose? ClusterPurpose { get { throw null; } set { } } - public string LoadBalancerSubnet { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType? LoadBalancerType { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfiguration SslConfiguration { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList SystemServices { get { throw null; } } + protected MachineLearningComputeSecrets() { } } - public partial class MachineLearningAksComputeSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeSecrets + public partial class MachineLearningComputeStartStopSchedule { - internal MachineLearningAksComputeSecrets() { } - public string AdminKubeConfig { get { throw null; } } - public string ImagePullSecretName { get { throw null; } } - public string UserKubeConfig { get { throw null; } } + public MachineLearningComputeStartStopSchedule() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction? Action { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.Cron Cron { get { throw null; } set { } } + public string Id { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus? ProvisioningStatus { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.Recurrence Recurrence { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleBase Schedule { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? Status { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType? TriggerType { get { throw null; } set { } } } - public partial class MachineLearningAksNetworkingConfiguration + public partial class MachineLearningComputeSystemService { - public MachineLearningAksNetworkingConfiguration() { } - public string DnsServiceIP { get { throw null; } set { } } - public string DockerBridgeCidr { get { throw null; } set { } } - public string ServiceCidr { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } + internal MachineLearningComputeSystemService() { } + public string PublicIPAddress { get { throw null; } } + public string SystemServiceType { get { throw null; } } + public string Version { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningAllocationState : System.IEquatable + public readonly partial struct MachineLearningConnectionCategory : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningAllocationState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState Resizing { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState Steady { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState other) { throw null; } + public MachineLearningConnectionCategory(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AdlsGen2 { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory ApiKey { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureMySqlDb { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureOpenAI { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzurePostgresDb { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureSqlDb { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureSynapseAnalytics { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory CognitiveSearch { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory CognitiveService { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory ContainerRegistry { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory CustomKeys { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory Git { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory PythonFeed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory Redis { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory S3 { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory Snowflake { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory left, Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory left, Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningContainerRegistryCredentials + { + internal MachineLearningContainerRegistryCredentials() { } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Passwords { get { throw null; } } + public string Username { get { throw null; } } + } + public partial class MachineLearningContainerResourceRequirements + { + public MachineLearningContainerResourceRequirements() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceSettings ContainerResourceLimits { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceSettings ContainerResourceRequests { get { throw null; } set { } } + } + public partial class MachineLearningContainerResourceSettings + { + public MachineLearningContainerResourceSettings() { } + public string Cpu { get { throw null; } set { } } + public string Gpu { get { throw null; } set { } } + public string Memory { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningApplicationSharingPolicy : System.IEquatable + public readonly partial struct MachineLearningContainerType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningApplicationSharingPolicy(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy Personal { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy Shared { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy other) { throw null; } + public MachineLearningContainerType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType InferenceServer { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType ModelDataCollector { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType StorageInitializer { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy left, Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy left, Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningAssetBase : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + public partial class MachineLearningCustomModelJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput { - public MachineLearningAssetBase() { } - public bool? IsAnonymous { get { throw null; } set { } } - public bool? IsArchived { get { throw null; } set { } } + public MachineLearningCustomModelJobInput(System.Uri uri) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } } - public partial class MachineLearningAssetContainer : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + public partial class MachineLearningCustomModelJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput { - public MachineLearningAssetContainer() { } - public bool? IsArchived { get { throw null; } set { } } - public string LatestVersion { get { throw null; } } - public string NextVersion { get { throw null; } } + public MachineLearningCustomModelJobOutput() { } + public string AssetName { get { throw null; } set { } } + public string AssetVersion { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting AutoDeleteSetting { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } } - public abstract partial class MachineLearningAssetReferenceBase + public partial class MachineLearningDatabricksCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { - protected MachineLearningAssetReferenceBase() { } + public MachineLearningDatabricksCompute() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDatabricksProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningAutoPauseProperties + public partial class MachineLearningDatabricksComputeSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeSecrets { - public MachineLearningAutoPauseProperties() { } - public int? DelayInMinutes { get { throw null; } set { } } - public bool? IsEnabled { get { throw null; } set { } } + internal MachineLearningDatabricksComputeSecrets() { } + public string DatabricksAccessToken { get { throw null; } } } - public partial class MachineLearningAutoScaleProperties + public partial class MachineLearningDatabricksProperties { - public MachineLearningAutoScaleProperties() { } - public bool? IsEnabled { get { throw null; } set { } } - public int? MaxNodeCount { get { throw null; } set { } } - public int? MinNodeCount { get { throw null; } set { } } + public MachineLearningDatabricksProperties() { } + public string DatabricksAccessToken { get { throw null; } set { } } + public System.Uri WorkspaceUri { get { throw null; } set { } } } - public partial class MachineLearningAzureBlobDatastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties + public partial class MachineLearningDataContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { - public MachineLearningAzureBlobDatastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } - public string AccountName { get { throw null; } set { } } - public string ContainerName { get { throw null; } set { } } - public string Endpoint { get { throw null; } set { } } - public string Protocol { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } + public MachineLearningDataContainerProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType dataType) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType DataType { get { throw null; } set { } } } - public partial class MachineLearningAzureDataLakeGen1Datastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties + public partial class MachineLearningDataFactoryCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { - public MachineLearningAzureDataLakeGen1Datastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials, string storeName) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } - public string StoreName { get { throw null; } set { } } + public MachineLearningDataFactoryCompute() { } } - public partial class MachineLearningAzureDataLakeGen2Datastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties + public partial class MachineLearningDataLakeAnalytics : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { - public MachineLearningAzureDataLakeGen2Datastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials, string accountName, string filesystem) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } - public string AccountName { get { throw null; } set { } } - public string Endpoint { get { throw null; } set { } } - public string Filesystem { get { throw null; } set { } } - public string Protocol { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } + public MachineLearningDataLakeAnalytics() { } + public string DataLakeStoreAccountName { get { throw null; } set { } } } - public partial class MachineLearningAzureFileDatastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties + public partial class MachineLearningDataPathAssetReference : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase { - public MachineLearningAzureFileDatastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials, string accountName, string fileShareName) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } - public string AccountName { get { throw null; } set { } } - public string Endpoint { get { throw null; } set { } } - public string FileShareName { get { throw null; } set { } } - public string Protocol { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } + public MachineLearningDataPathAssetReference() { } + public string DatastoreId { get { throw null; } set { } } + public string Path { get { throw null; } set { } } } - public partial class MachineLearningBatchDeploymentPatch + public partial class MachineLearningDatastoreCollectionGetAllOptions { - public MachineLearningBatchDeploymentPatch() { } - public string PartialBatchDeploymentDescription { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public MachineLearningDatastoreCollectionGetAllOptions() { } + public int? Count { get { throw null; } set { } } + public bool? IsDefault { get { throw null; } set { } } + public System.Collections.Generic.IList Names { get { throw null; } } + public string OrderBy { get { throw null; } set { } } + public bool? OrderByAsc { get { throw null; } set { } } + public string SearchText { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } } - public partial class MachineLearningBatchDeploymentProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointDeploymentProperties + public abstract partial class MachineLearningDatastoreCredentials { - public MachineLearningBatchDeploymentProperties() { } - public string Compute { get { throw null; } set { } } - public int? ErrorThreshold { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel? LoggingLevel { get { throw null; } set { } } - public int? MaxConcurrencyPerInstance { get { throw null; } set { } } - public long? MiniBatchSize { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase Model { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction? OutputAction { get { throw null; } set { } } - public string OutputFileName { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentResourceConfiguration Resources { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchRetrySettings RetrySettings { get { throw null; } set { } } + protected MachineLearningDatastoreCredentials() { } + } + public partial class MachineLearningDatastoreProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + { + public MachineLearningDatastoreProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials Credentials { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.IntellectualProperty IntellectualProperty { get { throw null; } set { } } + public bool? IsDefault { get { throw null; } } + } + public abstract partial class MachineLearningDatastoreSecrets + { + protected MachineLearningDatastoreSecrets() { } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningDataType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningDataType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType Mltable { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType UriFile { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType UriFolder { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class MachineLearningDataVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase + { + public MachineLearningDataVersionProperties(System.Uri dataUri) { } + public System.Uri DataUri { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.IntellectualProperty IntellectualProperty { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningDayOfWeek : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningDayOfWeek(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Friday { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Monday { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Saturday { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Sunday { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Thursday { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Tuesday { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Wednesday { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningBatchEndpointProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProperties + public partial class MachineLearningDefaultScaleSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings { - public MachineLearningBatchEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode)) { } - public string DefaultsDeploymentName { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? ProvisioningState { get { throw null; } } + public MachineLearningDefaultScaleSettings() { } + } + public partial class MachineLearningDeploymentLogs + { + internal MachineLearningDeploymentLogs() { } + public string Content { get { throw null; } } + } + public partial class MachineLearningDeploymentLogsContent + { + public MachineLearningDeploymentLogsContent() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType? ContainerType { get { throw null; } set { } } + public int? Tail { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningBatchLoggingLevel : System.IEquatable + public readonly partial struct MachineLearningDeploymentProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningBatchLoggingLevel(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel Debug { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel Info { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel Warning { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel other) { throw null; } + public MachineLearningDeploymentProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Scaling { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchLoggingLevel right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningDeploymentResourceConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceConfiguration + { + public MachineLearningDeploymentResourceConfiguration() { } + } + public partial class MachineLearningDiagnoseResult + { + internal MachineLearningDiagnoseResult() { } + public string Code { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel? Level { get { throw null; } } + public string Message { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningBatchOutputAction : System.IEquatable + public readonly partial struct MachineLearningDiagnoseResultLevel : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningBatchOutputAction(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction AppendRow { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction SummaryOnly { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction other) { throw null; } + public MachineLearningDiagnoseResultLevel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel Error { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel Information { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchOutputAction right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningBatchRetrySettings + public partial class MachineLearningDiagnoseResultValue { - public MachineLearningBatchRetrySettings() { } - public int? MaxRetries { get { throw null; } set { } } - public System.TimeSpan? Timeout { get { throw null; } set { } } + internal MachineLearningDiagnoseResultValue() { } + public System.Collections.Generic.IReadOnlyList ApplicationInsightsResults { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ContainerRegistryResults { get { throw null; } } + public System.Collections.Generic.IReadOnlyList DnsResolutionResults { get { throw null; } } + public System.Collections.Generic.IReadOnlyList KeyVaultResults { get { throw null; } } + public System.Collections.Generic.IReadOnlyList NetworkSecurityRuleResults { get { throw null; } } + public System.Collections.Generic.IReadOnlyList OtherResults { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ResourceLockResults { get { throw null; } } + public System.Collections.Generic.IReadOnlyList StorageAccountResults { get { throw null; } } + public System.Collections.Generic.IReadOnlyList UserDefinedRouteResults { get { throw null; } } + } + public abstract partial class MachineLearningDistributionConfiguration + { + protected MachineLearningDistributionConfiguration() { } + } + public abstract partial class MachineLearningEarlyTerminationPolicy + { + protected MachineLearningEarlyTerminationPolicy() { } + public int? DelayEvaluation { get { throw null; } set { } } + public int? EvaluationInterval { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningBillingCurrency : System.IEquatable + public readonly partial struct MachineLearningEgressPublicNetworkAccessType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningBillingCurrency(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency Usd { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency other) { throw null; } + public MachineLearningEgressPublicNetworkAccessType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency left, Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningBuildContext + public partial class MachineLearningEncryptionSetting { - public MachineLearningBuildContext(System.Uri contextUri) { } - public System.Uri ContextUri { get { throw null; } set { } } - public string DockerfilePath { get { throw null; } set { } } + public MachineLearningEncryptionSetting(Azure.ResourceManager.MachineLearning.Models.KeyVaultProperties keyVaultProperties, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus status) { } + public string CosmosDbResourceId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.KeyVaultProperties KeyVaultProperties { get { throw null; } set { } } + public string SearchAccountResourceId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus Status { get { throw null; } set { } } + public string StorageAccountResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier UserAssignedIdentity { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningCachingType : System.IEquatable + public readonly partial struct MachineLearningEncryptionStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningCachingType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType None { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType ReadOnly { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType ReadWrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType other) { throw null; } + public MachineLearningEncryptionStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningCertificateDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials - { - public MachineLearningCertificateDatastoreCredentials(System.Guid clientId, Azure.ResourceManager.MachineLearning.Models.MachineLearningCertificateDatastoreSecrets secrets, System.Guid tenantId, string thumbprint) { } - public System.Uri AuthorityUri { get { throw null; } set { } } - public System.Guid ClientId { get { throw null; } set { } } - public System.Uri ResourceUri { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningCertificateDatastoreSecrets Secrets { get { throw null; } set { } } - public System.Guid TenantId { get { throw null; } set { } } - public string Thumbprint { get { throw null; } set { } } - } - public partial class MachineLearningCertificateDatastoreSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets + public partial class MachineLearningEndpointAuthKeys { - public MachineLearningCertificateDatastoreSecrets() { } - public string Certificate { get { throw null; } set { } } + public MachineLearningEndpointAuthKeys() { } + public string PrimaryKey { get { throw null; } set { } } + public string SecondaryKey { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningClusterPurpose : System.IEquatable + public readonly partial struct MachineLearningEndpointAuthMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningClusterPurpose(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose DenseProd { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose DevTest { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose FastProd { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose other) { throw null; } + public MachineLearningEndpointAuthMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode AadToken { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode AmlToken { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode Key { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose left, Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose left, Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningCodeConfiguration - { - public MachineLearningCodeConfiguration(string scoringScript) { } - public Azure.Core.ResourceIdentifier CodeId { get { throw null; } set { } } - public string ScoringScript { get { throw null; } set { } } - } - public partial class MachineLearningCodeContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer + public partial class MachineLearningEndpointAuthToken { - public MachineLearningCodeContainerProperties() { } + internal MachineLearningEndpointAuthToken() { } + public string AccessToken { get { throw null; } } + public System.DateTimeOffset? ExpireOn { get { throw null; } } + public System.DateTimeOffset? RefreshOn { get { throw null; } } + public string TokenType { get { throw null; } } } - public partial class MachineLearningCodeVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningEndpointComputeType : System.IEquatable { - public MachineLearningCodeVersionProperties() { } - public System.Uri CodeUri { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningEndpointComputeType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType AmlCompute { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType Kubernetes { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType Managed { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningCommandJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties + public partial class MachineLearningEndpointDeploymentProperties { - public MachineLearningCommandJob(string command, Azure.Core.ResourceIdentifier environmentId) { } - public Azure.Core.ResourceIdentifier CodeId { get { throw null; } set { } } - public string Command { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration Distribution { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier EnvironmentId { get { throw null; } set { } } + public MachineLearningEndpointDeploymentProperties() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration CodeConfiguration { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public string EnvironmentId { get { throw null; } set { } } public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits Limits { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } - public System.BinaryData Parameters { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration Resources { get { throw null; } set { } } - } - public partial class MachineLearningCommandJobLimits : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobLimits - { - public MachineLearningCommandJobLimits() { } - } - public partial class MachineLearningComponentContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer - { - public MachineLearningComponentContainerProperties() { } - } - public partial class MachineLearningComponentVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase - { - public MachineLearningComponentVersionProperties() { } - public System.BinaryData ComponentSpec { get { throw null; } set { } } - } - public partial class MachineLearningComputeInstance : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties - { - public MachineLearningComputeInstance() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } } - public partial class MachineLearningComputeInstanceApplication + public partial class MachineLearningEndpointKeyRegenerateContent { - internal MachineLearningComputeInstanceApplication() { } - public string DisplayName { get { throw null; } } - public System.Uri EndpointUri { get { throw null; } } + public MachineLearningEndpointKeyRegenerateContent(Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType keyType) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType KeyType { get { throw null; } } + public string KeyValue { get { throw null; } set { } } } - public partial class MachineLearningComputeInstanceAssignedUser + public partial class MachineLearningEndpointProperties { - public MachineLearningComputeInstanceAssignedUser(string objectId, System.Guid tenantId) { } - public string ObjectId { get { throw null; } set { } } - public System.Guid TenantId { get { throw null; } set { } } + public MachineLearningEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode AuthMode { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys Keys { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } + public System.Uri ScoringUri { get { throw null; } } + public System.Uri SwaggerUri { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningComputeInstanceAuthorizationType : System.IEquatable + public readonly partial struct MachineLearningEndpointProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningComputeInstanceAuthorizationType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType Personal { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType other) { throw null; } + public MachineLearningEndpointProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningEndpointScheduleAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction + { + public MachineLearningEndpointScheduleAction(System.BinaryData endpointInvocationDefinition) { } + public System.BinaryData EndpointInvocationDefinition { get { throw null; } set { } } + } + public partial class MachineLearningEnvironmentContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer + { + public MachineLearningEnvironmentContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningComputeInstanceAutosave : System.IEquatable + public readonly partial struct MachineLearningEnvironmentType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningComputeInstanceAutosave(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave Local { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave None { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave Remote { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave other) { throw null; } + public MachineLearningEnvironmentType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType Curated { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType UserCreated { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningComputeInstanceConnectivityEndpoints - { - internal MachineLearningComputeInstanceConnectivityEndpoints() { } - public string PrivateIPAddress { get { throw null; } } - public string PublicIPAddress { get { throw null; } } - } - public partial class MachineLearningComputeInstanceContainer - { - internal MachineLearningComputeInstanceContainer() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAutosave? Autosave { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceEnvironmentInfo Environment { get { throw null; } } - public string Gpu { get { throw null; } } - public string Name { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork? Network { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Services { get { throw null; } } - } - public partial class MachineLearningComputeInstanceCreatedBy - { - internal MachineLearningComputeInstanceCreatedBy() { } - public string UserId { get { throw null; } } - public string UserName { get { throw null; } } - public string UserOrgId { get { throw null; } } - } - public partial class MachineLearningComputeInstanceDataDisk - { - internal MachineLearningComputeInstanceDataDisk() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningCachingType? Caching { get { throw null; } } - public int? DiskSizeGB { get { throw null; } } - public int? Lun { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType? StorageAccountType { get { throw null; } } - } - public partial class MachineLearningComputeInstanceDataMount - { - internal MachineLearningComputeInstanceDataMount() { } - public string CreatedBy { get { throw null; } } - public string Error { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction? MountAction { get { throw null; } } - public System.DateTimeOffset? MountedOn { get { throw null; } } - public string MountName { get { throw null; } } - public string MountPath { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState? MountState { get { throw null; } } - public string Source { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType? SourceType { get { throw null; } } - } - public partial class MachineLearningComputeInstanceEnvironmentInfo + public partial class MachineLearningEnvironmentVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { - internal MachineLearningComputeInstanceEnvironmentInfo() { } - public string Name { get { throw null; } } - public string Version { get { throw null; } } + public MachineLearningEnvironmentVersionProperties() { } + public Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting? AutoRebuild { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningBuildContext Build { get { throw null; } set { } } + public string CondaFile { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType? EnvironmentType { get { throw null; } } + public string Image { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerProperties InferenceConfig { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.IntellectualProperty IntellectualProperty { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType? OSType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public string Stage { get { throw null; } set { } } } - public partial class MachineLearningComputeInstanceLastOperation + public partial class MachineLearningError { - internal MachineLearningComputeInstanceLastOperation() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName? OperationName { get { throw null; } } - public System.DateTimeOffset? OperationOn { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus? OperationStatus { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger? OperationTrigger { get { throw null; } } + internal MachineLearningError() { } + public Azure.ResponseError Error { get { throw null; } } } - public partial class MachineLearningComputeInstanceProperties + public partial class MachineLearningEstimatedVmPrice { - public MachineLearningComputeInstanceProperties() { } - public System.Collections.Generic.IReadOnlyList Applications { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy? ApplicationSharingPolicy { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType? ComputeInstanceAuthorizationType { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceConnectivityEndpoints ConnectivityEndpoints { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Containers { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceCreatedBy CreatedBy { get { throw null; } } - public System.Collections.Generic.IReadOnlyList DataDisks { get { throw null; } } - public System.Collections.Generic.IReadOnlyList DataMounts { get { throw null; } } - public bool? EnableNodePublicIP { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation LastOperation { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAssignedUser PersonalComputeInstanceAssignedUser { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList SchedulesComputeStartStop { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptsToExecute Scripts { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings SshSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState? State { get { throw null; } } - public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } - public string VersionsRuntime { get { throw null; } } - public string VmSize { get { throw null; } set { } } + internal MachineLearningEstimatedVmPrice() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType OSType { get { throw null; } } + public double RetailPrice { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier VmTier { get { throw null; } } } - public partial class MachineLearningComputeInstanceSshSettings + public partial class MachineLearningEstimatedVmPrices { - public MachineLearningComputeInstanceSshSettings() { } - public string AdminPublicKey { get { throw null; } set { } } - public string AdminUserName { get { throw null; } } - public int? SshPort { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess? SshPublicAccess { get { throw null; } set { } } + internal MachineLearningEstimatedVmPrices() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency BillingCurrency { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure UnitOfMeasure { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Values { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningComputeInstanceState : System.IEquatable + public readonly partial struct MachineLearningFeatureLag : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningComputeInstanceState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState CreateFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Creating { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Deleting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState JobRunning { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Restarting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Running { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState SettingUp { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState SetupFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Starting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Stopped { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Stopping { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Unknown { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState Unusable { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState UserSettingUp { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState UserSetupFailed { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState other) { throw null; } + public MachineLearningFeatureLag(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag Auto { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag None { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningComputePatch - { - public MachineLearningComputePatch() { } - public Azure.ResourceManager.MachineLearning.Models.AmlComputeScaleSettings ScaleSettings { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningComputePowerAction : System.IEquatable + public readonly partial struct MachineLearningFeaturizationMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningComputePowerAction(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction Start { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction Stop { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction other) { throw null; } + public MachineLearningFeaturizationMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode Auto { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode Custom { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode Off { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class MachineLearningComputeProperties + public partial class MachineLearningFeaturizationSettings { - protected MachineLearningComputeProperties() { } - public string ComputeLocation { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public string Description { get { throw null; } set { } } - public bool? DisableLocalAuth { get { throw null; } set { } } - public bool? IsAttachedCompute { get { throw null; } } - public System.DateTimeOffset? ModifiedOn { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ProvisioningErrors { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? ProvisioningState { get { throw null; } } - public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + public MachineLearningFeaturizationSettings() { } + public string DatasetLanguage { get { throw null; } set { } } + } + public partial class MachineLearningFlavorData + { + public MachineLearningFlavorData() { } + public System.Collections.Generic.IDictionary Data { get { throw null; } set { } } + } + public partial class MachineLearningFlowModelJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput + { + public MachineLearningFlowModelJobInput(System.Uri uri) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + } + public partial class MachineLearningFlowModelJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput + { + public MachineLearningFlowModelJobOutput() { } + public string AssetName { get { throw null; } set { } } + public string AssetVersion { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting AutoDeleteSetting { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + } + public partial class MachineLearningForecasting : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical + { + public MachineLearningForecasting(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } + public System.Collections.Generic.IList CvSplitColumnNames { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableVerticalFeaturizationSettings FeaturizationSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableFixedParameters FixedParameters { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ForecastingSettings ForecastingSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableVerticalLimitSettings LimitSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NCrossValidations NCrossValidations { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric? PrimaryMetric { get { throw null; } set { } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TableSweepSettings SweepSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput TestData { get { throw null; } set { } } + public double? TestDataSize { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ForecastingTrainingSettings TrainingSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } + public double? ValidationDataSize { get { throw null; } set { } } + public string WeightColumnName { get { throw null; } set { } } + } + public partial class MachineLearningFqdnEndpoint + { + internal MachineLearningFqdnEndpoint() { } + public string DomainName { get { throw null; } } + public System.Collections.Generic.IReadOnlyList EndpointDetails { get { throw null; } } + } + public partial class MachineLearningFqdnEndpointDetail + { + internal MachineLearningFqdnEndpointDetail() { } + public int? Port { get { throw null; } } + } + public partial class MachineLearningFqdnEndpoints + { + internal MachineLearningFqdnEndpoints() { } + public string Category { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Endpoints { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningComputeProvisioningStatus : System.IEquatable + public readonly partial struct MachineLearningGoal : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningComputeProvisioningStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus Completed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus Provisioning { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus other) { throw null; } + public MachineLearningGoal(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal Maximize { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal Minimize { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal left, Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal left, Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class MachineLearningComputeSecrets + public partial class MachineLearningHDInsightCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { - protected MachineLearningComputeSecrets() { } + public MachineLearningHDInsightCompute() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningHDInsightProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningComputeStartStopSchedule + public partial class MachineLearningHDInsightProperties { - internal MachineLearningComputeStartStopSchedule() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction? Action { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.CronTrigger Cron { get { throw null; } } - public string Id { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus? ProvisioningStatus { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceTrigger Recurrence { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleBase Schedule { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? Status { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType? TriggerType { get { throw null; } } + public MachineLearningHDInsightProperties() { } + public System.Net.IPAddress Address { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials AdministratorAccount { get { throw null; } set { } } + public int? SshPort { get { throw null; } set { } } } - public partial class MachineLearningComputeSystemService + public partial class MachineLearningIdAssetReference : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase { - internal MachineLearningComputeSystemService() { } - public string PublicIPAddress { get { throw null; } } - public string SystemServiceType { get { throw null; } } - public string Version { get { throw null; } } + public MachineLearningIdAssetReference(Azure.Core.ResourceIdentifier assetId) { } + public Azure.Core.ResourceIdentifier AssetId { get { throw null; } set { } } + } + public abstract partial class MachineLearningIdentityConfiguration + { + protected MachineLearningIdentityConfiguration() { } + } + public partial class MachineLearningInferenceContainerProperties + { + public MachineLearningInferenceContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute LivenessRoute { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute ReadinessRoute { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute ScoringRoute { get { throw null; } set { } } + } + public partial class MachineLearningInferenceContainerRoute + { + public MachineLearningInferenceContainerRoute(string path, int port) { } + public string Path { get { throw null; } set { } } + public int Port { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningConnectionCategory : System.IEquatable + public readonly partial struct MachineLearningInputDeliveryMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningConnectionCategory(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory ContainerRegistry { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory Git { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory PythonFeed { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory other) { throw null; } + public MachineLearningInputDeliveryMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode Direct { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode Download { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode EvalDownload { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode EvalMount { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode ReadOnlyMount { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode ReadWriteMount { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory left, Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory left, Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningContainerRegistryCredentials + public partial class MachineLearningInstanceTypeSchema { - internal MachineLearningContainerRegistryCredentials() { } - public Azure.Core.AzureLocation? Location { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Passwords { get { throw null; } } - public string Username { get { throw null; } } + public MachineLearningInstanceTypeSchema() { } + public System.Collections.Generic.IDictionary NodeSelector { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInstanceTypeSchemaResources Resources { get { throw null; } set { } } } - public partial class MachineLearningContainerResourceRequirements + public partial class MachineLearningInstanceTypeSchemaResources { - public MachineLearningContainerResourceRequirements() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceSettings ContainerResourceLimits { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceSettings ContainerResourceRequests { get { throw null; } set { } } + public MachineLearningInstanceTypeSchemaResources() { } + public System.Collections.Generic.IDictionary Limits { get { throw null; } } + public System.Collections.Generic.IDictionary Requests { get { throw null; } } } - public partial class MachineLearningContainerResourceSettings + public partial class MachineLearningJobCollectionGetAllOptions { - public MachineLearningContainerResourceSettings() { } - public string Cpu { get { throw null; } set { } } - public string Gpu { get { throw null; } set { } } - public string Memory { get { throw null; } set { } } + public MachineLearningJobCollectionGetAllOptions() { } + public string AssetName { get { throw null; } set { } } + public string JobType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public bool? Scheduled { get { throw null; } set { } } + public string ScheduleId { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Tag { get { throw null; } set { } } + } + public abstract partial class MachineLearningJobInput + { + protected MachineLearningJobInput() { } + public string Description { get { throw null; } set { } } + } + public abstract partial class MachineLearningJobLimits + { + protected MachineLearningJobLimits() { } + public System.TimeSpan? Timeout { get { throw null; } set { } } + } + public abstract partial class MachineLearningJobOutput + { + protected MachineLearningJobOutput() { } + public string Description { get { throw null; } set { } } + } + public partial class MachineLearningJobPatch + { + public MachineLearningJobPatch() { } + public System.Collections.Generic.IDictionary NotificationSettingWebhooks { get { throw null; } set { } } + } + public partial class MachineLearningJobProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + { + public MachineLearningJobProperties() { } + public Azure.Core.ResourceIdentifier ComponentId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ComputeId { get { throw null; } set { } } + public string DisplayName { get { throw null; } set { } } + public string ExperimentName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration Identity { get { throw null; } set { } } + public bool? IsArchived { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NotificationSetting NotificationSetting { get { throw null; } set { } } + public System.Collections.Generic.IDictionary SecretsConfiguration { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Services { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? Status { get { throw null; } } + } + public partial class MachineLearningJobResourceConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceConfiguration + { + public MachineLearningJobResourceConfiguration() { } + public string DockerArgs { get { throw null; } set { } } + public string ShmSize { get { throw null; } set { } } + } + public partial class MachineLearningJobScheduleAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction + { + public MachineLearningJobScheduleAction(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties jobDefinition) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties JobDefinition { get { throw null; } set { } } + } + public partial class MachineLearningJobService + { + public MachineLearningJobService() { } + public string Endpoint { get { throw null; } set { } } + public string ErrorMessage { get { throw null; } } + public string JobServiceType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.Nodes Nodes { get { throw null; } set { } } + public int? Port { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } + public string Status { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningContainerType : System.IEquatable + public readonly partial struct MachineLearningJobStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningContainerType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType InferenceServer { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType StorageInitializer { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType other) { throw null; } + public MachineLearningJobStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Canceled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus CancelRequested { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Completed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Finalizing { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus NotResponding { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus NotStarted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Paused { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Preparing { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Provisioning { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Queued { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Running { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Scheduled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Starting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningCustomModelJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput - { - public MachineLearningCustomModelJobInput(System.Uri uri) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } - } - public partial class MachineLearningCustomModelJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningKeyType : System.IEquatable { - public MachineLearningCustomModelJobOutput() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningKeyType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType Primary { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType Secondary { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningDatabricksCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + public partial class MachineLearningKubernetesCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { - public MachineLearningDatabricksCompute() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDatabricksProperties Properties { get { throw null; } set { } } + public MachineLearningKubernetesCompute() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningDatabricksComputeSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeSecrets + public partial class MachineLearningKubernetesOnlineDeployment : Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties { - internal MachineLearningDatabricksComputeSecrets() { } - public string DatabricksAccessToken { get { throw null; } } + public MachineLearningKubernetesOnlineDeployment() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceRequirements ContainerResourceRequirements { get { throw null; } set { } } } - public partial class MachineLearningDatabricksProperties + public partial class MachineLearningKubernetesProperties { - public MachineLearningDatabricksProperties() { } - public string DatabricksAccessToken { get { throw null; } set { } } - public System.Uri WorkspaceUri { get { throw null; } set { } } + public MachineLearningKubernetesProperties() { } + public string DefaultInstanceType { get { throw null; } set { } } + public string ExtensionInstanceReleaseTrain { get { throw null; } set { } } + public string ExtensionPrincipalId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary InstanceTypes { get { throw null; } } + public string Namespace { get { throw null; } set { } } + public string RelayConnectionString { get { throw null; } set { } } + public string ServiceBusConnectionString { get { throw null; } set { } } + public string VcName { get { throw null; } set { } } } - public partial class MachineLearningDataContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningListViewType : System.IEquatable { - public MachineLearningDataContainerProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType dataType) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType DataType { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningListViewType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType ActiveOnly { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType All { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType ArchivedOnly { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningDataFactoryCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + public partial class MachineLearningLiteralJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput { - public MachineLearningDataFactoryCompute() { } + public MachineLearningLiteralJobInput(string value) { } + public string Value { get { throw null; } set { } } } - public partial class MachineLearningDataLakeAnalytics : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningLoadBalancerType : System.IEquatable { - public MachineLearningDataLakeAnalytics() { } - public string DataLakeStoreAccountName { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningLoadBalancerType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType InternalLoadBalancer { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType PublicIP { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningDataPathAssetReference : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningLogVerbosity : System.IEquatable { - public MachineLearningDataPathAssetReference() { } - public string DatastoreId { get { throw null; } set { } } - public string Path { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningLogVerbosity(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Critical { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Debug { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Error { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Info { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity NotSet { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity left, Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity left, Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningDatastoreCollectionGetAllOptions + public partial class MachineLearningManagedIdentity : Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration { - public MachineLearningDatastoreCollectionGetAllOptions() { } - public int? Count { get { throw null; } set { } } - public bool? IsDefault { get { throw null; } set { } } - public System.Collections.Generic.IList Names { get { throw null; } } - public string OrderBy { get { throw null; } set { } } - public bool? OrderByAsc { get { throw null; } set { } } - public string SearchText { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } + public MachineLearningManagedIdentity() { } + public System.Guid? ClientId { get { throw null; } set { } } + public System.Guid? ObjectId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } } - public abstract partial class MachineLearningDatastoreCredentials + public partial class MachineLearningManagedIdentityAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties { - protected MachineLearningDatastoreCredentials() { } + public MachineLearningManagedIdentityAuthTypeWorkspaceConnection() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionManagedIdentity Credentials { get { throw null; } set { } } } - public partial class MachineLearningDatastoreProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + public partial class MachineLearningManagedOnlineDeployment : Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties { - public MachineLearningDatastoreProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials Credentials { get { throw null; } set { } } - public bool? IsDefault { get { throw null; } } + public MachineLearningManagedOnlineDeployment() { } } - public abstract partial class MachineLearningDatastoreSecrets + public partial class MachineLearningModelContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { - protected MachineLearningDatastoreSecrets() { } + public MachineLearningModelContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningDataType : System.IEquatable + public readonly partial struct MachineLearningModelSize : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningDataType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType Mltable { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType UriFile { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType UriFolder { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType other) { throw null; } + public MachineLearningModelSize(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize ExtraLarge { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize Large { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize Medium { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize Small { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize left, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize left, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningDataVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase + public partial class MachineLearningModelVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { - public MachineLearningDataVersionProperties(System.Uri dataUri) { } - public System.Uri DataUri { get { throw null; } set { } } + public MachineLearningModelVersionProperties() { } + public System.Collections.Generic.IDictionary Flavors { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.IntellectualProperty IntellectualProperty { get { throw null; } set { } } + public string JobName { get { throw null; } set { } } + public string ModelType { get { throw null; } set { } } + public System.Uri ModelUri { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public string Stage { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningDayOfWeek : System.IEquatable + public readonly partial struct MachineLearningMountAction : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningDayOfWeek(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Friday { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Monday { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Saturday { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Sunday { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Thursday { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Tuesday { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek Wednesday { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek other) { throw null; } + public MachineLearningMountAction(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction Mount { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction Unmount { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDayOfWeek right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningDefaultScaleSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings - { - public MachineLearningDefaultScaleSettings() { } - } - public partial class MachineLearningDeploymentLogs - { - internal MachineLearningDeploymentLogs() { } - public string Content { get { throw null; } } - } - public partial class MachineLearningDeploymentLogsContent - { - public MachineLearningDeploymentLogsContent() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerType? ContainerType { get { throw null; } set { } } - public int? Tail { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningDeploymentProvisioningState : System.IEquatable + public readonly partial struct MachineLearningMountState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningDeploymentProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Scaling { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState other) { throw null; } + public MachineLearningMountState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState Mounted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState MountFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState MountRequested { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState Unmounted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState UnmountFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState UnmountRequested { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningDeploymentResourceConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceConfiguration - { - public MachineLearningDeploymentResourceConfiguration() { } - } - public partial class MachineLearningDiagnoseResult + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningNetwork : System.IEquatable { - internal MachineLearningDiagnoseResult() { } - public string Code { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel? Level { get { throw null; } } - public string Message { get { throw null; } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningNetwork(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork Bridge { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork Host { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork left, Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork left, Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork right) { throw null; } + public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningDiagnoseResultLevel : System.IEquatable + public readonly partial struct MachineLearningNodeState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningDiagnoseResultLevel(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel Error { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel Information { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel Warning { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel other) { throw null; } + public MachineLearningNodeState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Idle { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Leaving { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Preempted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Preparing { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Running { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Unusable { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultLevel right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningDiagnoseResultValue + public partial class MachineLearningNodeStateCounts { - internal MachineLearningDiagnoseResultValue() { } - public System.Collections.Generic.IReadOnlyList ApplicationInsightsResults { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ContainerRegistryResults { get { throw null; } } - public System.Collections.Generic.IReadOnlyList DnsResolutionResults { get { throw null; } } - public System.Collections.Generic.IReadOnlyList KeyVaultResults { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NetworkSecurityRuleResults { get { throw null; } } - public System.Collections.Generic.IReadOnlyList OtherResults { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ResourceLockResults { get { throw null; } } - public System.Collections.Generic.IReadOnlyList StorageAccountResults { get { throw null; } } - public System.Collections.Generic.IReadOnlyList UserDefinedRouteResults { get { throw null; } } + internal MachineLearningNodeStateCounts() { } + public int? IdleNodeCount { get { throw null; } } + public int? LeavingNodeCount { get { throw null; } } + public int? PreemptedNodeCount { get { throw null; } } + public int? PreparingNodeCount { get { throw null; } } + public int? RunningNodeCount { get { throw null; } } + public int? UnusableNodeCount { get { throw null; } } } - public abstract partial class MachineLearningDistributionConfiguration + public partial class MachineLearningNoneAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties { - protected MachineLearningDistributionConfiguration() { } + public MachineLearningNoneAuthTypeWorkspaceConnection() { } + } + public partial class MachineLearningNoneDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials + { + public MachineLearningNoneDatastoreCredentials() { } + } + public partial class MachineLearningNotebookPreparationError + { + internal MachineLearningNotebookPreparationError() { } + public string ErrorMessage { get { throw null; } } + public int? StatusCode { get { throw null; } } + } + public partial class MachineLearningNotebookResourceInfo + { + internal MachineLearningNotebookResourceInfo() { } + public string Fqdn { get { throw null; } } + public bool? IsPrivateLinkEnabled { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookPreparationError NotebookPreparationError { get { throw null; } } + public string ResourceId { get { throw null; } } + } + public partial class MachineLearningObjective + { + public MachineLearningObjective(Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal goal, string primaryMetric) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal Goal { get { throw null; } set { } } + public string PrimaryMetric { get { throw null; } set { } } } - public abstract partial class MachineLearningEarlyTerminationPolicy + public partial class MachineLearningOnlineDeploymentPatch : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatch { - protected MachineLearningEarlyTerminationPolicy() { } - public int? DelayEvaluation { get { throw null; } set { } } - public int? EvaluationInterval { get { throw null; } set { } } + public MachineLearningOnlineDeploymentPatch() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuPatch Sku { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningEgressPublicNetworkAccessType : System.IEquatable + public partial class MachineLearningOnlineDeploymentProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointDeploymentProperties { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningEgressPublicNetworkAccessType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType right) { throw null; } - public override string ToString() { throw null; } + public MachineLearningOnlineDeploymentProperties() { } + public bool? AppInsightsEnabled { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.DataCollector DataCollector { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? EgressPublicNetworkAccess { get { throw null; } set { } } + public string InstanceType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings LivenessProbe { get { throw null; } set { } } + public string Model { get { throw null; } set { } } + public string ModelMountPath { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings ReadinessProbe { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings RequestSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings ScaleSettings { get { throw null; } set { } } } - public partial class MachineLearningEncryptionKeyVaultProperties + public partial class MachineLearningOnlineEndpointCollectionGetAllOptions { - public MachineLearningEncryptionKeyVaultProperties(Azure.Core.ResourceIdentifier keyVaultArmId, string keyIdentifier) { } - public string IdentityClientId { get { throw null; } set { } } - public string KeyIdentifier { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier KeyVaultArmId { get { throw null; } set { } } + public MachineLearningOnlineEndpointCollectionGetAllOptions() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType? ComputeType { get { throw null; } set { } } + public int? Count { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString? OrderBy { get { throw null; } set { } } + public string Properties { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } } - public partial class MachineLearningEncryptionSetting + public partial class MachineLearningOnlineEndpointProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProperties { - public MachineLearningEncryptionSetting(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus status, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionKeyVaultProperties keyVaultProperties) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus Status { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier UserAssignedIdentity { get { throw null; } set { } } + public MachineLearningOnlineEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode)) { } + public string Compute { get { throw null; } set { } } + public System.Collections.Generic.IDictionary MirrorTraffic { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Traffic { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningEncryptionStatus : System.IEquatable + public partial class MachineLearningOnlineRequestSettings { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningEncryptionStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus right) { throw null; } - public override string ToString() { throw null; } + public MachineLearningOnlineRequestSettings() { } + public int? MaxConcurrentRequestsPerInstance { get { throw null; } set { } } + public System.TimeSpan? MaxQueueWait { get { throw null; } set { } } + public System.TimeSpan? RequestTimeout { get { throw null; } set { } } } - public partial class MachineLearningEndpointAuthKeys + public abstract partial class MachineLearningOnlineScaleSettings { - public MachineLearningEndpointAuthKeys() { } - public string PrimaryKey { get { throw null; } set { } } - public string SecondaryKey { get { throw null; } set { } } + protected MachineLearningOnlineScaleSettings() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningEndpointAuthMode : System.IEquatable + public readonly partial struct MachineLearningOperatingSystemType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningEndpointAuthMode(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode AadToken { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode AmlToken { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode Key { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode other) { throw null; } + public MachineLearningOperatingSystemType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType Linux { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType Windows { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningEndpointAuthToken - { - internal MachineLearningEndpointAuthToken() { } - public string AccessToken { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public System.DateTimeOffset? RefreshOn { get { throw null; } } - public string TokenType { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningEndpointComputeType : System.IEquatable + public readonly partial struct MachineLearningOperationName : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningEndpointComputeType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType AmlCompute { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType Kubernetes { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType Managed { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType other) { throw null; } + public MachineLearningOperationName(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Create { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Delete { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Reimage { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Restart { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Start { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Stop { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningEndpointDeploymentProperties - { - public MachineLearningEndpointDeploymentProperties() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration CodeConfiguration { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public string EnvironmentId { get { throw null; } set { } } - public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } - } - public partial class MachineLearningEndpointKeyRegenerateContent - { - public MachineLearningEndpointKeyRegenerateContent(Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType keyType) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType KeyType { get { throw null; } } - public string KeyValue { get { throw null; } set { } } - } - public partial class MachineLearningEndpointProperties - { - public MachineLearningEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode AuthMode { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys Keys { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } - public System.Uri ScoringUri { get { throw null; } } - public System.Uri SwaggerUri { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningEndpointProvisioningState : System.IEquatable + public readonly partial struct MachineLearningOperationStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningEndpointProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState other) { throw null; } + public MachineLearningOperationStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus CreateFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus DeleteFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus InProgress { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus ReimageFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus RestartFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus StartFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus StopFailed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningEndpointScheduleAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction - { - public MachineLearningEndpointScheduleAction(System.BinaryData endpointInvocationDefinition) { } - public System.BinaryData EndpointInvocationDefinition { get { throw null; } set { } } - } - public partial class MachineLearningEnvironmentContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer - { - public MachineLearningEnvironmentContainerProperties() { } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningEnvironmentType : System.IEquatable + public readonly partial struct MachineLearningOperationTrigger : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningEnvironmentType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType Curated { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType UserCreated { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType other) { throw null; } + public MachineLearningOperationTrigger(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger IdleShutdown { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger Schedule { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger User { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningEnvironmentVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase - { - public MachineLearningEnvironmentVersionProperties() { } - public Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting? AutoRebuild { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningBuildContext Build { get { throw null; } set { } } - public string CondaFile { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType? EnvironmentType { get { throw null; } } - public string Image { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerProperties InferenceConfig { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType? OSType { get { throw null; } set { } } - } - public partial class MachineLearningError - { - internal MachineLearningError() { } - public Azure.ResponseError Error { get { throw null; } } - } - public partial class MachineLearningEstimatedVmPrice - { - internal MachineLearningEstimatedVmPrice() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType OSType { get { throw null; } } - public double RetailPrice { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier VmTier { get { throw null; } } - } - public partial class MachineLearningEstimatedVmPrices - { - internal MachineLearningEstimatedVmPrices() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency BillingCurrency { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure UnitOfMeasure { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Values { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningFeatureLag : System.IEquatable + public readonly partial struct MachineLearningOrderString : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningFeatureLag(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag Auto { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag None { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag other) { throw null; } + public MachineLearningOrderString(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString CreatedAtAsc { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString CreatedAtDesc { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString UpdatedAtAsc { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString UpdatedAtDesc { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningFeaturizationMode : System.IEquatable + public readonly partial struct MachineLearningOSType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningFeaturizationMode(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode Auto { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode Custom { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode Off { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode other) { throw null; } + public MachineLearningOSType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType Linux { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType Windows { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationMode right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningFeaturizationSettings - { - public MachineLearningFeaturizationSettings() { } - public string DatasetLanguage { get { throw null; } set { } } - } - public partial class MachineLearningFlavorData - { - public MachineLearningFlavorData() { } - public System.Collections.Generic.IDictionary Data { get { throw null; } set { } } - } - public partial class MachineLearningFlowModelJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput - { - public MachineLearningFlowModelJobInput(System.Uri uri) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } - } - public partial class MachineLearningFlowModelJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput - { - public MachineLearningFlowModelJobOutput() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } - } - public partial class MachineLearningForecasting : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical - { - public MachineLearningForecasting(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } - public System.Collections.Generic.IList CvSplitColumnNames { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TableVerticalFeaturizationSettings FeaturizationSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ForecastingSettings ForecastingSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.TableVerticalLimitSettings LimitSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.NCrossValidations NCrossValidations { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ForecastingPrimaryMetric? PrimaryMetric { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput TestData { get { throw null; } set { } } - public double? TestDataSize { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ForecastingTrainingSettings TrainingSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } - public double? ValidationDataSize { get { throw null; } set { } } - public string WeightColumnName { get { throw null; } set { } } - } - public partial class MachineLearningFqdnEndpoint - { - internal MachineLearningFqdnEndpoint() { } - public string DomainName { get { throw null; } } - public System.Collections.Generic.IReadOnlyList EndpointDetails { get { throw null; } } - } - public partial class MachineLearningFqdnEndpointDetail - { - internal MachineLearningFqdnEndpointDetail() { } - public int? Port { get { throw null; } } - } - public partial class MachineLearningFqdnEndpoints - { - internal MachineLearningFqdnEndpoints() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointsProperties Properties { get { throw null; } } - } - public partial class MachineLearningFqdnEndpointsProperties - { - internal MachineLearningFqdnEndpointsProperties() { } - public string Category { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Endpoints { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningGoal : System.IEquatable + public readonly partial struct MachineLearningOutputDeliveryMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningGoal(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal Maximize { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal Minimize { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal other) { throw null; } + public MachineLearningOutputDeliveryMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode Direct { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode ReadWriteMount { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode Upload { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal left, Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal left, Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningHDInsightCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + public partial class MachineLearningOutputPathAssetReference : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase { - public MachineLearningHDInsightCompute() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningHDInsightProperties Properties { get { throw null; } set { } } + public MachineLearningOutputPathAssetReference() { } + public Azure.Core.ResourceIdentifier JobId { get { throw null; } set { } } + public string Path { get { throw null; } set { } } } - public partial class MachineLearningHDInsightProperties + public partial class MachineLearningPartialManagedServiceIdentity { - public MachineLearningHDInsightProperties() { } - public System.Net.IPAddress Address { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials AdministratorAccount { get { throw null; } set { } } - public int? SshPort { get { throw null; } set { } } + public MachineLearningPartialManagedServiceIdentity() { } + public Azure.ResourceManager.Models.ManagedServiceIdentityType? ManagedServiceIdentityType { get { throw null; } set { } } + public System.Collections.Generic.IDictionary UserAssignedIdentities { get { throw null; } } } - public partial class MachineLearningIdAssetReference : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase + public partial class MachineLearningPasswordDetail { - public MachineLearningIdAssetReference(Azure.Core.ResourceIdentifier assetId) { } - public Azure.Core.ResourceIdentifier AssetId { get { throw null; } set { } } + internal MachineLearningPasswordDetail() { } + public string Name { get { throw null; } } + public string Value { get { throw null; } } } - public abstract partial class MachineLearningIdentityConfiguration + public partial class MachineLearningPatAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties { - protected MachineLearningIdentityConfiguration() { } + public MachineLearningPatAuthTypeWorkspaceConnection() { } + public string CredentialsPat { get { throw null; } set { } } } - public partial class MachineLearningInferenceContainerProperties + public partial class MachineLearningPipelineJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties { - public MachineLearningInferenceContainerProperties() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute LivenessRoute { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute ReadinessRoute { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute ScoringRoute { get { throw null; } set { } } + public MachineLearningPipelineJob() { } + public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Jobs { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } + public System.BinaryData Settings { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceJobId { get { throw null; } set { } } } - public partial class MachineLearningInferenceContainerRoute + public partial class MachineLearningPrivateEndpoint { - public MachineLearningInferenceContainerRoute(string path, int port) { } - public string Path { get { throw null; } set { } } - public int Port { get { throw null; } set { } } + public MachineLearningPrivateEndpoint() { } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningInputDeliveryMode : System.IEquatable + public readonly partial struct MachineLearningPrivateEndpointConnectionProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningInputDeliveryMode(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode Direct { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode Download { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode EvalDownload { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode EvalMount { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode ReadOnlyMount { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode ReadWriteMount { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode other) { throw null; } + public MachineLearningPrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningInstanceTypeSchema - { - public MachineLearningInstanceTypeSchema() { } - public System.Collections.Generic.IDictionary NodeSelector { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInstanceTypeSchemaResources Resources { get { throw null; } set { } } - } - public partial class MachineLearningInstanceTypeSchemaResources + public partial class MachineLearningPrivateLinkResource : Azure.ResourceManager.Models.TrackedResourceData { - public MachineLearningInstanceTypeSchemaResources() { } - public System.Collections.Generic.IDictionary Limits { get { throw null; } } - public System.Collections.Generic.IDictionary Requests { get { throw null; } } + public MachineLearningPrivateLinkResource(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public string GroupId { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public System.Collections.Generic.IList RequiredMembers { get { throw null; } } + public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } } - public abstract partial class MachineLearningJobInput + public partial class MachineLearningPrivateLinkServiceConnectionState { - protected MachineLearningJobInput() { } + public MachineLearningPrivateLinkServiceConnectionState() { } + public string ActionsRequired { get { throw null; } set { } } public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus? Status { get { throw null; } set { } } } - public abstract partial class MachineLearningJobLimits + public partial class MachineLearningProbeSettings { - protected MachineLearningJobLimits() { } + public MachineLearningProbeSettings() { } + public int? FailureThreshold { get { throw null; } set { } } + public System.TimeSpan? InitialDelay { get { throw null; } set { } } + public System.TimeSpan? Period { get { throw null; } set { } } + public int? SuccessThreshold { get { throw null; } set { } } public System.TimeSpan? Timeout { get { throw null; } set { } } } - public abstract partial class MachineLearningJobOutput - { - protected MachineLearningJobOutput() { } - public string Description { get { throw null; } set { } } - } - public partial class MachineLearningJobProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase - { - public MachineLearningJobProperties() { } - public Azure.Core.ResourceIdentifier ComponentId { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier ComputeId { get { throw null; } set { } } - public string DisplayName { get { throw null; } set { } } - public string ExperimentName { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration Identity { get { throw null; } set { } } - public bool? IsArchived { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Services { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? Status { get { throw null; } } - } - public partial class MachineLearningJobResourceConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceConfiguration - { - public MachineLearningJobResourceConfiguration() { } - public string DockerArgs { get { throw null; } set { } } - public string ShmSize { get { throw null; } set { } } - } - public partial class MachineLearningJobScheduleAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction - { - public MachineLearningJobScheduleAction(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties jobDefinition) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties JobDefinition { get { throw null; } set { } } - } - public partial class MachineLearningJobService - { - public MachineLearningJobService() { } - public string Endpoint { get { throw null; } set { } } - public string ErrorMessage { get { throw null; } } - public string JobServiceType { get { throw null; } set { } } - public int? Port { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } - public string Status { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningJobStatus : System.IEquatable + public readonly partial struct MachineLearningProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningJobStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Canceled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus CancelRequested { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Completed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Finalizing { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus NotResponding { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus NotStarted { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Paused { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Preparing { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Provisioning { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Queued { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Running { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Starting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus Unknown { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus other) { throw null; } + public MachineLearningProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Unknown { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningKeyType : System.IEquatable + public readonly partial struct MachineLearningPublicNetworkAccessType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningKeyType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType Primary { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType Secondary { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType other) { throw null; } + public MachineLearningPublicNetworkAccessType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningKeyType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningKubernetesCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties - { - public MachineLearningKubernetesCompute() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesProperties Properties { get { throw null; } set { } } - } - public partial class MachineLearningKubernetesOnlineDeployment : Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties - { - public MachineLearningKubernetesOnlineDeployment() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceRequirements ContainerResourceRequirements { get { throw null; } set { } } - } - public partial class MachineLearningKubernetesProperties + public partial class MachineLearningQuotaProperties { - public MachineLearningKubernetesProperties() { } - public string DefaultInstanceType { get { throw null; } set { } } - public string ExtensionInstanceReleaseTrain { get { throw null; } set { } } - public string ExtensionPrincipalId { get { throw null; } set { } } - public System.Collections.Generic.IDictionary InstanceTypes { get { throw null; } } - public string Namespace { get { throw null; } set { } } - public string RelayConnectionString { get { throw null; } set { } } - public string ServiceBusConnectionString { get { throw null; } set { } } - public string VcName { get { throw null; } set { } } + public MachineLearningQuotaProperties() { } + public string Id { get { throw null; } set { } } + public long? Limit { get { throw null; } set { } } + public string QuotaBasePropertiesType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? Unit { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningListViewType : System.IEquatable + public readonly partial struct MachineLearningQuotaUnit : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningListViewType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType ActiveOnly { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType All { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType ArchivedOnly { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType other) { throw null; } + public MachineLearningQuotaUnit(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit Count { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit left, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit left, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningLiteralJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput + public partial class MachineLearningQuotaUpdateContent { - public MachineLearningLiteralJobInput(string value) { } - public string Value { get { throw null; } set { } } + public MachineLearningQuotaUpdateContent() { } + public Azure.Core.AzureLocation? Location { get { throw null; } set { } } + public System.Collections.Generic.IList Value { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningLoadBalancerType : System.IEquatable + public readonly partial struct MachineLearningRecurrenceFrequency : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningLoadBalancerType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType InternalLoadBalancer { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType PublicIP { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType other) { throw null; } + public MachineLearningRecurrenceFrequency(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Day { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Hour { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Minute { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Month { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Week { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency left, Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency left, Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningRecurrenceSchedule + { + public MachineLearningRecurrenceSchedule(System.Collections.Generic.IEnumerable hours, System.Collections.Generic.IEnumerable minutes) { } + public System.Collections.Generic.IList Hours { get { throw null; } } + public System.Collections.Generic.IList Minutes { get { throw null; } } + public System.Collections.Generic.IList MonthDays { get { throw null; } set { } } + public System.Collections.Generic.IList WeekDays { get { throw null; } set { } } + } + public partial class MachineLearningRecurrenceTrigger : Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase + { + public MachineLearningRecurrenceTrigger(Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency frequency, int interval) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Frequency { get { throw null; } set { } } + public int Interval { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceSchedule Schedule { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningLogVerbosity : System.IEquatable + public readonly partial struct MachineLearningRemoteLoginPortPublicAccess : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningLogVerbosity(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Critical { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Debug { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Error { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Info { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity NotSet { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity Warning { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity other) { throw null; } + public MachineLearningRemoteLoginPortPublicAccess(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess Enabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess NotSpecified { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity left, Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity left, Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningManagedIdentity : Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration + public partial class MachineLearningResourceBase { - public MachineLearningManagedIdentity() { } - public System.Guid? ClientId { get { throw null; } set { } } - public System.Guid? ObjectId { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + public MachineLearningResourceBase() { } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } } - public partial class MachineLearningManagedIdentityAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties + public partial class MachineLearningResourceConfiguration { - public MachineLearningManagedIdentityAuthTypeWorkspaceConnection() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionManagedIdentity Credentials { get { throw null; } set { } } + public MachineLearningResourceConfiguration() { } + public int? InstanceCount { get { throw null; } set { } } + public string InstanceType { get { throw null; } set { } } + public System.Collections.Generic.IList Locations { get { throw null; } set { } } + public int? MaxInstanceCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } } - public partial class MachineLearningManagedOnlineDeployment : Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties + public partial class MachineLearningResourceName { - public MachineLearningManagedOnlineDeployment() { } + internal MachineLearningResourceName() { } + public string LocalizedValue { get { throw null; } } + public string Value { get { throw null; } } } - public partial class MachineLearningModelContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer + public partial class MachineLearningResourcePatch { - public MachineLearningModelContainerProperties() { } + public MachineLearningResourcePatch() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningModelSize : System.IEquatable + public partial class MachineLearningResourcePatchWithIdentity : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatch { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningModelSize(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize ExtraLarge { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize Large { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize Medium { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize None { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize Small { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize left, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize left, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize right) { throw null; } - public override string ToString() { throw null; } + public MachineLearningResourcePatchWithIdentity() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPartialManagedServiceIdentity Identity { get { throw null; } set { } } } - public partial class MachineLearningModelVersionCollectionGetAllOptions + public partial class MachineLearningResourceQuota { - public MachineLearningModelVersionCollectionGetAllOptions() { } - public string Description { get { throw null; } set { } } - public string Feed { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } - public int? Offset { get { throw null; } set { } } - public string OrderBy { get { throw null; } set { } } - public string Properties { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } - public string Tags { get { throw null; } set { } } - public int? Top { get { throw null; } set { } } - public string Version { get { throw null; } set { } } + internal MachineLearningResourceQuota() { } + public string AmlWorkspaceLocation { get { throw null; } } + public string Id { get { throw null; } } + public long? Limit { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName Name { get { throw null; } } + public string ResourceQuotaType { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? Unit { get { throw null; } } } - public partial class MachineLearningModelVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase + public partial class MachineLearningSasAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties { - public MachineLearningModelVersionProperties() { } - public System.Collections.Generic.IDictionary Flavors { get { throw null; } set { } } - public string JobName { get { throw null; } set { } } - public string ModelType { get { throw null; } set { } } - public System.Uri ModelUri { get { throw null; } set { } } + public MachineLearningSasAuthTypeWorkspaceConnection() { } + public string CredentialsSas { get { throw null; } set { } } + } + public partial class MachineLearningSasDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials + { + public MachineLearningSasDatastoreCredentials(Azure.ResourceManager.MachineLearning.Models.MachineLearningSasDatastoreSecrets secrets) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSasDatastoreSecrets Secrets { get { throw null; } set { } } + } + public partial class MachineLearningSasDatastoreSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets + { + public MachineLearningSasDatastoreSecrets() { } + public string SasToken { get { throw null; } set { } } + } + public abstract partial class MachineLearningScheduleAction + { + protected MachineLearningScheduleAction() { } + } + public partial class MachineLearningScheduleBase + { + public MachineLearningScheduleBase() { } + public string Id { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState? ProvisioningStatus { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? Status { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningMountAction : System.IEquatable + public readonly partial struct MachineLearningScheduleListViewType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningMountAction(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction Mount { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction Unmount { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction other) { throw null; } + public MachineLearningScheduleListViewType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType All { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType DisabledOnly { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType EnabledOnly { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningScheduleProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + { + public MachineLearningScheduleProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction action, Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase trigger) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction Action { get { throw null; } set { } } + public string DisplayName { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase Trigger { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningMountState : System.IEquatable + public readonly partial struct MachineLearningScheduleProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningMountState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState Mounted { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState MountFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState MountRequested { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState Unmounted { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState UnmountFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState UnmountRequested { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState other) { throw null; } + public MachineLearningScheduleProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState Completed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState Provisioning { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningNetwork : System.IEquatable + public readonly partial struct MachineLearningScheduleProvisioningStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningNetwork(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork Bridge { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork Host { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork other) { throw null; } + public MachineLearningScheduleProvisioningStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Canceled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Creating { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Deleting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Succeeded { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork left, Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork left, Azure.ResourceManager.MachineLearning.Models.MachineLearningNetwork right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningNodeState : System.IEquatable + public readonly partial struct MachineLearningScheduleStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningNodeState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Idle { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Leaving { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Preempted { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Preparing { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Running { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState Unusable { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState other) { throw null; } + public MachineLearningScheduleStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningNodeStateCounts - { - internal MachineLearningNodeStateCounts() { } - public int? IdleNodeCount { get { throw null; } } - public int? LeavingNodeCount { get { throw null; } } - public int? PreemptedNodeCount { get { throw null; } } - public int? PreparingNodeCount { get { throw null; } } - public int? RunningNodeCount { get { throw null; } } - public int? UnusableNodeCount { get { throw null; } } - } - public partial class MachineLearningNoneAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties - { - public MachineLearningNoneAuthTypeWorkspaceConnection() { } - } - public partial class MachineLearningNoneDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials - { - public MachineLearningNoneDatastoreCredentials() { } - } - public partial class MachineLearningNotebookPreparationError + public partial class MachineLearningScriptReference { - internal MachineLearningNotebookPreparationError() { } - public string ErrorMessage { get { throw null; } } - public int? StatusCode { get { throw null; } } + public MachineLearningScriptReference() { } + public string ScriptArguments { get { throw null; } set { } } + public string ScriptData { get { throw null; } set { } } + public string ScriptSource { get { throw null; } set { } } + public string Timeout { get { throw null; } set { } } } - public partial class MachineLearningNotebookResourceInfo + public partial class MachineLearningScriptsToExecute { - internal MachineLearningNotebookResourceInfo() { } - public string Fqdn { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookPreparationError NotebookPreparationError { get { throw null; } } - public string ResourceId { get { throw null; } } + public MachineLearningScriptsToExecute() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptReference CreationScript { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptReference StartupScript { get { throw null; } set { } } } - public partial class MachineLearningObjective + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningServiceDataAccessAuthIdentity : System.IEquatable { - public MachineLearningObjective(Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal goal, string primaryMetric) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningGoal Goal { get { throw null; } set { } } - public string PrimaryMetric { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningServiceDataAccessAuthIdentity(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity WorkspaceSystemAssignedIdentity { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity WorkspaceUserAssignedIdentity { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity left, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity left, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningOnlineDeploymentPatch : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatch + public partial class MachineLearningServicePrincipalDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials { - public MachineLearningOnlineDeploymentPatch() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuPatch Sku { get { throw null; } set { } } + public MachineLearningServicePrincipalDatastoreCredentials(System.Guid clientId, Azure.ResourceManager.MachineLearning.Models.MachineLearningServicePrincipalDatastoreSecrets secrets, System.Guid tenantId) { } + public System.Uri AuthorityUri { get { throw null; } set { } } + public System.Guid ClientId { get { throw null; } set { } } + public System.Uri ResourceUri { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningServicePrincipalDatastoreSecrets Secrets { get { throw null; } set { } } + public System.Guid TenantId { get { throw null; } set { } } } - public partial class MachineLearningOnlineDeploymentProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointDeploymentProperties + public partial class MachineLearningServicePrincipalDatastoreSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets { - public MachineLearningOnlineDeploymentProperties() { } - public bool? AppInsightsEnabled { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? EgressPublicNetworkAccess { get { throw null; } set { } } - public string InstanceType { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings LivenessProbe { get { throw null; } set { } } - public string Model { get { throw null; } set { } } - public string ModelMountPath { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings ReadinessProbe { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings RequestSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings ScaleSettings { get { throw null; } set { } } + public MachineLearningServicePrincipalDatastoreSecrets() { } + public string ClientSecret { get { throw null; } set { } } } - public partial class MachineLearningOnlineEndpointCollectionGetAllOptions + public partial class MachineLearningSharedPrivateLinkResource { - public MachineLearningOnlineEndpointCollectionGetAllOptions() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointComputeType? ComputeType { get { throw null; } set { } } - public int? Count { get { throw null; } set { } } + public MachineLearningSharedPrivateLinkResource() { } + public string GroupId { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString? OrderBy { get { throw null; } set { } } - public string Properties { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } - public string Tags { get { throw null; } set { } } - } - public partial class MachineLearningOnlineEndpointProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProperties - { - public MachineLearningOnlineEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode)) { } - public string Compute { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Traffic { get { throw null; } set { } } - } - public partial class MachineLearningOnlineRequestSettings - { - public MachineLearningOnlineRequestSettings() { } - public int? MaxConcurrentRequestsPerInstance { get { throw null; } set { } } - public System.TimeSpan? MaxQueueWait { get { throw null; } set { } } - public System.TimeSpan? RequestTimeout { get { throw null; } set { } } - } - public abstract partial class MachineLearningOnlineScaleSettings - { - protected MachineLearningOnlineScaleSettings() { } + public Azure.Core.ResourceIdentifier PrivateLinkResourceId { get { throw null; } set { } } + public string RequestMessage { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus? Status { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningOperatingSystemType : System.IEquatable + public readonly partial struct MachineLearningShortSeriesHandlingConfiguration : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningOperatingSystemType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType Linux { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType Windows { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType other) { throw null; } + public MachineLearningShortSeriesHandlingConfiguration(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration Auto { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration Drop { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration Pad { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration left, Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration left, Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningOperationName : System.IEquatable + public partial class MachineLearningSku { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningOperationName(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Create { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Delete { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Reimage { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Restart { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Start { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName Stop { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName right) { throw null; } - public override string ToString() { throw null; } + public MachineLearningSku(string name) { } + public int? Capacity { get { throw null; } set { } } + public string Family { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Size { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier? Tier { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningOperationStatus : System.IEquatable + public partial class MachineLearningSkuCapacity { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningOperationStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus CreateFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus DeleteFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus InProgress { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus ReimageFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus RestartFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus StartFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus StopFailed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus right) { throw null; } - public override string ToString() { throw null; } + internal MachineLearningSkuCapacity() { } + public int? Default { get { throw null; } } + public int? Maximum { get { throw null; } } + public int? Minimum { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType? ScaleType { get { throw null; } } + } + public partial class MachineLearningSkuDetail + { + internal MachineLearningSkuDetail() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuCapacity Capacity { get { throw null; } } + public string ResourceType { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuSetting Sku { get { throw null; } } + } + public partial class MachineLearningSkuPatch + { + public MachineLearningSkuPatch() { } + public int? Capacity { get { throw null; } set { } } + public string Family { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Size { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier? Tier { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningOperationTrigger : System.IEquatable + public readonly partial struct MachineLearningSkuScaleType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningOperationTrigger(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger IdleShutdown { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger Schedule { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger User { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger other) { throw null; } + public MachineLearningSkuScaleType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType Automatic { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType Manual { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType None { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningSkuSetting + { + internal MachineLearningSkuSetting() { } + public string Name { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier? Tier { get { throw null; } } + } + public enum MachineLearningSkuTier + { + Free = 0, + Basic = 1, + Standard = 2, + Premium = 3, + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningOrderString : System.IEquatable + public readonly partial struct MachineLearningSourceType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningOrderString(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString CreatedAtAsc { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString CreatedAtDesc { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString UpdatedAtAsc { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString UpdatedAtDesc { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString other) { throw null; } + public MachineLearningSourceType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType Dataset { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType Datastore { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType Uri { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOrderString right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningOSType : System.IEquatable + public readonly partial struct MachineLearningSshPublicAccess : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningOSType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType Linux { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType Windows { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType other) { throw null; } + public MachineLearningSshPublicAccess(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningOutputDeliveryMode : System.IEquatable + public readonly partial struct MachineLearningSslConfigStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningOutputDeliveryMode(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode ReadWriteMount { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode Upload { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode other) { throw null; } + public MachineLearningSslConfigStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus Auto { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningOutputPathAssetReference : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetReferenceBase - { - public MachineLearningOutputPathAssetReference() { } - public Azure.Core.ResourceIdentifier JobId { get { throw null; } set { } } - public string Path { get { throw null; } set { } } - } - public partial class MachineLearningPartialManagedServiceIdentity - { - public MachineLearningPartialManagedServiceIdentity() { } - public Azure.ResourceManager.Models.ManagedServiceIdentityType? ManagedServiceIdentityType { get { throw null; } set { } } - public System.Collections.Generic.IDictionary UserAssignedIdentities { get { throw null; } } - } - public partial class MachineLearningPasswordDetail - { - internal MachineLearningPasswordDetail() { } - public string Name { get { throw null; } } - public string Value { get { throw null; } } - } - public partial class MachineLearningPatAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties - { - public MachineLearningPatAuthTypeWorkspaceConnection() { } - public string CredentialsPat { get { throw null; } set { } } - } - public partial class MachineLearningPipelineJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties + public partial class MachineLearningSslConfiguration { - public MachineLearningPipelineJob() { } - public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Jobs { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } - public System.BinaryData Settings { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier SourceJobId { get { throw null; } set { } } + public MachineLearningSslConfiguration() { } + public string Cert { get { throw null; } set { } } + public string Cname { get { throw null; } set { } } + public string Key { get { throw null; } set { } } + public string LeafDomainLabel { get { throw null; } set { } } + public bool? OverwriteExistingDomain { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus? Status { get { throw null; } set { } } } - public partial class MachineLearningPrivateEndpoint + public partial class MachineLearningStackEnsembleSettings { - public MachineLearningPrivateEndpoint() { } - public Azure.Core.ResourceIdentifier Id { get { throw null; } } - public Azure.Core.ResourceIdentifier SubnetArmId { get { throw null; } } + public MachineLearningStackEnsembleSettings() { } + public System.BinaryData StackMetaLearnerKWargs { get { throw null; } set { } } + public double? StackMetaLearnerTrainPercentage { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType? StackMetaLearnerType { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningPrivateEndpointConnectionProvisioningState : System.IEquatable + public readonly partial struct MachineLearningStackMetaLearnerType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningPrivateEndpointConnectionProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState other) { throw null; } + public MachineLearningStackMetaLearnerType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType ElasticNet { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType ElasticNetCV { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LightGBMClassifier { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LightGBMRegressor { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LinearRegression { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LogisticRegression { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LogisticRegressionCV { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType None { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningPrivateEndpointServiceConnectionStatus : System.IEquatable + public readonly partial struct MachineLearningStorageAccountType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningPrivateEndpointServiceConnectionStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Disconnected { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Timeout { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus other) { throw null; } + public MachineLearningStorageAccountType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType PremiumLrs { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType StandardLrs { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningPrivateLinkResource : Azure.ResourceManager.Models.TrackedResourceData + public partial class MachineLearningSweepJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties { - public MachineLearningPrivateLinkResource(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public string GroupId { get { throw null; } } - public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } - public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } + public MachineLearningSweepJob(Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective objective, Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm samplingAlgorithm, System.BinaryData searchSpace, Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent trial) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy EarlyTermination { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJobLimits Limits { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective Objective { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.QueueSettings QueueSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm SamplingAlgorithm { get { throw null; } set { } } + public System.BinaryData SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent Trial { get { throw null; } set { } } } - public partial class MachineLearningPrivateLinkServiceConnectionState + public partial class MachineLearningSweepJobLimits : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobLimits { - public MachineLearningPrivateLinkServiceConnectionState() { } - public string ActionsRequired { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + public MachineLearningSweepJobLimits() { } + public int? MaxConcurrentTrials { get { throw null; } set { } } + public int? MaxTotalTrials { get { throw null; } set { } } + public System.TimeSpan? TrialTimeout { get { throw null; } set { } } } - public partial class MachineLearningProbeSettings + public partial class MachineLearningSynapseSpark : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { - public MachineLearningProbeSettings() { } - public int? FailureThreshold { get { throw null; } set { } } - public System.TimeSpan? InitialDelay { get { throw null; } set { } } - public System.TimeSpan? Period { get { throw null; } set { } } - public int? SuccessThreshold { get { throw null; } set { } } - public System.TimeSpan? Timeout { get { throw null; } set { } } + public MachineLearningSynapseSpark() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSynapseSparkProperties Properties { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningProvisioningState : System.IEquatable + public partial class MachineLearningSynapseSparkProperties { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Unknown { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState right) { throw null; } - public override string ToString() { throw null; } + public MachineLearningSynapseSparkProperties() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningAutoPauseProperties AutoPauseProperties { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningAutoScaleProperties AutoScaleProperties { get { throw null; } set { } } + public int? NodeCount { get { throw null; } set { } } + public string NodeSize { get { throw null; } set { } } + public string NodeSizeFamily { get { throw null; } set { } } + public string PoolName { get { throw null; } set { } } + public string ResourceGroup { get { throw null; } set { } } + public string SparkVersion { get { throw null; } set { } } + public string SubscriptionId { get { throw null; } set { } } + public string WorkspaceName { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningPublicNetworkAccess : System.IEquatable + public partial class MachineLearningTable : Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningPublicNetworkAccess(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess right) { throw null; } - public override string ToString() { throw null; } + public MachineLearningTable(System.Uri dataUri) : base (default(System.Uri)) { } + public System.Collections.Generic.IList ReferencedUris { get { throw null; } set { } } + } + public partial class MachineLearningTableJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput + { + public MachineLearningTableJobInput(System.Uri uri) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + } + public partial class MachineLearningTableJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput + { + public MachineLearningTableJobOutput() { } + public string AssetName { get { throw null; } set { } } + public string AssetVersion { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting AutoDeleteSetting { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + } + public partial class MachineLearningTargetUtilizationScaleSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings + { + public MachineLearningTargetUtilizationScaleSettings() { } + public int? MaxInstances { get { throw null; } set { } } + public int? MinInstances { get { throw null; } set { } } + public System.TimeSpan? PollingInterval { get { throw null; } set { } } + public int? TargetUtilizationPercentage { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningPublicNetworkAccessType : System.IEquatable + public partial class MachineLearningTrainingSettings { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningPublicNetworkAccessType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType right) { throw null; } - public override string ToString() { throw null; } + public MachineLearningTrainingSettings() { } + public System.TimeSpan? EnsembleModelDownloadTimeout { get { throw null; } set { } } + public bool? IsDnnTrainingEnabled { get { throw null; } set { } } + public bool? IsModelExplainabilityEnabled { get { throw null; } set { } } + public bool? IsOnnxCompatibleModelsEnabled { get { throw null; } set { } } + public bool? IsStackEnsembleEnabled { get { throw null; } set { } } + public bool? IsVoteEnsembleEnabled { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningStackEnsembleSettings StackEnsembleSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.TrainingMode? TrainingMode { get { throw null; } set { } } } - public partial class MachineLearningQuotaProperties + public partial class MachineLearningTrialComponent { - public MachineLearningQuotaProperties() { } - public string Id { get { throw null; } set { } } - public long? Limit { get { throw null; } set { } } - public string QuotaBasePropertiesType { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? Unit { get { throw null; } set { } } + public MachineLearningTrialComponent(string command, Azure.Core.ResourceIdentifier environmentId) { } + public Azure.Core.ResourceIdentifier CodeId { get { throw null; } set { } } + public string Command { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration Distribution { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier EnvironmentId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration Resources { get { throw null; } set { } } + } + public abstract partial class MachineLearningTriggerBase + { + protected MachineLearningTriggerBase() { } + public string EndTime { get { throw null; } set { } } + public string StartTime { get { throw null; } set { } } + public string TimeZone { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningQuotaUnit : System.IEquatable + public readonly partial struct MachineLearningTriggerType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningQuotaUnit(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit Count { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit other) { throw null; } + public MachineLearningTriggerType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType Cron { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType Recurrence { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit left, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit left, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningQuotaUpdateContent + public partial class MachineLearningTritonModelJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput { - public MachineLearningQuotaUpdateContent() { } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public System.Collections.Generic.IList Value { get { throw null; } } + public MachineLearningTritonModelJobInput(System.Uri uri) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + } + public partial class MachineLearningTritonModelJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput + { + public MachineLearningTritonModelJobOutput() { } + public string AssetName { get { throw null; } set { } } + public string AssetVersion { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting AutoDeleteSetting { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningRecurrenceFrequency : System.IEquatable + public readonly partial struct MachineLearningUnderlyingResourceAction : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningRecurrenceFrequency(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Day { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Hour { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Minute { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Month { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Week { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency other) { throw null; } + public MachineLearningUnderlyingResourceAction(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction Delete { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction Detach { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency left, Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency left, Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningRecurrenceSchedule - { - public MachineLearningRecurrenceSchedule(System.Collections.Generic.IEnumerable hours, System.Collections.Generic.IEnumerable minutes) { } - public System.Collections.Generic.IList Hours { get { throw null; } } - public System.Collections.Generic.IList Minutes { get { throw null; } } - public System.Collections.Generic.IList MonthDays { get { throw null; } set { } } - public System.Collections.Generic.IList WeekDays { get { throw null; } set { } } - } - public partial class MachineLearningRecurrenceTrigger : Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase - { - public MachineLearningRecurrenceTrigger(Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency frequency, int interval) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency Frequency { get { throw null; } set { } } - public int Interval { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceSchedule Schedule { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningRemoteLoginPortPublicAccess : System.IEquatable + public readonly partial struct MachineLearningUnitOfMeasure : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningRemoteLoginPortPublicAccess(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess Enabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess NotSpecified { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess other) { throw null; } + public MachineLearningUnitOfMeasure(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure OneHour { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningResourceBase + public partial class MachineLearningUriFileDataVersion : Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties { - public MachineLearningResourceBase() { } - public string Description { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + public MachineLearningUriFileDataVersion(System.Uri dataUri) : base (default(System.Uri)) { } } - public partial class MachineLearningResourceConfiguration + public partial class MachineLearningUriFileJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput { - public MachineLearningResourceConfiguration() { } - public int? InstanceCount { get { throw null; } set { } } - public string InstanceType { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } + public MachineLearningUriFileJobInput(System.Uri uri) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } } - public partial class MachineLearningResourceName + public partial class MachineLearningUriFileJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput { - internal MachineLearningResourceName() { } - public string LocalizedValue { get { throw null; } } - public string Value { get { throw null; } } + public MachineLearningUriFileJobOutput() { } + public string AssetName { get { throw null; } set { } } + public string AssetVersion { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting AutoDeleteSetting { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } } - public partial class MachineLearningResourcePatch + public partial class MachineLearningUriFolderDataVersion : Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties { - public MachineLearningResourcePatch() { } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public MachineLearningUriFolderDataVersion(System.Uri dataUri) : base (default(System.Uri)) { } } - public partial class MachineLearningResourcePatchWithIdentity : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatch + public partial class MachineLearningUriFolderJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput { - public MachineLearningResourcePatchWithIdentity() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPartialManagedServiceIdentity Identity { get { throw null; } set { } } + public MachineLearningUriFolderJobInput(System.Uri uri) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } } - public partial class MachineLearningResourceQuota + public partial class MachineLearningUriFolderJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput { - internal MachineLearningResourceQuota() { } + public MachineLearningUriFolderJobOutput() { } + public string AssetName { get { throw null; } set { } } + public string AssetVersion { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting AutoDeleteSetting { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + } + public partial class MachineLearningUsage + { + internal MachineLearningUsage() { } public string AmlWorkspaceLocation { get { throw null; } } + public long? CurrentValue { get { throw null; } } public string Id { get { throw null; } } public long? Limit { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName Name { get { throw null; } } - public string ResourceQuotaType { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? Unit { get { throw null; } } - } - public partial class MachineLearningSasAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties - { - public MachineLearningSasAuthTypeWorkspaceConnection() { } - public string CredentialsSas { get { throw null; } set { } } - } - public partial class MachineLearningSasDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials - { - public MachineLearningSasDatastoreCredentials(Azure.ResourceManager.MachineLearning.Models.MachineLearningSasDatastoreSecrets secrets) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSasDatastoreSecrets Secrets { get { throw null; } set { } } - } - public partial class MachineLearningSasDatastoreSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets - { - public MachineLearningSasDatastoreSecrets() { } - public string SasToken { get { throw null; } set { } } - } - public abstract partial class MachineLearningScheduleAction - { - protected MachineLearningScheduleAction() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageName Name { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit? Unit { get { throw null; } } + public string UsageType { get { throw null; } } } - public partial class MachineLearningScheduleBase + public partial class MachineLearningUsageName { - internal MachineLearningScheduleBase() { } - public string Id { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState? ProvisioningStatus { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? Status { get { throw null; } } + internal MachineLearningUsageName() { } + public string LocalizedValue { get { throw null; } } + public string Value { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningScheduleListViewType : System.IEquatable + public readonly partial struct MachineLearningUsageUnit : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningScheduleListViewType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType All { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType DisabledOnly { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType EnabledOnly { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType other) { throw null; } + public MachineLearningUsageUnit(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit Count { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleListViewType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningScheduleProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + public partial class MachineLearningUserAccountCredentials { - public MachineLearningScheduleProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction action, Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase trigger) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction Action { get { throw null; } set { } } - public string DisplayName { get { throw null; } set { } } - public bool? IsEnabled { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase Trigger { get { throw null; } set { } } + public MachineLearningUserAccountCredentials(string adminUserName) { } + public string AdminUserName { get { throw null; } set { } } + public string AdminUserPassword { get { throw null; } set { } } + public string AdminUserSshPublicKey { get { throw null; } set { } } + } + public partial class MachineLearningUserFeature + { + internal MachineLearningUserFeature() { } + public string Description { get { throw null; } } + public string DisplayName { get { throw null; } } + public string Id { get { throw null; } } + } + public partial class MachineLearningUserIdentity : Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration + { + public MachineLearningUserIdentity() { } + } + public partial class MachineLearningUsernamePasswordAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties + { + public MachineLearningUsernamePasswordAuthTypeWorkspaceConnection() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionUsernamePassword Credentials { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningScheduleProvisioningState : System.IEquatable + public readonly partial struct MachineLearningUseStl : System.IEquatable { private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningScheduleProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState Completed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState Provisioning { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState other) { throw null; } + private readonly int _dummyPrimitive; + public MachineLearningUseStl(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl Season { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl SeasonTrend { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningVirtualMachineCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + { + public MachineLearningVirtualMachineCompute() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningVirtualMachineProperties Properties { get { throw null; } set { } } + } + public partial class MachineLearningVirtualMachineProperties + { + public MachineLearningVirtualMachineProperties() { } + public System.Net.IPAddress Address { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials AdministratorAccount { get { throw null; } set { } } + public bool? IsNotebookInstanceCompute { get { throw null; } set { } } + public int? NotebookServerPort { get { throw null; } set { } } + public int? SshPort { get { throw null; } set { } } + public string VirtualMachineSize { get { throw null; } set { } } + } + public partial class MachineLearningVirtualMachineSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeSecrets + { + internal MachineLearningVirtualMachineSecrets() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials AdministratorAccount { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningScheduleProvisioningStatus : System.IEquatable + public readonly partial struct MachineLearningVmPriceOSType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningScheduleProvisioningStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Canceled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Creating { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Deleting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Succeeded { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus other) { throw null; } + public MachineLearningVmPriceOSType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType Linux { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType Windows { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProvisioningStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningScheduleStatus : System.IEquatable + public readonly partial struct MachineLearningVmPriority : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningScheduleStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus other) { throw null; } + public MachineLearningVmPriority(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority Dedicated { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority LowPriority { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningScriptReference + public partial class MachineLearningVmSize { - public MachineLearningScriptReference() { } - public string ScriptArguments { get { throw null; } set { } } - public string ScriptData { get { throw null; } set { } } - public string ScriptSource { get { throw null; } set { } } - public string Timeout { get { throw null; } set { } } + internal MachineLearningVmSize() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices EstimatedVmPrices { get { throw null; } } + public string Family { get { throw null; } } + public int? Gpus { get { throw null; } } + public bool? IsPremiumIOSupported { get { throw null; } } + public bool? LowPriorityCapable { get { throw null; } } + public int? MaxResourceVolumeMB { get { throw null; } } + public double? MemoryGB { get { throw null; } } + public string Name { get { throw null; } } + public int? OSVhdSizeMB { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SupportedComputeTypes { get { throw null; } } + public int? VCpus { get { throw null; } } } - public partial class MachineLearningScriptsToExecute + public partial class MachineLearningVmSshCredentials { - public MachineLearningScriptsToExecute() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptReference CreationScript { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptReference StartupScript { get { throw null; } set { } } + public MachineLearningVmSshCredentials() { } + public string Password { get { throw null; } set { } } + public string PrivateKeyData { get { throw null; } set { } } + public string PublicKeyData { get { throw null; } set { } } + public string Username { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningServiceDataAccessAuthIdentity : System.IEquatable + public readonly partial struct MachineLearningVmTier : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningServiceDataAccessAuthIdentity(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity None { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity WorkspaceSystemAssignedIdentity { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity WorkspaceUserAssignedIdentity { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity other) { throw null; } + public MachineLearningVmTier(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier LowPriority { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier Spot { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier Standard { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity left, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity left, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningServicePrincipalDatastoreCredentials : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials + public partial class MachineLearningWorkspaceConnectionManagedIdentity { - public MachineLearningServicePrincipalDatastoreCredentials(System.Guid clientId, Azure.ResourceManager.MachineLearning.Models.MachineLearningServicePrincipalDatastoreSecrets secrets, System.Guid tenantId) { } - public System.Uri AuthorityUri { get { throw null; } set { } } - public System.Guid ClientId { get { throw null; } set { } } - public System.Uri ResourceUri { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningServicePrincipalDatastoreSecrets Secrets { get { throw null; } set { } } - public System.Guid TenantId { get { throw null; } set { } } + public MachineLearningWorkspaceConnectionManagedIdentity() { } + public string ClientId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } } - public partial class MachineLearningServicePrincipalDatastoreSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreSecrets + public partial class MachineLearningWorkspaceConnectionPatch { - public MachineLearningServicePrincipalDatastoreSecrets() { } - public string ClientSecret { get { throw null; } set { } } + public MachineLearningWorkspaceConnectionPatch() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties Properties { get { throw null; } set { } } } - public partial class MachineLearningSharedPrivateLinkResource + public abstract partial class MachineLearningWorkspaceConnectionProperties { - public MachineLearningSharedPrivateLinkResource() { } - public string GroupId { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier PrivateLinkResourceId { get { throw null; } set { } } - public string RequestMessage { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + protected MachineLearningWorkspaceConnectionProperties() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory? Category { get { throw null; } set { } } + public System.DateTimeOffset? ExpiryOn { get { throw null; } set { } } + public System.BinaryData Metadata { get { throw null; } set { } } + public string Target { get { throw null; } set { } } + } + public partial class MachineLearningWorkspaceConnectionUsernamePassword + { + public MachineLearningWorkspaceConnectionUsernamePassword() { } + public string Password { get { throw null; } set { } } + public string Username { get { throw null; } set { } } + } + public partial class MachineLearningWorkspaceDiagnoseContent + { + public MachineLearningWorkspaceDiagnoseContent() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseProperties Value { get { throw null; } set { } } + } + public partial class MachineLearningWorkspaceDiagnoseProperties + { + public MachineLearningWorkspaceDiagnoseProperties() { } + public System.Collections.Generic.IDictionary ApplicationInsights { get { throw null; } } + public System.Collections.Generic.IDictionary ContainerRegistry { get { throw null; } } + public System.Collections.Generic.IDictionary DnsResolution { get { throw null; } } + public System.Collections.Generic.IDictionary KeyVault { get { throw null; } } + public System.Collections.Generic.IDictionary Nsg { get { throw null; } } + public System.Collections.Generic.IDictionary Others { get { throw null; } } + public System.Collections.Generic.IDictionary ResourceLock { get { throw null; } } + public System.Collections.Generic.IDictionary StorageAccount { get { throw null; } } + public System.Collections.Generic.IDictionary Udr { get { throw null; } } + } + public partial class MachineLearningWorkspaceDiagnoseResult + { + internal MachineLearningWorkspaceDiagnoseResult() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultValue Value { get { throw null; } } + } + public partial class MachineLearningWorkspaceGetKeysResult + { + internal MachineLearningWorkspaceGetKeysResult() { } + public string AppInsightsInstrumentationKey { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials ContainerRegistryCredentials { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult NotebookAccessKeys { get { throw null; } } + public string UserStorageArmId { get { throw null; } } + public string UserStorageKey { get { throw null; } } + } + public partial class MachineLearningWorkspaceGetNotebookKeysResult + { + internal MachineLearningWorkspaceGetNotebookKeysResult() { } + public string PrimaryAccessKey { get { throw null; } } + public string SecondaryAccessKey { get { throw null; } } + } + public partial class MachineLearningWorkspaceGetStorageAccountKeysResult + { + internal MachineLearningWorkspaceGetStorageAccountKeysResult() { } + public string UserStorageKey { get { throw null; } } + } + public partial class MachineLearningWorkspaceNotebookAccessTokenResult + { + internal MachineLearningWorkspaceNotebookAccessTokenResult() { } + public string AccessToken { get { throw null; } } + public int? ExpiresIn { get { throw null; } } + public string HostName { get { throw null; } } + public string NotebookResourceId { get { throw null; } } + public string PublicDns { get { throw null; } } + public string RefreshToken { get { throw null; } } + public string Scope { get { throw null; } } + public string TokenType { get { throw null; } } + } + public partial class MachineLearningWorkspacePatch + { + public MachineLearningWorkspacePatch() { } + public string ApplicationInsights { get { throw null; } set { } } + public string ContainerRegistry { get { throw null; } set { } } + public int? CosmosDbCollectionsThroughput { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public bool? EnableDataIsolation { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.FeatureStoreSettings FeatureStoreSettings { get { throw null; } set { } } + public string FriendlyName { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public string ImageBuildCompute { get { throw null; } set { } } + public string KeyIdentifier { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings ManagedNetwork { get { throw null; } set { } } + public string PrimaryUserAssignedIdentity { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } + public int? SoftDeleteRetentionInDays { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public bool? V1LegacyMode { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningShortSeriesHandlingConfiguration : System.IEquatable + public readonly partial struct MachineLearningWorkspaceQuotaStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningShortSeriesHandlingConfiguration(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration Auto { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration Drop { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration None { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration Pad { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration other) { throw null; } + public MachineLearningWorkspaceQuotaStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus Failure { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus InvalidQuotaBelowClusterMinimum { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus InvalidQuotaExceedsSubscriptionLimit { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus InvalidVmFamilyName { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus OperationNotEnabledForRegion { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus OperationNotSupportedForSku { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus Success { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus Undefined { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration left, Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration left, Azure.ResourceManager.MachineLearning.Models.MachineLearningShortSeriesHandlingConfiguration right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningSku + public partial class MachineLearningWorkspaceQuotaUpdate { - public MachineLearningSku(string name) { } - public int? Capacity { get { throw null; } set { } } - public string Family { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public string Size { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier? Tier { get { throw null; } set { } } + internal MachineLearningWorkspaceQuotaUpdate() { } + public string Id { get { throw null; } } + public long? Limit { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus? Status { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? Unit { get { throw null; } } + public string UpdateWorkspaceQuotasType { get { throw null; } } + } + public partial class ManagedComputeIdentity : Azure.ResourceManager.MachineLearning.Models.MonitorComputeIdentityBase + { + public ManagedComputeIdentity() { } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } } - public partial class MachineLearningSkuCapacity + public partial class ManagedNetworkProvisionContent { - internal MachineLearningSkuCapacity() { } - public int? Default { get { throw null; } } - public int? Maximum { get { throw null; } } - public int? Minimum { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType? ScaleType { get { throw null; } } + public ManagedNetworkProvisionContent() { } + public bool? IncludeSpark { get { throw null; } set { } } } - public partial class MachineLearningSkuDetail + public partial class ManagedNetworkProvisionStatus { - internal MachineLearningSkuDetail() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuCapacity Capacity { get { throw null; } } - public string ResourceType { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuSetting Sku { get { throw null; } } + public ManagedNetworkProvisionStatus() { } + public bool? SparkReady { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus? Status { get { throw null; } set { } } } - public partial class MachineLearningSkuPatch + public partial class ManagedNetworkSettings { - public MachineLearningSkuPatch() { } - public int? Capacity { get { throw null; } set { } } - public string Family { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public string Size { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier? Tier { get { throw null; } set { } } + public ManagedNetworkSettings() { } + public Azure.ResourceManager.MachineLearning.Models.IsolationMode? IsolationMode { get { throw null; } set { } } + public string NetworkId { get { throw null; } } + public System.Collections.Generic.IDictionary OutboundRules { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionStatus Status { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningSkuScaleType : System.IEquatable + public readonly partial struct ManagedNetworkStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningSkuScaleType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType Automatic { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType Manual { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType None { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType other) { throw null; } + public ManagedNetworkStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus Active { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus Inactive { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus left, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus left, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningSkuSetting - { - internal MachineLearningSkuSetting() { } - public string Name { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier? Tier { get { throw null; } } - } - public enum MachineLearningSkuTier + public partial class MaterializationSettings { - Free = 0, - Basic = 1, - Standard = 2, - Premium = 3, + public MaterializationSettings() { } + public Azure.ResourceManager.MachineLearning.Models.NotificationSetting Notification { get { throw null; } set { } } + public string ResourceInstanceType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceTrigger Schedule { get { throw null; } set { } } + public System.Collections.Generic.IDictionary SparkConfiguration { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType? StoreType { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningSourceType : System.IEquatable + public readonly partial struct MaterializationStoreType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningSourceType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType Dataset { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType Datastore { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType Uri { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType other) { throw null; } + public MaterializationStoreType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType Offline { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType Online { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType OnlineAndOffline { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType left, Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType left, Azure.ResourceManager.MachineLearning.Models.MaterializationStoreType right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningSshPublicAccess : System.IEquatable + public partial class MedianStoppingPolicy : Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningSshPublicAccess(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess right) { throw null; } - public override string ToString() { throw null; } + public MedianStoppingPolicy() { } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningSslConfigStatus : System.IEquatable + public abstract partial class MLAssistConfiguration { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MachineLearningSslConfigStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus Auto { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus right) { throw null; } - public override string ToString() { throw null; } + protected MLAssistConfiguration() { } } - public partial class MachineLearningSslConfiguration + public partial class MLAssistConfigurationDisabled : Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration { - public MachineLearningSslConfiguration() { } - public string Cert { get { throw null; } set { } } - public string Cname { get { throw null; } set { } } - public string Key { get { throw null; } set { } } - public string LeafDomainLabel { get { throw null; } set { } } - public bool? OverwriteExistingDomain { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfigStatus? Status { get { throw null; } set { } } + public MLAssistConfigurationDisabled() { } } - public partial class MachineLearningStackEnsembleSettings + public partial class MLAssistConfigurationEnabled : Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration { - public MachineLearningStackEnsembleSettings() { } - public System.BinaryData StackMetaLearnerKWargs { get { throw null; } set { } } - public double? StackMetaLearnerTrainPercentage { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType? StackMetaLearnerType { get { throw null; } set { } } + public MLAssistConfigurationEnabled(string inferencingComputeBinding, string trainingComputeBinding) { } + public string InferencingComputeBinding { get { throw null; } set { } } + public string TrainingComputeBinding { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningStackMetaLearnerType : System.IEquatable + public readonly partial struct MlflowAutologger : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningStackMetaLearnerType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType ElasticNet { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType ElasticNetCV { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LightGBMClassifier { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LightGBMRegressor { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LinearRegression { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LogisticRegression { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType LogisticRegressionCV { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType None { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType other) { throw null; } + public MlflowAutologger(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MlflowAutologger Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MlflowAutologger Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MlflowAutologger other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningStackMetaLearnerType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MlflowAutologger left, Azure.ResourceManager.MachineLearning.Models.MlflowAutologger right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MlflowAutologger (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MlflowAutologger left, Azure.ResourceManager.MachineLearning.Models.MlflowAutologger right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningStorageAccountType : System.IEquatable + public readonly partial struct MLFlowAutologgerState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningStorageAccountType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType PremiumLrs { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType StandardLrs { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType other) { throw null; } + public MLFlowAutologgerState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningStorageAccountType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState left, Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState left, Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningSweepJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties - { - public MachineLearningSweepJob(Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective objective, Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm samplingAlgorithm, System.BinaryData searchSpace, Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent trial) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy EarlyTermination { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJobLimits Limits { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective Objective { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm SamplingAlgorithm { get { throw null; } set { } } - public System.BinaryData SearchSpace { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent Trial { get { throw null; } set { } } - } - public partial class MachineLearningSweepJobLimits : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobLimits + public partial class ModelConfiguration { - public MachineLearningSweepJobLimits() { } - public int? MaxConcurrentTrials { get { throw null; } set { } } - public int? MaxTotalTrials { get { throw null; } set { } } - public System.TimeSpan? TrialTimeout { get { throw null; } set { } } + public ModelConfiguration() { } + public Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode? Mode { get { throw null; } set { } } + public string MountPath { get { throw null; } set { } } } - public partial class MachineLearningSynapseSpark : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties + public partial class ModelPackageInput { - public MachineLearningSynapseSpark() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSynapseSparkProperties Properties { get { throw null; } set { } } + public ModelPackageInput(Azure.ResourceManager.MachineLearning.Models.PackageInputType inputType, Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase path) { } + public Azure.ResourceManager.MachineLearning.Models.PackageInputType InputType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode? Mode { get { throw null; } set { } } + public string MountPath { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase Path { get { throw null; } set { } } } - public partial class MachineLearningSynapseSparkProperties + public abstract partial class ModelPerformanceMetricThresholdBase { - public MachineLearningSynapseSparkProperties() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningAutoPauseProperties AutoPauseProperties { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningAutoScaleProperties AutoScaleProperties { get { throw null; } set { } } - public int? NodeCount { get { throw null; } set { } } - public string NodeSize { get { throw null; } set { } } - public string NodeSizeFamily { get { throw null; } set { } } - public string PoolName { get { throw null; } set { } } - public string ResourceGroup { get { throw null; } set { } } - public string SparkVersion { get { throw null; } set { } } - public string SubscriptionId { get { throw null; } set { } } - public string WorkspaceName { get { throw null; } set { } } + protected ModelPerformanceMetricThresholdBase() { } + public double? ThresholdValue { get { throw null; } set { } } } - public partial class MachineLearningTable : Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties + public partial class ModelPerformanceSignal : Azure.ResourceManager.MachineLearning.Models.MonitoringSignalBase { - public MachineLearningTable(System.Uri dataUri) : base (default(System.Uri)) { } - public System.Collections.Generic.IList ReferencedUris { get { throw null; } set { } } + public ModelPerformanceSignal(Azure.ResourceManager.MachineLearning.Models.ModelPerformanceMetricThresholdBase metricThreshold, System.Collections.Generic.IEnumerable productionData, Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase referenceData) { } + public Azure.ResourceManager.MachineLearning.Models.MonitoringDataSegment DataSegment { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ModelPerformanceMetricThresholdBase MetricThreshold { get { throw null; } set { } } + public System.Collections.Generic.IList ProductionData { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ReferenceData { get { throw null; } set { } } } - public partial class MachineLearningTableJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ModelTaskType : System.IEquatable { - public MachineLearningTableJobInput(System.Uri uri) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ModelTaskType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ModelTaskType Classification { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ModelTaskType QuestionAnswering { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ModelTaskType Regression { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ModelTaskType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ModelTaskType left, Azure.ResourceManager.MachineLearning.Models.ModelTaskType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ModelTaskType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ModelTaskType left, Azure.ResourceManager.MachineLearning.Models.ModelTaskType right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningTableJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput + public abstract partial class MonitorComputeConfigurationBase { - public MachineLearningTableJobOutput() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + protected MonitorComputeConfigurationBase() { } } - public partial class MachineLearningTargetUtilizationScaleSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings + public abstract partial class MonitorComputeIdentityBase { - public MachineLearningTargetUtilizationScaleSettings() { } - public int? MaxInstances { get { throw null; } set { } } - public int? MinInstances { get { throw null; } set { } } - public System.TimeSpan? PollingInterval { get { throw null; } set { } } - public int? TargetUtilizationPercentage { get { throw null; } set { } } + protected MonitorComputeIdentityBase() { } } - public partial class MachineLearningTrainingSettings + public partial class MonitorDefinition { - public MachineLearningTrainingSettings() { } - public System.TimeSpan? EnsembleModelDownloadTimeout { get { throw null; } set { } } - public bool? IsDnnTrainingEnabled { get { throw null; } set { } } - public bool? IsModelExplainabilityEnabled { get { throw null; } set { } } - public bool? IsOnnxCompatibleModelsEnabled { get { throw null; } set { } } - public bool? IsStackEnsembleEnabled { get { throw null; } set { } } - public bool? IsVoteEnsembleEnabled { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningStackEnsembleSettings StackEnsembleSettings { get { throw null; } set { } } + public MonitorDefinition(Azure.ResourceManager.MachineLearning.Models.MonitorComputeConfigurationBase computeConfiguration, System.Collections.Generic.IDictionary signals) { } + public Azure.ResourceManager.MachineLearning.Models.MonitoringAlertNotificationSettingsBase AlertNotificationSetting { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MonitorComputeConfigurationBase ComputeConfiguration { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringTarget MonitoringTarget { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Signals { get { throw null; } } } - public partial class MachineLearningTrialComponent + public abstract partial class MonitoringAlertNotificationSettingsBase { - public MachineLearningTrialComponent(string command, Azure.Core.ResourceIdentifier environmentId) { } - public Azure.Core.ResourceIdentifier CodeId { get { throw null; } set { } } - public string Command { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration Distribution { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier EnvironmentId { get { throw null; } set { } } - public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration Resources { get { throw null; } set { } } + protected MonitoringAlertNotificationSettingsBase() { } } - public abstract partial class MachineLearningTriggerBase + public partial class MonitoringDataSegment { - protected MachineLearningTriggerBase() { } - public string EndTime { get { throw null; } set { } } - public string StartTime { get { throw null; } set { } } - public string TimeZone { get { throw null; } set { } } + public MonitoringDataSegment() { } + public string Feature { get { throw null; } set { } } + public System.Collections.Generic.IList Values { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningTriggerType : System.IEquatable + public readonly partial struct MonitoringFeatureDataType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningTriggerType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType Cron { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType Recurrence { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType other) { throw null; } + public MonitoringFeatureDataType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureDataType Categorical { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureDataType Numerical { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureDataType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureDataType left, Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureDataType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureDataType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureDataType left, Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureDataType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningTritonModelJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput + public abstract partial class MonitoringFeatureFilterBase { - public MachineLearningTritonModelJobInput(System.Uri uri) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + protected MonitoringFeatureFilterBase() { } } - public partial class MachineLearningTritonModelJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput + public abstract partial class MonitoringInputDataBase { - public MachineLearningTritonModelJobOutput() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } + protected MonitoringInputDataBase(Azure.ResourceManager.MachineLearning.Models.JobInputType jobInputType, System.Uri uri) { } + public System.Collections.Generic.IDictionary Columns { get { throw null; } set { } } + public string DataContext { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.JobInputType JobInputType { get { throw null; } set { } } public System.Uri Uri { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningUnderlyingResourceAction : System.IEquatable + public readonly partial struct MonitoringModelType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningUnderlyingResourceAction(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction Delete { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction Detach { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction other) { throw null; } + public MonitoringModelType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MonitoringModelType Classification { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MonitoringModelType Regression { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MonitoringModelType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUnderlyingResourceAction right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MonitoringModelType left, Azure.ResourceManager.MachineLearning.Models.MonitoringModelType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MonitoringModelType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MonitoringModelType left, Azure.ResourceManager.MachineLearning.Models.MonitoringModelType right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningUnitOfMeasure : System.IEquatable + public readonly partial struct MonitoringNotificationMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningUnitOfMeasure(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure OneHour { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure other) { throw null; } + public MonitoringNotificationMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode left, Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode left, Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningUriFileDataVersion : Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties + public abstract partial class MonitoringSignalBase { - public MachineLearningUriFileDataVersion(System.Uri dataUri) : base (default(System.Uri)) { } + protected MonitoringSignalBase() { } + public Azure.ResourceManager.MachineLearning.Models.MonitoringNotificationMode? Mode { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } } - public partial class MachineLearningUriFileJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput + public partial class MonitoringTarget { - public MachineLearningUriFileJobInput(System.Uri uri) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + public MonitoringTarget(Azure.ResourceManager.MachineLearning.Models.ModelTaskType taskType) { } + public string DeploymentId { get { throw null; } set { } } + public string ModelId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ModelTaskType TaskType { get { throw null; } set { } } } - public partial class MachineLearningUriFileJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput + public partial class MonitoringWorkspaceConnection { - public MachineLearningUriFileJobOutput() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + public MonitoringWorkspaceConnection() { } + public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Secrets { get { throw null; } set { } } } - public partial class MachineLearningUriFolderDataVersion : Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties + public partial class MonitorServerlessSparkCompute : Azure.ResourceManager.MachineLearning.Models.MonitorComputeConfigurationBase { - public MachineLearningUriFolderDataVersion(System.Uri dataUri) : base (default(System.Uri)) { } + public MonitorServerlessSparkCompute(Azure.ResourceManager.MachineLearning.Models.MonitorComputeIdentityBase computeIdentity, string instanceType, string runtimeVersion) { } + public Azure.ResourceManager.MachineLearning.Models.MonitorComputeIdentityBase ComputeIdentity { get { throw null; } set { } } + public string InstanceType { get { throw null; } set { } } + public string RuntimeVersion { get { throw null; } set { } } } - public partial class MachineLearningUriFolderJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput + public partial class MpiDistributionConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration { - public MachineLearningUriFolderJobInput(System.Uri uri) { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningInputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + public MpiDistributionConfiguration() { } + public int? ProcessCountPerInstance { get { throw null; } set { } } } - public partial class MachineLearningUriFolderJobOutput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MultiSelect : System.IEquatable { - public MachineLearningUriFolderJobOutput() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutputDeliveryMode? Mode { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MultiSelect(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MultiSelect Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MultiSelect Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MultiSelect other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MultiSelect left, Azure.ResourceManager.MachineLearning.Models.MultiSelect right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MultiSelect (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MultiSelect left, Azure.ResourceManager.MachineLearning.Models.MultiSelect right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningUsage + public abstract partial class NCrossValidations { - internal MachineLearningUsage() { } - public string AmlWorkspaceLocation { get { throw null; } } - public long? CurrentValue { get { throw null; } } - public string Id { get { throw null; } } - public long? Limit { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageName Name { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit? Unit { get { throw null; } } - public string UsageType { get { throw null; } } + protected NCrossValidations() { } } - public partial class MachineLearningUsageName + public partial class NlpFixedParameters { - internal MachineLearningUsageName() { } - public string LocalizedValue { get { throw null; } } - public string Value { get { throw null; } } + public NlpFixedParameters() { } + public int? GradientAccumulationSteps { get { throw null; } set { } } + public float? LearningRate { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler? LearningRateScheduler { get { throw null; } set { } } + public string ModelName { get { throw null; } set { } } + public int? NumberOfEpochs { get { throw null; } set { } } + public int? TrainingBatchSize { get { throw null; } set { } } + public int? ValidationBatchSize { get { throw null; } set { } } + public float? WarmupRatio { get { throw null; } set { } } + public float? WeightDecay { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningUsageUnit : System.IEquatable + public readonly partial struct NlpLearningRateScheduler : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningUsageUnit(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit Count { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit other) { throw null; } + public NlpLearningRateScheduler(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler Constant { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler ConstantWithWarmup { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler Cosine { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler CosineWithRestarts { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler Linear { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler Polynomial { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler left, Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler left, Azure.ResourceManager.MachineLearning.Models.NlpLearningRateScheduler right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningUserAccountCredentials + public partial class NlpParameterSubspace { - public MachineLearningUserAccountCredentials(string adminUserName) { } - public string AdminUserName { get { throw null; } set { } } - public string AdminUserPassword { get { throw null; } set { } } - public string AdminUserSshPublicKey { get { throw null; } set { } } + public NlpParameterSubspace() { } + public string GradientAccumulationSteps { get { throw null; } set { } } + public string LearningRate { get { throw null; } set { } } + public string LearningRateScheduler { get { throw null; } set { } } + public string ModelName { get { throw null; } set { } } + public string NumberOfEpochs { get { throw null; } set { } } + public string TrainingBatchSize { get { throw null; } set { } } + public string ValidationBatchSize { get { throw null; } set { } } + public string WarmupRatio { get { throw null; } set { } } + public string WeightDecay { get { throw null; } set { } } } - public partial class MachineLearningUserFeature + public partial class NlpSweepSettings { - internal MachineLearningUserFeature() { } - public string Description { get { throw null; } } - public string DisplayName { get { throw null; } } - public string Id { get { throw null; } } + public NlpSweepSettings(Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType samplingAlgorithm) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy EarlyTermination { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType SamplingAlgorithm { get { throw null; } set { } } } - public partial class MachineLearningUserIdentity : Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration + public partial class NlpVerticalLimitSettings { - public MachineLearningUserIdentity() { } + public NlpVerticalLimitSettings() { } + public int? MaxConcurrentTrials { get { throw null; } set { } } + public int? MaxNodes { get { throw null; } set { } } + public int? MaxTrials { get { throw null; } set { } } + public System.TimeSpan? Timeout { get { throw null; } set { } } + public System.TimeSpan? TrialTimeout { get { throw null; } set { } } } - public partial class MachineLearningUsernamePasswordAuthTypeWorkspaceConnection : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties + public abstract partial class Nodes { - public MachineLearningUsernamePasswordAuthTypeWorkspaceConnection() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionUsernamePassword Credentials { get { throw null; } set { } } + protected Nodes() { } + } + public partial class NotificationSetting + { + public NotificationSetting() { } + public System.Collections.Generic.IList EmailOn { get { throw null; } set { } } + public System.Collections.Generic.IList Emails { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Webhooks { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningUseStl : System.IEquatable + public readonly partial struct NumericalDataDriftMetric : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningUseStl(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl None { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl Season { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl SeasonTrend { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl other) { throw null; } + public NumericalDataDriftMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric JensenShannonDistance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric NormalizedWassersteinDistance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric PopulationStabilityIndex { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric TwoSampleKolmogorovSmirnovTest { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric left, Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric left, Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric right) { throw null; } public override string ToString() { throw null; } } + public partial class NumericalDataDriftMetricThreshold : Azure.ResourceManager.MachineLearning.Models.DataDriftMetricThresholdBase + { + public NumericalDataDriftMetricThreshold(Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.NumericalDataDriftMetric Metric { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningValueFormat : System.IEquatable + public readonly partial struct NumericalDataQualityMetric : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningValueFormat(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat Json { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat other) { throw null; } + public NumericalDataQualityMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric DataTypeErrorRate { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric NullValueRate { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric OutOfBoundsRate { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat left, Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat left, Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric left, Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric left, Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningVirtualMachineCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties - { - public MachineLearningVirtualMachineCompute() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningVirtualMachineProperties Properties { get { throw null; } set { } } - } - public partial class MachineLearningVirtualMachineProperties - { - public MachineLearningVirtualMachineProperties() { } - public System.Net.IPAddress Address { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials AdministratorAccount { get { throw null; } set { } } - public bool? IsNotebookInstanceCompute { get { throw null; } set { } } - public int? NotebookServerPort { get { throw null; } set { } } - public int? SshPort { get { throw null; } set { } } - public string VirtualMachineSize { get { throw null; } set { } } - } - public partial class MachineLearningVirtualMachineSecrets : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeSecrets + public partial class NumericalDataQualityMetricThreshold : Azure.ResourceManager.MachineLearning.Models.DataQualityMetricThresholdBase { - internal MachineLearningVirtualMachineSecrets() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials AdministratorAccount { get { throw null; } } + public NumericalDataQualityMetricThreshold(Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.NumericalDataQualityMetric Metric { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningVmPriceOSType : System.IEquatable + public readonly partial struct NumericalPredictionDriftMetric : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningVmPriceOSType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType Linux { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType Windows { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType other) { throw null; } + public NumericalPredictionDriftMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric JensenShannonDistance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric NormalizedWassersteinDistance { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric PopulationStabilityIndex { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric TwoSampleKolmogorovSmirnovTest { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric left, Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric left, Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric right) { throw null; } public override string ToString() { throw null; } } + public partial class NumericalPredictionDriftMetricThreshold : Azure.ResourceManager.MachineLearning.Models.PredictionDriftMetricThresholdBase + { + public NumericalPredictionDriftMetricThreshold(Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.NumericalPredictionDriftMetric Metric { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningVmPriority : System.IEquatable + public readonly partial struct ObjectDetectionPrimaryMetric : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningVmPriority(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority Dedicated { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority LowPriority { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority other) { throw null; } + public ObjectDetectionPrimaryMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric MeanAveragePrecision { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningVmSize + public abstract partial class OneLakeArtifact { - internal MachineLearningVmSize() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices EstimatedVmPrices { get { throw null; } } - public string Family { get { throw null; } } - public int? Gpus { get { throw null; } } - public bool? IsPremiumIOSupported { get { throw null; } } - public bool? LowPriorityCapable { get { throw null; } } - public int? MaxResourceVolumeMB { get { throw null; } } - public double? MemoryGB { get { throw null; } } - public string Name { get { throw null; } } - public int? OSVhdSizeMB { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SupportedComputeTypes { get { throw null; } } - public int? VCpus { get { throw null; } } + protected OneLakeArtifact(string artifactName) { } + public string ArtifactName { get { throw null; } set { } } } - public partial class MachineLearningVmSshCredentials + public partial class OneLakeDatastore : Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreProperties { - public MachineLearningVmSshCredentials() { } - public string Password { get { throw null; } set { } } - public string PrivateKeyData { get { throw null; } set { } } - public string PublicKeyData { get { throw null; } set { } } - public string Username { get { throw null; } set { } } + public OneLakeDatastore(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials, Azure.ResourceManager.MachineLearning.Models.OneLakeArtifact artifact, string oneLakeWorkspaceName) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials)) { } + public Azure.ResourceManager.MachineLearning.Models.OneLakeArtifact Artifact { get { throw null; } set { } } + public string Endpoint { get { throw null; } set { } } + public string OneLakeWorkspaceName { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get { throw null; } set { } } + } + public partial class OnlineInferenceConfiguration + { + public OnlineInferenceConfiguration() { } + public System.Collections.Generic.IDictionary Configurations { get { throw null; } set { } } + public string EntryScript { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute LivenessRoute { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute ReadinessRoute { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute ScoringRoute { get { throw null; } set { } } + } + public abstract partial class OutboundRule + { + protected OutboundRule() { } + public Azure.ResourceManager.MachineLearning.Models.RuleCategory? Category { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.RuleStatus? Status { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningVmTier : System.IEquatable + public readonly partial struct PackageBuildState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningVmTier(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier LowPriority { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier Spot { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier Standard { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier other) { throw null; } + public PackageBuildState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PackageBuildState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.PackageBuildState NotStarted { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.PackageBuildState Running { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.PackageBuildState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.PackageBuildState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.PackageBuildState left, Azure.ResourceManager.MachineLearning.Models.PackageBuildState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.PackageBuildState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.PackageBuildState left, Azure.ResourceManager.MachineLearning.Models.PackageBuildState right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningWorkspaceConnectionManagedIdentity + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PackageInputDeliveryMode : System.IEquatable { - public MachineLearningWorkspaceConnectionManagedIdentity() { } - public string ClientId { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PackageInputDeliveryMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode Copy { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode Download { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode left, Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode right) { throw null; } + public override string ToString() { throw null; } } - public abstract partial class MachineLearningWorkspaceConnectionProperties + public abstract partial class PackageInputPathBase { - protected MachineLearningWorkspaceConnectionProperties() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory? Category { get { throw null; } set { } } - public string Target { get { throw null; } set { } } - public string Value { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat? ValueFormat { get { throw null; } set { } } + protected PackageInputPathBase() { } } - public partial class MachineLearningWorkspaceConnectionUsernamePassword + public partial class PackageInputPathId : Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase { - public MachineLearningWorkspaceConnectionUsernamePassword() { } - public string Password { get { throw null; } set { } } - public string Username { get { throw null; } set { } } + public PackageInputPathId() { } + public string ResourceId { get { throw null; } set { } } } - public partial class MachineLearningWorkspaceDiagnoseContent + public partial class PackageInputPathUri : Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase { - public MachineLearningWorkspaceDiagnoseContent() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseProperties Value { get { throw null; } set { } } + public PackageInputPathUri() { } + public System.Uri Uri { get { throw null; } set { } } } - public partial class MachineLearningWorkspaceDiagnoseProperties + public partial class PackageInputPathVersion : Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase { - public MachineLearningWorkspaceDiagnoseProperties() { } - public System.Collections.Generic.IDictionary ApplicationInsights { get { throw null; } } - public System.Collections.Generic.IDictionary ContainerRegistry { get { throw null; } } - public System.Collections.Generic.IDictionary DnsResolution { get { throw null; } } - public System.Collections.Generic.IDictionary KeyVault { get { throw null; } } - public System.Collections.Generic.IDictionary Nsg { get { throw null; } } - public System.Collections.Generic.IDictionary Others { get { throw null; } } - public System.Collections.Generic.IDictionary ResourceLock { get { throw null; } } - public System.Collections.Generic.IDictionary StorageAccount { get { throw null; } } - public System.Collections.Generic.IDictionary Udr { get { throw null; } } + public PackageInputPathVersion() { } + public string ResourceName { get { throw null; } set { } } + public string ResourceVersion { get { throw null; } set { } } } - public partial class MachineLearningWorkspaceDiagnoseResult + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PackageInputType : System.IEquatable { - internal MachineLearningWorkspaceDiagnoseResult() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultValue Value { get { throw null; } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PackageInputType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PackageInputType UriFile { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.PackageInputType UriFolder { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.PackageInputType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.PackageInputType left, Azure.ResourceManager.MachineLearning.Models.PackageInputType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.PackageInputType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.PackageInputType left, Azure.ResourceManager.MachineLearning.Models.PackageInputType right) { throw null; } + public override string ToString() { throw null; } } - public partial class MachineLearningWorkspaceGetKeysResult + public partial class PackageRequest { - internal MachineLearningWorkspaceGetKeysResult() { } - public string AppInsightsInstrumentationKey { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials ContainerRegistryCredentials { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult NotebookAccessKeys { get { throw null; } } - public string UserStorageKey { get { throw null; } } - public string UserStorageResourceId { get { throw null; } } + public PackageRequest(Azure.ResourceManager.MachineLearning.Models.InferencingServer inferencingServer, string targetEnvironmentId) { } + public Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource BaseEnvironmentSource { get { throw null; } set { } } + public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.InferencingServer InferencingServer { get { throw null; } } + public System.Collections.Generic.IList Inputs { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ModelConfiguration ModelConfiguration { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + public string TargetEnvironmentId { get { throw null; } } } - public partial class MachineLearningWorkspaceGetNotebookKeysResult + public partial class PackageResponse { - internal MachineLearningWorkspaceGetNotebookKeysResult() { } - public string PrimaryAccessKey { get { throw null; } } - public string SecondaryAccessKey { get { throw null; } } + internal PackageResponse() { } + public Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource BaseEnvironmentSource { get { throw null; } } + public string BuildId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.PackageBuildState? BuildState { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary EnvironmentVariables { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.InferencingServer InferencingServer { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Inputs { get { throw null; } } + public System.Uri LogUri { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.ModelConfiguration ModelConfiguration { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } + public string TargetEnvironmentId { get { throw null; } } } - public partial class MachineLearningWorkspaceGetStorageAccountKeysResult + public abstract partial class PendingUploadCredentialDto { - internal MachineLearningWorkspaceGetStorageAccountKeysResult() { } - public string UserStorageKey { get { throw null; } } + protected PendingUploadCredentialDto() { } } - public partial class MachineLearningWorkspaceNotebookAccessTokenResult + public partial class PendingUploadRequestDto { - internal MachineLearningWorkspaceNotebookAccessTokenResult() { } - public string AccessToken { get { throw null; } } - public int? ExpiresIn { get { throw null; } } - public string HostName { get { throw null; } } - public string NotebookResourceId { get { throw null; } } - public string PublicDns { get { throw null; } } - public string RefreshToken { get { throw null; } } - public string Scope { get { throw null; } } - public string TokenType { get { throw null; } } + public PendingUploadRequestDto() { } + public string PendingUploadId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.PendingUploadType? PendingUploadType { get { throw null; } set { } } } - public partial class MachineLearningWorkspacePatch + public partial class PendingUploadResponseDto { - public MachineLearningWorkspacePatch() { } - public string ApplicationInsights { get { throw null; } set { } } - public string ContainerRegistry { get { throw null; } set { } } - public int? CosmosDbCollectionsThroughput { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public string FriendlyName { get { throw null; } set { } } - public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public string ImageBuildCompute { get { throw null; } set { } } - public string PrimaryUserAssignedIdentity { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + internal PendingUploadResponseDto() { } + public Azure.ResourceManager.MachineLearning.Models.BlobReferenceForConsumptionDto BlobReferenceForConsumption { get { throw null; } } + public string PendingUploadId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.PendingUploadType? PendingUploadType { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningWorkspaceQuotaStatus : System.IEquatable + public readonly partial struct PendingUploadType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningWorkspaceQuotaStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus Failure { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus InvalidQuotaBelowClusterMinimum { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus InvalidQuotaExceedsSubscriptionLimit { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus InvalidVmFamilyName { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus OperationNotEnabledForRegion { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus OperationNotSupportedForSku { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus Success { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus Undefined { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus other) { throw null; } + public PendingUploadType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PendingUploadType None { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.PendingUploadType TemporaryBlobReference { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.PendingUploadType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus right) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.PendingUploadType left, Azure.ResourceManager.MachineLearning.Models.PendingUploadType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.PendingUploadType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.PendingUploadType left, Azure.ResourceManager.MachineLearning.Models.PendingUploadType right) { throw null; } public override string ToString() { throw null; } } - public partial class MachineLearningWorkspaceQuotaUpdate + public abstract partial class PredictionDriftMetricThresholdBase { - internal MachineLearningWorkspaceQuotaUpdate() { } - public string Id { get { throw null; } } - public long? Limit { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus? Status { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? Unit { get { throw null; } } - public string UpdateWorkspaceQuotasType { get { throw null; } } + protected PredictionDriftMetricThresholdBase() { } + public double? ThresholdValue { get { throw null; } set { } } } - public partial class MedianStoppingPolicy : Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy + public partial class PredictionDriftMonitoringSignal : Azure.ResourceManager.MachineLearning.Models.MonitoringSignalBase { - public MedianStoppingPolicy() { } + public PredictionDriftMonitoringSignal(System.Collections.Generic.IEnumerable metricThresholds, Azure.ResourceManager.MachineLearning.Models.MonitoringModelType modelType, Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase productionData, Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase referenceData) { } + public System.Collections.Generic.IList MetricThresholds { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringModelType ModelType { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ProductionData { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase ReferenceData { get { throw null; } set { } } } - public partial class MpiDistributionConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration + public partial class PrivateEndpointDestination { - public MpiDistributionConfiguration() { } - public int? ProcessCountPerInstance { get { throw null; } set { } } + public PrivateEndpointDestination() { } + public string ServiceResourceId { get { throw null; } set { } } + public bool? SparkEnabled { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.RuleStatus? SparkStatus { get { throw null; } set { } } + public string SubresourceTarget { get { throw null; } set { } } } - public abstract partial class NCrossValidations + public partial class PrivateEndpointOutboundRule : Azure.ResourceManager.MachineLearning.Models.OutboundRule { - protected NCrossValidations() { } + public PrivateEndpointOutboundRule() { } + public Azure.ResourceManager.MachineLearning.Models.PrivateEndpointDestination Destination { get { throw null; } set { } } } - public partial class NlpVerticalLimitSettings + public partial class PrivateEndpointResource : Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint { - public NlpVerticalLimitSettings() { } - public int? MaxConcurrentTrials { get { throw null; } set { } } - public int? MaxTrials { get { throw null; } set { } } - public System.TimeSpan? Timeout { get { throw null; } set { } } + public PrivateEndpointResource() { } + public string SubnetArmId { get { throw null; } set { } } + } + public partial class ProgressMetrics + { + internal ProgressMetrics() { } + public long? CompletedDatapointCount { get { throw null; } } + public System.DateTimeOffset? IncrementalDataLastRefreshOn { get { throw null; } } + public long? SkippedDatapointCount { get { throw null; } } + public long? TotalDatapointCount { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ObjectDetectionPrimaryMetric : System.IEquatable + public readonly partial struct ProtectionLevel : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ObjectDetectionPrimaryMetric(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric MeanAveragePrecision { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric other) { throw null; } + public ProtectionLevel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ProtectionLevel All { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ProtectionLevel None { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ProtectionLevel other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric left, Azure.ResourceManager.MachineLearning.Models.ObjectDetectionPrimaryMetric right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ProtectionLevel left, Azure.ResourceManager.MachineLearning.Models.ProtectionLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ProtectionLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ProtectionLevel left, Azure.ResourceManager.MachineLearning.Models.ProtectionLevel right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Protocol : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Protocol(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.Protocol Http { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.Protocol Tcp { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.Protocol Udp { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.Protocol other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.Protocol left, Azure.ResourceManager.MachineLearning.Models.Protocol right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.Protocol (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.Protocol left, Azure.ResourceManager.MachineLearning.Models.Protocol right) { throw null; } public override string ToString() { throw null; } } public partial class PyTorchDistributionConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration @@ -4680,9 +7183,16 @@ public partial class PyTorchDistributionConfiguration : Azure.ResourceManager.Ma public PyTorchDistributionConfiguration() { } public int? ProcessCountPerInstance { get { throw null; } set { } } } + public partial class QueueSettings + { + public QueueSettings() { } + public Azure.ResourceManager.MachineLearning.Models.JobTier? JobTier { get { throw null; } set { } } + public int? Priority { get { throw null; } set { } } + } public partial class RandomSamplingAlgorithm : Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm { public RandomSamplingAlgorithm() { } + public string Logbase { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.RandomSamplingAlgorithmRule? Rule { get { throw null; } set { } } public int? Seed { get { throw null; } set { } } } @@ -4704,12 +7214,174 @@ public RandomSamplingAlgorithm() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RandomSamplingAlgorithmRule left, Azure.ResourceManager.MachineLearning.Models.RandomSamplingAlgorithmRule right) { throw null; } public override string ToString() { throw null; } } + public partial class Ray : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration + { + public Ray() { } + public string Address { get { throw null; } set { } } + public int? DashboardPort { get { throw null; } set { } } + public string HeadNodeAdditionalArgs { get { throw null; } set { } } + public bool? IncludeDashboard { get { throw null; } set { } } + public int? Port { get { throw null; } set { } } + public string WorkerNodeAdditionalArgs { get { throw null; } set { } } + } + public partial class Recurrence + { + public Recurrence() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency? Frequency { get { throw null; } set { } } + public int? Interval { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceSchedule Schedule { get { throw null; } set { } } + public string StartTime { get { throw null; } set { } } + public string TimeZone { get { throw null; } set { } } + } + public partial class RegistryModelVersionCollectionGetAllOptions + { + public RegistryModelVersionCollectionGetAllOptions() { } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public string OrderBy { get { throw null; } set { } } + public string Properties { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public int? Top { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class RegistryPatch + { + public RegistryPatch() { } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuPatch Sku { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + public partial class RegistryPrivateEndpointConnection + { + public RegistryPrivateEndpointConnection() { } + public System.Collections.Generic.IList GroupIds { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public Azure.Core.AzureLocation? Location { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.PrivateEndpointResource PrivateEndpoint { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.RegistryPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + public string ProvisioningState { get { throw null; } set { } } + } + public partial class RegistryPrivateLinkServiceConnectionState + { + public RegistryPrivateLinkServiceConnectionState() { } + public string ActionsRequired { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus? Status { get { throw null; } set { } } + } + public partial class RegistryRegionArmDetails + { + public RegistryRegionArmDetails() { } + public System.Collections.Generic.IList AcrDetails { get { throw null; } set { } } + public Azure.Core.AzureLocation? Location { get { throw null; } set { } } + public System.Collections.Generic.IList StorageAccountDetails { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RegressionModelPerformanceMetric : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RegressionModelPerformanceMetric(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric MeanAbsoluteError { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric MeanSquaredError { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric RootMeanSquaredError { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric left, Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric left, Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric right) { throw null; } + public override string ToString() { throw null; } + } + public partial class RegressionModelPerformanceMetricThreshold : Azure.ResourceManager.MachineLearning.Models.ModelPerformanceMetricThresholdBase + { + public RegressionModelPerformanceMetricThreshold(Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric metric) { } + public Azure.ResourceManager.MachineLearning.Models.RegressionModelPerformanceMetric Metric { get { throw null; } set { } } + } public partial class RegressionTrainingSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningTrainingSettings { public RegressionTrainingSettings() { } public System.Collections.Generic.IList AllowedTrainingAlgorithms { get { throw null; } set { } } public System.Collections.Generic.IList BlockedTrainingAlgorithms { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RollingRateType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RollingRateType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.RollingRateType Day { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RollingRateType Hour { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RollingRateType Minute { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RollingRateType Month { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RollingRateType Year { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.RollingRateType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RollingRateType left, Azure.ResourceManager.MachineLearning.Models.RollingRateType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.RollingRateType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RollingRateType left, Azure.ResourceManager.MachineLearning.Models.RollingRateType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RuleAction : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RuleAction(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.RuleAction Allow { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RuleAction Deny { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.RuleAction other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RuleAction left, Azure.ResourceManager.MachineLearning.Models.RuleAction right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.RuleAction (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RuleAction left, Azure.ResourceManager.MachineLearning.Models.RuleAction right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RuleCategory : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RuleCategory(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.RuleCategory Recommended { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RuleCategory Required { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RuleCategory UserDefined { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.RuleCategory other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RuleCategory left, Azure.ResourceManager.MachineLearning.Models.RuleCategory right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.RuleCategory (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RuleCategory left, Azure.ResourceManager.MachineLearning.Models.RuleCategory right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RuleStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RuleStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.RuleStatus Active { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RuleStatus Inactive { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.RuleStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RuleStatus left, Azure.ResourceManager.MachineLearning.Models.RuleStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.RuleStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RuleStatus left, Azure.ResourceManager.MachineLearning.Models.RuleStatus right) { throw null; } + public override string ToString() { throw null; } + } public abstract partial class SamplingAlgorithm { protected SamplingAlgorithm() { } @@ -4733,6 +7405,107 @@ protected SamplingAlgorithm() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType left, Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType right) { throw null; } public override string ToString() { throw null; } } + public partial class SasCredentialDto : Azure.ResourceManager.MachineLearning.Models.PendingUploadCredentialDto + { + internal SasCredentialDto() { } + public System.Uri SasUri { get { throw null; } } + } + public partial class SecretConfiguration + { + public SecretConfiguration() { } + public System.Uri Uri { get { throw null; } set { } } + public string WorkspaceSecretName { get { throw null; } set { } } + } + public partial class ServicePrincipalAuthTypeWorkspaceConnectionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties + { + public ServicePrincipalAuthTypeWorkspaceConnectionProperties() { } + public Azure.ResourceManager.MachineLearning.Models.WorkspaceConnectionServicePrincipal Credentials { get { throw null; } set { } } + } + public partial class ServiceTagDestination + { + public ServiceTagDestination() { } + public Azure.ResourceManager.MachineLearning.Models.RuleAction? Action { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList AddressPrefixes { get { throw null; } } + public string PortRanges { get { throw null; } set { } } + public string Protocol { get { throw null; } set { } } + public string ServiceTag { get { throw null; } set { } } + } + public partial class ServiceTagOutboundRule : Azure.ResourceManager.MachineLearning.Models.OutboundRule + { + public ServiceTagOutboundRule() { } + public Azure.ResourceManager.MachineLearning.Models.ServiceTagDestination Destination { get { throw null; } set { } } + } + public partial class SparkJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties + { + public SparkJob(string codeId, Azure.ResourceManager.MachineLearning.Models.SparkJobEntry entry) { } + public System.Collections.Generic.IList Archives { get { throw null; } set { } } + public string Args { get { throw null; } set { } } + public string CodeId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Conf { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SparkJobEntry Entry { get { throw null; } set { } } + public string EnvironmentId { get { throw null; } set { } } + public System.Collections.Generic.IList Files { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } + public System.Collections.Generic.IList Jars { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } + public System.Collections.Generic.IList PyFiles { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.QueueSettings QueueSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SparkResourceConfiguration Resources { get { throw null; } set { } } + } + public abstract partial class SparkJobEntry + { + protected SparkJobEntry() { } + } + public partial class SparkJobPythonEntry : Azure.ResourceManager.MachineLearning.Models.SparkJobEntry + { + public SparkJobPythonEntry(string file) { } + public string File { get { throw null; } set { } } + } + public partial class SparkJobScalaEntry : Azure.ResourceManager.MachineLearning.Models.SparkJobEntry + { + public SparkJobScalaEntry(string className) { } + public string ClassName { get { throw null; } set { } } + } + public partial class SparkResourceConfiguration + { + public SparkResourceConfiguration() { } + public string InstanceType { get { throw null; } set { } } + public string RuntimeVersion { get { throw null; } set { } } + } + public partial class StaticInputData : Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase + { + public StaticInputData(Azure.ResourceManager.MachineLearning.Models.JobInputType jobInputType, System.Uri uri, System.DateTimeOffset windowEnd, System.DateTimeOffset windowStart) : base (default(Azure.ResourceManager.MachineLearning.Models.JobInputType), default(System.Uri)) { } + public string PreprocessingComponentId { get { throw null; } set { } } + public System.DateTimeOffset WindowEnd { get { throw null; } set { } } + public System.DateTimeOffset WindowStart { get { throw null; } set { } } + } + public partial class StatusMessage + { + internal StatusMessage() { } + public string Code { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel? Level { get { throw null; } } + public string Message { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StatusMessageLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StatusMessageLevel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel Error { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel Information { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel left, Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel left, Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel right) { throw null; } + public override string ToString() { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct StochasticOptimizer : System.IEquatable { @@ -4753,6 +7526,82 @@ protected SamplingAlgorithm() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.StochasticOptimizer left, Azure.ResourceManager.MachineLearning.Models.StochasticOptimizer right) { throw null; } public override string ToString() { throw null; } } + public partial class StorageAccountDetails + { + public StorageAccountDetails() { } + public string ArmResourceId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SystemCreatedStorageAccount SystemCreatedStorageAccount { get { throw null; } set { } } + } + public partial class SystemCreatedAcrAccount + { + public SystemCreatedAcrAccount() { } + public string AcrAccountName { get { throw null; } set { } } + public string AcrAccountSku { get { throw null; } set { } } + public string ArmResourceId { get { throw null; } set { } } + } + public partial class SystemCreatedStorageAccount + { + public SystemCreatedStorageAccount() { } + public bool? AllowBlobPublicAccess { get { throw null; } set { } } + public string ArmResourceId { get { throw null; } set { } } + public bool? StorageAccountHnsEnabled { get { throw null; } set { } } + public string StorageAccountName { get { throw null; } set { } } + public string StorageAccountType { get { throw null; } set { } } + } + public partial class TableFixedParameters + { + public TableFixedParameters() { } + public string Booster { get { throw null; } set { } } + public string BoostingType { get { throw null; } set { } } + public string GrowPolicy { get { throw null; } set { } } + public double? LearningRate { get { throw null; } set { } } + public int? MaxBin { get { throw null; } set { } } + public int? MaxDepth { get { throw null; } set { } } + public int? MaxLeaves { get { throw null; } set { } } + public int? MinDataInLeaf { get { throw null; } set { } } + public double? MinSplitGain { get { throw null; } set { } } + public string ModelName { get { throw null; } set { } } + public int? NEstimators { get { throw null; } set { } } + public int? NumLeaves { get { throw null; } set { } } + public string PreprocessorName { get { throw null; } set { } } + public double? RegAlpha { get { throw null; } set { } } + public double? RegLambda { get { throw null; } set { } } + public double? Subsample { get { throw null; } set { } } + public double? SubsampleFreq { get { throw null; } set { } } + public string TreeMethod { get { throw null; } set { } } + public bool? WithMean { get { throw null; } set { } } + public bool? WithStd { get { throw null; } set { } } + } + public partial class TableParameterSubspace + { + public TableParameterSubspace() { } + public string Booster { get { throw null; } set { } } + public string BoostingType { get { throw null; } set { } } + public string GrowPolicy { get { throw null; } set { } } + public string LearningRate { get { throw null; } set { } } + public string MaxBin { get { throw null; } set { } } + public string MaxDepth { get { throw null; } set { } } + public string MaxLeaves { get { throw null; } set { } } + public string MinDataInLeaf { get { throw null; } set { } } + public string MinSplitGain { get { throw null; } set { } } + public string ModelName { get { throw null; } set { } } + public string NEstimators { get { throw null; } set { } } + public string NumLeaves { get { throw null; } set { } } + public string PreprocessorName { get { throw null; } set { } } + public string RegAlpha { get { throw null; } set { } } + public string RegLambda { get { throw null; } set { } } + public string Subsample { get { throw null; } set { } } + public string SubsampleFreq { get { throw null; } set { } } + public string TreeMethod { get { throw null; } set { } } + public string WithMean { get { throw null; } set { } } + public string WithStd { get { throw null; } set { } } + } + public partial class TableSweepSettings + { + public TableSweepSettings(Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType samplingAlgorithm) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy EarlyTermination { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType SamplingAlgorithm { get { throw null; } set { } } + } public partial class TableVerticalFeaturizationSettings : Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturizationSettings { public TableVerticalFeaturizationSettings() { } @@ -4769,7 +7618,10 @@ public TableVerticalLimitSettings() { } public double? ExitScore { get { throw null; } set { } } public int? MaxConcurrentTrials { get { throw null; } set { } } public int? MaxCoresPerTrial { get { throw null; } set { } } + public int? MaxNodes { get { throw null; } set { } } public int? MaxTrials { get { throw null; } set { } } + public int? SweepConcurrentTrials { get { throw null; } set { } } + public int? SweepTrials { get { throw null; } set { } } public System.TimeSpan? Timeout { get { throw null; } set { } } public System.TimeSpan? TrialTimeout { get { throw null; } set { } } } @@ -4808,30 +7660,93 @@ public TensorFlowDistributionConfiguration() { } public int? ParameterServerCount { get { throw null; } set { } } public int? WorkerCount { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TextAnnotationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TextAnnotationType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.TextAnnotationType Classification { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.TextAnnotationType NamedEntityRecognition { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.TextAnnotationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.TextAnnotationType left, Azure.ResourceManager.MachineLearning.Models.TextAnnotationType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.TextAnnotationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.TextAnnotationType left, Azure.ResourceManager.MachineLearning.Models.TextAnnotationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class TextClassification : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical { public TextClassification(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } public string FeaturizationDatasetLanguage { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters FixedParameters { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings LimitSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? PrimaryMetric { get { throw null; } set { } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings SweepSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } } public partial class TextClassificationMultilabel : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical { public TextClassificationMultilabel(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } public string FeaturizationDatasetLanguage { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters FixedParameters { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings LimitSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric? PrimaryMetric { get { throw null; } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings SweepSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } } public partial class TextNer : Azure.ResourceManager.MachineLearning.Models.AutoMLVertical { public TextNer(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData) : base (default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput)) { } public string FeaturizationDatasetLanguage { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters FixedParameters { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings LimitSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? PrimaryMetric { get { throw null; } } + public System.Collections.Generic.IList SearchSpace { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings SweepSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } } + public partial class TopNFeaturesByAttribution : Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureFilterBase + { + public TopNFeaturesByAttribution() { } + public int? Top { get { throw null; } set { } } + } + public partial class TrailingInputData : Azure.ResourceManager.MachineLearning.Models.MonitoringInputDataBase + { + public TrailingInputData(Azure.ResourceManager.MachineLearning.Models.JobInputType jobInputType, System.Uri uri, System.TimeSpan windowOffset, System.TimeSpan windowSize) : base (default(Azure.ResourceManager.MachineLearning.Models.JobInputType), default(System.Uri)) { } + public string PreprocessingComponentId { get { throw null; } set { } } + public System.TimeSpan WindowOffset { get { throw null; } set { } } + public System.TimeSpan WindowSize { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TrainingMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TrainingMode(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.TrainingMode Auto { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.TrainingMode Distributed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.TrainingMode NonDistributed { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.TrainingMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.TrainingMode left, Azure.ResourceManager.MachineLearning.Models.TrainingMode right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.TrainingMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.TrainingMode left, Azure.ResourceManager.MachineLearning.Models.TrainingMode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class TritonInferencingServer : Azure.ResourceManager.MachineLearning.Models.InferencingServer + { + public TritonInferencingServer() { } + public Azure.ResourceManager.MachineLearning.Models.OnlineInferenceConfiguration InferenceConfiguration { get { throw null; } set { } } + } public partial class TruncationSelectionPolicy : Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy { public TruncationSelectionPolicy() { } @@ -4857,4 +7772,91 @@ public TruncationSelectionPolicy() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ValidationMetricType left, Azure.ResourceManager.MachineLearning.Models.ValidationMetricType right) { throw null; } public override string ToString() { throw null; } } + public partial class VolumeDefinition + { + public VolumeDefinition() { } + public Azure.ResourceManager.MachineLearning.Models.BindOptions Bind { get { throw null; } set { } } + public string Consistency { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType? DefinitionType { get { throw null; } set { } } + public bool? Nocopy { get { throw null; } set { } } + public bool? ReadOnly { get { throw null; } set { } } + public string Source { get { throw null; } set { } } + public string Target { get { throw null; } set { } } + public int? TmpfsSize { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VolumeDefinitionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VolumeDefinitionType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType Bind { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType Npipe { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType Tmpfs { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType Volume { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType left, Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType left, Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType right) { throw null; } + public override string ToString() { throw null; } + } + public abstract partial class Webhook + { + protected Webhook() { } + public string EventType { get { throw null; } set { } } + } + public partial class WorkspaceConnectionAccessKey + { + public WorkspaceConnectionAccessKey() { } + public string AccessKeyId { get { throw null; } set { } } + public string SecretAccessKey { get { throw null; } set { } } + } + public partial class WorkspaceConnectionServicePrincipal + { + public WorkspaceConnectionServicePrincipal() { } + public string ClientId { get { throw null; } set { } } + public string ClientSecret { get { throw null; } set { } } + public System.Guid? TenantId { get { throw null; } set { } } + } + public partial class WorkspaceDataVersionCollectionGetAllOptions + { + public WorkspaceDataVersionCollectionGetAllOptions() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public string OrderBy { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public int? Top { get { throw null; } set { } } + } + public partial class WorkspaceHubConfig + { + public WorkspaceHubConfig() { } + public System.Collections.Generic.IList AdditionalWorkspaceStorageAccounts { get { throw null; } } + public string DefaultWorkspaceResourceGroup { get { throw null; } set { } } + } + public partial class WorkspaceModelVersionCollectionGetAllOptions + { + public WorkspaceModelVersionCollectionGetAllOptions() { } + public string Description { get { throw null; } set { } } + public string Feed { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public int? Offset { get { throw null; } set { } } + public string OrderBy { get { throw null; } set { } } + public string Properties { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public int? Top { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class WorkspacePrivateEndpointResource + { + public WorkspacePrivateEndpointResource() { } + public string Id { get { throw null; } } + public string SubnetArmId { get { throw null; } } + } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureCollection.cs new file mode 100644 index 000000000000..5f0d65f5bd2b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureCollection.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_FeatureCollection + { + // List Feature. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListFeature() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/list.json + // this example is just showing the usage of "Features_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetVersionResource created on azure + // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string featuresetName = "string"; + string featuresetVersion = "string"; + ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); + FeaturesetVersionResource featuresetVersion0 = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + + // get the collection of this FeatureResource + FeatureCollection collection = featuresetVersion0.GetFeatures(); + + // invoke the operation and iterate over the result + string tags = "string"; + string featureName = "string"; + string description = "string"; + await foreach (FeatureResource item in collection.GetAllAsync(tags: tags, featureName: featureName, description: description)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeatureData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Feature. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetFeature() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/get.json + // this example is just showing the usage of "Features_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetVersionResource created on azure + // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string featuresetName = "string"; + string featuresetVersion = "string"; + ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); + FeaturesetVersionResource featuresetVersion0 = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + + // get the collection of this FeatureResource + FeatureCollection collection = featuresetVersion0.GetFeatures(); + + // invoke the operation + string featureName = "string"; + FeatureResource result = await collection.GetAsync(featureName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeatureData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Feature. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetFeature() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/get.json + // this example is just showing the usage of "Features_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetVersionResource created on azure + // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string featuresetName = "string"; + string featuresetVersion = "string"; + ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); + FeaturesetVersionResource featuresetVersion0 = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + + // get the collection of this FeatureResource + FeatureCollection collection = featuresetVersion0.GetFeatures(); + + // invoke the operation + string featureName = "string"; + bool result = await collection.ExistsAsync(featureName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureResource.cs new file mode 100644 index 000000000000..029c2fd63941 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureResource.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_FeatureResource + { + // Get Feature. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetFeature() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/get.json + // this example is just showing the usage of "Features_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeatureResource created on azure + // for more information of creating FeatureResource, please refer to the document of FeatureResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string featuresetName = "string"; + string featuresetVersion = "string"; + string featureName = "string"; + ResourceIdentifier featureResourceId = FeatureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, featureName); + FeatureResource feature = client.GetFeatureResource(featureResourceId); + + // invoke the operation + FeatureResource result = await feature.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeatureData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerCollection.cs new file mode 100644 index 000000000000..5572ae15d8df --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerCollection.cs @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_FeaturesetContainerCollection + { + // List Workspace Featureset Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListWorkspaceFeaturesetContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/list.json + // this example is just showing the usage of "FeaturesetContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this FeaturesetContainerResource + FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + + // invoke the operation and iterate over the result + FeaturesetContainerCollectionGetAllOptions options = new FeaturesetContainerCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.ArchivedOnly }; + await foreach (FeaturesetContainerResource item in collection.GetAllAsync(options)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturesetContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // GetEntity Workspace Featureset Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetEntityWorkspaceFeaturesetContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json + // this example is just showing the usage of "FeaturesetContainers_GetEntity" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this FeaturesetContainerResource + FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + + // invoke the operation + string name = "string"; + FeaturesetContainerResource result = await collection.GetAsync(name); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturesetContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // GetEntity Workspace Featureset Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetEntityWorkspaceFeaturesetContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json + // this example is just showing the usage of "FeaturesetContainers_GetEntity" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this FeaturesetContainerResource + FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + + // invoke the operation + string name = "string"; + bool result = await collection.ExistsAsync(name); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Workspace Featureset Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json + // this example is just showing the usage of "FeaturesetContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this FeaturesetContainerResource + FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + + // invoke the operation + string name = "string"; + FeaturesetContainerData data = new FeaturesetContainerData(new FeaturesetContainerProperties() + { + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + FeaturesetContainerResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturesetContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerResource.cs similarity index 51% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerResource.cs index e301726004a6..c6cbf692c869 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerResource.cs @@ -16,98 +16,94 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningCodeVersionResource + public partial class Sample_FeaturesetContainerResource { - // Delete Code Version. + // Delete Workspace Featureset Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteCodeVersion() + public async Task Delete_DeleteWorkspaceFeaturesetContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/delete.json - // this example is just showing the usage of "CodeVersions_Delete" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/delete.json + // this example is just showing the usage of "FeaturesetContainers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeVersionResource created on azure - // for more information of creating MachineLearningCodeVersionResource, please refer to the document of MachineLearningCodeVersionResource + // this example assumes you already have this FeaturesetContainerResource created on azure + // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - string version = "string"; - ResourceIdentifier machineLearningCodeVersionResourceId = MachineLearningCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningCodeVersionResource machineLearningCodeVersion = client.GetMachineLearningCodeVersionResource(machineLearningCodeVersionResourceId); + ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); // invoke the operation - await machineLearningCodeVersion.DeleteAsync(WaitUntil.Completed); + await featuresetContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Code Version. + // GetEntity Workspace Featureset Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetCodeVersion() + public async Task Get_GetEntityWorkspaceFeaturesetContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/get.json - // this example is just showing the usage of "CodeVersions_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json + // this example is just showing the usage of "FeaturesetContainers_GetEntity" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeVersionResource created on azure - // for more information of creating MachineLearningCodeVersionResource, please refer to the document of MachineLearningCodeVersionResource + // this example assumes you already have this FeaturesetContainerResource created on azure + // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - string version = "string"; - ResourceIdentifier machineLearningCodeVersionResourceId = MachineLearningCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningCodeVersionResource machineLearningCodeVersion = client.GetMachineLearningCodeVersionResource(machineLearningCodeVersionResourceId); + ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); // invoke the operation - MachineLearningCodeVersionResource result = await machineLearningCodeVersion.GetAsync(); + FeaturesetContainerResource result = await featuresetContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - MachineLearningCodeVersionData resourceData = result.Data; + FeaturesetContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Code Version. + // CreateOrUpdate Workspace Featureset Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateCodeVersion() + public async Task Update_CreateOrUpdateWorkspaceFeaturesetContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/createOrUpdate.json - // this example is just showing the usage of "CodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json + // this example is just showing the usage of "FeaturesetContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeVersionResource created on azure - // for more information of creating MachineLearningCodeVersionResource, please refer to the document of MachineLearningCodeVersionResource + // this example assumes you already have this FeaturesetContainerResource created on azure + // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - string version = "string"; - ResourceIdentifier machineLearningCodeVersionResourceId = MachineLearningCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningCodeVersionResource machineLearningCodeVersion = client.GetMachineLearningCodeVersionResource(machineLearningCodeVersionResourceId); + ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); // invoke the operation - MachineLearningCodeVersionData data = new MachineLearningCodeVersionData(new MachineLearningCodeVersionProperties() + FeaturesetContainerData data = new FeaturesetContainerData(new FeaturesetContainerProperties() { - CodeUri = new Uri("https://blobStorage/folderName"), - IsAnonymous = false, + IsArchived = false, Description = "string", Properties = { @@ -118,12 +114,12 @@ public async Task Update_CreateOrUpdateCodeVersion() ["string"] = "string", }, }); - ArmOperation lro = await machineLearningCodeVersion.UpdateAsync(WaitUntil.Completed, data); - MachineLearningCodeVersionResource result = lro.Value; + ArmOperation lro = await featuresetContainer.UpdateAsync(WaitUntil.Completed, data); + FeaturesetContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - MachineLearningCodeVersionData resourceData = result.Data; + FeaturesetContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionCollection.cs new file mode 100644 index 000000000000..e284f30a4e9e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionCollection.cs @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_FeaturesetVersionCollection + { + // List Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/list.json + // this example is just showing the usage of "FeaturesetVersions_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetContainerResource created on azure + // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + + // get the collection of this FeaturesetVersionResource + FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + + // invoke the operation and iterate over the result + FeaturesetVersionCollectionGetAllOptions options = new FeaturesetVersionCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.All }; + await foreach (FeaturesetVersionResource item in collection.GetAllAsync(options)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturesetVersionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/get.json + // this example is just showing the usage of "FeaturesetVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetContainerResource created on azure + // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + + // get the collection of this FeaturesetVersionResource + FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + + // invoke the operation + string version = "string"; + FeaturesetVersionResource result = await collection.GetAsync(version); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturesetVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/get.json + // this example is just showing the usage of "FeaturesetVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetContainerResource created on azure + // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + + // get the collection of this FeaturesetVersionResource + FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + + // invoke the operation + string version = "string"; + bool result = await collection.ExistsAsync(version); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json + // this example is just showing the usage of "FeaturesetVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetContainerResource created on azure + // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + + // get the collection of this FeaturesetVersionResource + FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + + // invoke the operation + string version = "string"; + FeaturesetVersionData data = new FeaturesetVersionData(new FeaturesetVersionProperties() + { + Entities = +{ +"string" +}, + MaterializationSettings = new MaterializationSettings() + { + Notification = new NotificationSetting() + { + EmailOn = +{ +EmailNotificationEnableType.JobFailed +}, + Emails = +{ +"string" +}, + }, + ResourceInstanceType = "string", + Schedule = new MachineLearningRecurrenceTrigger(MachineLearningRecurrenceFrequency.Day, 1) + { + Schedule = new MachineLearningRecurrenceSchedule(new int[] + { +1 + }, new int[] + { +1 + }) + { + MonthDays = +{ +1 +}, + WeekDays = +{ +MachineLearningDayOfWeek.Monday +}, + }, + EndTime = "string", + StartTime = "string", + TimeZone = "string", + }, + SparkConfiguration = +{ +["string"] = "string", +}, + StoreType = MaterializationStoreType.Online, + }, + SpecificationPath = "string", + Stage = "string", + IsAnonymous = false, + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + FeaturesetVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturesetVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionResource.cs new file mode 100644 index 000000000000..2c3151195f6f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionResource.cs @@ -0,0 +1,264 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_FeaturesetVersionResource + { + // Delete Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/delete.json + // this example is just showing the usage of "FeaturesetVersions_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetVersionResource created on azure + // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + + // invoke the operation + await featuresetVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/get.json + // this example is just showing the usage of "FeaturesetVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetVersionResource created on azure + // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + + // invoke the operation + FeaturesetVersionResource result = await featuresetVersion.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturesetVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json + // this example is just showing the usage of "FeaturesetVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetVersionResource created on azure + // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + + // invoke the operation + FeaturesetVersionData data = new FeaturesetVersionData(new FeaturesetVersionProperties() + { + Entities = +{ +"string" +}, + MaterializationSettings = new MaterializationSettings() + { + Notification = new NotificationSetting() + { + EmailOn = +{ +EmailNotificationEnableType.JobFailed +}, + Emails = +{ +"string" +}, + }, + ResourceInstanceType = "string", + Schedule = new MachineLearningRecurrenceTrigger(MachineLearningRecurrenceFrequency.Day, 1) + { + Schedule = new MachineLearningRecurrenceSchedule(new int[] + { +1 + }, new int[] + { +1 + }) + { + MonthDays = +{ +1 +}, + WeekDays = +{ +MachineLearningDayOfWeek.Monday +}, + }, + EndTime = "string", + StartTime = "string", + TimeZone = "string", + }, + SparkConfiguration = +{ +["string"] = "string", +}, + StoreType = MaterializationStoreType.Online, + }, + SpecificationPath = "string", + Stage = "string", + IsAnonymous = false, + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await featuresetVersion.UpdateAsync(WaitUntil.Completed, data); + FeaturesetVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturesetVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Backfill Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Backfill_BackfillWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/backfill.json + // this example is just showing the usage of "FeaturesetVersions_Backfill" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetVersionResource created on azure + // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + + // invoke the operation + FeaturesetVersionBackfillContent content = new FeaturesetVersionBackfillContent() + { + Description = "string", + DisplayName = "string", + FeatureWindow = new FeatureWindow() + { + FeatureWindowEnd = DateTimeOffset.Parse("2020-01-01T12:34:56.999+00:51"), + FeatureWindowStart = DateTimeOffset.Parse("2020-01-01T12:34:56.999+00:51"), + }, + ResourceInstanceType = "string", + SparkConfiguration = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }; + ArmOperation lro = await featuresetVersion.BackfillAsync(WaitUntil.Completed, content); + FeaturesetJob result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + + // ListMaterializationJobs Workspace Featureset Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetMaterializationJobs_ListMaterializationJobsWorkspaceFeaturesetVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/listMaterializationJobs.json + // this example is just showing the usage of "FeaturesetVersions_ListMaterializationJobs" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturesetVersionResource created on azure + // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + + // invoke the operation and iterate over the result + string filters = "string"; + string featureWindowStart = "string"; + string featureWindowEnd = "string"; + await foreach (FeaturesetJob item in featuresetVersion.GetMaterializationJobsAsync(filters: filters, featureWindowStart: featureWindowStart, featureWindowEnd: featureWindowEnd)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerCollection.cs new file mode 100644 index 000000000000..2377d5cfdb9c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerCollection.cs @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_FeaturestoreEntityContainerCollection + { + // List Workspace Featurestore Entity Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListWorkspaceFeaturestoreEntityContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/list.json + // this example is just showing the usage of "FeaturestoreEntityContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this FeaturestoreEntityContainerResource + FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + + // invoke the operation and iterate over the result + FeaturestoreEntityContainerCollectionGetAllOptions options = new FeaturestoreEntityContainerCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.All }; + await foreach (FeaturestoreEntityContainerResource item in collection.GetAllAsync(options)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturestoreEntityContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // GetEntity Workspace Featurestore Entity Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetEntityWorkspaceFeaturestoreEntityContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json + // this example is just showing the usage of "FeaturestoreEntityContainers_GetEntity" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this FeaturestoreEntityContainerResource + FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + + // invoke the operation + string name = "string"; + FeaturestoreEntityContainerResource result = await collection.GetAsync(name); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturestoreEntityContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // GetEntity Workspace Featurestore Entity Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetEntityWorkspaceFeaturestoreEntityContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json + // this example is just showing the usage of "FeaturestoreEntityContainers_GetEntity" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this FeaturestoreEntityContainerResource + FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + + // invoke the operation + string name = "string"; + bool result = await collection.ExistsAsync(name); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Workspace Featurestore Entity Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json + // this example is just showing the usage of "FeaturestoreEntityContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this FeaturestoreEntityContainerResource + FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + + // invoke the operation + string name = "string"; + FeaturestoreEntityContainerData data = new FeaturestoreEntityContainerData(new FeaturestoreEntityContainerProperties() + { + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + FeaturestoreEntityContainerResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturestoreEntityContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerResource.cs new file mode 100644 index 000000000000..fe986d71ee84 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerResource.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_FeaturestoreEntityContainerResource + { + // Delete Workspace Featurestore Entity Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteWorkspaceFeaturestoreEntityContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/delete.json + // this example is just showing the usage of "FeaturestoreEntityContainers_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturestoreEntityContainerResource created on azure + // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + + // invoke the operation + await featurestoreEntityContainer.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // GetEntity Workspace Featurestore Entity Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetEntityWorkspaceFeaturestoreEntityContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json + // this example is just showing the usage of "FeaturestoreEntityContainers_GetEntity" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturestoreEntityContainerResource created on azure + // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + + // invoke the operation + FeaturestoreEntityContainerResource result = await featurestoreEntityContainer.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturestoreEntityContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Workspace Featurestore Entity Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json + // this example is just showing the usage of "FeaturestoreEntityContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturestoreEntityContainerResource created on azure + // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + + // invoke the operation + FeaturestoreEntityContainerData data = new FeaturestoreEntityContainerData(new FeaturestoreEntityContainerProperties() + { + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await featurestoreEntityContainer.UpdateAsync(WaitUntil.Completed, data); + FeaturestoreEntityContainerResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturestoreEntityContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionCollection.cs new file mode 100644 index 000000000000..2491f88f64d1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionCollection.cs @@ -0,0 +1,187 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_FeaturestoreEntityVersionCollection + { + // List Workspace Featurestore Entity Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListWorkspaceFeaturestoreEntityVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/list.json + // this example is just showing the usage of "FeaturestoreEntityVersions_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturestoreEntityContainerResource created on azure + // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + + // get the collection of this FeaturestoreEntityVersionResource + FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + + // invoke the operation and iterate over the result + FeaturestoreEntityVersionCollectionGetAllOptions options = new FeaturestoreEntityVersionCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.ActiveOnly }; + await foreach (FeaturestoreEntityVersionResource item in collection.GetAllAsync(options)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturestoreEntityVersionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Workspace Featurestore Entity Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetWorkspaceFeaturestoreEntityVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json + // this example is just showing the usage of "FeaturestoreEntityVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturestoreEntityContainerResource created on azure + // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + + // get the collection of this FeaturestoreEntityVersionResource + FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + + // invoke the operation + string version = "string"; + FeaturestoreEntityVersionResource result = await collection.GetAsync(version); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturestoreEntityVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Workspace Featurestore Entity Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetWorkspaceFeaturestoreEntityVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json + // this example is just showing the usage of "FeaturestoreEntityVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturestoreEntityContainerResource created on azure + // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + + // get the collection of this FeaturestoreEntityVersionResource + FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + + // invoke the operation + string version = "string"; + bool result = await collection.ExistsAsync(version); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Workspace Featurestore Entity Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json + // this example is just showing the usage of "FeaturestoreEntityVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FeaturestoreEntityContainerResource created on azure + // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + + // get the collection of this FeaturestoreEntityVersionResource + FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + + // invoke the operation + string version = "string"; + FeaturestoreEntityVersionData data = new FeaturestoreEntityVersionData(new FeaturestoreEntityVersionProperties() + { + IndexColumns = +{ +new IndexColumn() +{ +ColumnName = "string", +DataType = FeatureDataType.Datetime, +} +}, + IsAnonymous = false, + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + FeaturestoreEntityVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FeaturestoreEntityVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionResource.cs similarity index 50% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionResource.cs index bbaa5cdd3060..d449040dc3c6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionResource.cs @@ -16,109 +16,106 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningModelVersionResource + public partial class Sample_FeaturestoreEntityVersionResource { - // Delete Model Version. + // Delete Workspace Featurestore Entity Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteModelVersion() + public async Task Delete_DeleteWorkspaceFeaturestoreEntityVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/delete.json - // this example is just showing the usage of "ModelVersions_Delete" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/delete.json + // this example is just showing the usage of "FeaturestoreEntityVersions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelVersionResource created on azure - // for more information of creating MachineLearningModelVersionResource, please refer to the document of MachineLearningModelVersionResource + // this example assumes you already have this FeaturestoreEntityVersionResource created on azure + // for more information of creating FeaturestoreEntityVersionResource, please refer to the document of FeaturestoreEntityVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningModelVersionResourceId = MachineLearningModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId); + ResourceIdentifier featurestoreEntityVersionResourceId = FeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + FeaturestoreEntityVersionResource featurestoreEntityVersion = client.GetFeaturestoreEntityVersionResource(featurestoreEntityVersionResourceId); // invoke the operation - await machineLearningModelVersion.DeleteAsync(WaitUntil.Completed); + await featurestoreEntityVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Model Version. + // Get Workspace Featurestore Entity Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetModelVersion() + public async Task Get_GetWorkspaceFeaturestoreEntityVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/get.json - // this example is just showing the usage of "ModelVersions_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json + // this example is just showing the usage of "FeaturestoreEntityVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelVersionResource created on azure - // for more information of creating MachineLearningModelVersionResource, please refer to the document of MachineLearningModelVersionResource + // this example assumes you already have this FeaturestoreEntityVersionResource created on azure + // for more information of creating FeaturestoreEntityVersionResource, please refer to the document of FeaturestoreEntityVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningModelVersionResourceId = MachineLearningModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId); + ResourceIdentifier featurestoreEntityVersionResourceId = FeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + FeaturestoreEntityVersionResource featurestoreEntityVersion = client.GetFeaturestoreEntityVersionResource(featurestoreEntityVersionResourceId); // invoke the operation - MachineLearningModelVersionResource result = await machineLearningModelVersion.GetAsync(); + FeaturestoreEntityVersionResource result = await featurestoreEntityVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - MachineLearningModelVersionData resourceData = result.Data; + FeaturestoreEntityVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Model Version. + // CreateOrUpdate Workspace Featurestore Entity Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateModelVersion() + public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/createOrUpdate.json - // this example is just showing the usage of "ModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json + // this example is just showing the usage of "FeaturestoreEntityVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelVersionResource created on azure - // for more information of creating MachineLearningModelVersionResource, please refer to the document of MachineLearningModelVersionResource + // this example assumes you already have this FeaturestoreEntityVersionResource created on azure + // for more information of creating FeaturestoreEntityVersionResource, please refer to the document of FeaturestoreEntityVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningModelVersionResourceId = MachineLearningModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId); + ResourceIdentifier featurestoreEntityVersionResourceId = FeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + FeaturestoreEntityVersionResource featurestoreEntityVersion = client.GetFeaturestoreEntityVersionResource(featurestoreEntityVersionResourceId); // invoke the operation - MachineLearningModelVersionData data = new MachineLearningModelVersionData(new MachineLearningModelVersionProperties() + FeaturestoreEntityVersionData data = new FeaturestoreEntityVersionData(new FeaturestoreEntityVersionProperties() { - Flavors = + IndexColumns = { -["string"] = new MachineLearningFlavorData() +new IndexColumn() { -Data = -{ -["string"] = "string", -}, -}, +ColumnName = "string", +DataType = FeatureDataType.Datetime, +} }, - ModelType = "CustomModel", - ModelUri = new Uri("string"), IsAnonymous = false, + IsArchived = false, Description = "string", Properties = { @@ -129,12 +126,12 @@ public async Task Update_CreateOrUpdateModelVersion() ["string"] = "string", }, }); - ArmOperation lro = await machineLearningModelVersion.UpdateAsync(WaitUntil.Completed, data); - MachineLearningModelVersionResource result = lro.Value; + ArmOperation lro = await featurestoreEntityVersion.UpdateAsync(WaitUntil.Completed, data); + FeaturestoreEntityVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - MachineLearningModelVersionData resourceData = result.Data; + FeaturestoreEntityVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobCollection.cs new file mode 100644 index 000000000000..f3d02fa9644e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobCollection.cs @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_LabelingJobCollection + { + // List Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/list.json + // this example is just showing the usage of "LabelingJobs_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this LabelingJobResource + LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + + // invoke the operation and iterate over the result + await foreach (LabelingJobResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + LabelingJobData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/get.json + // this example is just showing the usage of "LabelingJobs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this LabelingJobResource + LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + + // invoke the operation + string id = "testLabelingJob"; + bool? includeJobInstructions = true; + bool? includeLabelCategories = true; + LabelingJobResource result = await collection.GetAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + LabelingJobData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/get.json + // this example is just showing the usage of "LabelingJobs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this LabelingJobResource + LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + + // invoke the operation + string id = "testLabelingJob"; + bool? includeJobInstructions = true; + bool? includeLabelCategories = true; + bool result = await collection.ExistsAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/createOrUpdate.json + // this example is just showing the usage of "LabelingJobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this LabelingJobResource + LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + + // invoke the operation + string id = "testLabelingJob"; + LabelingJobData data = new LabelingJobData(new LabelingJobProperties() + { + JobInstructionsUri = new Uri("link/to/instructions"), + LabelCategories = +{ +["myCategory1"] = new LabelCategory() +{ +Classes = +{ +["myLabelClass1"] = new LabelClass() +{ +DisplayName = "myLabelClass1", +Subclasses = +{ +}, +}, +["myLabelClass2"] = new LabelClass() +{ +DisplayName = "myLabelClass2", +Subclasses = +{ +}, +}, +}, +DisplayName = "myCategory1Title", +MultiSelect = MultiSelect.Disabled, +}, +["myCategory2"] = new LabelCategory() +{ +Classes = +{ +["myLabelClass1"] = new LabelClass() +{ +DisplayName = "myLabelClass1", +Subclasses = +{ +}, +}, +["myLabelClass2"] = new LabelClass() +{ +DisplayName = "myLabelClass2", +Subclasses = +{ +}, +}, +}, +DisplayName = "myCategory2Title", +MultiSelect = MultiSelect.Disabled, +}, +}, + LabelingJobMediaProperties = new LabelingJobImageProperties(), + MlAssistConfiguration = new MLAssistConfigurationEnabled("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute"), + Description = "string", + Properties = +{ +["additionalProp1"] = "string", +["additionalProp2"] = "string", +["additionalProp3"] = "string", +}, + Tags = +{ +["additionalProp1"] = "string", +["additionalProp2"] = "string", +["additionalProp3"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, id, data); + LabelingJobResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + LabelingJobData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobResource.cs new file mode 100644 index 000000000000..360a8f6ee333 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobResource.cs @@ -0,0 +1,268 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_LabelingJobResource + { + // Delete Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/delete.json + // this example is just showing the usage of "LabelingJobs_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this LabelingJobResource created on azure + // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + string id = "testLabelingJob"; + ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + + // invoke the operation + await labelingJob.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/get.json + // this example is just showing the usage of "LabelingJobs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this LabelingJobResource created on azure + // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + string id = "testLabelingJob"; + ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + + // invoke the operation + bool? includeJobInstructions = true; + bool? includeLabelCategories = true; + LabelingJobResource result = await labelingJob.GetAsync(includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + LabelingJobData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/createOrUpdate.json + // this example is just showing the usage of "LabelingJobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this LabelingJobResource created on azure + // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + string id = "testLabelingJob"; + ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + + // invoke the operation + LabelingJobData data = new LabelingJobData(new LabelingJobProperties() + { + JobInstructionsUri = new Uri("link/to/instructions"), + LabelCategories = +{ +["myCategory1"] = new LabelCategory() +{ +Classes = +{ +["myLabelClass1"] = new LabelClass() +{ +DisplayName = "myLabelClass1", +Subclasses = +{ +}, +}, +["myLabelClass2"] = new LabelClass() +{ +DisplayName = "myLabelClass2", +Subclasses = +{ +}, +}, +}, +DisplayName = "myCategory1Title", +MultiSelect = MultiSelect.Disabled, +}, +["myCategory2"] = new LabelCategory() +{ +Classes = +{ +["myLabelClass1"] = new LabelClass() +{ +DisplayName = "myLabelClass1", +Subclasses = +{ +}, +}, +["myLabelClass2"] = new LabelClass() +{ +DisplayName = "myLabelClass2", +Subclasses = +{ +}, +}, +}, +DisplayName = "myCategory2Title", +MultiSelect = MultiSelect.Disabled, +}, +}, + LabelingJobMediaProperties = new LabelingJobImageProperties(), + MlAssistConfiguration = new MLAssistConfigurationEnabled("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute"), + Description = "string", + Properties = +{ +["additionalProp1"] = "string", +["additionalProp2"] = "string", +["additionalProp3"] = "string", +}, + Tags = +{ +["additionalProp1"] = "string", +["additionalProp2"] = "string", +["additionalProp3"] = "string", +}, + }); + ArmOperation lro = await labelingJob.UpdateAsync(WaitUntil.Completed, data); + LabelingJobResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + LabelingJobData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // ExportLabels Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task ExportLabels_ExportLabelsLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/exportLabels.json + // this example is just showing the usage of "LabelingJobs_ExportLabels" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this LabelingJobResource created on azure + // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + string id = "testLabelingJob"; + ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + + // invoke the operation + ExportSummary body = new DatasetExportSummary(); + ArmOperation lro = await labelingJob.ExportLabelsAsync(WaitUntil.Completed, body); + ExportSummary result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + + // Pause Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Pause_PauseLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/pause.json + // this example is just showing the usage of "LabelingJobs_Pause" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this LabelingJobResource created on azure + // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + string id = "testLabelingJob"; + ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + + // invoke the operation + await labelingJob.PauseAsync(); + + Console.WriteLine($"Succeeded"); + } + + // Resume Labeling Job. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Resume_ResumeLabelingJob() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/resume.json + // this example is just showing the usage of "LabelingJobs_Resume" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this LabelingJobResource created on azure + // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + string id = "testLabelingJob"; + ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + + // invoke the operation + await labelingJob.ResumeAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs index bd0214d21c04..97169d733107 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs @@ -21,12 +21,12 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningBatchDeploymentCollection { - // List Batch Deployment. + // List Workspace Batch Deployment. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListBatchDeployment() + public async Task GetAll_ListWorkspaceBatchDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/list.json // this example is just showing the usage of "BatchDeployments_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,12 +61,12 @@ public async Task GetAll_ListBatchDeployment() Console.WriteLine($"Succeeded"); } - // Get Batch Deployment. + // Get Workspace Batch Deployment. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetBatchDeployment() + public async Task Get_GetWorkspaceBatchDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/get.json // this example is just showing the usage of "BatchDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,12 +97,12 @@ public async Task Get_GetBatchDeployment() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Batch Deployment. + // Get Workspace Batch Deployment. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetBatchDeployment() + public async Task Exists_GetWorkspaceBatchDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/get.json // this example is just showing the usage of "BatchDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,12 +129,12 @@ public async Task Exists_GetBatchDeployment() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Batch Deployment. + // CreateOrUpdate Workspace Batch Deployment. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateBatchDeployment() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceBatchDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/createOrUpdate.json // this example is just showing the usage of "BatchDeployments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentResource.cs index 85b78177e181..75d7e1ff3210 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentResource.cs @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningBatchDeploymentResource { - // Delete Batch Deployment. + // Delete Workspace Batch Deployment. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteBatchDeployment() + public async Task Delete_DeleteWorkspaceBatchDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/delete.json // this example is just showing the usage of "BatchDeployments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,12 +47,12 @@ public async Task Delete_DeleteBatchDeployment() Console.WriteLine($"Succeeded"); } - // Get Batch Deployment. + // Get Workspace Batch Deployment. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetBatchDeployment() + public async Task Get_GetWorkspaceBatchDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/get.json // this example is just showing the usage of "BatchDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,12 +80,12 @@ public async Task Get_GetBatchDeployment() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Update Batch Deployment. + // Update Workspace Batch Deployment. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_UpdateBatchDeployment() + public async Task Update_UpdateWorkspaceBatchDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/update.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/update.json // this example is just showing the usage of "BatchDeployments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointCollection.cs index 775e20763ee9..26c8da45f593 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointCollection.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningBatchEndpointCollection { - // List Batch Endpoint. + // List Workspace Batch Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListBatchEndpoint() + public async Task GetAll_ListWorkspaceBatchEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/list.json // this example is just showing the usage of "BatchEndpoints_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,12 +57,12 @@ public async Task GetAll_ListBatchEndpoint() Console.WriteLine($"Succeeded"); } - // Get Batch Endpoint. + // Get Workspace Batch Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetBatchEndpoint() + public async Task Get_GetWorkspaceBatchEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/get.json // this example is just showing the usage of "BatchEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,12 +92,12 @@ public async Task Get_GetBatchEndpoint() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Batch Endpoint. + // Get Workspace Batch Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetBatchEndpoint() + public async Task Exists_GetWorkspaceBatchEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/get.json // this example is just showing the usage of "BatchEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,12 +123,12 @@ public async Task Exists_GetBatchEndpoint() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Batch Endpoint. + // CreateOrUpdate Workspace Batch Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateBatchEndpoint() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceBatchEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/createOrUpdate.json // this example is just showing the usage of "BatchEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointResource.cs index fcf61ed53f58..520f31355cd6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointResource.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningBatchEndpointResource { - // Delete Batch Endpoint. + // Delete Workspace Batch Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteBatchEndpoint() + public async Task Delete_DeleteWorkspaceBatchEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/delete.json // this example is just showing the usage of "BatchEndpoints_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,12 +47,12 @@ public async Task Delete_DeleteBatchEndpoint() Console.WriteLine($"Succeeded"); } - // Get Batch Endpoint. + // Get Workspace Batch Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetBatchEndpoint() + public async Task Get_GetWorkspaceBatchEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/get.json // this example is just showing the usage of "BatchEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,12 +79,12 @@ public async Task Get_GetBatchEndpoint() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Update Batch Endpoint. + // Update Workspace Batch Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_UpdateBatchEndpoint() + public async Task Update_UpdateWorkspaceBatchEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/update.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/update.json // this example is just showing the usage of "BatchEndpoints_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,12 +128,12 @@ public async Task Update_UpdateBatchEndpoint() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // ListKeys Batch Endpoint. + // ListKeys Workspace Batch Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetKeys_ListKeysBatchEndpoint() + public async Task GetKeys_ListKeysWorkspaceBatchEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/listKeys.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/listKeys.json // this example is just showing the usage of "BatchEndpoints_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs index f35a6dc9c5c3..0f6cd07cbae3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_MachineLearningComputeCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetComputes() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/list.json // this example is just showing the usage of "Compute_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_GetComputes() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAAKSCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AKSCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AKSCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetAAKSCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAAKSCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AKSCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AKSCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task Exists_GetAAKSCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAAMLCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AmlCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AmlCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task Get_GetAAMLCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAAMLCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AmlCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AmlCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,7 +193,7 @@ public async Task Exists_GetAAMLCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAKubernetesCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/KubernetesCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/KubernetesCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -228,7 +228,7 @@ public async Task Get_GetAKubernetesCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAKubernetesCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/KubernetesCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/KubernetesCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -259,7 +259,7 @@ public async Task Exists_GetAKubernetesCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAnComputeInstance() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/ComputeInstance.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/ComputeInstance.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -294,7 +294,7 @@ public async Task Get_GetAnComputeInstance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAnComputeInstance() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/ComputeInstance.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/ComputeInstance.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -325,7 +325,7 @@ public async Task Exists_GetAnComputeInstance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AttachAKubernetesCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/KubernetesCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -398,7 +398,7 @@ public async Task CreateOrUpdate_AttachAKubernetesCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAAMLCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicAmlCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -455,7 +455,7 @@ public async Task CreateOrUpdate_CreateAAMLCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADataFactoryCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -495,7 +495,7 @@ public async Task CreateOrUpdate_CreateADataFactoryCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAnAKSCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicAKSCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -535,7 +535,7 @@ public async Task CreateOrUpdate_CreateAnAKSCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAnComputeInstanceCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstance.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -565,10 +565,56 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceCompute() VmSize = "STANDARD_NC6", SubnetId = new ResourceIdentifier("test-subnet-resource-id"), ApplicationSharingPolicy = MachineLearningApplicationSharingPolicy.Personal, + MlflowAutologger = MlflowAutologger.Enabled, SshSettings = new MachineLearningComputeInstanceSshSettings() { SshPublicAccess = MachineLearningSshPublicAccess.Disabled, }, + CustomServices = +{ +new CustomService() +{ +Name = "rstudio-workbench", +Image = new Image() +{ +ImageType = ImageType.Docker, +Reference = "ghcr.io/azure/rstudio-workbench:latest", +}, +EnvironmentVariables = +{ +["RSP_LICENSE"] = new EnvironmentVariable() +{ +VariableType = EnvironmentVariableType.Local, +Value = "XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX", +}, +}, +Docker = new Docker() +{ +Privileged = true, +}, +Endpoints = +{ +new Endpoint() +{ +Protocol = Protocol.Http, +Name = "connect", +Target = 8787, +Published = 4444, +HostIP = null, +} +}, +Volumes = +{ +new VolumeDefinition() +{ +DefinitionType = VolumeDefinitionType.Bind, +ReadOnly = true, +Source = "/mnt/azureuser/", +Target = "/home/testuser/", +} +}, +} +}, ComputeInstanceAuthorizationType = MachineLearningComputeInstanceAuthorizationType.Personal, PersonalComputeInstanceAssignedUser = new MachineLearningComputeInstanceAssignedUser("00000000-0000-0000-0000-000000000000", Guid.Parse("00000000-0000-0000-0000-000000000000")), }, @@ -589,7 +635,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithSchedules() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -624,6 +670,21 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithSchedules() }, ComputeInstanceAuthorizationType = MachineLearningComputeInstanceAuthorizationType.Personal, PersonalComputeInstanceAssignedUser = new MachineLearningComputeInstanceAssignedUser("00000000-0000-0000-0000-000000000000", Guid.Parse("00000000-0000-0000-0000-000000000000")), + SchedulesComputeStartStop = +{ +new MachineLearningComputeStartStopSchedule() +{ +Status = MachineLearningScheduleStatus.Enabled, +Action = MachineLearningComputePowerAction.Stop, +TriggerType = MachineLearningTriggerType.Cron, +Cron = new Cron() +{ +StartTime = "2021-04-23T01:30:00", +TimeZone = "Pacific Standard Time", +Expression = "0 18 * * *", +}, +} +}, }, }, }; @@ -642,7 +703,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithSchedules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithMinimalInputs() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -688,7 +749,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithMinimalInputs [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateAAMLCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/AmlCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/AmlCompute.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -739,7 +800,7 @@ public async Task CreateOrUpdate_UpdateAAMLCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateAnAKSCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/AKSCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/AKSCompute.json // this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs index 16618e3b56ac..fe58ce3e9bae 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Threading.Tasks; using System.Xml; using Azure; @@ -24,7 +25,7 @@ public partial class Sample_MachineLearningComputeResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAAKSCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AKSCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AKSCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +57,7 @@ public async Task Get_GetAAKSCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAAMLCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AmlCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AmlCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +89,7 @@ public async Task Get_GetAAMLCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAKubernetesCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/KubernetesCompute.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/KubernetesCompute.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +121,7 @@ public async Task Get_GetAKubernetesCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAnComputeInstance() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/ComputeInstance.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/ComputeInstance.json // this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +153,7 @@ public async Task Get_GetAnComputeInstance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAAmlComputeCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/patch.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/patch.json // this example is just showing the usage of "Compute_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,7 +194,7 @@ public async Task Update_UpdateAAmlComputeCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/delete.json // this example is just showing the usage of "Compute_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -217,12 +218,85 @@ public async Task Delete_DeleteCompute() Console.WriteLine($"Succeeded"); } + // Update Custom Services + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task UpdateCustomServices_UpdateCustomServices() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/updateCustomServices.json + // this example is just showing the usage of "Compute_UpdateCustomServices" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningComputeResource created on azure + // for more information of creating MachineLearningComputeResource, please refer to the document of MachineLearningComputeResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "testrg123"; + string workspaceName = "workspaces123"; + string computeName = "compute123"; + ResourceIdentifier machineLearningComputeResourceId = MachineLearningComputeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, computeName); + MachineLearningComputeResource machineLearningCompute = client.GetMachineLearningComputeResource(machineLearningComputeResourceId); + + // invoke the operation + IEnumerable customServices = new CustomService[] + { +new CustomService() +{ +Name = "rstudio-workbench", +Image = new Image() +{ +ImageType = ImageType.Docker, +Reference = "ghcr.io/azure/rstudio-workbench:latest", +}, +EnvironmentVariables = +{ +["RSP_LICENSE"] = new EnvironmentVariable() +{ +VariableType = EnvironmentVariableType.Local, +Value = "XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX", +}, +}, +Docker = new Docker() +{ +Privileged = true, +}, +Endpoints = +{ +new Endpoint() +{ +Protocol = Protocol.Http, +Name = "connect", +Target = 8787, +Published = 4444, +HostIP = null, +} +}, +Volumes = +{ +new VolumeDefinition() +{ +DefinitionType = VolumeDefinitionType.Bind, +ReadOnly = true, +Source = "/mnt/azureuser/", +Target = "/home/testuser/", +} +}, +} + }; + await machineLearningCompute.UpdateCustomServicesAsync(customServices); + + Console.WriteLine($"Succeeded"); + } + // Get compute nodes information for a compute [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNodes_GetComputeNodesInformationForACompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/listNodes.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/listNodes.json // this example is just showing the usage of "Compute_ListNodes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +327,7 @@ public async Task GetNodes_GetComputeNodesInformationForACompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_ListAKSComputeKeys() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/listKeys.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/listKeys.json // this example is just showing the usage of "Compute_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -281,7 +355,7 @@ public async Task GetKeys_ListAKSComputeKeys() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_StartComputeInstanceCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/start.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/start.json // this example is just showing the usage of "Compute_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -309,7 +383,7 @@ public async Task Start_StartComputeInstanceCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopComputeInstanceCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/stop.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/stop.json // this example is just showing the usage of "Compute_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -337,7 +411,7 @@ public async Task Stop_StopComputeInstanceCompute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Restart_RestartComputeInstanceCompute() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/restart.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/restart.json // this example is just showing the usage of "Compute_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -359,5 +433,37 @@ public async Task Restart_RestartComputeInstanceCompute() Console.WriteLine($"Succeeded"); } + + // Update idle shutdown setting of ComputeInstance + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task UpdateIdleShutdownSetting_UpdateIdleShutdownSettingOfComputeInstance() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/updateIdleShutdownSetting.json + // this example is just showing the usage of "Compute_UpdateIdleShutdownSetting" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningComputeResource created on azure + // for more information of creating MachineLearningComputeResource, please refer to the document of MachineLearningComputeResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "testrg123"; + string workspaceName = "workspaces123"; + string computeName = "compute123"; + ResourceIdentifier machineLearningComputeResourceId = MachineLearningComputeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, computeName); + MachineLearningComputeResource machineLearningCompute = client.GetMachineLearningComputeResource(machineLearningComputeResourceId); + + // invoke the operation + IdleShutdownSetting idleShutdownSetting = new IdleShutdownSetting() + { + IdleTimeBeforeShutdown = "PT120M", + }; + await machineLearningCompute.UpdateIdleShutdownSettingAsync(idleShutdownSetting); + + Console.WriteLine($"Succeeded"); + } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreCollection.cs index 0d2db358e874..0cbc4921666b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_MachineLearningDatastoreCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDatastore() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/get.json // this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetDatastore() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDatastore() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/get.json // this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetDatastore() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureDataLakeGen1WServicePrincipal() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureDataLakeGen1WServic [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureDataLakeGen2WServicePrincipal() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureDataLakeGen2WServic [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureFileStoreWAccountKey() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -254,7 +254,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureFileStoreWAccountKe [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureBlobWAccountKey() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreResource.cs index bc7c2d0e4500..51016b3a3139 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreResource.cs @@ -23,7 +23,7 @@ public partial class Sample_MachineLearningDatastoreResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDatastore() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/delete.json // this example is just showing the usage of "Datastores_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteDatastore() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDatastore() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/get.json // this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetDatastore() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDatastoreAzureDataLakeGen1WServicePrincipal() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task Update_CreateOrUpdateDatastoreAzureDataLakeGen1WServicePrincip [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDatastoreAzureDataLakeGen2WServicePrincipal() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -189,7 +189,7 @@ public async Task Update_CreateOrUpdateDatastoreAzureDataLakeGen2WServicePrincip [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDatastoreAzureFileStoreWAccountKey() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -239,7 +239,7 @@ public async Task Update_CreateOrUpdateDatastoreAzureFileStoreWAccountKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDatastoreAzureBlobWAccountKey() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -291,7 +291,7 @@ public async Task Update_CreateOrUpdateDatastoreAzureBlobWAccountKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_GetDatastoreSecrets() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/listSecrets.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/listSecrets.json // this example is just showing the usage of "Datastores_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs index 49c84d6e9a86..2e6484b2b3b7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_MachineLearningJobCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAutoMLJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/list.json // this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -45,7 +45,8 @@ public async Task GetAll_ListAutoMLJob() MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs(); // invoke the operation and iterate over the result - await foreach (MachineLearningJobResource item in collection.GetAllAsync()) + MachineLearningJobCollectionGetAllOptions options = new MachineLearningJobCollectionGetAllOptions() { JobType = "string", Tag = "string", ListViewType = MachineLearningListViewType.All, AssetName = "string", Scheduled = false, ScheduleId = "string" }; + await foreach (MachineLearningJobResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -62,7 +63,7 @@ public async Task GetAll_ListAutoMLJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCommandJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/list.json // this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,9 +83,8 @@ public async Task GetAll_ListCommandJob() MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs(); // invoke the operation and iterate over the result - string jobType = "string"; - string tag = "string"; - await foreach (MachineLearningJobResource item in collection.GetAllAsync(jobType: jobType, tag: tag)) + MachineLearningJobCollectionGetAllOptions options = new MachineLearningJobCollectionGetAllOptions() { JobType = "string", Tag = "string", ListViewType = MachineLearningListViewType.ActiveOnly, AssetName = "string", Scheduled = false, ScheduleId = "string" }; + await foreach (MachineLearningJobResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -101,7 +101,7 @@ public async Task GetAll_ListCommandJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPipelineJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/list.json // this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,9 +121,8 @@ public async Task GetAll_ListPipelineJob() MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs(); // invoke the operation and iterate over the result - string jobType = "string"; - string tag = "string"; - await foreach (MachineLearningJobResource item in collection.GetAllAsync(jobType: jobType, tag: tag)) + MachineLearningJobCollectionGetAllOptions options = new MachineLearningJobCollectionGetAllOptions() { JobType = "string", Tag = "string" }; + await foreach (MachineLearningJobResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -140,7 +139,7 @@ public async Task GetAll_ListPipelineJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSweepJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/list.json // this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,9 +159,8 @@ public async Task GetAll_ListSweepJob() MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs(); // invoke the operation and iterate over the result - string jobType = "string"; - string tag = "string"; - await foreach (MachineLearningJobResource item in collection.GetAllAsync(jobType: jobType, tag: tag)) + MachineLearningJobCollectionGetAllOptions options = new MachineLearningJobCollectionGetAllOptions() { JobType = "string", Tag = "string", ListViewType = MachineLearningListViewType.ActiveOnly, AssetName = "string", Scheduled = false, ScheduleId = "string" }; + await foreach (MachineLearningJobResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -179,7 +177,7 @@ public async Task GetAll_ListSweepJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAutoMLJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -214,7 +212,7 @@ public async Task Get_GetAutoMLJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAutoMLJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +243,7 @@ public async Task Exists_GetAutoMLJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCommandJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -280,7 +278,7 @@ public async Task Get_GetCommandJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCommandJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -311,7 +309,7 @@ public async Task Exists_GetCommandJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPipelineJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -346,7 +344,7 @@ public async Task Get_GetPipelineJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPipelineJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -377,7 +375,7 @@ public async Task Exists_GetPipelineJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSweepJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -412,7 +410,7 @@ public async Task Get_GetSweepJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSweepJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -443,7 +441,7 @@ public async Task Exists_GetSweepJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/createOrUpdate.json // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -464,61 +462,87 @@ public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob() // invoke the operation string id = "string"; - MachineLearningJobData data = new MachineLearningJobData(new AutoMLJob(new ImageClassification(new MachineLearningTableJobInput(new Uri("string")), new ImageLimitSettings() - { - MaxTrials = 2, - }) + MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { - ModelSettings = new ImageModelSettingsClassification() + MlflowAutologger = MLFlowAutologgerState.Disabled, + CodeId = new ResourceIdentifier("string"), + Distribution = new TensorFlowDistributionConfiguration() { - ValidationCropSize = 2, + ParameterServerCount = 1, + WorkerCount = 1, }, - SearchSpace = -{ -new ImageModelDistributionSettingsClassification() -{ -ValidationCropSize = "choice(2, 360)", -} -}, - TargetColumnName = "string", - }) - { - EnvironmentId = "string", EnvironmentVariables = { ["string"] = "string", }, + Inputs = +{ +["string"] = new MachineLearningLiteralJobInput("string") +{ +Description = "string", +}, +}, + Limits = new MachineLearningCommandJobLimits() + { + Timeout = XmlConvert.ToTimeSpan("PT5M"), + }, Outputs = { ["string"] = new MachineLearningUriFileJobOutput() { -Mode = MachineLearningOutputDeliveryMode.ReadWriteMount, +AssetName = "string", +AssetVersion = "string", +Mode = MachineLearningOutputDeliveryMode.Direct, Uri = new Uri("string"), Description = "string", }, }, + QueueSettings = new QueueSettings() + { + JobTier = JobTier.Premium, + Priority = 1, + }, Resources = new MachineLearningJobResourceConfiguration() { + DockerArgs = "string", + ShmSize = "2g", InstanceCount = 1, InstanceType = "string", + Locations = +{ +"string" +}, Properties = { ["string"] = BinaryData.FromObjectAsJson(new Dictionary() { -["9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad"] = null}), +["f69c8d5a-9b39-4183-92d3-a2b18944cf95"] = null}), }, }, + ComponentId = new ResourceIdentifier("string"), ComputeId = new ResourceIdentifier("string"), DisplayName = "string", ExperimentName = "string", Identity = new AmlToken(), IsArchived = false, + NotificationSetting = new NotificationSetting() + { + EmailOn = +{ +EmailNotificationEnableType.JobCompleted +}, + Emails = +{ +"string" +}, + }, Services = { ["string"] = new MachineLearningJobService() { Endpoint = "string", JobServiceType = "string", +Nodes = new AllNodes(), Port = 1, Properties = { @@ -551,7 +575,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateCommandJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/createOrUpdate.json // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -574,6 +598,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob() string id = "string"; MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { + MlflowAutologger = MLFlowAutologgerState.Disabled, CodeId = new ResourceIdentifier("string"), Distribution = new TensorFlowDistributionConfiguration() { @@ -599,32 +624,59 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob() { ["string"] = new MachineLearningUriFileJobOutput() { -Mode = MachineLearningOutputDeliveryMode.ReadWriteMount, +AssetName = "string", +AssetVersion = "string", +Mode = MachineLearningOutputDeliveryMode.Upload, Uri = new Uri("string"), Description = "string", }, }, + QueueSettings = new QueueSettings() + { + JobTier = JobTier.Basic, + Priority = 1, + }, Resources = new MachineLearningJobResourceConfiguration() { + DockerArgs = "string", + ShmSize = "2g", InstanceCount = 1, InstanceType = "string", + Locations = +{ +"string" +}, Properties = { ["string"] = BinaryData.FromObjectAsJson(new Dictionary() { -["e6b6493e-7d5e-4db3-be1e-306ec641327e"] = null}), +["c9ac10d0-915b-4de5-afe8-a4c78a37a558"] = null}), }, }, + ComponentId = new ResourceIdentifier("string"), ComputeId = new ResourceIdentifier("string"), DisplayName = "string", ExperimentName = "string", Identity = new AmlToken(), + IsArchived = false, + NotificationSetting = new NotificationSetting() + { + EmailOn = +{ +EmailNotificationEnableType.JobCancelled +}, + Emails = +{ +"string" +}, + }, Services = { ["string"] = new MachineLearningJobService() { Endpoint = "string", JobServiceType = "string", +Nodes = new AllNodes(), Port = 1, Properties = { @@ -657,7 +709,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdatePipelineJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/createOrUpdate.json // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -740,7 +792,7 @@ public async Task CreateOrUpdate_CreateOrUpdatePipelineJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateSweepJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/createOrUpdate.json // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -761,55 +813,87 @@ public async Task CreateOrUpdate_CreateOrUpdateSweepJob() // invoke the operation string id = "string"; - MachineLearningJobData data = new MachineLearningJobData(new MachineLearningSweepJob(new MachineLearningObjective(MachineLearningGoal.Minimize, "string"), new GridSamplingAlgorithm(), BinaryData.FromObjectAsJson(new Dictionary() - { - ["string"] = new Dictionary() - { - } - }), new MachineLearningTrialComponent("string", new ResourceIdentifier("string")) + MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { + MlflowAutologger = MLFlowAutologgerState.Disabled, CodeId = new ResourceIdentifier("string"), - Distribution = new MpiDistributionConfiguration() + Distribution = new TensorFlowDistributionConfiguration() { - ProcessCountPerInstance = 1, + ParameterServerCount = 1, + WorkerCount = 1, }, EnvironmentVariables = { ["string"] = "string", }, + Inputs = +{ +["string"] = new MachineLearningLiteralJobInput("string") +{ +Description = "string", +}, +}, + Limits = new MachineLearningCommandJobLimits() + { + Timeout = XmlConvert.ToTimeSpan("PT5M"), + }, + Outputs = +{ +["string"] = new MachineLearningUriFileJobOutput() +{ +AssetName = "string", +AssetVersion = "string", +Mode = MachineLearningOutputDeliveryMode.ReadWriteMount, +Uri = new Uri("string"), +Description = "string", +}, +}, + QueueSettings = new QueueSettings() + { + JobTier = JobTier.Basic, + Priority = 1, + }, Resources = new MachineLearningJobResourceConfiguration() { + DockerArgs = "string", + ShmSize = "2g", InstanceCount = 1, InstanceType = "string", + Locations = +{ +"string" +}, Properties = { ["string"] = BinaryData.FromObjectAsJson(new Dictionary() { -["e6b6493e-7d5e-4db3-be1e-306ec641327e"] = null}), +["5fc1f627-491e-45a0-a6a2-f5b4be884911"] = null}), }, }, - }) - { - EarlyTermination = new MedianStoppingPolicy() - { - DelayEvaluation = 1, - EvaluationInterval = 1, - }, - Limits = new MachineLearningSweepJobLimits() - { - MaxConcurrentTrials = 1, - MaxTotalTrials = 1, - TrialTimeout = XmlConvert.ToTimeSpan("PT1S"), - }, + ComponentId = new ResourceIdentifier("string"), ComputeId = new ResourceIdentifier("string"), DisplayName = "string", ExperimentName = "string", + Identity = new AmlToken(), + IsArchived = false, + NotificationSetting = new NotificationSetting() + { + EmailOn = +{ +EmailNotificationEnableType.JobCompleted +}, + Emails = +{ +"string" +}, + }, Services = { ["string"] = new MachineLearningJobService() { Endpoint = "string", JobServiceType = "string", +Nodes = new AllNodes(), Port = 1, Properties = { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobResource.cs index 9f0528611c3d..875cae188f48 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobResource.cs @@ -6,9 +6,7 @@ #nullable disable using System; -using System.Collections.Generic; using System.Threading.Tasks; -using System.Xml; using Azure; using Azure.Core; using Azure.Identity; @@ -25,7 +23,7 @@ public partial class Sample_MachineLearningJobResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/delete.json // this example is just showing the usage of "Jobs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +51,7 @@ public async Task Delete_DeleteJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAutoMLJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +83,7 @@ public async Task Get_GetAutoMLJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCommandJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +115,7 @@ public async Task Get_GetCommandJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPipelineJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,7 +147,7 @@ public async Task Get_GetPipelineJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSweepJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,13 +174,13 @@ public async Task Get_GetSweepJob() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate AutoML Job. + // Update Job. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateAutoMLJob() + public async Task Update_UpdateJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/createOrUpdate.json - // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/update.json + // this example is just showing the usage of "Jobs_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -199,362 +197,17 @@ public async Task Update_CreateOrUpdateAutoMLJob() MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId); // invoke the operation - MachineLearningJobData data = new MachineLearningJobData(new AutoMLJob(new ImageClassification(new MachineLearningTableJobInput(new Uri("string")), new ImageLimitSettings() + MachineLearningJobPatch patch = new MachineLearningJobPatch() { - MaxTrials = 2, - }) - { - ModelSettings = new ImageModelSettingsClassification() - { - ValidationCropSize = 2, - }, - SearchSpace = -{ -new ImageModelDistributionSettingsClassification() -{ -ValidationCropSize = "choice(2, 360)", -} -}, - TargetColumnName = "string", - }) - { - EnvironmentId = "string", - EnvironmentVariables = -{ -["string"] = "string", -}, - Outputs = -{ -["string"] = new MachineLearningUriFileJobOutput() -{ -Mode = MachineLearningOutputDeliveryMode.ReadWriteMount, -Uri = new Uri("string"), -Description = "string", -}, -}, - Resources = new MachineLearningJobResourceConfiguration() - { - InstanceCount = 1, - InstanceType = "string", - Properties = -{ -["string"] = BinaryData.FromObjectAsJson(new Dictionary() -{ -["9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad"] = null}), -}, - }, - ComputeId = new ResourceIdentifier("string"), - DisplayName = "string", - ExperimentName = "string", - Identity = new AmlToken(), - IsArchived = false, - Services = -{ -["string"] = new MachineLearningJobService() -{ -Endpoint = "string", -JobServiceType = "string", -Port = 1, -Properties = -{ -["string"] = "string", -}, -}, -}, - Description = "string", - Properties = -{ -["string"] = "string", -}, - Tags = -{ -["string"] = "string", -}, - }); - ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data); - MachineLearningJobResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningJobData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // CreateOrUpdate Command Job. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateCommandJob() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/createOrUpdate.json - // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this MachineLearningJobResource created on azure - // for more information of creating MachineLearningJobResource, please refer to the document of MachineLearningJobResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - string workspaceName = "my-aml-workspace"; - string id = "string"; - ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId); - - // invoke the operation - MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) - { - CodeId = new ResourceIdentifier("string"), - Distribution = new TensorFlowDistributionConfiguration() - { - ParameterServerCount = 1, - WorkerCount = 1, - }, - EnvironmentVariables = -{ -["string"] = "string", -}, - Inputs = -{ -["string"] = new MachineLearningLiteralJobInput("string") -{ -Description = "string", -}, -}, - Limits = new MachineLearningCommandJobLimits() - { - Timeout = XmlConvert.ToTimeSpan("PT5M"), - }, - Outputs = + NotificationSettingWebhooks = { -["string"] = new MachineLearningUriFileJobOutput() +["string"] = new AzureDevOpsWebhook() { -Mode = MachineLearningOutputDeliveryMode.ReadWriteMount, -Uri = new Uri("string"), -Description = "string", -}, +EventType = "string", }, - Resources = new MachineLearningJobResourceConfiguration() - { - InstanceCount = 1, - InstanceType = "string", - Properties = -{ -["string"] = BinaryData.FromObjectAsJson(new Dictionary() -{ -["e6b6493e-7d5e-4db3-be1e-306ec641327e"] = null}), -}, - }, - ComputeId = new ResourceIdentifier("string"), - DisplayName = "string", - ExperimentName = "string", - Identity = new AmlToken(), - Services = -{ -["string"] = new MachineLearningJobService() -{ -Endpoint = "string", -JobServiceType = "string", -Port = 1, -Properties = -{ -["string"] = "string", -}, -}, -}, - Description = "string", - Properties = -{ -["string"] = "string", -}, - Tags = -{ -["string"] = "string", -}, - }); - ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data); - MachineLearningJobResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningJobData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // CreateOrUpdate Pipeline Job. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdatePipelineJob() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/createOrUpdate.json - // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this MachineLearningJobResource created on azure - // for more information of creating MachineLearningJobResource, please refer to the document of MachineLearningJobResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - string workspaceName = "my-aml-workspace"; - string id = "string"; - ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId); - - // invoke the operation - MachineLearningJobData data = new MachineLearningJobData(new MachineLearningPipelineJob() - { - Inputs = -{ -["string"] = new MachineLearningLiteralJobInput("string") -{ -Description = "string", -}, -}, - Outputs = -{ -["string"] = new MachineLearningUriFileJobOutput() -{ -Mode = MachineLearningOutputDeliveryMode.Upload, -Uri = new Uri("string"), -Description = "string", -}, -}, - Settings = BinaryData.FromObjectAsJson(new Dictionary() - { - }), - ComputeId = new ResourceIdentifier("string"), - DisplayName = "string", - ExperimentName = "string", - Services = -{ -["string"] = new MachineLearningJobService() -{ -Endpoint = "string", -JobServiceType = "string", -Port = 1, -Properties = -{ -["string"] = "string", -}, -}, -}, - Description = "string", - Properties = -{ -["string"] = "string", -}, - Tags = -{ -["string"] = "string", -}, - }); - ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data); - MachineLearningJobResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningJobData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // CreateOrUpdate Sweep Job. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateSweepJob() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/createOrUpdate.json - // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this MachineLearningJobResource created on azure - // for more information of creating MachineLearningJobResource, please refer to the document of MachineLearningJobResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - string workspaceName = "my-aml-workspace"; - string id = "string"; - ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId); - - // invoke the operation - MachineLearningJobData data = new MachineLearningJobData(new MachineLearningSweepJob(new MachineLearningObjective(MachineLearningGoal.Minimize, "string"), new GridSamplingAlgorithm(), BinaryData.FromObjectAsJson(new Dictionary() - { - ["string"] = new Dictionary() - { - } - }), new MachineLearningTrialComponent("string", new ResourceIdentifier("string")) - { - CodeId = new ResourceIdentifier("string"), - Distribution = new MpiDistributionConfiguration() - { - ProcessCountPerInstance = 1, - }, - EnvironmentVariables = -{ -["string"] = "string", -}, - Resources = new MachineLearningJobResourceConfiguration() - { - InstanceCount = 1, - InstanceType = "string", - Properties = -{ -["string"] = BinaryData.FromObjectAsJson(new Dictionary() -{ -["e6b6493e-7d5e-4db3-be1e-306ec641327e"] = null}), -}, - }, - }) - { - EarlyTermination = new MedianStoppingPolicy() - { - DelayEvaluation = 1, - EvaluationInterval = 1, - }, - Limits = new MachineLearningSweepJobLimits() - { - MaxConcurrentTrials = 1, - MaxTotalTrials = 1, - TrialTimeout = XmlConvert.ToTimeSpan("PT1S"), - }, - ComputeId = new ResourceIdentifier("string"), - DisplayName = "string", - ExperimentName = "string", - Services = -{ -["string"] = new MachineLearningJobService() -{ -Endpoint = "string", -JobServiceType = "string", -Port = 1, -Properties = -{ -["string"] = "string", -}, -}, -}, - Description = "string", - Properties = -{ -["string"] = "string", -}, - Tags = -{ -["string"] = "string", }, - }); - ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data); - MachineLearningJobResource result = lro.Value; + }; + MachineLearningJobResource result = await machineLearningJob.UpdateAsync(patch); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -568,7 +221,7 @@ public async Task Update_CreateOrUpdateSweepJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Cancel_CancelJob() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/cancel.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/cancel.json // this example is just showing the usage of "Jobs_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentCollection.cs index 999b80fc5983..ed6c19ac9db2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_MachineLearningOnlineDeploymentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListOnlineDeployments() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/list.json // this example is just showing the usage of "OnlineDeployments_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task GetAll_ListOnlineDeployments() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetKubernetesOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json // this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,7 @@ public async Task Get_GetKubernetesOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetKubernetesOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json // this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task Exists_GetKubernetesOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetManagedOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json // this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task Get_GetManagedOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetManagedOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json // this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task Exists_GetManagedOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateKubernetesOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json // this example is just showing the usage of "OnlineDeployments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -309,7 +309,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateManagedOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json // this example is just showing the usage of "OnlineDeployments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentResource.cs index 612cd5386de9..f322ac2a1777 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentResource.cs @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningOnlineDeploymentResource { - // Delete Online Deployment. + // Delete Workspace Online Deployment. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteOnlineDeployment() + public async Task Delete_DeleteWorkspaceOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineDeployment/delete.json // this example is just showing the usage of "OnlineDeployments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Delete_DeleteOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetKubernetesOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json // this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Get_GetKubernetesOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetManagedOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json // this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Get_GetManagedOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateKubernetesOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json // this example is just showing the usage of "OnlineDeployments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task Update_UpdateKubernetesOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateManagedOnlineDeployment() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/update.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json // this example is just showing the usage of "OnlineDeployments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -214,7 +214,7 @@ public async Task Update_UpdateManagedOnlineDeployment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLogs_GetOnlineDeploymentLogs() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/getLogs.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/getLogs.json // this example is just showing the usage of "OnlineDeployments_GetLogs" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -248,7 +248,7 @@ public async Task GetLogs_GetOnlineDeploymentLogs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSkus_ListKubernetesOnlineDeploymentSkus() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json // this example is just showing the usage of "OnlineDeployments_ListSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -281,7 +281,7 @@ public async Task GetSkus_ListKubernetesOnlineDeploymentSkus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSkus_ListManagedOnlineDeploymentSkus() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json // this example is just showing the usage of "OnlineDeployments_ListSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointCollection.cs index f502229a2f9a..7a2bae0cfb33 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointCollection.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningOnlineEndpointCollection { - // List Online Endpoint. + // List Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListOnlineEndpoint() + public async Task GetAll_ListWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/list.json // this example is just showing the usage of "OnlineEndpoints_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,12 +57,12 @@ public async Task GetAll_ListOnlineEndpoint() Console.WriteLine($"Succeeded"); } - // Get Online Endpoint. + // Get Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetOnlineEndpoint() + public async Task Get_GetWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/get.json // this example is just showing the usage of "OnlineEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,12 +92,12 @@ public async Task Get_GetOnlineEndpoint() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Online Endpoint. + // Get Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetOnlineEndpoint() + public async Task Exists_GetWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/get.json // this example is just showing the usage of "OnlineEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,12 +123,12 @@ public async Task Exists_GetOnlineEndpoint() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Online Endpoint. + // CreateOrUpdate Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateOnlineEndpoint() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json // this example is just showing the usage of "OnlineEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointResource.cs index d9080f02bb96..91d464bb1450 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointResource.cs @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningOnlineEndpointResource { - // Delete Online Endpoint. + // Delete Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteOnlineEndpoint() + public async Task Delete_DeleteWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/delete.json // this example is just showing the usage of "OnlineEndpoints_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,12 +47,12 @@ public async Task Delete_DeleteOnlineEndpoint() Console.WriteLine($"Succeeded"); } - // Get Online Endpoint. + // Get Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetOnlineEndpoint() + public async Task Get_GetWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/get.json // this example is just showing the usage of "OnlineEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,12 +79,12 @@ public async Task Get_GetOnlineEndpoint() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Update Online Endpoint. + // Update Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_UpdateOnlineEndpoint() + public async Task Update_UpdateWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/update.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/update.json // this example is just showing the usage of "OnlineEndpoints_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,12 +128,12 @@ public async Task Update_UpdateOnlineEndpoint() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // ListKeys Online Endpoint. + // ListKeys Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetKeys_ListKeysOnlineEndpoint() + public async Task GetKeys_ListKeysWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/listKeys.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/listKeys.json // this example is just showing the usage of "OnlineEndpoints_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -156,12 +156,12 @@ public async Task GetKeys_ListKeysOnlineEndpoint() Console.WriteLine($"Succeeded: {result}"); } - // RegenerateKeys Online Endpoint. + // RegenerateKeys Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task RegenerateKeys_RegenerateKeysOnlineEndpoint() + public async Task RegenerateKeys_RegenerateKeysWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/regenerateKeys.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json // this example is just showing the usage of "OnlineEndpoints_RegenerateKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -188,12 +188,12 @@ public async Task RegenerateKeys_RegenerateKeysOnlineEndpoint() Console.WriteLine($"Succeeded"); } - // GetToken Online Endpoint. + // GetToken Workspace Online Endpoint. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetToken_GetTokenOnlineEndpoint() + public async Task GetToken_GetTokenWorkspaceOnlineEndpoint() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/getToken.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/getToken.json // this example is just showing the usage of "OnlineEndpoints_GetToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs index 80a3d5f7f6e7..32d474e6c378 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_MachineLearningPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_StorageAccountListPrivateEndpointConnections() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/list.json // this example is just showing the usage of "PrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_StorageAccountListPrivateEndpointConnections() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkspaceGetPrivateEndpointConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/get.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_WorkspaceGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkspaceGetPrivateEndpointConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/get.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_WorkspaceGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkspacePutPrivateEndpointConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,8 +151,8 @@ public async Task CreateOrUpdate_WorkspacePutPrivateEndpointConnection() { ConnectionState = new MachineLearningPrivateLinkServiceConnectionState() { - Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved, Description = "Auto-Approved", + Status = EndpointServiceConnectionStatus.Approved, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, privateEndpointConnectionName, data); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs index 8207fbc299e4..67cfc87408bf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs @@ -18,13 +18,13 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningPrivateEndpointConnectionResource { - // WorkspaceGetPrivateEndpointConnection + // WorkspacePutPrivateEndpointConnection [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_WorkspaceGetPrivateEndpointConnection() + public async Task Delete_WorkspacePutPrivateEndpointConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/get.json - // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/delete.json + // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -41,22 +41,18 @@ public async Task Get_WorkspaceGetPrivateEndpointConnection() MachineLearningPrivateEndpointConnectionResource machineLearningPrivateEndpointConnection = client.GetMachineLearningPrivateEndpointConnectionResource(machineLearningPrivateEndpointConnectionResourceId); // invoke the operation - MachineLearningPrivateEndpointConnectionResource result = await machineLearningPrivateEndpointConnection.GetAsync(); + await machineLearningPrivateEndpointConnection.DeleteAsync(WaitUntil.Completed); - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningPrivateEndpointConnectionData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + Console.WriteLine($"Succeeded"); } - // WorkspacePutPrivateEndpointConnection + // WorkspaceGetPrivateEndpointConnection [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_WorkspacePutPrivateEndpointConnection() + public async Task Get_WorkspaceGetPrivateEndpointConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/createOrUpdate.json - // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/get.json + // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -73,16 +69,7 @@ public async Task Update_WorkspacePutPrivateEndpointConnection() MachineLearningPrivateEndpointConnectionResource machineLearningPrivateEndpointConnection = client.GetMachineLearningPrivateEndpointConnectionResource(machineLearningPrivateEndpointConnectionResourceId); // invoke the operation - MachineLearningPrivateEndpointConnectionData data = new MachineLearningPrivateEndpointConnectionData(new AzureLocation("placeholder")) - { - ConnectionState = new MachineLearningPrivateLinkServiceConnectionState() - { - Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved, - Description = "Auto-Approved", - }, - }; - ArmOperation lro = await machineLearningPrivateEndpointConnection.UpdateAsync(WaitUntil.Completed, data); - MachineLearningPrivateEndpointConnectionResource result = lro.Value; + MachineLearningPrivateEndpointConnectionResource result = await machineLearningPrivateEndpointConnection.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,13 +78,13 @@ public async Task Update_WorkspacePutPrivateEndpointConnection() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // WorkspaceDeletePrivateEndpointConnection + // WorkspacePutPrivateEndpointConnection [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_WorkspaceDeletePrivateEndpointConnection() + public async Task Update_WorkspacePutPrivateEndpointConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/delete.json - // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json + // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -114,9 +101,22 @@ public async Task Delete_WorkspaceDeletePrivateEndpointConnection() MachineLearningPrivateEndpointConnectionResource machineLearningPrivateEndpointConnection = client.GetMachineLearningPrivateEndpointConnectionResource(machineLearningPrivateEndpointConnectionResourceId); // invoke the operation - await machineLearningPrivateEndpointConnection.DeleteAsync(WaitUntil.Completed); + MachineLearningPrivateEndpointConnectionData data = new MachineLearningPrivateEndpointConnectionData(new AzureLocation("placeholder")) + { + ConnectionState = new MachineLearningPrivateLinkServiceConnectionState() + { + Description = "Auto-Approved", + Status = EndpointServiceConnectionStatus.Approved, + }, + }; + ArmOperation lro = await machineLearningPrivateEndpointConnection.UpdateAsync(WaitUntil.Completed, data); + MachineLearningPrivateEndpointConnectionResource result = lro.Value; - Console.WriteLine($"Succeeded"); + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningPrivateEndpointConnectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleCollection.cs index 8776ccd6ddf5..a8fe1e267100 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_MachineLearningScheduleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSchedules() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/list.json // this example is just showing the usage of "Schedules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_ListSchedules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSchedule() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/get.json // this example is just showing the usage of "Schedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSchedule() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/get.json // this example is just showing the usage of "Schedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task Exists_GetSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateSchedule() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/createOrUpdate.json // this example is just showing the usage of "Schedules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleResource.cs index 2baae7814a16..837eb05cfe1d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleResource.cs @@ -24,7 +24,7 @@ public partial class Sample_MachineLearningScheduleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteSchedule() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/delete.json // this example is just showing the usage of "Schedules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Delete_DeleteSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSchedule() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/get.json // this example is just showing the usage of "Schedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateSchedule() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/createOrUpdate.json // this example is just showing the usage of "Schedules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs index b1da7289ae1a..f1e6404c510d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs @@ -20,12 +20,48 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningWorkspaceCollection { + // Get Workspaces by Resource Group + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_GetWorkspacesByResourceGroup() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listByResourceGroup.json + // this example is just showing the usage of "Workspaces_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this MachineLearningWorkspaceResource + MachineLearningWorkspaceCollection collection = resourceGroupResource.GetMachineLearningWorkspaces(); + + // invoke the operation and iterate over the result + await foreach (MachineLearningWorkspaceResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningWorkspaceData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + // Get Workspace [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetWorkspace() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/get.json // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +95,7 @@ public async Task Get_GetWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetWorkspace() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/get.json // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +125,7 @@ public async Task Exists_GetWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateWorkspace() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/create.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/create.json // this example is just showing the usage of "Workspaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,31 +154,31 @@ public async Task CreateOrUpdate_CreateWorkspace() [new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai")] = new UserAssignedIdentity(), }, }, - Description = "test description", - FriendlyName = "HelloName", - KeyVault = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv", ApplicationInsights = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights", ContainerRegistry = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry", - StorageAccount = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount", - Encryption = new MachineLearningEncryptionSetting(MachineLearningEncryptionStatus.Enabled, new MachineLearningEncryptionKeyVaultProperties(new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv"), "https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb") + Description = "test description", + Encryption = new MachineLearningEncryptionSetting(new Models.KeyVaultProperties("https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv") { IdentityClientId = "", - }) + }, MachineLearningEncryptionStatus.Enabled) { UserAssignedIdentity = new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai"), }, + FriendlyName = "HelloName", IsHbiWorkspace = false, + KeyVault = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv", SharedPrivateLinkResources = { new MachineLearningSharedPrivateLinkResource() { Name = "testdbresource", -PrivateLinkResourceId = new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql"), GroupId = "Sql", +PrivateLinkResourceId = new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql"), RequestMessage = "Please approve", -Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved, +Status = EndpointServiceConnectionStatus.Approved, } }, + StorageAccount = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount", }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workspaceName, data); MachineLearningWorkspaceResource result = lro.Value; @@ -153,41 +189,5 @@ public async Task CreateOrUpdate_CreateWorkspace() // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - - // Get Workspaces by Resource Group - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_GetWorkspacesByResourceGroup() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listByResourceGroup.json - // this example is just showing the usage of "Workspaces_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "workspace-1234"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this MachineLearningWorkspaceResource - MachineLearningWorkspaceCollection collection = resourceGroupResource.GetMachineLearningWorkspaces(); - - // invoke the operation and iterate over the result - await foreach (MachineLearningWorkspaceResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningWorkspaceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs index e4aadbb7594c..62f93b8fab70 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs @@ -18,13 +18,13 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningWorkspaceConnectionCollection { - // CreateWorkspaceConnection + // ListWorkspaceConnections [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateWorkspaceConnection() + public async Task GetAll_ListWorkspaceConnections() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/create.json - // this example is just showing the usage of "WorkspaceConnections_Create" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/list.json + // this example is just showing the usage of "WorkspaceConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -42,21 +42,19 @@ public async Task CreateOrUpdate_CreateWorkspaceConnection() // get the collection of this MachineLearningWorkspaceConnectionResource MachineLearningWorkspaceConnectionCollection collection = machineLearningWorkspace.GetMachineLearningWorkspaceConnections(); - // invoke the operation - string connectionName = "connection-1"; - MachineLearningWorkspaceConnectionData data = new MachineLearningWorkspaceConnectionData(new MachineLearningNoneAuthTypeWorkspaceConnection() + // invoke the operation and iterate over the result + string target = "www.facebook.com"; + string category = "ContainerRegistry"; + await foreach (MachineLearningWorkspaceConnectionResource item in collection.GetAllAsync(target: target, category: category)) { - Category = MachineLearningConnectionCategory.ContainerRegistry, - Target = "www.facebook.com", - }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, connectionName, data); - MachineLearningWorkspaceConnectionResource result = lro.Value; + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningWorkspaceConnectionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningWorkspaceConnectionData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + Console.WriteLine($"Succeeded"); } // GetWorkspaceConnection @@ -64,7 +62,7 @@ public async Task CreateOrUpdate_CreateWorkspaceConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetWorkspaceConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/get.json // this example is just showing the usage of "WorkspaceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +97,7 @@ public async Task Get_GetWorkspaceConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetWorkspaceConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/get.json // this example is just showing the usage of "WorkspaceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,13 +123,13 @@ public async Task Exists_GetWorkspaceConnection() Console.WriteLine($"Succeeded: {result}"); } - // ListWorkspaceConnections + // CreateWorkspaceConnection [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListWorkspaceConnections() + public async Task CreateOrUpdate_CreateWorkspaceConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/list.json - // this example is just showing the usage of "WorkspaceConnections_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/create.json + // this example is just showing the usage of "WorkspaceConnections_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -149,19 +147,22 @@ public async Task GetAll_ListWorkspaceConnections() // get the collection of this MachineLearningWorkspaceConnectionResource MachineLearningWorkspaceConnectionCollection collection = machineLearningWorkspace.GetMachineLearningWorkspaceConnections(); - // invoke the operation and iterate over the result - string target = "www.facebook.com"; - string category = "ContainerRegistry"; - await foreach (MachineLearningWorkspaceConnectionResource item in collection.GetAllAsync(target: target, category: category)) + // invoke the operation + string connectionName = "connection-1"; + MachineLearningWorkspaceConnectionData data = new MachineLearningWorkspaceConnectionData(new MachineLearningNoneAuthTypeWorkspaceConnection() { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningWorkspaceConnectionData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } + Category = MachineLearningConnectionCategory.ContainerRegistry, + ExpiryOn = DateTimeOffset.Parse("2024-03-15T14:30:00Z"), + Target = "www.facebook.com", + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, connectionName, data); + MachineLearningWorkspaceConnectionResource result = lro.Value; - Console.WriteLine($"Succeeded"); + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningWorkspaceConnectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionResource.cs index 43e0b44efc0a..fc1d009413c3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionResource.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Threading.Tasks; using Azure; using Azure.Core; @@ -18,13 +19,13 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningWorkspaceConnectionResource { - // CreateWorkspaceConnection + // DeleteWorkspaceConnection [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateWorkspaceConnection() + public async Task Delete_DeleteWorkspaceConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/create.json - // this example is just showing the usage of "WorkspaceConnections_Create" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/delete.json + // this example is just showing the usage of "WorkspaceConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -41,19 +42,9 @@ public async Task Update_CreateWorkspaceConnection() MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId); // invoke the operation - MachineLearningWorkspaceConnectionData data = new MachineLearningWorkspaceConnectionData(new MachineLearningNoneAuthTypeWorkspaceConnection() - { - Category = MachineLearningConnectionCategory.ContainerRegistry, - Target = "www.facebook.com", - }); - ArmOperation lro = await machineLearningWorkspaceConnection.UpdateAsync(WaitUntil.Completed, data); - MachineLearningWorkspaceConnectionResource result = lro.Value; + await machineLearningWorkspaceConnection.DeleteAsync(WaitUntil.Completed); - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningWorkspaceConnectionData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + Console.WriteLine($"Succeeded"); } // GetWorkspaceConnection @@ -61,7 +52,7 @@ public async Task Update_CreateWorkspaceConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetWorkspaceConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/get.json // this example is just showing the usage of "WorkspaceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,13 +79,13 @@ public async Task Get_GetWorkspaceConnection() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // DeleteWorkspaceConnection + // UpdateWorkspaceConnection [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteWorkspaceConnection() + public async Task Update_UpdateWorkspaceConnection() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/delete.json - // this example is just showing the usage of "WorkspaceConnections_Delete" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/update.json + // this example is just showing the usage of "WorkspaceConnections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -104,16 +95,69 @@ public async Task Delete_DeleteWorkspaceConnection() // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "resourceGroup-1"; - string workspaceName = "workspace-1"; - string connectionName = "connection-1"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + string connectionName = "some_string"; ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName); MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId); // invoke the operation - await machineLearningWorkspaceConnection.DeleteAsync(WaitUntil.Completed); + MachineLearningWorkspaceConnectionPatch patch = new MachineLearningWorkspaceConnectionPatch() + { + Properties = new AccessKeyAuthTypeWorkspaceConnectionProperties() + { + Credentials = new WorkspaceConnectionAccessKey() + { + AccessKeyId = "some_string", + SecretAccessKey = "some_string", + }, + Category = MachineLearningConnectionCategory.AdlsGen2, + ExpiryOn = DateTimeOffset.Parse("2020-01-01T00:00:00Z"), + Metadata = BinaryData.FromObjectAsJson(new Dictionary() + { + }), + Target = "some_string", + }, + }; + MachineLearningWorkspaceConnectionResource result = await machineLearningWorkspaceConnection.UpdateAsync(patch); - Console.WriteLine($"Succeeded"); + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningWorkspaceConnectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // GetWorkspaceConnection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetSecrets_GetWorkspaceConnection() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/listSecrets.json + // this example is just showing the usage of "WorkspaceConnections_ListSecrets" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure + // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + string connectionName = "some_string"; + ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName); + MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId); + + // invoke the operation + MachineLearningWorkspaceConnectionResource result = await machineLearningWorkspaceConnection.GetSecretsAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningWorkspaceConnectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs index a5fea400711c..c366925059bf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs @@ -19,13 +19,13 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_MachineLearningWorkspaceResource { - // Get Workspace + // List Workspace features [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetWorkspace() + public async Task GetWorkspaceFeatures_ListWorkspaceFeatures() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/get.json - // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceFeature/list.json + // this example is just showing the usage of "WorkspaceFeatures_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -34,20 +34,51 @@ public async Task Get_GetWorkspace() // this example assumes you already have this MachineLearningWorkspaceResource created on azure // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "workspace-1234"; + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myResourceGroup"; string workspaceName = "testworkspace"; ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // invoke the operation - MachineLearningWorkspaceResource result = await machineLearningWorkspace.GetAsync(); + // invoke the operation and iterate over the result + await foreach (MachineLearningUserFeature item in machineLearningWorkspace.GetWorkspaceFeaturesAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningWorkspaceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + Console.WriteLine($"Succeeded"); + } + + // Get Workspaces by subscription + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetMachineLearningWorkspaces_GetWorkspacesBySubscription() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listBySubscription.json + // this example is just showing the usage of "Workspaces_ListBySubscription" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + await foreach (MachineLearningWorkspaceResource item in subscriptionResource.GetMachineLearningWorkspacesAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningWorkspaceData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); } // Delete Workspace @@ -55,7 +86,7 @@ public async Task Get_GetWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteWorkspace() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/delete.json // this example is just showing the usage of "Workspaces_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -77,12 +108,43 @@ public async Task Delete_DeleteWorkspace() Console.WriteLine($"Succeeded"); } + // Get Workspace + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetWorkspace() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/get.json + // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // invoke the operation + MachineLearningWorkspaceResource result = await machineLearningWorkspace.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningWorkspaceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Update Workspace [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateWorkspace() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/update.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/update.json // this example is just showing the usage of "Workspaces_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +165,7 @@ public async Task Update_UpdateWorkspace() { Description = "new description", FriendlyName = "New friendly name", - PublicNetworkAccess = MachineLearningPublicNetworkAccess.Disabled, + PublicNetworkAccess = MachineLearningPublicNetworkAccessType.Disabled, }; ArmOperation lro = await machineLearningWorkspace.UpdateAsync(WaitUntil.Completed, patch); MachineLearningWorkspaceResource result = lro.Value; @@ -120,7 +182,7 @@ public async Task Update_UpdateWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Diagnose_DiagnoseWorkspace() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/diagnose.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/diagnose.json // this example is just showing the usage of "Workspaces_Diagnose" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,31 +203,31 @@ public async Task Diagnose_DiagnoseWorkspace() { Value = new MachineLearningWorkspaceDiagnoseProperties() { - Udr = + ApplicationInsights = { }, - Nsg = + ContainerRegistry = { }, - ResourceLock = + DnsResolution = { }, - DnsResolution = + KeyVault = { }, - StorageAccount = + Nsg = { }, - KeyVault = + Others = { }, - ContainerRegistry = + ResourceLock = { }, - ApplicationInsights = + StorageAccount = { }, - Others = + Udr = { }, }, @@ -181,7 +243,7 @@ public async Task Diagnose_DiagnoseWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_ListWorkspaceKeys() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listKeys.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listKeys.json // this example is just showing the usage of "Workspaces_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -203,13 +265,13 @@ public async Task GetKeys_ListWorkspaceKeys() Console.WriteLine($"Succeeded: {result}"); } - // Resync Workspace Keys + // List Workspace Keys [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ResyncKeys_ResyncWorkspaceKeys() + public async Task GetNotebookAccessToken_ListWorkspaceKeys() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/resyncKeys.json - // this example is just showing the usage of "Workspaces_ResyncKeys" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listNotebookAccessToken.json + // this example is just showing the usage of "Workspaces_ListNotebookAccessToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -218,57 +280,25 @@ public async Task ResyncKeys_ResyncWorkspaceKeys() // this example assumes you already have this MachineLearningWorkspaceResource created on azure // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource - string subscriptionId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; - string resourceGroupName = "testrg123"; - string workspaceName = "workspaces123"; + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); // invoke the operation - await machineLearningWorkspace.ResyncKeysAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - - // Get Workspaces by subscription - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetMachineLearningWorkspaces_GetWorkspacesBySubscription() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listBySubscription.json - // this example is just showing the usage of "Workspaces_ListBySubscription" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation and iterate over the result - await foreach (MachineLearningWorkspaceResource item in subscriptionResource.GetMachineLearningWorkspacesAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningWorkspaceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } + MachineLearningWorkspaceNotebookAccessTokenResult result = await machineLearningWorkspace.GetNotebookAccessTokenAsync(); - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // List Workspace Keys [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetNotebookAccessToken_ListWorkspaceKeys() + public async Task GetNotebookKeys_ListWorkspaceKeys() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listNotebookAccessToken.json - // this example is just showing the usage of "Workspaces_ListNotebookAccessToken" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Notebook/listKeys.json + // this example is just showing the usage of "Workspaces_ListNotebookKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -277,25 +307,25 @@ public async Task GetNotebookAccessToken_ListWorkspaceKeys() // this example assumes you already have this MachineLearningWorkspaceResource created on azure // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "workspace-1234"; - string workspaceName = "testworkspace"; + string subscriptionId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; + string resourceGroupName = "testrg123"; + string workspaceName = "workspaces123"; ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); // invoke the operation - MachineLearningWorkspaceNotebookAccessTokenResult result = await machineLearningWorkspace.GetNotebookAccessTokenAsync(); + MachineLearningWorkspaceGetNotebookKeysResult result = await machineLearningWorkspace.GetNotebookKeysAsync(); Console.WriteLine($"Succeeded: {result}"); } - // Prepare Notebook + // List Workspace Keys [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task PrepareNotebook_PrepareNotebook() + public async Task GetStorageAccountKeys_ListWorkspaceKeys() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Notebook/prepare.json - // this example is just showing the usage of "Workspaces_PrepareNotebook" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listStorageAccountKeys.json + // this example is just showing the usage of "Workspaces_ListStorageAccountKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -311,19 +341,18 @@ public async Task PrepareNotebook_PrepareNotebook() MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); // invoke the operation - ArmOperation lro = await machineLearningWorkspace.PrepareNotebookAsync(WaitUntil.Completed); - MachineLearningNotebookResourceInfo result = lro.Value; + MachineLearningWorkspaceGetStorageAccountKeysResult result = await machineLearningWorkspace.GetStorageAccountKeysAsync(); Console.WriteLine($"Succeeded: {result}"); } - // List Workspace Keys + // ListOutboundNetworkDependenciesEndpoints [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetStorageAccountKeys_ListWorkspaceKeys() + public async Task GetOutboundNetworkDependenciesEndpoints_ListOutboundNetworkDependenciesEndpoints() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listStorageAccountKeys.json - // this example is just showing the usage of "Workspaces_ListStorageAccountKeys" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ExternalFQDN/get.json + // this example is just showing the usage of "Workspaces_ListOutboundNetworkDependenciesEndpoints" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -332,25 +361,28 @@ public async Task GetStorageAccountKeys_ListWorkspaceKeys() // this example assumes you already have this MachineLearningWorkspaceResource created on azure // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource - string subscriptionId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; - string resourceGroupName = "testrg123"; - string workspaceName = "workspaces123"; + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "workspace-1234"; + string workspaceName = "testworkspace"; ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // invoke the operation - MachineLearningWorkspaceGetStorageAccountKeysResult result = await machineLearningWorkspace.GetStorageAccountKeysAsync(); + // invoke the operation and iterate over the result + await foreach (FqdnEndpointsPropertyBag item in machineLearningWorkspace.GetOutboundNetworkDependenciesEndpointsAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine($"Succeeded"); } - // List Workspace Keys + // Prepare Notebook [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetNotebookKeys_ListWorkspaceKeys() + public async Task PrepareNotebook_PrepareNotebook() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Notebook/listKeys.json - // this example is just showing the usage of "Workspaces_ListNotebookKeys" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Notebook/prepare.json + // this example is just showing the usage of "Workspaces_PrepareNotebook" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -366,18 +398,19 @@ public async Task GetNotebookKeys_ListWorkspaceKeys() MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); // invoke the operation - MachineLearningWorkspaceGetNotebookKeysResult result = await machineLearningWorkspace.GetNotebookKeysAsync(); + ArmOperation lro = await machineLearningWorkspace.PrepareNotebookAsync(WaitUntil.Completed); + MachineLearningNotebookResourceInfo result = lro.Value; Console.WriteLine($"Succeeded: {result}"); } - // ListOutboundNetworkDependenciesEndpoints + // Resync Workspace Keys [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetOutboundNetworkDependenciesEndpoints_ListOutboundNetworkDependenciesEndpoints() + public async Task ResyncKeys_ResyncWorkspaceKeys() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ExternalFQDN/get.json - // this example is just showing the usage of "Workspaces_ListOutboundNetworkDependenciesEndpoints" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/resyncKeys.json + // this example is just showing the usage of "Workspaces_ResyncKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -386,17 +419,14 @@ public async Task GetOutboundNetworkDependenciesEndpoints_ListOutboundNetworkDep // this example assumes you already have this MachineLearningWorkspaceResource created on azure // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "workspace-1234"; - string workspaceName = "testworkspace"; + string subscriptionId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; + string resourceGroupName = "testrg123"; + string workspaceName = "workspaces123"; ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // invoke the operation and iterate over the result - await foreach (MachineLearningFqdnEndpoints item in machineLearningWorkspace.GetOutboundNetworkDependenciesEndpointsAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } + // invoke the operation + await machineLearningWorkspace.ResyncKeysAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -406,7 +436,7 @@ public async Task GetOutboundNetworkDependenciesEndpoints_ListOutboundNetworkDep [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkResources_WorkspaceListPrivateLinkResources() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateLinkResource/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateLinkResource/list.json // this example is just showing the usage of "PrivateLinkResources_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -431,13 +461,13 @@ public async Task GetPrivateLinkResources_WorkspaceListPrivateLinkResources() Console.WriteLine($"Succeeded"); } - // List Workspace features + // Provision ManagedNetwork [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetWorkspaceFeatures_ListWorkspaceFeatures() + public async Task ProvisionManagedNetworkManagedNetworkProvision_ProvisionManagedNetwork() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceFeature/list.json - // this example is just showing the usage of "WorkspaceFeatures_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/provision.json + // this example is just showing the usage of "ManagedNetworkProvisions_ProvisionManagedNetwork" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -446,19 +476,21 @@ public async Task GetWorkspaceFeatures_ListWorkspaceFeatures() // this example assumes you already have this MachineLearningWorkspaceResource created on azure // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myResourceGroup"; - string workspaceName = "testworkspace"; + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // invoke the operation and iterate over the result - await foreach (MachineLearningUserFeature item in machineLearningWorkspace.GetWorkspaceFeaturesAsync()) + // invoke the operation + ManagedNetworkProvisionContent content = new ManagedNetworkProvisionContent() { - Console.WriteLine($"Succeeded: {item}"); - } + IncludeSpark = false, + }; + ArmOperation lro = await machineLearningWorkspace.ProvisionManagedNetworkManagedNetworkProvisionAsync(WaitUntil.Completed, content: content); + ManagedNetworkProvisionStatus result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResource.cs new file mode 100644 index 000000000000..ebfd17410557 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResource.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_OutboundRuleBasicResource + { + // Delete ManagedNetworkSettingsRule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteManagedNetworkSettingsRule() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/deleteRule.json + // this example is just showing the usage of "ManagedNetworkSettingsRule_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this OutboundRuleBasicResource created on azure + // for more information of creating OutboundRuleBasicResource, please refer to the document of OutboundRuleBasicResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + string ruleName = "some_string"; + ResourceIdentifier outboundRuleBasicResourceId = OutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + OutboundRuleBasicResource outboundRuleBasicResource = client.GetOutboundRuleBasicResource(outboundRuleBasicResourceId); + + // invoke the operation + await outboundRuleBasicResource.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get ManagedNetworkSettingsRule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetManagedNetworkSettingsRule() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/getRule.json + // this example is just showing the usage of "ManagedNetworkSettingsRule_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this OutboundRuleBasicResource created on azure + // for more information of creating OutboundRuleBasicResource, please refer to the document of OutboundRuleBasicResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + string ruleName = "some_string"; + ResourceIdentifier outboundRuleBasicResourceId = OutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + OutboundRuleBasicResource outboundRuleBasicResource = client.GetOutboundRuleBasicResource(outboundRuleBasicResourceId); + + // invoke the operation + OutboundRuleBasicResource result = await outboundRuleBasicResource.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + OutboundRuleBasicResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate ManagedNetworkSettingsRule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateManagedNetworkSettingsRule() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/createOrUpdateRule.json + // this example is just showing the usage of "ManagedNetworkSettingsRule_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this OutboundRuleBasicResource created on azure + // for more information of creating OutboundRuleBasicResource, please refer to the document of OutboundRuleBasicResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + string ruleName = "some_string"; + ResourceIdentifier outboundRuleBasicResourceId = OutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + OutboundRuleBasicResource outboundRuleBasicResource = client.GetOutboundRuleBasicResource(outboundRuleBasicResourceId); + + // invoke the operation + OutboundRuleBasicResourceData data = new OutboundRuleBasicResourceData(new FqdnOutboundRule() + { + Destination = "some_string", + Category = RuleCategory.UserDefined, + Status = RuleStatus.Active, + }); + ArmOperation lro = await outboundRuleBasicResource.UpdateAsync(WaitUntil.Completed, data); + OutboundRuleBasicResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + OutboundRuleBasicResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResourceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResourceCollection.cs new file mode 100644 index 000000000000..7dd0e5e73185 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResourceCollection.cs @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_OutboundRuleBasicResourceCollection + { + // List ManagedNetworkSettingsRule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListManagedNetworkSettingsRule() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/listRule.json + // this example is just showing the usage of "ManagedNetworkSettingsRule_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this OutboundRuleBasicResource + OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + + // invoke the operation and iterate over the result + await foreach (OutboundRuleBasicResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + OutboundRuleBasicResourceData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get ManagedNetworkSettingsRule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetManagedNetworkSettingsRule() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/getRule.json + // this example is just showing the usage of "ManagedNetworkSettingsRule_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this OutboundRuleBasicResource + OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + + // invoke the operation + string ruleName = "some_string"; + OutboundRuleBasicResource result = await collection.GetAsync(ruleName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + OutboundRuleBasicResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get ManagedNetworkSettingsRule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetManagedNetworkSettingsRule() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/getRule.json + // this example is just showing the usage of "ManagedNetworkSettingsRule_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this OutboundRuleBasicResource + OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + + // invoke the operation + string ruleName = "some_string"; + bool result = await collection.ExistsAsync(ruleName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate ManagedNetworkSettingsRule + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateManagedNetworkSettingsRule() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/createOrUpdateRule.json + // this example is just showing the usage of "ManagedNetworkSettingsRule_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "aml-workspace-name"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // get the collection of this OutboundRuleBasicResource + OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + + // invoke the operation + string ruleName = "some_string"; + OutboundRuleBasicResourceData data = new OutboundRuleBasicResourceData(new FqdnOutboundRule() + { + Destination = "some_string", + Category = RuleCategory.UserDefined, + Status = RuleStatus.Active, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, data); + OutboundRuleBasicResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + OutboundRuleBasicResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeCollection.cs new file mode 100644 index 000000000000..2c24cdcdeb35 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeCollection.cs @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryCodeCollection + { + // List Registry Code Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistryCodeContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/list.json + // this example is just showing the usage of "RegistryCodeContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryCodeResource + RegistryCodeCollection collection = registry.GetRegistryCodes(); + + // invoke the operation and iterate over the result + await foreach (RegistryCodeResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Code Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryCodeContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/get.json + // this example is just showing the usage of "RegistryCodeContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryCodeResource + RegistryCodeCollection collection = registry.GetRegistryCodes(); + + // invoke the operation + string codeName = "testContainer"; + RegistryCodeResource result = await collection.GetAsync(codeName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Code Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryCodeContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/get.json + // this example is just showing the usage of "RegistryCodeContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryCodeResource + RegistryCodeCollection collection = registry.GetRegistryCodes(); + + // invoke the operation + string codeName = "testContainer"; + bool result = await collection.ExistsAsync(codeName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Code Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryCodeContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryCodeContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryCodeResource + RegistryCodeCollection collection = registry.GetRegistryCodes(); + + // invoke the operation + string codeName = "testContainer"; + MachineLearningCodeContainerData data = new MachineLearningCodeContainerData(new MachineLearningCodeContainerProperties() + { + Description = "string", + Tags = +{ +["tag1"] = "value1", +["tag2"] = "value2", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, codeName, data); + RegistryCodeResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeResource.cs new file mode 100644 index 000000000000..43c082a53d2c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeResource.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryCodeResource + { + // Delete Registry Code Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryCodeContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/delete.json + // this example is just showing the usage of "RegistryCodeContainers_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeResource created on azure + // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + string codeName = "testContainer"; + ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + + // invoke the operation + await registryCode.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Code Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryCodeContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/get.json + // this example is just showing the usage of "RegistryCodeContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeResource created on azure + // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + string codeName = "testContainer"; + ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + + // invoke the operation + RegistryCodeResource result = await registryCode.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Code Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryCodeContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryCodeContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeResource created on azure + // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + string codeName = "testContainer"; + ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + + // invoke the operation + MachineLearningCodeContainerData data = new MachineLearningCodeContainerData(new MachineLearningCodeContainerProperties() + { + Description = "string", + Tags = +{ +["tag1"] = "value1", +["tag2"] = "value2", +}, + }); + ArmOperation lro = await registryCode.UpdateAsync(WaitUntil.Completed, data); + RegistryCodeResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionCollection.cs new file mode 100644 index 000000000000..ec51f4293f30 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionCollection.cs @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryCodeVersionCollection + { + // List Registry Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistryCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/list.json + // this example is just showing the usage of "RegistryCodeVersions_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeResource created on azure + // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string codeName = "string"; + ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + + // get the collection of this RegistryCodeVersionResource + RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + + // invoke the operation and iterate over the result + string orderBy = "string"; + int? top = 1; + await foreach (RegistryCodeVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeVersionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/get.json + // this example is just showing the usage of "RegistryCodeVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeResource created on azure + // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string codeName = "string"; + ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + + // get the collection of this RegistryCodeVersionResource + RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + + // invoke the operation + string version = "string"; + RegistryCodeVersionResource result = await collection.GetAsync(version); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/get.json + // this example is just showing the usage of "RegistryCodeVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeResource created on azure + // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string codeName = "string"; + ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + + // get the collection of this RegistryCodeVersionResource + RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + + // invoke the operation + string version = "string"; + bool result = await collection.ExistsAsync(version); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/createOrUpdate.json + // this example is just showing the usage of "RegistryCodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeResource created on azure + // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string codeName = "string"; + ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + + // get the collection of this RegistryCodeVersionResource + RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + + // invoke the operation + string version = "string"; + MachineLearningCodeVersionData data = new MachineLearningCodeVersionData(new MachineLearningCodeVersionProperties() + { + CodeUri = new Uri("https://blobStorage/folderName"), + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + RegistryCodeVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionResource.cs new file mode 100644 index 000000000000..ba20efa43333 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionResource.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryCodeVersionResource + { + // Delete Registry Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/delete.json + // this example is just showing the usage of "RegistryCodeVersions_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeVersionResource created on azure + // for more information of creating RegistryCodeVersionResource, please refer to the document of RegistryCodeVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string codeName = "string"; + string version = "string"; + ResourceIdentifier registryCodeVersionResourceId = RegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); + RegistryCodeVersionResource registryCodeVersion = client.GetRegistryCodeVersionResource(registryCodeVersionResourceId); + + // invoke the operation + await registryCodeVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/get.json + // this example is just showing the usage of "RegistryCodeVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeVersionResource created on azure + // for more information of creating RegistryCodeVersionResource, please refer to the document of RegistryCodeVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string codeName = "string"; + string version = "string"; + ResourceIdentifier registryCodeVersionResourceId = RegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); + RegistryCodeVersionResource registryCodeVersion = client.GetRegistryCodeVersionResource(registryCodeVersionResourceId); + + // invoke the operation + RegistryCodeVersionResource result = await registryCodeVersion.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/createOrUpdate.json + // this example is just showing the usage of "RegistryCodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeVersionResource created on azure + // for more information of creating RegistryCodeVersionResource, please refer to the document of RegistryCodeVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string codeName = "string"; + string version = "string"; + ResourceIdentifier registryCodeVersionResourceId = RegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); + RegistryCodeVersionResource registryCodeVersion = client.GetRegistryCodeVersionResource(registryCodeVersionResourceId); + + // invoke the operation + MachineLearningCodeVersionData data = new MachineLearningCodeVersionData(new MachineLearningCodeVersionProperties() + { + CodeUri = new Uri("https://blobStorage/folderName"), + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await registryCodeVersion.UpdateAsync(WaitUntil.Completed, data); + RegistryCodeVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrGetStartPendingUpload Registry Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadRegistryCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json + // this example is just showing the usage of "RegistryCodeVersions_CreateOrGetStartPendingUpload" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryCodeVersionResource created on azure + // for more information of creating RegistryCodeVersionResource, please refer to the document of RegistryCodeVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string codeName = "string"; + string version = "string"; + ResourceIdentifier registryCodeVersionResourceId = RegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); + RegistryCodeVersionResource registryCodeVersion = client.GetRegistryCodeVersionResource(registryCodeVersionResourceId); + + // invoke the operation + PendingUploadRequestDto body = new PendingUploadRequestDto() + { + PendingUploadId = "string", + PendingUploadType = PendingUploadType.None, + }; + PendingUploadResponseDto result = await registryCodeVersion.CreateOrGetStartPendingUploadAsync(body); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs new file mode 100644 index 000000000000..adfb7187e743 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs @@ -0,0 +1,445 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryCollection + { + // List registries with system created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistriesWithSystemCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/list-SystemCreated.json + // this example is just showing the usage of "Registries_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this RegistryResource + RegistryCollection collection = resourceGroupResource.GetRegistries(); + + // invoke the operation and iterate over the result + await foreach (RegistryResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List registries with user created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistriesWithUserCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/list-UserCreated.json + // this example is just showing the usage of "Registries_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this RegistryResource + RegistryCollection collection = resourceGroupResource.GetRegistries(); + + // invoke the operation and iterate over the result + await foreach (RegistryResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry with system created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryWithSystemCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-SystemCreated.json + // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this RegistryResource + RegistryCollection collection = resourceGroupResource.GetRegistries(); + + // invoke the operation + string registryName = "string"; + RegistryResource result = await collection.GetAsync(registryName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry with system created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryWithSystemCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-SystemCreated.json + // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this RegistryResource + RegistryCollection collection = resourceGroupResource.GetRegistries(); + + // invoke the operation + string registryName = "string"; + bool result = await collection.ExistsAsync(registryName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get Registry with user created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryWithUserCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-UserCreated.json + // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this RegistryResource + RegistryCollection collection = resourceGroupResource.GetRegistries(); + + // invoke the operation + string registryName = "string"; + RegistryResource result = await collection.GetAsync(registryName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry with user created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryWithUserCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-UserCreated.json + // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this RegistryResource + RegistryCollection collection = resourceGroupResource.GetRegistries(); + + // invoke the operation + string registryName = "string"; + bool result = await collection.ExistsAsync(registryName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry with system created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/createOrUpdate-SystemCreated.json + // this example is just showing the usage of "Registries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this RegistryResource + RegistryCollection collection = resourceGroupResource.GetRegistries(); + + // invoke the operation + string registryName = "string"; + RegistryData data = new RegistryData(new AzureLocation("string")) + { + Identity = new ManagedServiceIdentity("None") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("string")] = new UserAssignedIdentity(), +}, + }, + Kind = "string", + Sku = new MachineLearningSku("string") + { + Tier = MachineLearningSkuTier.Free, + Size = "string", + Family = "string", + Capacity = 1, + }, + DiscoveryUri = new Uri("string"), + IntellectualPropertyPublisher = "string", + ManagedResourceId = "string", + MlFlowRegistryUri = new Uri("string"), + PrivateEndpointConnections = +{ +new RegistryPrivateEndpointConnection() +{ +Id = "string", +Location = new AzureLocation("string"), +GroupIds = +{ +"string" +}, +PrivateEndpoint = new PrivateEndpointResource() +{ +SubnetArmId = "string", +}, +PrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState() +{ +ActionsRequired = "string", +Description = "string", +Status = EndpointServiceConnectionStatus.Approved, +}, +ProvisioningState = "string", +} +}, + PublicNetworkAccess = "string", + RegionDetails = +{ +new RegistryRegionArmDetails() +{ +AcrDetails = +{ +new AcrDetails() +{ +SystemCreatedAcrAccount = new SystemCreatedAcrAccount() +{ +AcrAccountName = "string", +AcrAccountSku = "string", +ArmResourceId = "string", +}, +} +}, +Location = new AzureLocation("string"), +StorageAccountDetails = +{ +new StorageAccountDetails() +{ +SystemCreatedStorageAccount = new SystemCreatedStorageAccount() +{ +AllowBlobPublicAccess = false, +ArmResourceId = "string", +StorageAccountHnsEnabled = false, +StorageAccountName = "string", +StorageAccountType = "string", +}, +} +}, +} +}, + Tags = +{ +}, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, registryName, data); + RegistryResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry with user created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryWithUserCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/createOrUpdate-UserCreated.json + // this example is just showing the usage of "Registries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this RegistryResource + RegistryCollection collection = resourceGroupResource.GetRegistries(); + + // invoke the operation + string registryName = "string"; + RegistryData data = new RegistryData(new AzureLocation("string")) + { + Identity = new ManagedServiceIdentity("None") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("string")] = new UserAssignedIdentity(), +}, + }, + Kind = "string", + Sku = new MachineLearningSku("string") + { + Tier = MachineLearningSkuTier.Free, + Size = "string", + Family = "string", + Capacity = 1, + }, + DiscoveryUri = new Uri("string"), + IntellectualPropertyPublisher = "string", + ManagedResourceId = "string", + MlFlowRegistryUri = new Uri("string"), + PrivateEndpointConnections = +{ +new RegistryPrivateEndpointConnection() +{ +Id = "string", +Location = new AzureLocation("string"), +GroupIds = +{ +"string" +}, +PrivateEndpoint = new PrivateEndpointResource() +{ +SubnetArmId = "string", +}, +PrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState() +{ +ActionsRequired = "string", +Description = "string", +Status = EndpointServiceConnectionStatus.Approved, +}, +ProvisioningState = "string", +} +}, + PublicNetworkAccess = "string", + RegionDetails = +{ +new RegistryRegionArmDetails() +{ +AcrDetails = +{ +new AcrDetails() +{ +ArmResourceId = "string", +} +}, +Location = new AzureLocation("string"), +StorageAccountDetails = +{ +new StorageAccountDetails() +{ +ArmResourceId = "string", +} +}, +} +}, + Tags = +{ +}, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, registryName, data); + RegistryResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentCollection.cs new file mode 100644 index 000000000000..eb144cb1c445 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentCollection.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryComponentCollection + { + // List Registry Component Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistryComponentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/list.json + // this example is just showing the usage of "RegistryComponentContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryComponentResource + RegistryComponentCollection collection = registry.GetRegistryComponents(); + + // invoke the operation and iterate over the result + await foreach (RegistryComponentResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Component Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryComponentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/get.json + // this example is just showing the usage of "RegistryComponentContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryComponentResource + RegistryComponentCollection collection = registry.GetRegistryComponents(); + + // invoke the operation + string componentName = "string"; + RegistryComponentResource result = await collection.GetAsync(componentName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Component Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryComponentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/get.json + // this example is just showing the usage of "RegistryComponentContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryComponentResource + RegistryComponentCollection collection = registry.GetRegistryComponents(); + + // invoke the operation + string componentName = "string"; + bool result = await collection.ExistsAsync(componentName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Component Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryComponentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryComponentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryComponentResource + RegistryComponentCollection collection = registry.GetRegistryComponents(); + + // invoke the operation + string componentName = "string"; + MachineLearningComponentContainerData data = new MachineLearningComponentContainerData(new MachineLearningComponentContainerProperties() + { + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, componentName, data); + RegistryComponentResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentResource.cs new file mode 100644 index 000000000000..a80d919c1350 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentResource.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryComponentResource + { + // Delete Registry Component Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryComponentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/delete.json + // this example is just showing the usage of "RegistryComponentContainers_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentResource created on azure + // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + + // invoke the operation + await registryComponent.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Component Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryComponentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/get.json + // this example is just showing the usage of "RegistryComponentContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentResource created on azure + // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + + // invoke the operation + RegistryComponentResource result = await registryComponent.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Component Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryComponentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryComponentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentResource created on azure + // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + + // invoke the operation + MachineLearningComponentContainerData data = new MachineLearningComponentContainerData(new MachineLearningComponentContainerProperties() + { + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await registryComponent.UpdateAsync(WaitUntil.Completed, data); + RegistryComponentResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionCollection.cs new file mode 100644 index 000000000000..aa66dd2da5de --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionCollection.cs @@ -0,0 +1,184 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryComponentVersionCollection + { + // List Registry Component Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistryComponentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/list.json + // this example is just showing the usage of "RegistryComponentVersions_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentResource created on azure + // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + + // get the collection of this RegistryComponentVersionResource + RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + + // invoke the operation and iterate over the result + string orderBy = "string"; + int? top = 1; + await foreach (RegistryComponentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentVersionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Component Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryComponentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/get.json + // this example is just showing the usage of "RegistryComponentVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentResource created on azure + // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + + // get the collection of this RegistryComponentVersionResource + RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + + // invoke the operation + string version = "string"; + RegistryComponentVersionResource result = await collection.GetAsync(version); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Component Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryComponentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/get.json + // this example is just showing the usage of "RegistryComponentVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentResource created on azure + // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + + // get the collection of this RegistryComponentVersionResource + RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + + // invoke the operation + string version = "string"; + bool result = await collection.ExistsAsync(version); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Component Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryComponentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json + // this example is just showing the usage of "RegistryComponentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentResource created on azure + // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + + // get the collection of this RegistryComponentVersionResource + RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + + // invoke the operation + string version = "string"; + MachineLearningComponentVersionData data = new MachineLearningComponentVersionData(new MachineLearningComponentVersionProperties() + { + ComponentSpec = BinaryData.FromObjectAsJson(new Dictionary() + { + ["8ced901b-d826-477d-bfef-329da9672513"] = null + }), + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + RegistryComponentVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionResource.cs new file mode 100644 index 000000000000..e3233c0ca005 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionResource.cs @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryComponentVersionResource + { + // Delete Registry Component Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryComponentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/delete.json + // this example is just showing the usage of "RegistryComponentVersions_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentVersionResource created on azure + // for more information of creating RegistryComponentVersionResource, please refer to the document of RegistryComponentVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + string version = "string"; + ResourceIdentifier registryComponentVersionResourceId = RegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); + RegistryComponentVersionResource registryComponentVersion = client.GetRegistryComponentVersionResource(registryComponentVersionResourceId); + + // invoke the operation + await registryComponentVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Component Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryComponentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/get.json + // this example is just showing the usage of "RegistryComponentVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentVersionResource created on azure + // for more information of creating RegistryComponentVersionResource, please refer to the document of RegistryComponentVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + string version = "string"; + ResourceIdentifier registryComponentVersionResourceId = RegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); + RegistryComponentVersionResource registryComponentVersion = client.GetRegistryComponentVersionResource(registryComponentVersionResourceId); + + // invoke the operation + RegistryComponentVersionResource result = await registryComponentVersion.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Component Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryComponentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json + // this example is just showing the usage of "RegistryComponentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryComponentVersionResource created on azure + // for more information of creating RegistryComponentVersionResource, please refer to the document of RegistryComponentVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string componentName = "string"; + string version = "string"; + ResourceIdentifier registryComponentVersionResourceId = RegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); + RegistryComponentVersionResource registryComponentVersion = client.GetRegistryComponentVersionResource(registryComponentVersionResourceId); + + // invoke the operation + MachineLearningComponentVersionData data = new MachineLearningComponentVersionData(new MachineLearningComponentVersionProperties() + { + ComponentSpec = BinaryData.FromObjectAsJson(new Dictionary() + { + ["8ced901b-d826-477d-bfef-329da9672513"] = null + }), + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await registryComponentVersion.UpdateAsync(WaitUntil.Completed, data); + RegistryComponentVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningComponentVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataCollection.cs new file mode 100644 index 000000000000..0de91e0c8ce3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataCollection.cs @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryDataCollection + { + // RegistryList Registry Data Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_RegistryListRegistryDataContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/registryList.json + // this example is just showing the usage of "RegistryDataContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryDataResource + RegistryDataCollection collection = registry.GetAllRegistryData(); + + // invoke the operation and iterate over the result + MachineLearningListViewType? listViewType = MachineLearningListViewType.All; + await foreach (RegistryDataResource item in collection.GetAllAsync(listViewType: listViewType)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Data Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryDataContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/get.json + // this example is just showing the usage of "RegistryDataContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryDataResource + RegistryDataCollection collection = registry.GetAllRegistryData(); + + // invoke the operation + string name = "string"; + RegistryDataResource result = await collection.GetAsync(name); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Data Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryDataContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/get.json + // this example is just showing the usage of "RegistryDataContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryDataResource + RegistryDataCollection collection = registry.GetAllRegistryData(); + + // invoke the operation + string name = "string"; + bool result = await collection.ExistsAsync(name); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Data Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryDataContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryDataContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryDataResource + RegistryDataCollection collection = registry.GetAllRegistryData(); + + // invoke the operation + string name = "string"; + MachineLearningDataContainerData data = new MachineLearningDataContainerData(new MachineLearningDataContainerProperties(MachineLearningDataType.UriFolder) + { + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + RegistryDataResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataResource.cs new file mode 100644 index 000000000000..9d80d97218b7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataResource.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryDataResource + { + // Delete Registry Data Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryDataContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/delete.json + // this example is just showing the usage of "RegistryDataContainers_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataResource created on azure + // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + + // invoke the operation + await registryData.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Data Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryDataContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/get.json + // this example is just showing the usage of "RegistryDataContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataResource created on azure + // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + + // invoke the operation + RegistryDataResource result = await registryData.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Data Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryDataContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryDataContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataResource created on azure + // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + + // invoke the operation + MachineLearningDataContainerData data = new MachineLearningDataContainerData(new MachineLearningDataContainerProperties(MachineLearningDataType.UriFolder) + { + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await registryData.UpdateAsync(WaitUntil.Completed, data); + RegistryDataResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionCollection.cs new file mode 100644 index 000000000000..a4a5761406f6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionCollection.cs @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryDataVersionCollection + { + // RegistryList Registry Data Version Base. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_RegistryListRegistryDataVersionBase() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/registryList.json + // this example is just showing the usage of "RegistryDataVersions_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataResource created on azure + // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + + // get the collection of this RegistryDataVersionResource + RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + + // invoke the operation and iterate over the result + string orderBy = "string"; + int? top = 1; + string tags = "string"; + MachineLearningListViewType? listViewType = MachineLearningListViewType.ArchivedOnly; + await foreach (RegistryDataVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top, tags: tags, listViewType: listViewType)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataVersionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Data Version Base. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryDataVersionBase() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/get.json + // this example is just showing the usage of "RegistryDataVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataResource created on azure + // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + + // get the collection of this RegistryDataVersionResource + RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + + // invoke the operation + string version = "string"; + RegistryDataVersionResource result = await collection.GetAsync(version); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Data Version Base. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryDataVersionBase() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/get.json + // this example is just showing the usage of "RegistryDataVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataResource created on azure + // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + + // get the collection of this RegistryDataVersionResource + RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + + // invoke the operation + string version = "string"; + bool result = await collection.ExistsAsync(version); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Data Version Base. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryDataVersionBase() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json + // this example is just showing the usage of "RegistryDataVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataResource created on azure + // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + + // get the collection of this RegistryDataVersionResource + RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + + // invoke the operation + string version = "string"; + MachineLearningDataVersionData data = new MachineLearningDataVersionData(new MachineLearningTable(new Uri("string")) + { + ReferencedUris = +{ +new Uri("string") +}, + IsAnonymous = false, + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + RegistryDataVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionResource.cs new file mode 100644 index 000000000000..3026e5e703ba --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionResource.cs @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryDataVersionResource + { + // Delete Registry Data Version Base. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryDataVersionBase() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/delete.json + // this example is just showing the usage of "RegistryDataVersions_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataVersionResource created on azure + // for more information of creating RegistryDataVersionResource, please refer to the document of RegistryDataVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + string version = "string"; + ResourceIdentifier registryDataVersionResourceId = RegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); + RegistryDataVersionResource registryDataVersion = client.GetRegistryDataVersionResource(registryDataVersionResourceId); + + // invoke the operation + await registryDataVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Data Version Base. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryDataVersionBase() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/get.json + // this example is just showing the usage of "RegistryDataVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataVersionResource created on azure + // for more information of creating RegistryDataVersionResource, please refer to the document of RegistryDataVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + string version = "string"; + ResourceIdentifier registryDataVersionResourceId = RegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); + RegistryDataVersionResource registryDataVersion = client.GetRegistryDataVersionResource(registryDataVersionResourceId); + + // invoke the operation + RegistryDataVersionResource result = await registryDataVersion.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Data Version Base. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryDataVersionBase() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json + // this example is just showing the usage of "RegistryDataVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataVersionResource created on azure + // for more information of creating RegistryDataVersionResource, please refer to the document of RegistryDataVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + string version = "string"; + ResourceIdentifier registryDataVersionResourceId = RegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); + RegistryDataVersionResource registryDataVersion = client.GetRegistryDataVersionResource(registryDataVersionResourceId); + + // invoke the operation + MachineLearningDataVersionData data = new MachineLearningDataVersionData(new MachineLearningTable(new Uri("string")) + { + ReferencedUris = +{ +new Uri("string") +}, + IsAnonymous = false, + IsArchived = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await registryDataVersion.UpdateAsync(WaitUntil.Completed, data); + RegistryDataVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningDataVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrGetStartPendingUpload Registry Data Version Base. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadRegistryDataVersionBase() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json + // this example is just showing the usage of "RegistryDataVersions_CreateOrGetStartPendingUpload" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryDataVersionResource created on azure + // for more information of creating RegistryDataVersionResource, please refer to the document of RegistryDataVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string name = "string"; + string version = "string"; + ResourceIdentifier registryDataVersionResourceId = RegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); + RegistryDataVersionResource registryDataVersion = client.GetRegistryDataVersionResource(registryDataVersionResourceId); + + // invoke the operation + PendingUploadRequestDto body = new PendingUploadRequestDto() + { + PendingUploadId = "string", + PendingUploadType = PendingUploadType.None, + }; + PendingUploadResponseDto result = await registryDataVersion.CreateOrGetStartPendingUploadAsync(body); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentCollection.cs new file mode 100644 index 000000000000..6676eda26450 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentCollection.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryEnvironmentCollection + { + // List Registry Environment Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistryEnvironmentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/list.json + // this example is just showing the usage of "RegistryEnvironmentContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryEnvironmentResource + RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + + // invoke the operation and iterate over the result + await foreach (RegistryEnvironmentResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Environment Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryEnvironmentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/get.json + // this example is just showing the usage of "RegistryEnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryEnvironmentResource + RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + + // invoke the operation + string environmentName = "testEnvironment"; + RegistryEnvironmentResource result = await collection.GetAsync(environmentName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Environment Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryEnvironmentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/get.json + // this example is just showing the usage of "RegistryEnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryEnvironmentResource + RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + + // invoke the operation + string environmentName = "testEnvironment"; + bool result = await collection.ExistsAsync(environmentName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Environment Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryEnvironmentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryEnvironmentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryEnvironmentResource + RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + + // invoke the operation + string environmentName = "testEnvironment"; + MachineLearningEnvironmentContainerData data = new MachineLearningEnvironmentContainerData(new MachineLearningEnvironmentContainerProperties() + { + Description = "string", + Properties = +{ +["additionalProp1"] = "string", +["additionalProp2"] = "string", +["additionalProp3"] = "string", +}, + Tags = +{ +["additionalProp1"] = "string", +["additionalProp2"] = "string", +["additionalProp3"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, environmentName, data); + RegistryEnvironmentResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentResource.cs new file mode 100644 index 000000000000..177e9b308a12 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentResource.cs @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryEnvironmentResource + { + // Delete Registry Environment Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryEnvironmentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/delete.json + // this example is just showing the usage of "RegistryEnvironmentContainers_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentResource created on azure + // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + string environmentName = "testContainer"; + ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + + // invoke the operation + await registryEnvironment.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Environment Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryEnvironmentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/get.json + // this example is just showing the usage of "RegistryEnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentResource created on azure + // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + string environmentName = "testEnvironment"; + ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + + // invoke the operation + RegistryEnvironmentResource result = await registryEnvironment.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Environment Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryEnvironmentContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryEnvironmentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentResource created on azure + // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "testregistry"; + string environmentName = "testEnvironment"; + ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + + // invoke the operation + MachineLearningEnvironmentContainerData data = new MachineLearningEnvironmentContainerData(new MachineLearningEnvironmentContainerProperties() + { + Description = "string", + Properties = +{ +["additionalProp1"] = "string", +["additionalProp2"] = "string", +["additionalProp3"] = "string", +}, + Tags = +{ +["additionalProp1"] = "string", +["additionalProp2"] = "string", +["additionalProp3"] = "string", +}, + }); + ArmOperation lro = await registryEnvironment.UpdateAsync(WaitUntil.Completed, data); + RegistryEnvironmentResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionCollection.cs new file mode 100644 index 000000000000..d2eda32be57b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionCollection.cs @@ -0,0 +1,191 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryEnvironmentVersionCollection + { + // List Registry Environment Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistryEnvironmentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/list.json + // this example is just showing the usage of "RegistryEnvironmentVersions_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentResource created on azure + // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-regsitry"; + string environmentName = "string"; + ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + + // get the collection of this RegistryEnvironmentVersionResource + RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + + // invoke the operation and iterate over the result + string orderBy = "string"; + int? top = 1; + await foreach (RegistryEnvironmentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentVersionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Environment Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryEnvironmentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/get.json + // this example is just showing the usage of "RegistryEnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentResource created on azure + // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string environmentName = "string"; + ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + + // get the collection of this RegistryEnvironmentVersionResource + RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + + // invoke the operation + string version = "string"; + RegistryEnvironmentVersionResource result = await collection.GetAsync(version); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Environment Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryEnvironmentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/get.json + // this example is just showing the usage of "RegistryEnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentResource created on azure + // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string environmentName = "string"; + ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + + // get the collection of this RegistryEnvironmentVersionResource + RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + + // invoke the operation + string version = "string"; + bool result = await collection.ExistsAsync(version); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Environment Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryEnvironmentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json + // this example is just showing the usage of "RegistryEnvironmentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentResource created on azure + // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string environmentName = "string"; + ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + + // get the collection of this RegistryEnvironmentVersionResource + RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + + // invoke the operation + string version = "string"; + MachineLearningEnvironmentVersionData data = new MachineLearningEnvironmentVersionData(new MachineLearningEnvironmentVersionProperties() + { + Build = new MachineLearningBuildContext(new Uri("https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")) + { + DockerfilePath = "prod/Dockerfile", + }, + CondaFile = "string", + Image = "docker.io/tensorflow/serving:latest", + InferenceConfig = new MachineLearningInferenceContainerProperties() + { + LivenessRoute = new MachineLearningInferenceContainerRoute("string", 1), + ReadinessRoute = new MachineLearningInferenceContainerRoute("string", 1), + ScoringRoute = new MachineLearningInferenceContainerRoute("string", 1), + }, + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + RegistryEnvironmentVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionResource.cs new file mode 100644 index 000000000000..b9d824c267c1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionResource.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryEnvironmentVersionResource + { + // Delete Registry Environment Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryEnvironmentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/delete.json + // this example is just showing the usage of "RegistryEnvironmentVersions_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentVersionResource created on azure + // for more information of creating RegistryEnvironmentVersionResource, please refer to the document of RegistryEnvironmentVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string environmentName = "string"; + string version = "string"; + ResourceIdentifier registryEnvironmentVersionResourceId = RegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); + RegistryEnvironmentVersionResource registryEnvironmentVersion = client.GetRegistryEnvironmentVersionResource(registryEnvironmentVersionResourceId); + + // invoke the operation + await registryEnvironmentVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Environment Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryEnvironmentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/get.json + // this example is just showing the usage of "RegistryEnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentVersionResource created on azure + // for more information of creating RegistryEnvironmentVersionResource, please refer to the document of RegistryEnvironmentVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string environmentName = "string"; + string version = "string"; + ResourceIdentifier registryEnvironmentVersionResourceId = RegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); + RegistryEnvironmentVersionResource registryEnvironmentVersion = client.GetRegistryEnvironmentVersionResource(registryEnvironmentVersionResourceId); + + // invoke the operation + RegistryEnvironmentVersionResource result = await registryEnvironmentVersion.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Environment Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryEnvironmentVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json + // this example is just showing the usage of "RegistryEnvironmentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryEnvironmentVersionResource created on azure + // for more information of creating RegistryEnvironmentVersionResource, please refer to the document of RegistryEnvironmentVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string environmentName = "string"; + string version = "string"; + ResourceIdentifier registryEnvironmentVersionResourceId = RegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); + RegistryEnvironmentVersionResource registryEnvironmentVersion = client.GetRegistryEnvironmentVersionResource(registryEnvironmentVersionResourceId); + + // invoke the operation + MachineLearningEnvironmentVersionData data = new MachineLearningEnvironmentVersionData(new MachineLearningEnvironmentVersionProperties() + { + Build = new MachineLearningBuildContext(new Uri("https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")) + { + DockerfilePath = "prod/Dockerfile", + }, + CondaFile = "string", + Image = "docker.io/tensorflow/serving:latest", + InferenceConfig = new MachineLearningInferenceContainerProperties() + { + LivenessRoute = new MachineLearningInferenceContainerRoute("string", 1), + ReadinessRoute = new MachineLearningInferenceContainerRoute("string", 1), + ScoringRoute = new MachineLearningInferenceContainerRoute("string", 1), + }, + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await registryEnvironmentVersion.UpdateAsync(WaitUntil.Completed, data); + RegistryEnvironmentVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningEnvironmentVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelCollection.cs new file mode 100644 index 000000000000..00a39ae0d7f9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelCollection.cs @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryModelCollection + { + // List Registry Model Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistryModelContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/list.json + // this example is just showing the usage of "RegistryModelContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "registry123"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryModelResource + RegistryModelCollection collection = registry.GetRegistryModels(); + + // invoke the operation and iterate over the result + await foreach (RegistryModelResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Model Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryModelContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/get.json + // this example is just showing the usage of "RegistryModelContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "registry123"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryModelResource + RegistryModelCollection collection = registry.GetRegistryModels(); + + // invoke the operation + string modelName = "testContainer"; + RegistryModelResource result = await collection.GetAsync(modelName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Model Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryModelContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/get.json + // this example is just showing the usage of "RegistryModelContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "registry123"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryModelResource + RegistryModelCollection collection = registry.GetRegistryModels(); + + // invoke the operation + string modelName = "testContainer"; + bool result = await collection.ExistsAsync(modelName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Model Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryModelContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryModelContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "registry123"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // get the collection of this RegistryModelResource + RegistryModelCollection collection = registry.GetRegistryModels(); + + // invoke the operation + string modelName = "testContainer"; + MachineLearningModelContainerData data = new MachineLearningModelContainerData(new MachineLearningModelContainerProperties() + { + Description = "Model container description", + Tags = +{ +["tag1"] = "value1", +["tag2"] = "value2", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, modelName, data); + RegistryModelResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelResource.cs new file mode 100644 index 000000000000..c07fe82b4409 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelResource.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryModelResource + { + // Delete Registry Model Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryModelContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/delete.json + // this example is just showing the usage of "RegistryModelContainers_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelResource created on azure + // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "registry123"; + string modelName = "testContainer"; + ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + + // invoke the operation + await registryModel.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Model Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryModelContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/get.json + // this example is just showing the usage of "RegistryModelContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelResource created on azure + // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "registry123"; + string modelName = "testContainer"; + ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + + // invoke the operation + RegistryModelResource result = await registryModel.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Model Container. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryModelContainer() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/createOrUpdate.json + // this example is just showing the usage of "RegistryModelContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelResource created on azure + // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg123"; + string registryName = "registry123"; + string modelName = "testContainer"; + ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + + // invoke the operation + MachineLearningModelContainerData data = new MachineLearningModelContainerData(new MachineLearningModelContainerProperties() + { + Description = "Model container description", + Tags = +{ +["tag1"] = "value1", +["tag2"] = "value2", +}, + }); + ArmOperation lro = await registryModel.UpdateAsync(WaitUntil.Completed, data); + RegistryModelResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionCollection.cs new file mode 100644 index 000000000000..691e8d66ca44 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionCollection.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryModelVersionCollection + { + // List Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/list.json + // this example is just showing the usage of "RegistryModelVersions_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelResource created on azure + // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string modelName = "string"; + ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + + // get the collection of this RegistryModelVersionResource + RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + + // invoke the operation and iterate over the result + RegistryModelVersionCollectionGetAllOptions options = new RegistryModelVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Version = "string", Description = "string", Tags = "string", Properties = "string" }; + await foreach (RegistryModelVersionResource item in collection.GetAllAsync(options)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelVersionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/get.json + // this example is just showing the usage of "RegistryModelVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelResource created on azure + // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string modelName = "string"; + ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + + // get the collection of this RegistryModelVersionResource + RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + + // invoke the operation + string version = "string"; + RegistryModelVersionResource result = await collection.GetAsync(version); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/get.json + // this example is just showing the usage of "RegistryModelVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelResource created on azure + // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string modelName = "string"; + ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + + // get the collection of this RegistryModelVersionResource + RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + + // invoke the operation + string version = "string"; + bool result = await collection.ExistsAsync(version); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrUpdate Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/createOrUpdate.json + // this example is just showing the usage of "RegistryModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelResource created on azure + // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string modelName = "string"; + ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + + // get the collection of this RegistryModelVersionResource + RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + + // invoke the operation + string version = "string"; + MachineLearningModelVersionData data = new MachineLearningModelVersionData(new MachineLearningModelVersionProperties() + { + Flavors = +{ +["string"] = new MachineLearningFlavorData() +{ +Data = +{ +["string"] = "string", +}, +}, +}, + ModelType = "CustomModel", + ModelUri = new Uri("string"), + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + RegistryModelVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionResource.cs new file mode 100644 index 000000000000..39030eb612af --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionResource.cs @@ -0,0 +1,240 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryModelVersionResource + { + // Delete Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/delete.json + // this example is just showing the usage of "RegistryModelVersions_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelVersionResource created on azure + // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string modelName = "string"; + string version = "string"; + ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + + // invoke the operation + await registryModelVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/get.json + // this example is just showing the usage of "RegistryModelVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelVersionResource created on azure + // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string modelName = "string"; + string version = "string"; + ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + + // invoke the operation + RegistryModelVersionResource result = await registryModelVersion.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/createOrUpdate.json + // this example is just showing the usage of "RegistryModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelVersionResource created on azure + // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string modelName = "string"; + string version = "string"; + ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + + // invoke the operation + MachineLearningModelVersionData data = new MachineLearningModelVersionData(new MachineLearningModelVersionProperties() + { + Flavors = +{ +["string"] = new MachineLearningFlavorData() +{ +Data = +{ +["string"] = "string", +}, +}, +}, + ModelType = "CustomModel", + ModelUri = new Uri("string"), + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await registryModelVersion.UpdateAsync(WaitUntil.Completed, data); + RegistryModelVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Package Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Package_PackageRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/package.json + // this example is just showing the usage of "RegistryModelVersions_Package" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelVersionResource created on azure + // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "my-aml-registry"; + string modelName = "string"; + string version = "string"; + ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + + // invoke the operation + PackageRequest body = new PackageRequest(new AzureMLBatchInferencingServer() + { + CodeConfiguration = new MachineLearningCodeConfiguration("string") + { + CodeId = new ResourceIdentifier("string"), + }, + }, "string") + { + BaseEnvironmentSource = new BaseEnvironmentId("string"), + EnvironmentVariables = +{ +["string"] = "string", +}, + Inputs = +{ +new ModelPackageInput(PackageInputType.UriFile,new PackageInputPathUri() +{ +Uri = new Uri("string"), +}) +{ +Mode = PackageInputDeliveryMode.Download, +MountPath = "string", +} +}, + ModelConfiguration = new ModelConfiguration() + { + Mode = new PackageInputDeliveryMode("ReadOnlyMount"), + MountPath = "string", + }, + Tags = +{ +["string"] = "string", +}, + }; + ArmOperation lro = await registryModelVersion.PackageAsync(WaitUntil.Completed, body); + PackageResponse result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateOrGetStartPendingUpload Registry Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadRegistryModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json + // this example is just showing the usage of "RegistryModelVersions_CreateOrGetStartPendingUpload" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryModelVersionResource created on azure + // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "registryName"; + string modelName = "string"; + string version = "string"; + ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + + // invoke the operation + PendingUploadRequestDto body = new PendingUploadRequestDto() + { + PendingUploadId = "string", + PendingUploadType = PendingUploadType.None, + }; + PendingUploadResponseDto result = await registryModelVersion.CreateOrGetStartPendingUploadAsync(body); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs new file mode 100644 index 000000000000..b87f5b5d9f6b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs @@ -0,0 +1,364 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_RegistryResource + { + // List registries by subscription. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetRegistries_ListRegistriesBySubscription() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/listBySubscription.json + // this example is just showing the usage of "Registries_ListBySubscription" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + await foreach (RegistryResource item in subscriptionResource.GetRegistriesAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Delete Registry. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteRegistry() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/delete.json + // this example is just showing the usage of "Registries_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "string"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // invoke the operation + await registry.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Registry with system created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryWithSystemCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-SystemCreated.json + // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "string"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // invoke the operation + RegistryResource result = await registry.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Registry with user created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetRegistryWithUserCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-UserCreated.json + // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "string"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // invoke the operation + RegistryResource result = await registry.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Update Registry with system created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateRegistryWithSystemCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/update-SystemCreated.json + // this example is just showing the usage of "Registries_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "string"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // invoke the operation + RegistryPatch patch = new RegistryPatch() + { + Identity = new ManagedServiceIdentity("SystemAssigned") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("string")] = new UserAssignedIdentity(), +}, + }, + Sku = new MachineLearningSkuPatch() + { + Capacity = 1, + Family = "string", + Name = "string", + Size = "string", + Tier = MachineLearningSkuTier.Basic, + }, + Tags = +{ +}, + }; + RegistryResource result = await registry.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Update Registry with user created accounts. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateRegistryWithUserCreatedAccounts() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/update-UserCreated.json + // this example is just showing the usage of "Registries_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "string"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // invoke the operation + RegistryPatch patch = new RegistryPatch() + { + Identity = new ManagedServiceIdentity("UserAssigned") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("string")] = new UserAssignedIdentity(), +}, + }, + Sku = new MachineLearningSkuPatch() + { + Capacity = 1, + Family = "string", + Name = "string", + Size = "string", + Tier = MachineLearningSkuTier.Basic, + }, + Tags = +{ +}, + }; + RegistryResource result = await registry.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Remove regions from registry + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task RemoveRegions_RemoveRegionsFromRegistry() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/removeRegions.json + // this example is just showing the usage of "Registries_RemoveRegions" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this RegistryResource created on azure + // for more information of creating RegistryResource, please refer to the document of RegistryResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string registryName = "string"; + ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + RegistryResource registry = client.GetRegistryResource(registryResourceId); + + // invoke the operation + RegistryData data = new RegistryData(new AzureLocation("string")) + { + Identity = new ManagedServiceIdentity("None") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("string")] = new UserAssignedIdentity(), +}, + }, + Kind = "string", + Sku = new MachineLearningSku("string") + { + Tier = MachineLearningSkuTier.Free, + Size = "string", + Family = "string", + Capacity = 1, + }, + DiscoveryUri = new Uri("string"), + IntellectualPropertyPublisher = "string", + ManagedResourceId = "string", + MlFlowRegistryUri = new Uri("string"), + PrivateEndpointConnections = +{ +new RegistryPrivateEndpointConnection() +{ +Id = "string", +Location = new AzureLocation("string"), +GroupIds = +{ +"string" +}, +PrivateEndpoint = new PrivateEndpointResource() +{ +SubnetArmId = "string", +}, +PrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState() +{ +ActionsRequired = "string", +Description = "string", +Status = EndpointServiceConnectionStatus.Approved, +}, +ProvisioningState = "string", +} +}, + PublicNetworkAccess = "string", + RegionDetails = +{ +new RegistryRegionArmDetails() +{ +AcrDetails = +{ +new AcrDetails() +{ +SystemCreatedAcrAccount = new SystemCreatedAcrAccount() +{ +AcrAccountName = "string", +AcrAccountSku = "string", +ArmResourceId = "string", +}, +ArmResourceId = "string", +} +}, +Location = new AzureLocation("string"), +StorageAccountDetails = +{ +new StorageAccountDetails() +{ +SystemCreatedStorageAccount = new SystemCreatedStorageAccount() +{ +AllowBlobPublicAccess = false, +ArmResourceId = "string", +StorageAccountHnsEnabled = false, +StorageAccountName = "string", +StorageAccountType = "string", +}, +ArmResourceId = "string", +} +}, +} +}, + Tags = +{ +}, + }; + ArmOperation lro = await registry.RemoveRegionsAsync(WaitUntil.Completed, data); + RegistryResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + RegistryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 9b1526ced6e8..a319959e0264 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetMachineLearningUsages_ListUsages() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Usage/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Usage/list.json // this example is just showing the usage of "Usages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetMachineLearningUsages_ListUsages() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetMachineLearningVmSizes_ListVMSizes() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/VirtualMachineSize/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/VirtualMachineSize/list.json // this example is just showing the usage of "VirtualMachineSizes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task GetMachineLearningVmSizes_ListVMSizes() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UpdateMachineLearningQuotas_UpdateQuotas() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Quota/update.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Quota/update.json // this example is just showing the usage of "Quotas_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task UpdateMachineLearningQuotas_UpdateQuotas() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetMachineLearningQuotas_ListWorkspaceQuotasByVMFamily() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Quota/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Quota/list.json // this example is just showing the usage of "Quotas_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeCollection.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeCollection.cs index ce13f18be6a0..dfe93689379b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningCodeContainerCollection + public partial class Sample_WorkspaceCodeCollection { - // List Code Container. + // List Workspace Code Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListCodeContainer() + public async Task GetAll_ListWorkspaceCodeContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/list.json // this example is just showing the usage of "CodeContainers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -39,11 +39,11 @@ public async Task GetAll_ListCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningCodeContainerResource - MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); + // get the collection of this WorkspaceCodeResource + WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); // invoke the operation and iterate over the result - await foreach (MachineLearningCodeContainerResource item in collection.GetAllAsync()) + await foreach (WorkspaceCodeResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -55,12 +55,12 @@ public async Task GetAll_ListCodeContainer() Console.WriteLine($"Succeeded"); } - // Get Code Container. + // Get Workspace Code Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetCodeContainer() + public async Task Get_GetWorkspaceCodeContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/get.json // this example is just showing the usage of "CodeContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,12 +76,12 @@ public async Task Get_GetCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningCodeContainerResource - MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); + // get the collection of this WorkspaceCodeResource + WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); // invoke the operation string name = "testContainer"; - MachineLearningCodeContainerResource result = await collection.GetAsync(name); + WorkspaceCodeResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -90,12 +90,12 @@ public async Task Get_GetCodeContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Code Container. + // Get Workspace Code Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetCodeContainer() + public async Task Exists_GetWorkspaceCodeContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/get.json // this example is just showing the usage of "CodeContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,8 +111,8 @@ public async Task Exists_GetCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningCodeContainerResource - MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); + // get the collection of this WorkspaceCodeResource + WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); // invoke the operation string name = "testContainer"; @@ -121,12 +121,12 @@ public async Task Exists_GetCodeContainer() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Code Container. + // CreateOrUpdate Workspace Code Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateCodeContainer() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceCodeContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json // this example is just showing the usage of "CodeContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,8 +142,8 @@ public async Task CreateOrUpdate_CreateOrUpdateCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningCodeContainerResource - MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); + // get the collection of this WorkspaceCodeResource + WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); // invoke the operation string name = "testContainer"; @@ -156,8 +156,8 @@ public async Task CreateOrUpdate_CreateOrUpdateCodeContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - MachineLearningCodeContainerResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + WorkspaceCodeResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeResource.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeResource.cs index 9ac7ec031603..c63ab6437074 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningCodeContainerResource + public partial class Sample_WorkspaceCodeResource { - // Delete Code Container. + // Delete Workspace Code Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteCodeContainer() + public async Task Delete_DeleteWorkspaceCodeContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/delete.json // this example is just showing the usage of "CodeContainers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,27 +31,27 @@ public async Task Delete_DeleteCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeContainerResource created on azure - // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource + // this example assumes you already have this WorkspaceCodeResource created on azure + // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testContainer"; - ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); + ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); // invoke the operation - await machineLearningCodeContainer.DeleteAsync(WaitUntil.Completed); + await workspaceCode.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Code Container. + // Get Workspace Code Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetCodeContainer() + public async Task Get_GetWorkspaceCodeContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/get.json // this example is just showing the usage of "CodeContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,17 +59,17 @@ public async Task Get_GetCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeContainerResource created on azure - // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource + // this example assumes you already have this WorkspaceCodeResource created on azure + // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testContainer"; - ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); + ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); // invoke the operation - MachineLearningCodeContainerResource result = await machineLearningCodeContainer.GetAsync(); + WorkspaceCodeResource result = await workspaceCode.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -78,12 +78,12 @@ public async Task Get_GetCodeContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Code Container. + // CreateOrUpdate Workspace Code Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateCodeContainer() + public async Task Update_CreateOrUpdateWorkspaceCodeContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json // this example is just showing the usage of "CodeContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeContainerResource created on azure - // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource + // this example assumes you already have this WorkspaceCodeResource created on azure + // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testContainer"; - ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); + ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); // invoke the operation MachineLearningCodeContainerData data = new MachineLearningCodeContainerData(new MachineLearningCodeContainerProperties() @@ -110,8 +110,8 @@ public async Task Update_CreateOrUpdateCodeContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await machineLearningCodeContainer.UpdateAsync(WaitUntil.Completed, data); - MachineLearningCodeContainerResource result = lro.Value; + ArmOperation lro = await workspaceCode.UpdateAsync(WaitUntil.Completed, data); + WorkspaceCodeResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionCollection.cs similarity index 59% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionCollection.cs index 54de61933965..f388b0941536 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningCodeVersionCollection + public partial class Sample_WorkspaceCodeVersionCollection { - // List Code Version. + // List Workspace Code Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListCodeVersion() + public async Task GetAll_ListWorkspaceCodeVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/list.json // this example is just showing the usage of "CodeVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,22 +31,22 @@ public async Task GetAll_ListCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeContainerResource created on azure - // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource + // this example assumes you already have this WorkspaceCodeResource created on azure + // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); + ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); - // get the collection of this MachineLearningCodeVersionResource - MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); + // get the collection of this WorkspaceCodeVersionResource + WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (MachineLearningCodeVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (WorkspaceCodeVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -58,12 +58,12 @@ public async Task GetAll_ListCodeVersion() Console.WriteLine($"Succeeded"); } - // Get Code Version. + // Get Workspace Code Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetCodeVersion() + public async Task Get_GetWorkspaceCodeVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/get.json // this example is just showing the usage of "CodeVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -71,21 +71,21 @@ public async Task Get_GetCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeContainerResource created on azure - // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource + // this example assumes you already have this WorkspaceCodeResource created on azure + // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); + ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); - // get the collection of this MachineLearningCodeVersionResource - MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); + // get the collection of this WorkspaceCodeVersionResource + WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); // invoke the operation string version = "string"; - MachineLearningCodeVersionResource result = await collection.GetAsync(version); + WorkspaceCodeVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -94,12 +94,12 @@ public async Task Get_GetCodeVersion() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Code Version. + // Get Workspace Code Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetCodeVersion() + public async Task Exists_GetWorkspaceCodeVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/get.json // this example is just showing the usage of "CodeVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,17 +107,17 @@ public async Task Exists_GetCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeContainerResource created on azure - // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource + // this example assumes you already have this WorkspaceCodeResource created on azure + // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); + ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); - // get the collection of this MachineLearningCodeVersionResource - MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); + // get the collection of this WorkspaceCodeVersionResource + WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); // invoke the operation string version = "string"; @@ -126,12 +126,12 @@ public async Task Exists_GetCodeVersion() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Code Version. + // CreateOrUpdate Workspace Code Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateCodeVersion() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceCodeVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json // this example is just showing the usage of "CodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,17 +139,17 @@ public async Task CreateOrUpdate_CreateOrUpdateCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningCodeContainerResource created on azure - // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource + // this example assumes you already have this WorkspaceCodeResource created on azure + // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); + ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); - // get the collection of this MachineLearningCodeVersionResource - MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); + // get the collection of this WorkspaceCodeVersionResource + WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); // invoke the operation string version = "string"; @@ -167,8 +167,8 @@ public async Task CreateOrUpdate_CreateOrUpdateCodeVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - MachineLearningCodeVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + WorkspaceCodeVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionResource.cs new file mode 100644 index 000000000000..8ec0980c7021 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionResource.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_WorkspaceCodeVersionResource + { + // Delete Workspace Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteWorkspaceCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/delete.json + // this example is just showing the usage of "CodeVersions_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this WorkspaceCodeVersionResource created on azure + // for more information of creating WorkspaceCodeVersionResource, please refer to the document of WorkspaceCodeVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier workspaceCodeVersionResourceId = WorkspaceCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceCodeVersionResource workspaceCodeVersion = client.GetWorkspaceCodeVersionResource(workspaceCodeVersionResourceId); + + // invoke the operation + await workspaceCodeVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Workspace Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetWorkspaceCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/get.json + // this example is just showing the usage of "CodeVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this WorkspaceCodeVersionResource created on azure + // for more information of creating WorkspaceCodeVersionResource, please refer to the document of WorkspaceCodeVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier workspaceCodeVersionResourceId = WorkspaceCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceCodeVersionResource workspaceCodeVersion = client.GetWorkspaceCodeVersionResource(workspaceCodeVersionResourceId); + + // invoke the operation + WorkspaceCodeVersionResource result = await workspaceCodeVersion.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Workspace Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateWorkspaceCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json + // this example is just showing the usage of "CodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this WorkspaceCodeVersionResource created on azure + // for more information of creating WorkspaceCodeVersionResource, please refer to the document of WorkspaceCodeVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier workspaceCodeVersionResourceId = WorkspaceCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceCodeVersionResource workspaceCodeVersion = client.GetWorkspaceCodeVersionResource(workspaceCodeVersionResourceId); + + // invoke the operation + MachineLearningCodeVersionData data = new MachineLearningCodeVersionData(new MachineLearningCodeVersionProperties() + { + CodeUri = new Uri("https://blobStorage/folderName"), + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await workspaceCodeVersion.UpdateAsync(WaitUntil.Completed, data); + WorkspaceCodeVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningCodeVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrGetStartPendingUpload Workspace Code Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadWorkspaceCodeVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json + // this example is just showing the usage of "CodeVersions_CreateOrGetStartPendingUpload" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this WorkspaceCodeVersionResource created on azure + // for more information of creating WorkspaceCodeVersionResource, please refer to the document of WorkspaceCodeVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier workspaceCodeVersionResourceId = WorkspaceCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceCodeVersionResource workspaceCodeVersion = client.GetWorkspaceCodeVersionResource(workspaceCodeVersionResourceId); + + // invoke the operation + PendingUploadRequestDto body = new PendingUploadRequestDto() + { + PendingUploadId = "string", + PendingUploadType = PendingUploadType.TemporaryBlobReference, + }; + PendingUploadResponseDto result = await workspaceCodeVersion.CreateOrGetStartPendingUploadAsync(body); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentCollection.cs similarity index 80% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentCollection.cs index 09ba4139c337..4fc0f79c449d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningComponentContainerCollection + public partial class Sample_WorkspaceComponentCollection { - // List Component Container. + // List Workspace Component Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListComponentContainer() + public async Task GetAll_ListWorkspaceComponentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/list.json // this example is just showing the usage of "ComponentContainers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -39,11 +39,11 @@ public async Task GetAll_ListComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningComponentContainerResource - MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); + // get the collection of this WorkspaceComponentResource + WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); // invoke the operation and iterate over the result - await foreach (MachineLearningComponentContainerResource item in collection.GetAllAsync()) + await foreach (WorkspaceComponentResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -55,12 +55,12 @@ public async Task GetAll_ListComponentContainer() Console.WriteLine($"Succeeded"); } - // Get Component Container. + // Get Workspace Component Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetComponentContainer() + public async Task Get_GetWorkspaceComponentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/get.json // this example is just showing the usage of "ComponentContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,12 +76,12 @@ public async Task Get_GetComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningComponentContainerResource - MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); + // get the collection of this WorkspaceComponentResource + WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); // invoke the operation string name = "string"; - MachineLearningComponentContainerResource result = await collection.GetAsync(name); + WorkspaceComponentResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -90,12 +90,12 @@ public async Task Get_GetComponentContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Component Container. + // Get Workspace Component Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetComponentContainer() + public async Task Exists_GetWorkspaceComponentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/get.json // this example is just showing the usage of "ComponentContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,8 +111,8 @@ public async Task Exists_GetComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningComponentContainerResource - MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); + // get the collection of this WorkspaceComponentResource + WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); // invoke the operation string name = "string"; @@ -121,12 +121,12 @@ public async Task Exists_GetComponentContainer() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Component Container. + // CreateOrUpdate Workspace Component Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateComponentContainer() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceComponentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json // this example is just showing the usage of "ComponentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,8 +142,8 @@ public async Task CreateOrUpdate_CreateOrUpdateComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningComponentContainerResource - MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); + // get the collection of this WorkspaceComponentResource + WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); // invoke the operation string name = "string"; @@ -159,8 +159,8 @@ public async Task CreateOrUpdate_CreateOrUpdateComponentContainer() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - MachineLearningComponentContainerResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + WorkspaceComponentResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentResource.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentResource.cs index 3e74a5e3af9f..c8eabd7313df 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningComponentContainerResource + public partial class Sample_WorkspaceComponentResource { - // Delete Component Container. + // Delete Workspace Component Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteComponentContainer() + public async Task Delete_DeleteWorkspaceComponentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/delete.json // this example is just showing the usage of "ComponentContainers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,27 +31,27 @@ public async Task Delete_DeleteComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentContainerResource created on azure - // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource + // this example assumes you already have this WorkspaceComponentResource created on azure + // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); + ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); // invoke the operation - await machineLearningComponentContainer.DeleteAsync(WaitUntil.Completed); + await workspaceComponent.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Component Container. + // Get Workspace Component Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetComponentContainer() + public async Task Get_GetWorkspaceComponentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/get.json // this example is just showing the usage of "ComponentContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,17 +59,17 @@ public async Task Get_GetComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentContainerResource created on azure - // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource + // this example assumes you already have this WorkspaceComponentResource created on azure + // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); + ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); // invoke the operation - MachineLearningComponentContainerResource result = await machineLearningComponentContainer.GetAsync(); + WorkspaceComponentResource result = await workspaceComponent.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -78,12 +78,12 @@ public async Task Get_GetComponentContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Component Container. + // CreateOrUpdate Workspace Component Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateComponentContainer() + public async Task Update_CreateOrUpdateWorkspaceComponentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json // this example is just showing the usage of "ComponentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentContainerResource created on azure - // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource + // this example assumes you already have this WorkspaceComponentResource created on azure + // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); + ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); // invoke the operation MachineLearningComponentContainerData data = new MachineLearningComponentContainerData(new MachineLearningComponentContainerProperties() @@ -113,8 +113,8 @@ public async Task Update_CreateOrUpdateComponentContainer() ["string"] = "string", }, }); - ArmOperation lro = await machineLearningComponentContainer.UpdateAsync(WaitUntil.Completed, data); - MachineLearningComponentContainerResource result = lro.Value; + ArmOperation lro = await workspaceComponent.UpdateAsync(WaitUntil.Completed, data); + WorkspaceComponentResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionCollection.cs similarity index 58% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionCollection.cs index 7689c26649f3..055d2cfefc46 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionCollection.cs @@ -17,14 +17,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningComponentVersionCollection + public partial class Sample_WorkspaceComponentVersionCollection { - // List Component Version. + // List Workspace Component Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListComponentVersion() + public async Task GetAll_ListWorkspaceComponentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/list.json // this example is just showing the usage of "ComponentVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -32,22 +32,22 @@ public async Task GetAll_ListComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentContainerResource created on azure - // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource + // this example assumes you already have this WorkspaceComponentResource created on azure + // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); + ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); - // get the collection of this MachineLearningComponentVersionResource - MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); + // get the collection of this WorkspaceComponentVersionResource + WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (MachineLearningComponentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (WorkspaceComponentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -59,12 +59,12 @@ public async Task GetAll_ListComponentVersion() Console.WriteLine($"Succeeded"); } - // Get Component Version. + // Get Workspace Component Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetComponentVersion() + public async Task Get_GetWorkspaceComponentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/get.json // this example is just showing the usage of "ComponentVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -72,21 +72,21 @@ public async Task Get_GetComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentContainerResource created on azure - // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource + // this example assumes you already have this WorkspaceComponentResource created on azure + // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); + ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); - // get the collection of this MachineLearningComponentVersionResource - MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); + // get the collection of this WorkspaceComponentVersionResource + WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); // invoke the operation string version = "string"; - MachineLearningComponentVersionResource result = await collection.GetAsync(version); + WorkspaceComponentVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -95,12 +95,12 @@ public async Task Get_GetComponentVersion() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Component Version. + // Get Workspace Component Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetComponentVersion() + public async Task Exists_GetWorkspaceComponentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/get.json // this example is just showing the usage of "ComponentVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,17 +108,17 @@ public async Task Exists_GetComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentContainerResource created on azure - // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource + // this example assumes you already have this WorkspaceComponentResource created on azure + // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); + ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); - // get the collection of this MachineLearningComponentVersionResource - MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); + // get the collection of this WorkspaceComponentVersionResource + WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); // invoke the operation string version = "string"; @@ -127,12 +127,12 @@ public async Task Exists_GetComponentVersion() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Component Version. + // CreateOrUpdate Workspace Component Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateComponentVersion() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceComponentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/createOrUpdate.json // this example is just showing the usage of "ComponentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,17 +140,17 @@ public async Task CreateOrUpdate_CreateOrUpdateComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentContainerResource created on azure - // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource + // this example assumes you already have this WorkspaceComponentResource created on azure + // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); + ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); - // get the collection of this MachineLearningComponentVersionResource - MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); + // get the collection of this WorkspaceComponentVersionResource + WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); // invoke the operation string version = "string"; @@ -171,8 +171,8 @@ public async Task CreateOrUpdate_CreateOrUpdateComponentVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - MachineLearningComponentVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + WorkspaceComponentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionResource.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionResource.cs index 3d3ad2535aaa..aee9a5319242 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionResource.cs @@ -17,14 +17,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningComponentVersionResource + public partial class Sample_WorkspaceComponentVersionResource { - // Delete Component Version. + // Delete Workspace Component Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteComponentVersion() + public async Task Delete_DeleteWorkspaceComponentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/delete.json // this example is just showing the usage of "ComponentVersions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -32,28 +32,28 @@ public async Task Delete_DeleteComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentVersionResource created on azure - // for more information of creating MachineLearningComponentVersionResource, please refer to the document of MachineLearningComponentVersionResource + // this example assumes you already have this WorkspaceComponentVersionResource created on azure + // for more information of creating WorkspaceComponentVersionResource, please refer to the document of WorkspaceComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningComponentVersionResourceId = MachineLearningComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningComponentVersionResource machineLearningComponentVersion = client.GetMachineLearningComponentVersionResource(machineLearningComponentVersionResourceId); + ResourceIdentifier workspaceComponentVersionResourceId = WorkspaceComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceComponentVersionResource workspaceComponentVersion = client.GetWorkspaceComponentVersionResource(workspaceComponentVersionResourceId); // invoke the operation - await machineLearningComponentVersion.DeleteAsync(WaitUntil.Completed); + await workspaceComponentVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Component Version. + // Get Workspace Component Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetComponentVersion() + public async Task Get_GetWorkspaceComponentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/get.json // this example is just showing the usage of "ComponentVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,18 +61,18 @@ public async Task Get_GetComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentVersionResource created on azure - // for more information of creating MachineLearningComponentVersionResource, please refer to the document of MachineLearningComponentVersionResource + // this example assumes you already have this WorkspaceComponentVersionResource created on azure + // for more information of creating WorkspaceComponentVersionResource, please refer to the document of WorkspaceComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningComponentVersionResourceId = MachineLearningComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningComponentVersionResource machineLearningComponentVersion = client.GetMachineLearningComponentVersionResource(machineLearningComponentVersionResourceId); + ResourceIdentifier workspaceComponentVersionResourceId = WorkspaceComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceComponentVersionResource workspaceComponentVersion = client.GetWorkspaceComponentVersionResource(workspaceComponentVersionResourceId); // invoke the operation - MachineLearningComponentVersionResource result = await machineLearningComponentVersion.GetAsync(); + WorkspaceComponentVersionResource result = await workspaceComponentVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -81,12 +81,12 @@ public async Task Get_GetComponentVersion() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Component Version. + // CreateOrUpdate Workspace Component Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateComponentVersion() + public async Task Update_CreateOrUpdateWorkspaceComponentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/createOrUpdate.json // this example is just showing the usage of "ComponentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,15 +94,15 @@ public async Task Update_CreateOrUpdateComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningComponentVersionResource created on azure - // for more information of creating MachineLearningComponentVersionResource, please refer to the document of MachineLearningComponentVersionResource + // this example assumes you already have this WorkspaceComponentVersionResource created on azure + // for more information of creating WorkspaceComponentVersionResource, please refer to the document of WorkspaceComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningComponentVersionResourceId = MachineLearningComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningComponentVersionResource machineLearningComponentVersion = client.GetMachineLearningComponentVersionResource(machineLearningComponentVersionResourceId); + ResourceIdentifier workspaceComponentVersionResourceId = WorkspaceComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceComponentVersionResource workspaceComponentVersion = client.GetWorkspaceComponentVersionResource(workspaceComponentVersionResourceId); // invoke the operation MachineLearningComponentVersionData data = new MachineLearningComponentVersionData(new MachineLearningComponentVersionProperties() @@ -122,8 +122,8 @@ public async Task Update_CreateOrUpdateComponentVersion() ["string"] = "string", }, }); - ArmOperation lro = await machineLearningComponentVersion.UpdateAsync(WaitUntil.Completed, data); - MachineLearningComponentVersionResource result = lro.Value; + ArmOperation lro = await workspaceComponentVersion.UpdateAsync(WaitUntil.Completed, data); + WorkspaceComponentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataCollection.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataCollection.cs index a820053e3a68..9ebbc936b1bb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningDataContainerCollection + public partial class Sample_WorkspaceDataCollection { - // List Data Container. + // List Workspace Data Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListDataContainer() + public async Task GetAll_ListWorkspaceDataContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/list.json // this example is just showing the usage of "DataContainers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -39,11 +39,11 @@ public async Task GetAll_ListDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningDataContainerResource - MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); + // get the collection of this WorkspaceDataResource + WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); // invoke the operation and iterate over the result - await foreach (MachineLearningDataContainerResource item in collection.GetAllAsync()) + await foreach (WorkspaceDataResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -55,12 +55,12 @@ public async Task GetAll_ListDataContainer() Console.WriteLine($"Succeeded"); } - // Get Data Container. + // Get Workspace Data Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetDataContainer() + public async Task Get_GetWorkspaceDataContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/get.json // this example is just showing the usage of "DataContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,12 +76,12 @@ public async Task Get_GetDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningDataContainerResource - MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); + // get the collection of this WorkspaceDataResource + WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); // invoke the operation string name = "datacontainer123"; - MachineLearningDataContainerResource result = await collection.GetAsync(name); + WorkspaceDataResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -90,12 +90,12 @@ public async Task Get_GetDataContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Data Container. + // Get Workspace Data Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetDataContainer() + public async Task Exists_GetWorkspaceDataContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/get.json // this example is just showing the usage of "DataContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,8 +111,8 @@ public async Task Exists_GetDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningDataContainerResource - MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); + // get the collection of this WorkspaceDataResource + WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); // invoke the operation string name = "datacontainer123"; @@ -121,12 +121,12 @@ public async Task Exists_GetDataContainer() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Data Container. + // CreateOrUpdate Workspace Data Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateDataContainer() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceDataContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/createOrUpdate.json // this example is just showing the usage of "DataContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,8 +142,8 @@ public async Task CreateOrUpdate_CreateOrUpdateDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningDataContainerResource - MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); + // get the collection of this WorkspaceDataResource + WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); // invoke the operation string name = "datacontainer123"; @@ -161,8 +161,8 @@ public async Task CreateOrUpdate_CreateOrUpdateDataContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - MachineLearningDataContainerResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + WorkspaceDataResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataResource.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataResource.cs index b8d5a92600d5..502e9f72749a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningDataContainerResource + public partial class Sample_WorkspaceDataResource { - // Delete Data Container. + // Delete Workspace Data Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteDataContainer() + public async Task Delete_DeleteWorkspaceDataContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/delete.json // this example is just showing the usage of "DataContainers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,27 +31,27 @@ public async Task Delete_DeleteDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataContainerResource created on azure - // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource + // this example assumes you already have this WorkspaceDataResource created on azure + // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "datacontainer123"; - ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); + ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); // invoke the operation - await machineLearningDataContainer.DeleteAsync(WaitUntil.Completed); + await workspaceData.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Data Container. + // Get Workspace Data Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetDataContainer() + public async Task Get_GetWorkspaceDataContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/get.json // this example is just showing the usage of "DataContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,17 +59,17 @@ public async Task Get_GetDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataContainerResource created on azure - // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource + // this example assumes you already have this WorkspaceDataResource created on azure + // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "datacontainer123"; - ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); + ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); // invoke the operation - MachineLearningDataContainerResource result = await machineLearningDataContainer.GetAsync(); + WorkspaceDataResource result = await workspaceData.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -78,12 +78,12 @@ public async Task Get_GetDataContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Data Container. + // CreateOrUpdate Workspace Data Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateDataContainer() + public async Task Update_CreateOrUpdateWorkspaceDataContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/createOrUpdate.json // this example is just showing the usage of "DataContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataContainerResource created on azure - // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource + // this example assumes you already have this WorkspaceDataResource created on azure + // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "datacontainer123"; - ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); + ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); // invoke the operation MachineLearningDataContainerData data = new MachineLearningDataContainerData(new MachineLearningDataContainerProperties(new MachineLearningDataType("UriFile")) @@ -115,8 +115,8 @@ public async Task Update_CreateOrUpdateDataContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await machineLearningDataContainer.UpdateAsync(WaitUntil.Completed, data); - MachineLearningDataContainerResource result = lro.Value; + ArmOperation lro = await workspaceData.UpdateAsync(WaitUntil.Completed, data); + WorkspaceDataResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionCollection.cs similarity index 58% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionCollection.cs index d46288514b4f..b7c9f3f81258 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningDataVersionCollection + public partial class Sample_WorkspaceDataVersionCollection { - // List Data Version Base. + // List Workspace Data Version Base. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListDataVersionBase() + public async Task GetAll_ListWorkspaceDataVersionBase() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/list.json // this example is just showing the usage of "DataVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,23 +31,21 @@ public async Task GetAll_ListDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataContainerResource created on azure - // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource + // this example assumes you already have this WorkspaceDataResource created on azure + // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); + ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); - // get the collection of this MachineLearningDataVersionResource - MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); + // get the collection of this WorkspaceDataVersionResource + WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); // invoke the operation and iterate over the result - string orderBy = "string"; - int? top = 1; - string tags = "string"; - await foreach (MachineLearningDataVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top, tags: tags)) + WorkspaceDataVersionCollectionGetAllOptions options = new WorkspaceDataVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Tags = "string" }; + await foreach (WorkspaceDataVersionResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -59,12 +57,12 @@ public async Task GetAll_ListDataVersionBase() Console.WriteLine($"Succeeded"); } - // Get Data Version Base. + // Get Workspace Data Version Base. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetDataVersionBase() + public async Task Get_GetWorkspaceDataVersionBase() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/get.json // this example is just showing the usage of "DataVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -72,21 +70,21 @@ public async Task Get_GetDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataContainerResource created on azure - // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource + // this example assumes you already have this WorkspaceDataResource created on azure + // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); + ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); - // get the collection of this MachineLearningDataVersionResource - MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); + // get the collection of this WorkspaceDataVersionResource + WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); // invoke the operation string version = "string"; - MachineLearningDataVersionResource result = await collection.GetAsync(version); + WorkspaceDataVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -95,12 +93,12 @@ public async Task Get_GetDataVersionBase() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Data Version Base. + // Get Workspace Data Version Base. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetDataVersionBase() + public async Task Exists_GetWorkspaceDataVersionBase() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/get.json // this example is just showing the usage of "DataVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,17 +106,17 @@ public async Task Exists_GetDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataContainerResource created on azure - // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource + // this example assumes you already have this WorkspaceDataResource created on azure + // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); + ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); - // get the collection of this MachineLearningDataVersionResource - MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); + // get the collection of this WorkspaceDataVersionResource + WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); // invoke the operation string version = "string"; @@ -127,12 +125,12 @@ public async Task Exists_GetDataVersionBase() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Data Version Base. + // CreateOrUpdate Workspace Data Version Base. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateDataVersionBase() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceDataVersionBase() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/createOrUpdate.json // this example is just showing the usage of "DataVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,17 +138,17 @@ public async Task CreateOrUpdate_CreateOrUpdateDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataContainerResource created on azure - // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource + // this example assumes you already have this WorkspaceDataResource created on azure + // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); + ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); - // get the collection of this MachineLearningDataVersionResource - MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); + // get the collection of this WorkspaceDataVersionResource + WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); // invoke the operation string version = "string"; @@ -167,8 +165,8 @@ public async Task CreateOrUpdate_CreateOrUpdateDataVersionBase() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - MachineLearningDataVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + WorkspaceDataVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionResource.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionResource.cs index 7fd2eaeb2f30..bd377e5eafdc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningDataVersionResource + public partial class Sample_WorkspaceDataVersionResource { - // Delete Data Version Base. + // Delete Workspace Data Version Base. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteDataVersionBase() + public async Task Delete_DeleteWorkspaceDataVersionBase() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/delete.json // this example is just showing the usage of "DataVersions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,28 +31,28 @@ public async Task Delete_DeleteDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataVersionResource created on azure - // for more information of creating MachineLearningDataVersionResource, please refer to the document of MachineLearningDataVersionResource + // this example assumes you already have this WorkspaceDataVersionResource created on azure + // for more information of creating WorkspaceDataVersionResource, please refer to the document of WorkspaceDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningDataVersionResourceId = MachineLearningDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningDataVersionResource machineLearningDataVersion = client.GetMachineLearningDataVersionResource(machineLearningDataVersionResourceId); + ResourceIdentifier workspaceDataVersionResourceId = WorkspaceDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceDataVersionResource workspaceDataVersion = client.GetWorkspaceDataVersionResource(workspaceDataVersionResourceId); // invoke the operation - await machineLearningDataVersion.DeleteAsync(WaitUntil.Completed); + await workspaceDataVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Data Version Base. + // Get Workspace Data Version Base. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetDataVersionBase() + public async Task Get_GetWorkspaceDataVersionBase() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/get.json // this example is just showing the usage of "DataVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,18 +60,18 @@ public async Task Get_GetDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataVersionResource created on azure - // for more information of creating MachineLearningDataVersionResource, please refer to the document of MachineLearningDataVersionResource + // this example assumes you already have this WorkspaceDataVersionResource created on azure + // for more information of creating WorkspaceDataVersionResource, please refer to the document of WorkspaceDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningDataVersionResourceId = MachineLearningDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningDataVersionResource machineLearningDataVersion = client.GetMachineLearningDataVersionResource(machineLearningDataVersionResourceId); + ResourceIdentifier workspaceDataVersionResourceId = WorkspaceDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceDataVersionResource workspaceDataVersion = client.GetWorkspaceDataVersionResource(workspaceDataVersionResourceId); // invoke the operation - MachineLearningDataVersionResource result = await machineLearningDataVersion.GetAsync(); + WorkspaceDataVersionResource result = await workspaceDataVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -80,12 +80,12 @@ public async Task Get_GetDataVersionBase() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Data Version Base. + // CreateOrUpdate Workspace Data Version Base. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateDataVersionBase() + public async Task Update_CreateOrUpdateWorkspaceDataVersionBase() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/createOrUpdate.json // this example is just showing the usage of "DataVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningDataVersionResource created on azure - // for more information of creating MachineLearningDataVersionResource, please refer to the document of MachineLearningDataVersionResource + // this example assumes you already have this WorkspaceDataVersionResource created on azure + // for more information of creating WorkspaceDataVersionResource, please refer to the document of WorkspaceDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningDataVersionResourceId = MachineLearningDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningDataVersionResource machineLearningDataVersion = client.GetMachineLearningDataVersionResource(machineLearningDataVersionResourceId); + ResourceIdentifier workspaceDataVersionResourceId = WorkspaceDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceDataVersionResource workspaceDataVersion = client.GetWorkspaceDataVersionResource(workspaceDataVersionResourceId); // invoke the operation MachineLearningDataVersionData data = new MachineLearningDataVersionData(new MachineLearningUriFileDataVersion(new Uri("string")) @@ -117,8 +117,8 @@ public async Task Update_CreateOrUpdateDataVersionBase() ["string"] = "string", }, }); - ArmOperation lro = await machineLearningDataVersion.UpdateAsync(WaitUntil.Completed, data); - MachineLearningDataVersionResource result = lro.Value; + ArmOperation lro = await workspaceDataVersion.UpdateAsync(WaitUntil.Completed, data); + WorkspaceDataVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentCollection.cs similarity index 80% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentCollection.cs index 97764ac20bee..1895ebc23c98 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningEnvironmentContainerCollection + public partial class Sample_WorkspaceEnvironmentCollection { - // List Environment Container. + // List Workspace Environment Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListEnvironmentContainer() + public async Task GetAll_ListWorkspaceEnvironmentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/list.json // this example is just showing the usage of "EnvironmentContainers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -39,11 +39,11 @@ public async Task GetAll_ListEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningEnvironmentContainerResource - MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); + // get the collection of this WorkspaceEnvironmentResource + WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); // invoke the operation and iterate over the result - await foreach (MachineLearningEnvironmentContainerResource item in collection.GetAllAsync()) + await foreach (WorkspaceEnvironmentResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -55,12 +55,12 @@ public async Task GetAll_ListEnvironmentContainer() Console.WriteLine($"Succeeded"); } - // Get Environment Container. + // Get Workspace Environment Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetEnvironmentContainer() + public async Task Get_GetWorkspaceEnvironmentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/get.json // this example is just showing the usage of "EnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,12 +76,12 @@ public async Task Get_GetEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningEnvironmentContainerResource - MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); + // get the collection of this WorkspaceEnvironmentResource + WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); // invoke the operation string name = "testEnvironment"; - MachineLearningEnvironmentContainerResource result = await collection.GetAsync(name); + WorkspaceEnvironmentResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -90,12 +90,12 @@ public async Task Get_GetEnvironmentContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Environment Container. + // Get Workspace Environment Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetEnvironmentContainer() + public async Task Exists_GetWorkspaceEnvironmentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/get.json // this example is just showing the usage of "EnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,8 +111,8 @@ public async Task Exists_GetEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningEnvironmentContainerResource - MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); + // get the collection of this WorkspaceEnvironmentResource + WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); // invoke the operation string name = "testEnvironment"; @@ -121,12 +121,12 @@ public async Task Exists_GetEnvironmentContainer() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Environment Container. + // CreateOrUpdate Workspace Environment Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateEnvironmentContainer() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceEnvironmentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json // this example is just showing the usage of "EnvironmentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,8 +142,8 @@ public async Task CreateOrUpdate_CreateOrUpdateEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningEnvironmentContainerResource - MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); + // get the collection of this WorkspaceEnvironmentResource + WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); // invoke the operation string name = "testEnvironment"; @@ -163,8 +163,8 @@ public async Task CreateOrUpdate_CreateOrUpdateEnvironmentContainer() ["additionalProp3"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - MachineLearningEnvironmentContainerResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + WorkspaceEnvironmentResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentResource.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentResource.cs index fd622694fb6c..bd1099c016c3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningEnvironmentContainerResource + public partial class Sample_WorkspaceEnvironmentResource { - // Delete Environment Container. + // Delete Workspace Environment Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteEnvironmentContainer() + public async Task Delete_DeleteWorkspaceEnvironmentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/delete.json // this example is just showing the usage of "EnvironmentContainers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,27 +31,27 @@ public async Task Delete_DeleteEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure - // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource + // this example assumes you already have this WorkspaceEnvironmentResource created on azure + // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testContainer"; - ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); + ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); // invoke the operation - await machineLearningEnvironmentContainer.DeleteAsync(WaitUntil.Completed); + await workspaceEnvironment.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Environment Container. + // Get Workspace Environment Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetEnvironmentContainer() + public async Task Get_GetWorkspaceEnvironmentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/get.json // this example is just showing the usage of "EnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,17 +59,17 @@ public async Task Get_GetEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure - // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource + // this example assumes you already have this WorkspaceEnvironmentResource created on azure + // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testEnvironment"; - ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); + ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); // invoke the operation - MachineLearningEnvironmentContainerResource result = await machineLearningEnvironmentContainer.GetAsync(); + WorkspaceEnvironmentResource result = await workspaceEnvironment.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -78,12 +78,12 @@ public async Task Get_GetEnvironmentContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Environment Container. + // CreateOrUpdate Workspace Environment Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateEnvironmentContainer() + public async Task Update_CreateOrUpdateWorkspaceEnvironmentContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json // this example is just showing the usage of "EnvironmentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure - // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource + // this example assumes you already have this WorkspaceEnvironmentResource created on azure + // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testEnvironment"; - ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); + ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); // invoke the operation MachineLearningEnvironmentContainerData data = new MachineLearningEnvironmentContainerData(new MachineLearningEnvironmentContainerProperties() @@ -117,8 +117,8 @@ public async Task Update_CreateOrUpdateEnvironmentContainer() ["additionalProp3"] = "string", }, }); - ArmOperation lro = await machineLearningEnvironmentContainer.UpdateAsync(WaitUntil.Completed, data); - MachineLearningEnvironmentContainerResource result = lro.Value; + ArmOperation lro = await workspaceEnvironment.UpdateAsync(WaitUntil.Completed, data); + WorkspaceEnvironmentResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionCollection.cs similarity index 59% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionCollection.cs index 5b210fe33db0..77540ca4a5c4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningEnvironmentVersionCollection + public partial class Sample_WorkspaceEnvironmentVersionCollection { - // List Environment Version. + // List Workspace Environment Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListEnvironmentVersion() + public async Task GetAll_ListWorkspaceEnvironmentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/list.json // this example is just showing the usage of "EnvironmentVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,22 +31,22 @@ public async Task GetAll_ListEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure - // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource + // this example assumes you already have this WorkspaceEnvironmentResource created on azure + // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); + ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); - // get the collection of this MachineLearningEnvironmentVersionResource - MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); + // get the collection of this WorkspaceEnvironmentVersionResource + WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (MachineLearningEnvironmentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (WorkspaceEnvironmentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -58,12 +58,12 @@ public async Task GetAll_ListEnvironmentVersion() Console.WriteLine($"Succeeded"); } - // Get Environment Version. + // Get Workspace Environment Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetEnvironmentVersion() + public async Task Get_GetWorkspaceEnvironmentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/get.json // this example is just showing the usage of "EnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -71,21 +71,21 @@ public async Task Get_GetEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure - // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource + // this example assumes you already have this WorkspaceEnvironmentResource created on azure + // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); + ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); - // get the collection of this MachineLearningEnvironmentVersionResource - MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); + // get the collection of this WorkspaceEnvironmentVersionResource + WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); // invoke the operation string version = "string"; - MachineLearningEnvironmentVersionResource result = await collection.GetAsync(version); + WorkspaceEnvironmentVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -94,12 +94,12 @@ public async Task Get_GetEnvironmentVersion() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Environment Version. + // Get Workspace Environment Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetEnvironmentVersion() + public async Task Exists_GetWorkspaceEnvironmentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/get.json // this example is just showing the usage of "EnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,17 +107,17 @@ public async Task Exists_GetEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure - // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource + // this example assumes you already have this WorkspaceEnvironmentResource created on azure + // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); + ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); - // get the collection of this MachineLearningEnvironmentVersionResource - MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); + // get the collection of this WorkspaceEnvironmentVersionResource + WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); // invoke the operation string version = "string"; @@ -126,12 +126,12 @@ public async Task Exists_GetEnvironmentVersion() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Environment Version. + // CreateOrUpdate Workspace Environment Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateEnvironmentVersion() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceEnvironmentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json // this example is just showing the usage of "EnvironmentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,17 +139,17 @@ public async Task CreateOrUpdate_CreateOrUpdateEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure - // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource + // this example assumes you already have this WorkspaceEnvironmentResource created on azure + // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); + ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); - // get the collection of this MachineLearningEnvironmentVersionResource - MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); + // get the collection of this WorkspaceEnvironmentVersionResource + WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); // invoke the operation string version = "string"; @@ -178,8 +178,8 @@ public async Task CreateOrUpdate_CreateOrUpdateEnvironmentVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - MachineLearningEnvironmentVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + WorkspaceEnvironmentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionResource.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionResource.cs index dd8a7b781df5..2f720b10eff9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningEnvironmentVersionResource + public partial class Sample_WorkspaceEnvironmentVersionResource { - // Delete Environment Version. + // Delete Workspace Environment Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteEnvironmentVersion() + public async Task Delete_DeleteWorkspaceEnvironmentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/delete.json // this example is just showing the usage of "EnvironmentVersions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,28 +31,28 @@ public async Task Delete_DeleteEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentVersionResource created on azure - // for more information of creating MachineLearningEnvironmentVersionResource, please refer to the document of MachineLearningEnvironmentVersionResource + // this example assumes you already have this WorkspaceEnvironmentVersionResource created on azure + // for more information of creating WorkspaceEnvironmentVersionResource, please refer to the document of WorkspaceEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningEnvironmentVersionResourceId = MachineLearningEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningEnvironmentVersionResource machineLearningEnvironmentVersion = client.GetMachineLearningEnvironmentVersionResource(machineLearningEnvironmentVersionResourceId); + ResourceIdentifier workspaceEnvironmentVersionResourceId = WorkspaceEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceEnvironmentVersionResource workspaceEnvironmentVersion = client.GetWorkspaceEnvironmentVersionResource(workspaceEnvironmentVersionResourceId); // invoke the operation - await machineLearningEnvironmentVersion.DeleteAsync(WaitUntil.Completed); + await workspaceEnvironmentVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Environment Version. + // Get Workspace Environment Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetEnvironmentVersion() + public async Task Get_GetWorkspaceEnvironmentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/get.json // this example is just showing the usage of "EnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,18 +60,18 @@ public async Task Get_GetEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentVersionResource created on azure - // for more information of creating MachineLearningEnvironmentVersionResource, please refer to the document of MachineLearningEnvironmentVersionResource + // this example assumes you already have this WorkspaceEnvironmentVersionResource created on azure + // for more information of creating WorkspaceEnvironmentVersionResource, please refer to the document of WorkspaceEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningEnvironmentVersionResourceId = MachineLearningEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningEnvironmentVersionResource machineLearningEnvironmentVersion = client.GetMachineLearningEnvironmentVersionResource(machineLearningEnvironmentVersionResourceId); + ResourceIdentifier workspaceEnvironmentVersionResourceId = WorkspaceEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceEnvironmentVersionResource workspaceEnvironmentVersion = client.GetWorkspaceEnvironmentVersionResource(workspaceEnvironmentVersionResourceId); // invoke the operation - MachineLearningEnvironmentVersionResource result = await machineLearningEnvironmentVersion.GetAsync(); + WorkspaceEnvironmentVersionResource result = await workspaceEnvironmentVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -80,12 +80,12 @@ public async Task Get_GetEnvironmentVersion() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Environment Version. + // CreateOrUpdate Workspace Environment Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateEnvironmentVersion() + public async Task Update_CreateOrUpdateWorkspaceEnvironmentVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json // this example is just showing the usage of "EnvironmentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningEnvironmentVersionResource created on azure - // for more information of creating MachineLearningEnvironmentVersionResource, please refer to the document of MachineLearningEnvironmentVersionResource + // this example assumes you already have this WorkspaceEnvironmentVersionResource created on azure + // for more information of creating WorkspaceEnvironmentVersionResource, please refer to the document of WorkspaceEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier machineLearningEnvironmentVersionResourceId = MachineLearningEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - MachineLearningEnvironmentVersionResource machineLearningEnvironmentVersion = client.GetMachineLearningEnvironmentVersionResource(machineLearningEnvironmentVersionResourceId); + ResourceIdentifier workspaceEnvironmentVersionResourceId = WorkspaceEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceEnvironmentVersionResource workspaceEnvironmentVersion = client.GetWorkspaceEnvironmentVersionResource(workspaceEnvironmentVersionResourceId); // invoke the operation MachineLearningEnvironmentVersionData data = new MachineLearningEnvironmentVersionData(new MachineLearningEnvironmentVersionProperties() @@ -129,8 +129,8 @@ public async Task Update_CreateOrUpdateEnvironmentVersion() ["string"] = "string", }, }); - ArmOperation lro = await machineLearningEnvironmentVersion.UpdateAsync(WaitUntil.Completed, data); - MachineLearningEnvironmentVersionResource result = lro.Value; + ArmOperation lro = await workspaceEnvironmentVersion.UpdateAsync(WaitUntil.Completed, data); + WorkspaceEnvironmentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelCollection.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelCollection.cs index 68bc8f0d83d7..a3e630966a37 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningModelContainerCollection + public partial class Sample_WorkspaceModelCollection { - // List Model Container. + // List Workspace Model Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListModelContainer() + public async Task GetAll_ListWorkspaceModelContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/list.json // this example is just showing the usage of "ModelContainers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -39,11 +39,11 @@ public async Task GetAll_ListModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningModelContainerResource - MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); + // get the collection of this WorkspaceModelResource + WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); // invoke the operation and iterate over the result - await foreach (MachineLearningModelContainerResource item in collection.GetAllAsync()) + await foreach (WorkspaceModelResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -55,12 +55,12 @@ public async Task GetAll_ListModelContainer() Console.WriteLine($"Succeeded"); } - // Get Model Container. + // Get Workspace Model Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetModelContainer() + public async Task Get_GetWorkspaceModelContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/get.json // this example is just showing the usage of "ModelContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,12 +76,12 @@ public async Task Get_GetModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningModelContainerResource - MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); + // get the collection of this WorkspaceModelResource + WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); // invoke the operation string name = "testContainer"; - MachineLearningModelContainerResource result = await collection.GetAsync(name); + WorkspaceModelResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -90,12 +90,12 @@ public async Task Get_GetModelContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Model Container. + // Get Workspace Model Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetModelContainer() + public async Task Exists_GetWorkspaceModelContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/get.json // this example is just showing the usage of "ModelContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,8 +111,8 @@ public async Task Exists_GetModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningModelContainerResource - MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); + // get the collection of this WorkspaceModelResource + WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); // invoke the operation string name = "testContainer"; @@ -121,12 +121,12 @@ public async Task Exists_GetModelContainer() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Model Container. + // CreateOrUpdate Workspace Model Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateModelContainer() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceModelContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json // this example is just showing the usage of "ModelContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,8 +142,8 @@ public async Task CreateOrUpdate_CreateOrUpdateModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this MachineLearningModelContainerResource - MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); + // get the collection of this WorkspaceModelResource + WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); // invoke the operation string name = "testContainer"; @@ -156,8 +156,8 @@ public async Task CreateOrUpdate_CreateOrUpdateModelContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - MachineLearningModelContainerResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + WorkspaceModelResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelResource.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelResource.cs index dd68013c5d5a..272e35860a26 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningModelContainerResource + public partial class Sample_WorkspaceModelResource { - // Delete Model Container. + // Delete Workspace Model Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteModelContainer() + public async Task Delete_DeleteWorkspaceModelContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/delete.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/delete.json // this example is just showing the usage of "ModelContainers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,27 +31,27 @@ public async Task Delete_DeleteModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelContainerResource created on azure - // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource + // this example assumes you already have this WorkspaceModelResource created on azure + // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "testContainer"; - ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); + ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); // invoke the operation - await machineLearningModelContainer.DeleteAsync(WaitUntil.Completed); + await workspaceModel.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } - // Get Model Container. + // Get Workspace Model Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetModelContainer() + public async Task Get_GetWorkspaceModelContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/get.json // this example is just showing the usage of "ModelContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,17 +59,17 @@ public async Task Get_GetModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelContainerResource created on azure - // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource + // this example assumes you already have this WorkspaceModelResource created on azure + // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "testContainer"; - ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); + ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); // invoke the operation - MachineLearningModelContainerResource result = await machineLearningModelContainer.GetAsync(); + WorkspaceModelResource result = await workspaceModel.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -78,12 +78,12 @@ public async Task Get_GetModelContainer() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // CreateOrUpdate Model Container. + // CreateOrUpdate Workspace Model Container. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateModelContainer() + public async Task Update_CreateOrUpdateWorkspaceModelContainer() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json // this example is just showing the usage of "ModelContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelContainerResource created on azure - // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource + // this example assumes you already have this WorkspaceModelResource created on azure + // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "testContainer"; - ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); + ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); // invoke the operation MachineLearningModelContainerData data = new MachineLearningModelContainerData(new MachineLearningModelContainerProperties() @@ -110,8 +110,8 @@ public async Task Update_CreateOrUpdateModelContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await machineLearningModelContainer.UpdateAsync(WaitUntil.Completed, data); - MachineLearningModelContainerResource result = lro.Value; + ArmOperation lro = await workspaceModel.UpdateAsync(WaitUntil.Completed, data); + WorkspaceModelResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionCollection.cs similarity index 58% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionCollection.cs index a068fc14948c..b274a8c033b9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionCollection.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_MachineLearningModelVersionCollection + public partial class Sample_WorkspaceModelVersionCollection { - // List Model Version. + // List Workspace Model Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListModelVersion() + public async Task GetAll_ListWorkspaceModelVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/list.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/list.json // this example is just showing the usage of "ModelVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,21 +31,21 @@ public async Task GetAll_ListModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelContainerResource created on azure - // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource + // this example assumes you already have this WorkspaceModelResource created on azure + // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); + ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); - // get the collection of this MachineLearningModelVersionResource - MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); + // get the collection of this WorkspaceModelVersionResource + WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); // invoke the operation and iterate over the result - MachineLearningModelVersionCollectionGetAllOptions options = new MachineLearningModelVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Version = "string", Description = "string", Offset = 1, Tags = "string", Properties = "string" }; - await foreach (MachineLearningModelVersionResource item in collection.GetAllAsync(options)) + WorkspaceModelVersionCollectionGetAllOptions options = new WorkspaceModelVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Version = "string", Description = "string", Offset = 1, Tags = "string", Properties = "string" }; + await foreach (WorkspaceModelVersionResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -57,12 +57,12 @@ public async Task GetAll_ListModelVersion() Console.WriteLine($"Succeeded"); } - // Get Model Version. + // Get Workspace Model Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetModelVersion() + public async Task Get_GetWorkspaceModelVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/get.json // this example is just showing the usage of "ModelVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -70,21 +70,21 @@ public async Task Get_GetModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelContainerResource created on azure - // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource + // this example assumes you already have this WorkspaceModelResource created on azure + // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); + ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); - // get the collection of this MachineLearningModelVersionResource - MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); + // get the collection of this WorkspaceModelVersionResource + WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); // invoke the operation string version = "string"; - MachineLearningModelVersionResource result = await collection.GetAsync(version); + WorkspaceModelVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,12 +93,12 @@ public async Task Get_GetModelVersion() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Get Model Version. + // Get Workspace Model Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetModelVersion() + public async Task Exists_GetWorkspaceModelVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/get.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/get.json // this example is just showing the usage of "ModelVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -106,17 +106,17 @@ public async Task Exists_GetModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelContainerResource created on azure - // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource + // this example assumes you already have this WorkspaceModelResource created on azure + // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); + ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); - // get the collection of this MachineLearningModelVersionResource - MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); + // get the collection of this WorkspaceModelVersionResource + WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); // invoke the operation string version = "string"; @@ -125,12 +125,12 @@ public async Task Exists_GetModelVersion() Console.WriteLine($"Succeeded: {result}"); } - // CreateOrUpdate Model Version. + // CreateOrUpdate Workspace Model Version. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateModelVersion() + public async Task CreateOrUpdate_CreateOrUpdateWorkspaceModelVersion() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/createOrUpdate.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json // this example is just showing the usage of "ModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,17 +138,17 @@ public async Task CreateOrUpdate_CreateOrUpdateModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this MachineLearningModelContainerResource created on azure - // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource + // this example assumes you already have this WorkspaceModelResource created on azure + // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); + ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); - // get the collection of this MachineLearningModelVersionResource - MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); + // get the collection of this WorkspaceModelVersionResource + WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); // invoke the operation string version = "string"; @@ -177,8 +177,8 @@ public async Task CreateOrUpdate_CreateOrUpdateModelVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - MachineLearningModelVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + WorkspaceModelVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionResource.cs new file mode 100644 index 000000000000..5017fa46ffc9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionResource.cs @@ -0,0 +1,206 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning.Samples +{ + public partial class Sample_WorkspaceModelVersionResource + { + // Delete Workspace Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteWorkspaceModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/delete.json + // this example is just showing the usage of "ModelVersions_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this WorkspaceModelVersionResource created on azure + // for more information of creating WorkspaceModelVersionResource, please refer to the document of WorkspaceModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier workspaceModelVersionResourceId = WorkspaceModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceModelVersionResource workspaceModelVersion = client.GetWorkspaceModelVersionResource(workspaceModelVersionResourceId); + + // invoke the operation + await workspaceModelVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get Workspace Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetWorkspaceModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/get.json + // this example is just showing the usage of "ModelVersions_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this WorkspaceModelVersionResource created on azure + // for more information of creating WorkspaceModelVersionResource, please refer to the document of WorkspaceModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier workspaceModelVersionResourceId = WorkspaceModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceModelVersionResource workspaceModelVersion = client.GetWorkspaceModelVersionResource(workspaceModelVersionResourceId); + + // invoke the operation + WorkspaceModelVersionResource result = await workspaceModelVersion.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // CreateOrUpdate Workspace Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateWorkspaceModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json + // this example is just showing the usage of "ModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this WorkspaceModelVersionResource created on azure + // for more information of creating WorkspaceModelVersionResource, please refer to the document of WorkspaceModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier workspaceModelVersionResourceId = WorkspaceModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceModelVersionResource workspaceModelVersion = client.GetWorkspaceModelVersionResource(workspaceModelVersionResourceId); + + // invoke the operation + MachineLearningModelVersionData data = new MachineLearningModelVersionData(new MachineLearningModelVersionProperties() + { + Flavors = +{ +["string"] = new MachineLearningFlavorData() +{ +Data = +{ +["string"] = "string", +}, +}, +}, + ModelType = "CustomModel", + ModelUri = new Uri("string"), + IsAnonymous = false, + Description = "string", + Properties = +{ +["string"] = "string", +}, + Tags = +{ +["string"] = "string", +}, + }); + ArmOperation lro = await workspaceModelVersion.UpdateAsync(WaitUntil.Completed, data); + WorkspaceModelVersionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningModelVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Package Workspace Model Version. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Package_PackageWorkspaceModelVersion() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/package.json + // this example is just showing the usage of "ModelVersions_Package" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this WorkspaceModelVersionResource created on azure + // for more information of creating WorkspaceModelVersionResource, please refer to the document of WorkspaceModelVersionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "test-rg"; + string workspaceName = "my-aml-workspace"; + string name = "string"; + string version = "string"; + ResourceIdentifier workspaceModelVersionResourceId = WorkspaceModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + WorkspaceModelVersionResource workspaceModelVersion = client.GetWorkspaceModelVersionResource(workspaceModelVersionResourceId); + + // invoke the operation + PackageRequest body = new PackageRequest(new AzureMLBatchInferencingServer() + { + CodeConfiguration = new MachineLearningCodeConfiguration("string") + { + CodeId = new ResourceIdentifier("string"), + }, + }, "string") + { + BaseEnvironmentSource = new BaseEnvironmentId("string"), + EnvironmentVariables = +{ +["string"] = "string", +}, + Inputs = +{ +new ModelPackageInput(PackageInputType.UriFile,new PackageInputPathUri() +{ +Uri = new Uri("string"), +}) +{ +Mode = PackageInputDeliveryMode.Download, +MountPath = "string", +} +}, + ModelConfiguration = new ModelConfiguration() + { + Mode = new PackageInputDeliveryMode("ReadOnlyMount"), + MountPath = "string", + }, + Tags = +{ +["string"] = "string", +}, + }; + ArmOperation lro = await workspaceModelVersion.PackageAsync(WaitUntil.Completed, body); + PackageResponse result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/EncryptionUpdateProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/EncryptionUpdateProperties.cs new file mode 100644 index 000000000000..83a7db975117 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/EncryptionUpdateProperties.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The EncryptionUpdateProperties. + public partial class EncryptionUpdateProperties + { + /// Initializes a new instance of EncryptionUpdateProperties. + /// + public EncryptionUpdateProperties(string keyIdentifier) + { + KeyVaultProperties = new EncryptionKeyVaultUpdateProperties(keyIdentifier); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningModelVersionCollection.cs deleted file mode 100644 index f2d70cab4909..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningModelVersionCollection.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Collections.Generic; -using System.Text; -using Azure.ResourceManager.MachineLearning.Models; -using System.Threading; - -namespace Azure.ResourceManager.MachineLearning -{ - public partial class MachineLearningModelVersionCollection - { - /// - /// List model versions. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions - /// - /// - /// Operation Id - /// ModelVersions_List - /// - /// - /// - /// Continuation token for pagination. - /// Ordering of list. - /// Maximum number of records to return. - /// Model version. - /// Model description. - /// Number of initial results to skip. - /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. - /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. - /// Name of the feed. - /// View type for including/excluding (for example) archived entities. - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) - { - MachineLearningModelVersionCollectionGetAllOptions options = new MachineLearningModelVersionCollectionGetAllOptions(); - options.Skip = skip; - options.OrderBy = orderBy; - options.Top = top; - options.Version = version; - options.Description = description; - options.Offset = offset; - options.Tags = tags; - options.Properties = properties; - options.Feed = feed; - options.ListViewType = listViewType; - - return GetAllAsync(options, cancellationToken); - } - - /// - /// List model versions. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions - /// - /// - /// Operation Id - /// ModelVersions_List - /// - /// - /// - /// Continuation token for pagination. - /// Ordering of list. - /// Maximum number of records to return. - /// Model version. - /// Model description. - /// Number of initial results to skip. - /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. - /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. - /// Name of the feed. - /// View type for including/excluding (for example) archived entities. - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) - { - MachineLearningModelVersionCollectionGetAllOptions options = new MachineLearningModelVersionCollectionGetAllOptions(); - options.Skip = skip; - options.OrderBy = orderBy; - options.Top = top; - options.Version = version; - options.Description = description; - options.Offset = offset; - options.Tags = tags; - options.Properties = properties; - options.Feed = feed; - options.ListViewType = listViewType; - - return GetAll(options, cancellationToken); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs index 5a1abc91e2fe..801da4ecfe58 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs @@ -19,192 +19,6 @@ namespace Azure.ResourceManager.MachineLearning.Models /// Model factory for models. public static partial class ArmMachineLearningModelFactory { - /// Initializes a new instance of MachineLearningError. - /// The error object. - /// A new instance for mocking. - public static MachineLearningError MachineLearningError(ResponseError error = null) - { - return new MachineLearningError(error); - } - - /// Initializes a new instance of MachineLearningWorkspaceData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// The identity of the resource. - /// The sku of the workspace. - /// The immutable id associated with this workspace. - /// The description of this workspace. - /// The friendly name for this workspace. This name in mutable. - /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. - /// ARM id of the application insights associated with this workspace. - /// ARM id of the container registry associated with this workspace. - /// ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created. - /// Url for the discovery service to identify regional endpoints for machine learning experimentation services. - /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. - /// The encryption settings of Azure ML workspace. - /// The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service. - /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. - /// Count of private connections in the workspace. - /// The compute name for image build. - /// The flag to indicate whether to allow public access when behind VNet. - /// Whether requests from Public Network are allowed. - /// The list of private endpoint connections in the workspace. - /// The list of shared private link resources in this workspace. - /// The notebook info of Azure ML workspace. - /// The service managed resource settings. - /// The user assigned identity resource id that represents the workspace identity. - /// The tenant id associated with this workspace. - /// If the storage associated with the workspace has hierarchical namespace(HNS) enabled. - /// The URI associated with this workspace that machine learning flow must point at to set up tracking. - /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. - /// A new instance for mocking. - public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, string workspaceId = null, string description = null, string friendlyName = null, string keyVault = null, string applicationInsights = null, string containerRegistry = null, string storageAccount = null, Uri discoveryUri = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningEncryptionSetting encryption = null, bool? isHbiWorkspace = null, string serviceProvisionedResourceGroup = null, int? privateLinkCount = null, string imageBuildCompute = null, bool? allowPublicAccessWhenBehindVnet = null, MachineLearningPublicNetworkAccess? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null, IEnumerable sharedPrivateLinkResources = null, MachineLearningNotebookResourceInfo notebookInfo = null, int? cosmosDbCollectionsThroughput = null, string primaryUserAssignedIdentity = null, Guid? tenantId = null, bool? isStorageHnsEnabled = null, Uri mlFlowTrackingUri = null, bool? isV1LegacyMode = null) - { - tags ??= new Dictionary(); - privateEndpointConnections ??= new List(); - sharedPrivateLinkResources ??= new List(); - - return new MachineLearningWorkspaceData(id, name, resourceType, systemData, tags, location, identity, sku, workspaceId, description, friendlyName, keyVault, applicationInsights, containerRegistry, storageAccount, discoveryUri, provisioningState, encryption, isHbiWorkspace, serviceProvisionedResourceGroup, privateLinkCount, imageBuildCompute, allowPublicAccessWhenBehindVnet, publicNetworkAccess, privateEndpointConnections?.ToList(), sharedPrivateLinkResources?.ToList(), notebookInfo, cosmosDbCollectionsThroughput != null ? new ServiceManagedResourcesSettings(new CosmosDbSettings(cosmosDbCollectionsThroughput)) : null, primaryUserAssignedIdentity, tenantId, isStorageHnsEnabled, mlFlowTrackingUri, isV1LegacyMode); - } - - /// Initializes a new instance of MachineLearningPrivateEndpointConnectionData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// The identity of the resource. - /// The sku of the workspace. - /// The resource of private end point. - /// A collection of information about the state of the connection between service consumer and provider. - /// The provisioning state of the private endpoint connection resource. - /// A new instance for mocking. - public static MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, MachineLearningPrivateEndpoint privateEndpoint = null, MachineLearningPrivateLinkServiceConnectionState connectionState = null, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = null) - { - tags ??= new Dictionary(); - - return new MachineLearningPrivateEndpointConnectionData(id, name, resourceType, systemData, tags, location, identity, sku, privateEndpoint, connectionState, provisioningState); - } - - /// Initializes a new instance of MachineLearningPrivateEndpoint. - /// The ARM identifier for Private Endpoint. - /// The ARM identifier for Subnet resource that private endpoint links to. - /// A new instance for mocking. - public static MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(ResourceIdentifier id = null, ResourceIdentifier subnetArmId = null) - { - return new MachineLearningPrivateEndpoint(id, subnetArmId); - } - - /// Initializes a new instance of MachineLearningNotebookResourceInfo. - /// - /// the data plane resourceId that used to initialize notebook component. - /// The error that occurs when preparing notebook. - /// A new instance for mocking. - public static MachineLearningNotebookResourceInfo MachineLearningNotebookResourceInfo(string fqdn = null, string resourceId = null, MachineLearningNotebookPreparationError notebookPreparationError = null) - { - return new MachineLearningNotebookResourceInfo(fqdn, resourceId, notebookPreparationError); - } - - /// Initializes a new instance of MachineLearningNotebookPreparationError. - /// - /// - /// A new instance for mocking. - public static MachineLearningNotebookPreparationError MachineLearningNotebookPreparationError(string errorMessage = null, int? statusCode = null) - { - return new MachineLearningNotebookPreparationError(errorMessage, statusCode); - } - - /// Initializes a new instance of MachineLearningWorkspaceDiagnoseResult. - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceDiagnoseResult MachineLearningWorkspaceDiagnoseResult(MachineLearningDiagnoseResultValue value = null) - { - return new MachineLearningWorkspaceDiagnoseResult(value); - } - - /// Initializes a new instance of MachineLearningDiagnoseResultValue. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// A new instance for mocking. - public static MachineLearningDiagnoseResultValue MachineLearningDiagnoseResultValue(IEnumerable userDefinedRouteResults = null, IEnumerable networkSecurityRuleResults = null, IEnumerable resourceLockResults = null, IEnumerable dnsResolutionResults = null, IEnumerable storageAccountResults = null, IEnumerable keyVaultResults = null, IEnumerable containerRegistryResults = null, IEnumerable applicationInsightsResults = null, IEnumerable otherResults = null) - { - userDefinedRouteResults ??= new List(); - networkSecurityRuleResults ??= new List(); - resourceLockResults ??= new List(); - dnsResolutionResults ??= new List(); - storageAccountResults ??= new List(); - keyVaultResults ??= new List(); - containerRegistryResults ??= new List(); - applicationInsightsResults ??= new List(); - otherResults ??= new List(); - - return new MachineLearningDiagnoseResultValue(userDefinedRouteResults?.ToList(), networkSecurityRuleResults?.ToList(), resourceLockResults?.ToList(), dnsResolutionResults?.ToList(), storageAccountResults?.ToList(), keyVaultResults?.ToList(), containerRegistryResults?.ToList(), applicationInsightsResults?.ToList(), otherResults?.ToList()); - } - - /// Initializes a new instance of MachineLearningDiagnoseResult. - /// Code for workspace setup error. - /// Level of workspace setup error. - /// Message of workspace setup error. - /// A new instance for mocking. - public static MachineLearningDiagnoseResult MachineLearningDiagnoseResult(string code = null, MachineLearningDiagnoseResultLevel? level = null, string message = null) - { - return new MachineLearningDiagnoseResult(code, level, message); - } - - /// Initializes a new instance of MachineLearningWorkspaceGetKeysResult. - /// - /// - /// - /// - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string userStorageKey = null, string userStorageResourceId = null, string appInsightsInstrumentationKey = null, MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null) - { - return new MachineLearningWorkspaceGetKeysResult(userStorageKey, userStorageResourceId, appInsightsInstrumentationKey, containerRegistryCredentials, notebookAccessKeys); - } - - /// Initializes a new instance of MachineLearningContainerRegistryCredentials. - /// - /// - /// - /// A new instance for mocking. - public static MachineLearningContainerRegistryCredentials MachineLearningContainerRegistryCredentials(AzureLocation? location = null, string username = null, IEnumerable passwords = null) - { - passwords ??= new List(); - - return new MachineLearningContainerRegistryCredentials(location, username, passwords?.ToList()); - } - - /// Initializes a new instance of MachineLearningPasswordDetail. - /// - /// - /// A new instance for mocking. - public static MachineLearningPasswordDetail MachineLearningPasswordDetail(string name = null, string value = null) - { - return new MachineLearningPasswordDetail(name, value); - } - - /// Initializes a new instance of MachineLearningWorkspaceGetNotebookKeysResult. - /// - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceGetNotebookKeysResult MachineLearningWorkspaceGetNotebookKeysResult(string primaryAccessKey = null, string secondaryAccessKey = null) - { - return new MachineLearningWorkspaceGetNotebookKeysResult(primaryAccessKey, secondaryAccessKey); - } - /// Initializes a new instance of MachineLearningUsage. /// Specifies the resource ID. /// Region of the AML workspace in the id. @@ -228,6 +42,14 @@ public static MachineLearningUsageName MachineLearningUsageName(string value = n return new MachineLearningUsageName(value, localizedValue); } + /// Initializes a new instance of MachineLearningError. + /// The error object. + /// A new instance for mocking. + public static MachineLearningError MachineLearningError(ResponseError error = null) + { + return new MachineLearningError(error); + } + /// Initializes a new instance of MachineLearningVmSize. /// The name of the virtual machine size. /// The family name of the virtual machine size. @@ -358,280 +180,106 @@ public static AmlComputeNodeInformation AmlComputeNodeInformation(string nodeId return new AmlComputeNodeInformation(nodeId, privateIPAddress, publicIPAddress, port, nodeState, runId); } - /// Initializes a new instance of MachineLearningWorkspaceNotebookAccessTokenResult. - /// - /// - /// - /// - /// - /// - /// - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceNotebookAccessTokenResult MachineLearningWorkspaceNotebookAccessTokenResult(string notebookResourceId = null, string hostName = null, string publicDns = null, string accessToken = null, string tokenType = null, int? expiresIn = null, string refreshToken = null, string scope = null) - { - return new MachineLearningWorkspaceNotebookAccessTokenResult(notebookResourceId, hostName, publicDns, accessToken, tokenType, expiresIn, refreshToken, scope); - } - - /// Initializes a new instance of MachineLearningPrivateLinkResource. + /// Initializes a new instance of MachineLearningCodeContainerData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// The identity of the resource. - /// The sku of the workspace. - /// The private link resource group id. - /// The private link resource required member names. - /// The private link resource Private link DNS zone name. - /// A new instance for mocking. - public static MachineLearningPrivateLinkResource MachineLearningPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningCodeContainerData MachineLearningCodeContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningCodeContainerProperties properties = null) + { + return new MachineLearningCodeContainerData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MachineLearningCodeContainerProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the code container. + /// A new instance for mocking. + public static MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) { + properties ??= new Dictionary(); tags ??= new Dictionary(); - requiredMembers ??= new List(); - requiredZoneNames ??= new List(); - return new MachineLearningPrivateLinkResource(id, name, resourceType, systemData, tags, location, identity, sku, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + return new MachineLearningCodeContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); } - /// Initializes a new instance of MachineLearningWorkspaceGetStorageAccountKeysResult. - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceGetStorageAccountKeysResult MachineLearningWorkspaceGetStorageAccountKeysResult(string userStorageKey = null) + /// Initializes a new instance of MachineLearningAssetContainer. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// A new instance for mocking. + public static MachineLearningAssetContainer MachineLearningAssetContainer(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null) { - return new MachineLearningWorkspaceGetStorageAccountKeysResult(userStorageKey); + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new MachineLearningAssetContainer(description, properties, tags, isArchived, latestVersion, nextVersion); } - /// Initializes a new instance of MachineLearningWorkspaceConnectionData. + /// Initializes a new instance of MachineLearningCodeVersionData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceConnectionData MachineLearningWorkspaceConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningWorkspaceConnectionProperties properties = null) + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningCodeVersionData MachineLearningCodeVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningCodeVersionProperties properties = null) { - return new MachineLearningWorkspaceConnectionData(id, name, resourceType, systemData, properties); + return new MachineLearningCodeVersionData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of MachineLearningFqdnEndpoints. - /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(MachineLearningFqdnEndpointsProperties properties = null) + /// Initializes a new instance of MachineLearningCodeVersionProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + /// Uri where code is located. + /// Provisioning state for the code version. + /// A new instance for mocking. + public static MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, Uri codeUri = null, AssetProvisioningState? provisioningState = null) { - return new MachineLearningFqdnEndpoints(properties); + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new MachineLearningCodeVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, codeUri, provisioningState); } - /// Initializes a new instance of MachineLearningFqdnEndpointsProperties. - /// - /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpointsProperties MachineLearningFqdnEndpointsProperties(string category = null, IEnumerable endpoints = null) + /// Initializes a new instance of PendingUploadResponseDto. + /// Container level read, write, list SAS. + /// ID for this upload request. + /// TemporaryBlobReference is the only supported type. + /// A new instance for mocking. + public static PendingUploadResponseDto PendingUploadResponseDto(BlobReferenceForConsumptionDto blobReferenceForConsumption = null, string pendingUploadId = null, PendingUploadType? pendingUploadType = null) { - endpoints ??= new List(); - - return new MachineLearningFqdnEndpointsProperties(category, endpoints?.ToList()); + return new PendingUploadResponseDto(blobReferenceForConsumption, pendingUploadId, pendingUploadType); } - /// Initializes a new instance of MachineLearningFqdnEndpoint. - /// - /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpoint MachineLearningFqdnEndpoint(string domainName = null, IEnumerable endpointDetails = null) - { - endpointDetails ??= new List(); - - return new MachineLearningFqdnEndpoint(domainName, endpointDetails?.ToList()); - } - - /// Initializes a new instance of MachineLearningFqdnEndpointDetail. - /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetail(int? port = null) - { - return new MachineLearningFqdnEndpointDetail(port); - } - - /// Initializes a new instance of MachineLearningBatchEndpointData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Managed service identity (system assigned and/or user assigned identities). - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - /// [Required] Additional attributes of the entity. - /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningBatchEndpointData MachineLearningBatchEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningBatchEndpointProperties properties = null, MachineLearningSku sku = null) - { - tags ??= new Dictionary(); - - return new MachineLearningBatchEndpointData(id, name, resourceType, systemData, tags, location, identity, kind, properties, sku); - } - - /// Initializes a new instance of MachineLearningBatchEndpointProperties. - /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. - /// Description of the inference endpoint. - /// - /// EndpointAuthKeys to set initially on an Endpoint. - /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. - /// - /// Property dictionary. Properties can be added, but not removed or altered. - /// Endpoint URI. - /// Endpoint Swagger URI. - /// Default values for Batch Endpoint. - /// Provisioning state for the endpoint. - /// A new instance for mocking. - public static MachineLearningBatchEndpointProperties MachineLearningBatchEndpointProperties(MachineLearningEndpointAuthMode authMode = default, string description = null, MachineLearningEndpointAuthKeys keys = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, string defaultsDeploymentName = null, MachineLearningEndpointProvisioningState? provisioningState = null) - { - properties ??= new Dictionary(); - - return new MachineLearningBatchEndpointProperties(authMode, description, keys, properties, scoringUri, swaggerUri, defaultsDeploymentName != null ? new BatchEndpointDefaults(defaultsDeploymentName) : null, provisioningState); - } - - /// Initializes a new instance of MachineLearningEndpointProperties. - /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. - /// Description of the inference endpoint. - /// - /// EndpointAuthKeys to set initially on an Endpoint. - /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. + /// Initializes a new instance of BlobReferenceForConsumptionDto. + /// + /// Blob URI path for client to upload data. + /// Example: https://blob.windows.core.net/Container/Path /// - /// Property dictionary. Properties can be added, but not removed or altered. - /// Endpoint URI. - /// Endpoint Swagger URI. - /// A new instance for mocking. - public static MachineLearningEndpointProperties MachineLearningEndpointProperties(MachineLearningEndpointAuthMode authMode = default, string description = null, MachineLearningEndpointAuthKeys keys = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null) - { - properties ??= new Dictionary(); - - return new MachineLearningEndpointProperties(authMode, description, keys, properties, scoringUri, swaggerUri); - } - - /// Initializes a new instance of MachineLearningBatchDeploymentData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Managed service identity (system assigned and/or user assigned identities). - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - /// [Required] Additional attributes of the entity. - /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningBatchDeploymentData MachineLearningBatchDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningBatchDeploymentProperties properties = null, MachineLearningSku sku = null) - { - tags ??= new Dictionary(); - - return new MachineLearningBatchDeploymentData(id, name, resourceType, systemData, tags, location, identity, kind, properties, sku); - } - - /// Initializes a new instance of MachineLearningBatchDeploymentProperties. - /// Code configuration for the endpoint deployment. - /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. - /// Environment variables configuration for the deployment. - /// Property dictionary. Properties can be added, but not removed or altered. - /// Compute target for batch inference operation. - /// - /// 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. - /// - /// Logging level for batch inference operation. - /// Indicates maximum number of parallelism per instance. - /// - /// 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. - /// - /// - /// Reference to the model asset for the endpoint deployment. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// Indicates how the output will be organized. - /// Customized output file name for append_row output action. - /// Provisioning state for the endpoint deployment. - /// - /// Indicates compute configuration for the job. - /// If not provided, will default to the defaults defined in ResourceConfiguration. - /// - /// - /// Retry Settings for the batch inference operation. - /// If not provided, will default to the defaults defined in BatchRetrySettings. + /// + /// Credential info to access storage account + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - /// A new instance for mocking. - public static MachineLearningBatchDeploymentProperties MachineLearningBatchDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary properties = null, string compute = null, int? errorThreshold = null, MachineLearningBatchLoggingLevel? loggingLevel = null, int? maxConcurrencyPerInstance = null, long? miniBatchSize = null, MachineLearningAssetReferenceBase model = null, MachineLearningBatchOutputAction? outputAction = null, string outputFileName = null, MachineLearningDeploymentProvisioningState? provisioningState = null, MachineLearningDeploymentResourceConfiguration resources = null, MachineLearningBatchRetrySettings retrySettings = null) - { - environmentVariables ??= new Dictionary(); - properties ??= new Dictionary(); - - return new MachineLearningBatchDeploymentProperties(codeConfiguration, description, environmentId, environmentVariables, properties, compute, errorThreshold, loggingLevel, maxConcurrencyPerInstance, miniBatchSize, model, outputAction, outputFileName, provisioningState, resources, retrySettings); - } - - /// Initializes a new instance of MachineLearningCodeContainerData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningCodeContainerData MachineLearningCodeContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningCodeContainerProperties properties = null) - { - return new MachineLearningCodeContainerData(id, name, resourceType, systemData, properties); - } - - /// Initializes a new instance of MachineLearningCodeContainerProperties. - /// The asset description text. - /// The asset property dictionary. - /// Tag dictionary. Tags can be added, removed, and updated. - /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// A new instance for mocking. - public static MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null) - { - properties ??= new Dictionary(); - tags ??= new Dictionary(); - - return new MachineLearningCodeContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion); - } - - /// Initializes a new instance of MachineLearningAssetContainer. - /// The asset description text. - /// The asset property dictionary. - /// Tag dictionary. Tags can be added, removed, and updated. - /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// A new instance for mocking. - public static MachineLearningAssetContainer MachineLearningAssetContainer(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null) - { - properties ??= new Dictionary(); - tags ??= new Dictionary(); - - return new MachineLearningAssetContainer(description, properties, tags, isArchived, latestVersion, nextVersion); - } - - /// Initializes a new instance of MachineLearningCodeVersionData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningCodeVersionData MachineLearningCodeVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningCodeVersionProperties properties = null) + /// Arm ID of the storage account to use. + /// A new instance for mocking. + public static BlobReferenceForConsumptionDto BlobReferenceForConsumptionDto(Uri blobUri = null, PendingUploadCredentialDto credential = null, string storageAccountArmId = null) { - return new MachineLearningCodeVersionData(id, name, resourceType, systemData, properties); + return new BlobReferenceForConsumptionDto(blobUri, credential, storageAccountArmId); } /// Initializes a new instance of MachineLearningComponentContainerData. @@ -653,13 +301,14 @@ public static MachineLearningComponentContainerData MachineLearningComponentCont /// Is the asset archived?. /// The latest version inside this container. /// The next auto incremental version. + /// Provisioning state for the component container. /// A new instance for mocking. - public static MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null) + public static MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new MachineLearningComponentContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion); + return new MachineLearningComponentContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); } /// Initializes a new instance of MachineLearningComponentVersionData. @@ -674,6 +323,28 @@ public static MachineLearningComponentVersionData MachineLearningComponentVersio return new MachineLearningComponentVersionData(id, name, resourceType, systemData, properties); } + /// Initializes a new instance of MachineLearningComponentVersionProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + /// + /// Defines Component definition details. + /// <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" /> + /// + /// Provisioning state for the component version. + /// Stage in the component lifecycle. + /// A new instance for mocking. + public static MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, BinaryData componentSpec = null, AssetProvisioningState? provisioningState = null, string stage = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new MachineLearningComponentVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, componentSpec, provisioningState, stage); + } + /// Initializes a new instance of MachineLearningDataContainerData. /// The id. /// The name. @@ -719,42 +390,6 @@ public static MachineLearningDataVersionData MachineLearningDataVersionData(Reso return new MachineLearningDataVersionData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of MachineLearningDatastoreData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// - /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - /// A new instance for mocking. - public static MachineLearningDatastoreData MachineLearningDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDatastoreProperties properties = null) - { - return new MachineLearningDatastoreData(id, name, resourceType, systemData, properties); - } - - /// Initializes a new instance of MachineLearningDatastoreProperties. - /// The asset description text. - /// The asset property dictionary. - /// Tag dictionary. Tags can be added, removed, and updated. - /// - /// [Required] Account credentials. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// [Required] Storage type backing the datastore. - /// Readonly property to indicate if datastore is the workspace default datastore. - /// A new instance for mocking. - public static MachineLearningDatastoreProperties MachineLearningDatastoreProperties(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, string datastoreType = "Unknown", bool? isDefault = null) - { - properties ??= new Dictionary(); - tags ??= new Dictionary(); - - return new MachineLearningDatastoreProperties(description, properties, tags, credentials, datastoreType, isDefault); - } - /// Initializes a new instance of MachineLearningEnvironmentContainerData. /// The id. /// The name. @@ -774,13 +409,14 @@ public static MachineLearningEnvironmentContainerData MachineLearningEnvironment /// Is the asset archived?. /// The latest version inside this container. /// The next auto incremental version. + /// Provisioning state for the environment container. /// A new instance for mocking. - public static MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null) + public static MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new MachineLearningEnvironmentContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion); + return new MachineLearningEnvironmentContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); } /// Initializes a new instance of MachineLearningEnvironmentVersionData. @@ -799,8 +435,9 @@ public static MachineLearningEnvironmentVersionData MachineLearningEnvironmentVe /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// Defines if image needs to be rebuilt based on base image changes. /// Configuration settings for Docker build context. /// @@ -816,119 +453,114 @@ public static MachineLearningEnvironmentVersionData MachineLearningEnvironmentVe /// <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" /> /// /// Defines configuration specific to inference. + /// Intellectual Property details. Used if environment is an Intellectual Property. /// The OS type of the environment. + /// Provisioning state for the environment version. + /// Stage in the environment lifecycle assigned to this environment. /// A new instance for mocking. - public static MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isAnonymous = null, bool? isArchived = null, AutoRebuildSetting? autoRebuild = null, MachineLearningBuildContext build = null, string condaFile = null, MachineLearningEnvironmentType? environmentType = null, string image = null, MachineLearningInferenceContainerProperties inferenceConfig = null, MachineLearningOperatingSystemType? osType = null) + public static MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, AutoRebuildSetting? autoRebuild = null, MachineLearningBuildContext build = null, string condaFile = null, MachineLearningEnvironmentType? environmentType = null, string image = null, MachineLearningInferenceContainerProperties inferenceConfig = null, IntellectualProperty intellectualProperty = null, MachineLearningOperatingSystemType? osType = null, AssetProvisioningState? provisioningState = null, string stage = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new MachineLearningEnvironmentVersionProperties(description, properties, tags, isAnonymous, isArchived, autoRebuild, build, condaFile, environmentType, image, inferenceConfig, osType); + return new MachineLearningEnvironmentVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, autoRebuild, build, condaFile, environmentType, image, inferenceConfig, intellectualProperty, osType, provisioningState, stage); } - /// Initializes a new instance of MachineLearningJobData. + /// Initializes a new instance of MachineLearningModelContainerData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - /// A new instance for mocking. - public static MachineLearningJobData MachineLearningJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningJobProperties properties = null) + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningModelContainerData MachineLearningModelContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningModelContainerProperties properties = null) { - return new MachineLearningJobData(id, name, resourceType, systemData, properties); + return new MachineLearningModelContainerData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of MachineLearningJobProperties. + /// Initializes a new instance of MachineLearningModelContainerProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// ARM resource ID of the component resource. - /// ARM resource ID of the compute resource. - /// Display name of job. - /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. - /// - /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. - /// Defaults to AmlToken if null. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// /// Is the asset archived?. - /// [Required] Specifies the type of job. - /// - /// List of JobEndpoints. - /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. - /// - /// Status of the job. - /// A new instance for mocking. - public static MachineLearningJobProperties MachineLearningJobProperties(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, string jobType = "Unknown", IDictionary services = null, MachineLearningJobStatus? status = null) + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the model container. + /// A new instance for mocking. + public static MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - services ??= new Dictionary(); - - return new MachineLearningJobProperties(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, services, status); - } - - /// Initializes a new instance of MachineLearningJobService. - /// Url for endpoint. - /// Any error in the service. - /// Endpoint type. - /// Port for endpoint. - /// Additional properties to set on the endpoint. - /// Status of endpoint. - /// A new instance for mocking. - public static MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, int? port = null, IDictionary properties = null, string status = null) - { - properties ??= new Dictionary(); - return new MachineLearningJobService(endpoint, errorMessage, jobServiceType, port, properties, status); + return new MachineLearningModelContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); } - /// Initializes a new instance of MachineLearningModelContainerData. + /// Initializes a new instance of MachineLearningModelVersionData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningModelContainerData MachineLearningModelContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningModelContainerProperties properties = null) + /// A new instance for mocking. + public static MachineLearningModelVersionData MachineLearningModelVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningModelVersionProperties properties = null) { - return new MachineLearningModelContainerData(id, name, resourceType, systemData, properties); + return new MachineLearningModelVersionData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of MachineLearningModelContainerProperties. + /// Initializes a new instance of MachineLearningModelVersionProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// A new instance for mocking. - public static MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null) + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + /// Mapping of model flavors to their properties. + /// Intellectual Property details. Used if model is an Intellectual Property. + /// Name of the training job which produced this model. + /// The storage format for this entity. Used for NCD. + /// The URI path to the model contents. + /// Provisioning state for the model version. + /// Stage in the model lifecycle assigned to this model. + /// A new instance for mocking. + public static MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IDictionary flavors = null, IntellectualProperty intellectualProperty = null, string jobName = null, string modelType = null, Uri modelUri = null, AssetProvisioningState? provisioningState = null, string stage = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); + flavors ??= new Dictionary(); - return new MachineLearningModelContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion); + return new MachineLearningModelVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, flavors, intellectualProperty, jobName, modelType, modelUri, provisioningState, stage); } - /// Initializes a new instance of MachineLearningModelVersionData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningModelVersionData MachineLearningModelVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningModelVersionProperties properties = null) + /// Initializes a new instance of PackageResponse. + /// + /// Base environment to start with. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// Build id of the image build operation. + /// Build state of the image build operation. + /// Collection of environment variables. + /// + /// Inferencing server configurations. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Collection of inputs. + /// Log url of the image build operation. + /// Model configuration including the mount mode. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Asset ID of the target environment created by package operation. + /// A new instance for mocking. + public static PackageResponse PackageResponse(BaseEnvironmentSource baseEnvironmentSource = null, string buildId = null, PackageBuildState? buildState = null, IReadOnlyDictionary environmentVariables = null, InferencingServer inferencingServer = null, IEnumerable inputs = null, Uri logUri = null, ModelConfiguration modelConfiguration = null, IReadOnlyDictionary tags = null, string targetEnvironmentId = null) { - return new MachineLearningModelVersionData(id, name, resourceType, systemData, properties); + environmentVariables ??= new Dictionary(); + inputs ??= new List(); + tags ??= new Dictionary(); + + return new PackageResponse(baseEnvironmentSource, buildId, buildState, environmentVariables, inferencingServer, inputs?.ToList(), logUri, modelConfiguration, tags, targetEnvironmentId); } - /// Initializes a new instance of MachineLearningOnlineEndpointData. + /// Initializes a new instance of MachineLearningBatchEndpointData. /// The id. /// The name. /// The resourceType. @@ -939,15 +571,15 @@ public static MachineLearningModelVersionData MachineLearningModelVersionData(Re /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. /// [Required] Additional attributes of the entity. /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningOnlineEndpointData MachineLearningOnlineEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningOnlineEndpointProperties properties = null, MachineLearningSku sku = null) + /// A new instance for mocking. + public static MachineLearningBatchEndpointData MachineLearningBatchEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningBatchEndpointProperties properties = null, MachineLearningSku sku = null) { tags ??= new Dictionary(); - return new MachineLearningOnlineEndpointData(id, name, resourceType, systemData, tags, location, identity, kind, properties, sku); + return new MachineLearningBatchEndpointData(id, name, resourceType, systemData, tags, location, identity, kind, properties, sku); } - /// Initializes a new instance of MachineLearningOnlineEndpointProperties. + /// Initializes a new instance of MachineLearningBatchEndpointProperties. /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. /// Description of the inference endpoint. /// @@ -957,23 +589,35 @@ public static MachineLearningOnlineEndpointData MachineLearningOnlineEndpointDat /// Property dictionary. Properties can be added, but not removed or altered. /// Endpoint URI. /// Endpoint Swagger URI. - /// - /// ARM resource ID of the compute if it exists. - /// optional - /// + /// Default values for Batch Endpoint. /// Provisioning state for the endpoint. - /// Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. - /// Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. - /// A new instance for mocking. - public static MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties(MachineLearningEndpointAuthMode authMode = default, string description = null, MachineLearningEndpointAuthKeys keys = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, string compute = null, MachineLearningEndpointProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccess = null, IDictionary traffic = null) + /// A new instance for mocking. + public static MachineLearningBatchEndpointProperties MachineLearningBatchEndpointProperties(MachineLearningEndpointAuthMode authMode = default, string description = null, MachineLearningEndpointAuthKeys keys = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, string defaultsDeploymentName = null, MachineLearningEndpointProvisioningState? provisioningState = null) { properties ??= new Dictionary(); - traffic ??= new Dictionary(); - return new MachineLearningOnlineEndpointProperties(authMode, description, keys, properties, scoringUri, swaggerUri, compute, provisioningState, publicNetworkAccess, traffic); + return new MachineLearningBatchEndpointProperties(authMode, description, keys, properties, scoringUri, swaggerUri, defaultsDeploymentName != null ? new BatchEndpointDefaults(defaultsDeploymentName) : null, provisioningState); } - /// Initializes a new instance of MachineLearningOnlineDeploymentData. + /// Initializes a new instance of MachineLearningEndpointProperties. + /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. + /// Description of the inference endpoint. + /// + /// EndpointAuthKeys to set initially on an Endpoint. + /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. + /// + /// Property dictionary. Properties can be added, but not removed or altered. + /// Endpoint URI. + /// Endpoint Swagger URI. + /// A new instance for mocking. + public static MachineLearningEndpointProperties MachineLearningEndpointProperties(MachineLearningEndpointAuthMode authMode = default, string description = null, MachineLearningEndpointAuthKeys keys = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null) + { + properties ??= new Dictionary(); + + return new MachineLearningEndpointProperties(authMode, description, keys, properties, scoringUri, swaggerUri); + } + + /// Initializes a new instance of MachineLearningBatchDeploymentData. /// The id. /// The name. /// The resourceType. @@ -982,148 +626,1002 @@ public static MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpo /// The location. /// Managed service identity (system assigned and/or user assigned identities). /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// [Required] Additional attributes of the entity. + /// Sku details required for ARM contract for Autoscaling. + /// A new instance for mocking. + public static MachineLearningBatchDeploymentData MachineLearningBatchDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningBatchDeploymentProperties properties = null, MachineLearningSku sku = null) + { + tags ??= new Dictionary(); + + return new MachineLearningBatchDeploymentData(id, name, resourceType, systemData, tags, location, identity, kind, properties, sku); + } + + /// Initializes a new instance of MachineLearningBatchDeploymentProperties. + /// Code configuration for the endpoint deployment. + /// Description of the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. + /// Environment variables configuration for the deployment. + /// Property dictionary. Properties can be added, but not removed or altered. + /// Compute target for batch inference operation. + /// + /// Properties relevant to different deployment types. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// + /// 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. + /// + /// Logging level for batch inference operation. + /// Indicates maximum number of parallelism per instance. + /// + /// 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. + /// + /// + /// Reference to the model asset for the endpoint deployment. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Indicates how the output will be organized. + /// Customized output file name for append_row output action. + /// Provisioning state for the endpoint deployment. + /// + /// Indicates compute configuration for the job. + /// If not provided, will default to the defaults defined in ResourceConfiguration. + /// + /// + /// Retry Settings for the batch inference operation. + /// If not provided, will default to the defaults defined in BatchRetrySettings. + /// + /// A new instance for mocking. + public static MachineLearningBatchDeploymentProperties MachineLearningBatchDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary properties = null, string compute = null, BatchDeploymentConfiguration deploymentConfiguration = null, int? errorThreshold = null, MachineLearningBatchLoggingLevel? loggingLevel = null, int? maxConcurrencyPerInstance = null, long? miniBatchSize = null, MachineLearningAssetReferenceBase model = null, MachineLearningBatchOutputAction? outputAction = null, string outputFileName = null, MachineLearningDeploymentProvisioningState? provisioningState = null, MachineLearningDeploymentResourceConfiguration resources = null, MachineLearningBatchRetrySettings retrySettings = null) + { + environmentVariables ??= new Dictionary(); + properties ??= new Dictionary(); + + return new MachineLearningBatchDeploymentProperties(codeConfiguration, description, environmentId, environmentVariables, properties, compute, deploymentConfiguration, errorThreshold, loggingLevel, maxConcurrencyPerInstance, miniBatchSize, model, outputAction, outputFileName, provisioningState, resources, retrySettings); + } + + /// Initializes a new instance of MachineLearningDatastoreData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. /// /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . /// - /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningOnlineDeploymentData MachineLearningOnlineDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningOnlineDeploymentProperties properties = null, MachineLearningSku sku = null) + /// A new instance for mocking. + public static MachineLearningDatastoreData MachineLearningDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDatastoreProperties properties = null) + { + return new MachineLearningDatastoreData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MachineLearningDatastoreProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// [Required] Storage type backing the datastore. + /// Intellectual Property details. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// A new instance for mocking. + public static MachineLearningDatastoreProperties MachineLearningDatastoreProperties(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, string datastoreType = "Unknown", IntellectualProperty intellectualProperty = null, bool? isDefault = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new MachineLearningDatastoreProperties(description, properties, tags, credentials, datastoreType, intellectualProperty, isDefault); + } + + /// Initializes a new instance of FeaturesetContainerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static FeaturesetContainerData FeaturesetContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturesetContainerProperties properties = null) + { + return new FeaturesetContainerData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of FeaturesetContainerProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the featureset container. + /// A new instance for mocking. + public static FeaturesetContainerProperties FeaturesetContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new FeaturesetContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); + } + + /// Initializes a new instance of FeatureData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static FeatureData FeatureData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeatureProperties properties = null) + { + return new FeatureData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of FeaturesetVersionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static FeaturesetVersionData FeaturesetVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturesetVersionProperties properties = null) + { + return new FeaturesetVersionData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of FeaturesetVersionProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + /// Specifies list of entities. + /// Specifies the materialization settings. + /// Provisioning state for the featureset version container. + /// Specifies the feature spec details. + /// Specifies the asset stage. + /// A new instance for mocking. + public static FeaturesetVersionProperties FeaturesetVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable entities = null, MaterializationSettings materializationSettings = null, AssetProvisioningState? provisioningState = null, string specificationPath = null, string stage = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + entities ??= new List(); + + return new FeaturesetVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, entities?.ToList(), materializationSettings, provisioningState, specificationPath != null ? new FeaturesetSpecification(specificationPath) : null, stage); + } + + /// Initializes a new instance of FeaturesetJob. + /// Specifies the created date. + /// Specifies the display name. + /// Specifies the duration. + /// Specifies the experiment id. + /// Specifies the backfill feature window to be materialized. + /// Specifies the job id. + /// Specifies the job status. + /// Specifies the tags if any. + /// Specifies the feature store job type. + /// A new instance for mocking. + public static FeaturesetJob FeaturesetJob(DateTimeOffset? createdOn = null, string displayName = null, TimeSpan? duration = null, string experimentId = null, FeatureWindow featureWindow = null, string jobId = null, MachineLearningJobStatus? status = null, IReadOnlyDictionary tags = null, FeaturestoreJobType? featurestoreJobType = null) + { + tags ??= new Dictionary(); + + return new FeaturesetJob(createdOn, displayName, duration, experimentId, featureWindow, jobId, status, tags, featurestoreJobType); + } + + /// Initializes a new instance of FeaturestoreEntityContainerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static FeaturestoreEntityContainerData FeaturestoreEntityContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturestoreEntityContainerProperties properties = null) + { + return new FeaturestoreEntityContainerData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of FeaturestoreEntityContainerProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the featurestore entity container. + /// A new instance for mocking. + public static FeaturestoreEntityContainerProperties FeaturestoreEntityContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new FeaturestoreEntityContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); + } + + /// Initializes a new instance of FeaturestoreEntityVersionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static FeaturestoreEntityVersionData FeaturestoreEntityVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturestoreEntityVersionProperties properties = null) + { + return new FeaturestoreEntityVersionData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of FeaturestoreEntityVersionProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + /// Specifies index columns. + /// Provisioning state for the featurestore entity version. + /// Specifies the asset stage. + /// A new instance for mocking. + public static FeaturestoreEntityVersionProperties FeaturestoreEntityVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable indexColumns = null, AssetProvisioningState? provisioningState = null, string stage = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + indexColumns ??= new List(); + + return new FeaturestoreEntityVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, indexColumns?.ToList(), provisioningState, stage); + } + + /// Initializes a new instance of MachineLearningJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// [Required] Additional attributes of the entity. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// A new instance for mocking. + public static MachineLearningJobData MachineLearningJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningJobProperties properties = null) + { + return new MachineLearningJobData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MachineLearningJobProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// ARM resource ID of the component resource. + /// ARM resource ID of the compute resource. + /// Display name of job. + /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. + /// + /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + /// Defaults to AmlToken if null. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Is the asset archived?. + /// [Required] Specifies the type of job. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. + /// + /// List of JobEndpoints. + /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + /// + /// Status of the job. + /// A new instance for mocking. + public static MachineLearningJobProperties MachineLearningJobProperties(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, string jobType = "Unknown", NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + secretsConfiguration ??= new Dictionary(); + services ??= new Dictionary(); + + return new MachineLearningJobProperties(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status); + } + + /// Initializes a new instance of MachineLearningJobService. + /// Url for endpoint. + /// Any error in the service. + /// Endpoint type. + /// + /// 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. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// Port for endpoint set by user. + /// Additional properties to set on the endpoint. + /// Status of endpoint. + /// A new instance for mocking. + public static MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, Nodes nodes = null, int? port = null, IDictionary properties = null, string status = null) + { + properties ??= new Dictionary(); + + return new MachineLearningJobService(endpoint, errorMessage, jobServiceType, nodes, port, properties, status); + } + + /// Initializes a new instance of LabelingJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static LabelingJobData LabelingJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, LabelingJobProperties properties = null) + { + return new LabelingJobData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of LabelingJobProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// ARM resource ID of the component resource. + /// ARM resource ID of the compute resource. + /// Display name of job. + /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. + /// + /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + /// Defaults to AmlToken if null. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Is the asset archived?. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. + /// + /// List of JobEndpoints. + /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + /// + /// Status of the job. + /// Created time of the job in UTC timezone. + /// Configuration of data used in the job. + /// Labeling instructions of the job. + /// Label categories of the job. + /// + /// Media type specific properties in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// Configuration of MLAssist feature in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// Progress metrics of the job. + /// Internal id of the job(Previously called project). + /// Specifies the labeling job provisioning state. + /// Status messages of the job. + /// A new instance for mocking. + public static LabelingJobProperties LabelingJobProperties(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, DateTimeOffset? createdOn = null, LabelingDataConfiguration dataConfiguration = null, Uri jobInstructionsUri = null, IDictionary labelCategories = null, LabelingJobMediaProperties labelingJobMediaProperties = null, MLAssistConfiguration mlAssistConfiguration = null, ProgressMetrics progressMetrics = null, Guid? projectId = null, JobProvisioningState? provisioningState = null, IEnumerable statusMessages = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + secretsConfiguration ??= new Dictionary(); + services ??= new Dictionary(); + labelCategories ??= new Dictionary(); + statusMessages ??= new List(); + + return new LabelingJobProperties(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Labeling, notificationSetting, secretsConfiguration, services, status, createdOn, dataConfiguration, jobInstructionsUri != null ? new LabelingJobInstructions(jobInstructionsUri) : null, labelCategories, labelingJobMediaProperties, mlAssistConfiguration, progressMetrics, projectId, provisioningState, statusMessages?.ToList()); + } + + /// Initializes a new instance of ProgressMetrics. + /// The completed datapoint count. + /// The time of last successful incremental data refresh in UTC. + /// The skipped datapoint count. + /// The total datapoint count. + /// A new instance for mocking. + public static ProgressMetrics ProgressMetrics(long? completedDatapointCount = null, DateTimeOffset? incrementalDataLastRefreshOn = null, long? skippedDatapointCount = null, long? totalDatapointCount = null) + { + return new ProgressMetrics(completedDatapointCount, incrementalDataLastRefreshOn, skippedDatapointCount, totalDatapointCount); + } + + /// Initializes a new instance of StatusMessage. + /// Service-defined message code. + /// Time in UTC at which the message was created. + /// Severity level of message. + /// A human-readable representation of the message code. + /// A new instance for mocking. + public static StatusMessage StatusMessage(string code = null, DateTimeOffset? createdOn = null, StatusMessageLevel? level = null, string message = null) + { + return new StatusMessage(code, createdOn, level, message); + } + + /// Initializes a new instance of ExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// [Required] The format of exported labels, also as the discriminator. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + /// A new instance for mocking. + public static ExportSummary ExportSummary(DateTimeOffset? endOn = null, long? exportedRowCount = null, string format = "Unknown", string labelingJobId = null, DateTimeOffset? startOn = null) + { + return new UnknownExportSummary(endOn, exportedRowCount, format, labelingJobId, startOn); + } + + /// Initializes a new instance of MachineLearningOnlineEndpointData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Managed service identity (system assigned and/or user assigned identities). + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// [Required] Additional attributes of the entity. + /// Sku details required for ARM contract for Autoscaling. + /// A new instance for mocking. + public static MachineLearningOnlineEndpointData MachineLearningOnlineEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningOnlineEndpointProperties properties = null, MachineLearningSku sku = null) + { + tags ??= new Dictionary(); + + return new MachineLearningOnlineEndpointData(id, name, resourceType, systemData, tags, location, identity, kind, properties, sku); + } + + /// Initializes a new instance of MachineLearningOnlineEndpointProperties. + /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. + /// Description of the inference endpoint. + /// + /// EndpointAuthKeys to set initially on an Endpoint. + /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. + /// + /// Property dictionary. Properties can be added, but not removed or altered. + /// Endpoint URI. + /// Endpoint Swagger URI. + /// + /// ARM resource ID of the compute if it exists. + /// optional + /// + /// Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50. + /// Provisioning state for the endpoint. + /// Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. + /// Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. + /// A new instance for mocking. + public static MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties(MachineLearningEndpointAuthMode authMode = default, string description = null, MachineLearningEndpointAuthKeys keys = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, string compute = null, IDictionary mirrorTraffic = null, MachineLearningEndpointProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccess = null, IDictionary traffic = null) + { + properties ??= new Dictionary(); + mirrorTraffic ??= new Dictionary(); + traffic ??= new Dictionary(); + + return new MachineLearningOnlineEndpointProperties(authMode, description, keys, properties, scoringUri, swaggerUri, compute, mirrorTraffic, provisioningState, publicNetworkAccess, traffic); + } + + /// Initializes a new instance of MachineLearningOnlineDeploymentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Managed service identity (system assigned and/or user assigned identities). + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// + /// [Required] Additional attributes of the entity. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// Sku details required for ARM contract for Autoscaling. + /// A new instance for mocking. + public static MachineLearningOnlineDeploymentData MachineLearningOnlineDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningOnlineDeploymentProperties properties = null, MachineLearningSku sku = null) + { + tags ??= new Dictionary(); + + return new MachineLearningOnlineDeploymentData(id, name, resourceType, systemData, tags, location, identity, kind, properties, sku); + } + + /// Initializes a new instance of MachineLearningOnlineDeploymentProperties. + /// Code configuration for the endpoint deployment. + /// Description of the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. + /// Environment variables configuration for the deployment. + /// Property dictionary. Properties can be added, but not removed or altered. + /// If true, enables Application Insights logging. + /// The mdc configuration, we disable mdc when it's null. + /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. + /// [Required] The compute type of the endpoint. + /// Compute instance type. + /// Liveness probe monitors the health of the container regularly. + /// The URI path to the model. + /// The path to mount the model in custom container. + /// Provisioning state for the endpoint deployment. + /// Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. + /// Request settings for the deployment. + /// + /// Scale settings for the deployment. + /// If it is null or not provided, + /// it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment + /// and to DefaultScaleSettings for ManagedOnlineDeployment. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static MachineLearningOnlineDeploymentProperties MachineLearningOnlineDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary properties = null, bool? appInsightsEnabled = null, DataCollector dataCollector = null, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = null, string endpointComputeType = "Unknown", string instanceType = null, MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, MachineLearningDeploymentProvisioningState? provisioningState = null, MachineLearningProbeSettings readinessProbe = null, MachineLearningOnlineRequestSettings requestSettings = null, MachineLearningOnlineScaleSettings scaleSettings = null) + { + environmentVariables ??= new Dictionary(); + properties ??= new Dictionary(); + + return new MachineLearningOnlineDeploymentProperties(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, dataCollector, egressPublicNetworkAccess, endpointComputeType, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings); + } + + /// Initializes a new instance of MachineLearningDeploymentLogs. + /// The retrieved online deployment logs. + /// A new instance for mocking. + public static MachineLearningDeploymentLogs MachineLearningDeploymentLogs(string content = null) + { + return new MachineLearningDeploymentLogs(content); + } + + /// Initializes a new instance of MachineLearningSkuDetail. + /// Gets or sets the Sku Capacity. + /// The resource type name. + /// Gets or sets the Sku. + /// A new instance for mocking. + public static MachineLearningSkuDetail MachineLearningSkuDetail(MachineLearningSkuCapacity capacity = null, string resourceType = null, MachineLearningSkuSetting sku = null) + { + return new MachineLearningSkuDetail(capacity, resourceType, sku); + } + + /// Initializes a new instance of MachineLearningSkuCapacity. + /// Gets or sets the default capacity. + /// Gets or sets the maximum. + /// Gets or sets the minimum. + /// Gets or sets the type of the scale. + /// A new instance for mocking. + public static MachineLearningSkuCapacity MachineLearningSkuCapacity(int? @default = null, int? maximum = null, int? minimum = null, MachineLearningSkuScaleType? scaleType = null) + { + return new MachineLearningSkuCapacity(@default, maximum, minimum, scaleType); + } + + /// Initializes a new instance of MachineLearningSkuSetting. + /// [Required] The name of the SKU. Ex - P3. It is typically a letter+number code. + /// 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. + /// A new instance for mocking. + public static MachineLearningSkuSetting MachineLearningSkuSetting(string name = null, MachineLearningSkuTier? tier = null) + { + return new MachineLearningSkuSetting(name, tier); + } + + /// Initializes a new instance of MachineLearningEndpointAuthToken. + /// Access token for endpoint authentication. + /// Access token expiry time (UTC). + /// Refresh access token after time (UTC). + /// Access token type. + /// A new instance for mocking. + public static MachineLearningEndpointAuthToken MachineLearningEndpointAuthToken(string accessToken = null, DateTimeOffset? expireOn = null, DateTimeOffset? refreshOn = null, string tokenType = null) + { + return new MachineLearningEndpointAuthToken(accessToken, expireOn, refreshOn, tokenType); + } + + /// Initializes a new instance of MachineLearningScheduleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningScheduleData MachineLearningScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningScheduleProperties properties = null) + { + return new MachineLearningScheduleData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MachineLearningScheduleProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// + /// [Required] Specifies the action of the schedule + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Display name of schedule. + /// Is the schedule enabled?. + /// Provisioning state for the schedule. + /// + /// [Required] Specifies the trigger details + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static MachineLearningScheduleProperties MachineLearningScheduleProperties(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningScheduleAction action = null, string displayName = null, bool? isEnabled = null, MachineLearningScheduleProvisioningStatus? provisioningState = null, MachineLearningTriggerBase trigger = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new MachineLearningScheduleProperties(description, properties, tags, action, displayName, isEnabled, provisioningState, trigger); + } + + /// Initializes a new instance of RegistryData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Managed service identity (system assigned and/or user assigned identities). + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// Sku details required for ARM contract for Autoscaling. + /// Discovery URL for the Registry. + /// IntellectualPropertyPublisher for the registry. + /// ResourceId of the managed RG if the registry has system created resources. + /// MLFlow Registry URI for the Registry. + /// Private endpoint connections info used for pending connections in private link portal. + /// + /// Is the Registry accessible from the internet? + /// Possible values: "Enabled" or "Disabled" + /// + /// Details of each region the registry is in. + /// A new instance for mocking. + public static RegistryData RegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, Uri mlFlowRegistryUri = null, IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + regionDetails ??= new List(); + + return new RegistryData(id, name, resourceType, systemData, tags, location, identity, kind, sku, discoveryUri, intellectualPropertyPublisher, managedResourceId != null ? new ArmResourceId(managedResourceId) : null, mlFlowRegistryUri, privateEndpointConnections?.ToList(), publicNetworkAccess, regionDetails?.ToList()); + } + + /// Initializes a new instance of PrivateEndpointResource. + /// The ARM identifier for Private Endpoint. + /// The subnetId that the private endpoint is connected to. + /// A new instance for mocking. + public static PrivateEndpointResource PrivateEndpointResource(ResourceIdentifier id = null, string subnetArmId = null) + { + return new PrivateEndpointResource(id, subnetArmId); + } + + /// Initializes a new instance of MachineLearningPrivateEndpoint. + /// The ARM identifier for Private Endpoint. + /// A new instance for mocking. + public static MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(ResourceIdentifier id = null) + { + return new MachineLearningPrivateEndpoint(id); + } + + /// Initializes a new instance of MachineLearningUserFeature. + /// Specifies the feature ID. + /// Specifies the feature name. + /// Describes the feature for user experience. + /// A new instance for mocking. + public static MachineLearningUserFeature MachineLearningUserFeature(string id = null, string displayName = null, string description = null) + { + return new MachineLearningUserFeature(id, displayName, description); + } + + /// Initializes a new instance of MachineLearningWorkspaceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Managed service identity (system assigned and/or user assigned identities). + /// + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. + /// The flag to indicate whether to allow public access when behind VNet. + /// ARM id of the application insights associated with this workspace. + /// + /// + /// ARM id of the container registry associated with this workspace. + /// The description of this workspace. + /// Url for the discovery service to identify regional endpoints for machine learning experimentation services. + /// + /// + /// + /// Settings for feature store type workspace. + /// The friendly name for this workspace. This name in mutable. + /// The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service. + /// + /// The compute name for image build. + /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. + /// + /// Managed Network settings for a machine learning workspace. + /// The URI associated with this workspace that machine learning flow must point at to set up tracking. + /// The notebook info of Azure ML workspace. + /// The user assigned identity resource id that represents the workspace identity. + /// The list of private endpoint connections in the workspace. + /// Count of private connections in the workspace. + /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + /// Whether requests from Public Network are allowed. + /// The service managed resource settings. + /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. + /// The list of shared private link resources in this workspace. + /// Retention time in days after workspace get soft deleted. + /// ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created. + /// + /// If the storage associated with the workspace has hierarchical namespace(HNS) enabled. + /// The auth mode used for accessing the system datastores of the workspace. + /// The tenant id associated with this workspace. + /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. + /// WorkspaceHub's configuration object. + /// The immutable id associated with this workspace. + /// A new instance for mocking. + public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = null, string applicationInsights = null, IEnumerable associatedWorkspaces = null, IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, Uri discoveryUri = null, bool? enableDataIsolation = null, MachineLearningEncryptionSetting encryption = null, IEnumerable existingWorkspaces = null, FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = null, string hubResourceId = null, string imageBuildCompute = null, string keyVault = null, IEnumerable keyVaults = null, ManagedNetworkSettings managedNetwork = null, Uri mlFlowTrackingUri = null, MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, IEnumerable privateEndpointConnections = null, int? privateLinkCount = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccess = null, int? cosmosDbCollectionsThroughput = null, string serviceProvisionedResourceGroup = null, IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = null, string storageAccount = null, IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = null, string systemDatastoresAuthMode = null, Guid? tenantId = null, bool? isV1LegacyMode = null, WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) + { + tags ??= new Dictionary(); + associatedWorkspaces ??= new List(); + containerRegistries ??= new List(); + existingWorkspaces ??= new List(); + keyVaults ??= new List(); + privateEndpointConnections ??= new List(); + sharedPrivateLinkResources ??= new List(); + storageAccounts ??= new List(); + + return new MachineLearningWorkspaceData(id, name, resourceType, systemData, tags, location, identity, kind, sku, allowPublicAccessWhenBehindVnet, applicationInsights, associatedWorkspaces?.ToList(), containerRegistries?.ToList(), containerRegistry, description, discoveryUri, enableDataIsolation, encryption, existingWorkspaces?.ToList(), featureStoreSettings, friendlyName, isHbiWorkspace, hubResourceId, imageBuildCompute, keyVault, keyVaults?.ToList(), managedNetwork, mlFlowTrackingUri, notebookInfo, primaryUserAssignedIdentity, privateEndpointConnections?.ToList(), privateLinkCount, provisioningState, publicNetworkAccess, cosmosDbCollectionsThroughput != null ? new ServiceManagedResourcesSettings(new CosmosDbSettings(cosmosDbCollectionsThroughput)) : null, serviceProvisionedResourceGroup, sharedPrivateLinkResources?.ToList(), softDeleteRetentionInDays, storageAccount, storageAccounts?.ToList(), isStorageHnsEnabled, systemDatastoresAuthMode, tenantId, isV1LegacyMode, workspaceHubConfig, workspaceId); + } + + /// Initializes a new instance of ManagedNetworkSettings. + /// Isolation mode for the managed network of a machine learning workspace. + /// + /// + /// Dictionary of <OutboundRule> + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Status of the Provisioning for the managed network of a machine learning workspace. + /// A new instance for mocking. + public static ManagedNetworkSettings ManagedNetworkSettings(IsolationMode? isolationMode = null, string networkId = null, IDictionary outboundRules = null, ManagedNetworkProvisionStatus status = null) + { + outboundRules ??= new Dictionary(); + + return new ManagedNetworkSettings(isolationMode, networkId, outboundRules, status); + } + + /// Initializes a new instance of MachineLearningNotebookResourceInfo. + /// + /// + /// The error that occurs when preparing notebook. + /// the data plane resourceId that used to initialize notebook component. + /// A new instance for mocking. + public static MachineLearningNotebookResourceInfo MachineLearningNotebookResourceInfo(string fqdn = null, bool? isPrivateLinkEnabled = null, MachineLearningNotebookPreparationError notebookPreparationError = null, string resourceId = null) + { + return new MachineLearningNotebookResourceInfo(fqdn, isPrivateLinkEnabled, notebookPreparationError, resourceId); + } + + /// Initializes a new instance of MachineLearningNotebookPreparationError. + /// + /// + /// A new instance for mocking. + public static MachineLearningNotebookPreparationError MachineLearningNotebookPreparationError(string errorMessage = null, int? statusCode = null) + { + return new MachineLearningNotebookPreparationError(errorMessage, statusCode); + } + + /// Initializes a new instance of MachineLearningPrivateEndpointConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Managed service identity (system assigned and/or user assigned identities). + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. + /// The Private Endpoint resource. + /// The connection state. + /// The current provisioning state. + /// A new instance for mocking. + public static MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, WorkspacePrivateEndpointResource privateEndpoint = null, MachineLearningPrivateLinkServiceConnectionState connectionState = null, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = null) + { + tags ??= new Dictionary(); + + return new MachineLearningPrivateEndpointConnectionData(id, name, resourceType, systemData, tags, location, identity, sku, privateEndpoint, connectionState, provisioningState); + } + + /// Initializes a new instance of WorkspacePrivateEndpointResource. + /// e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}. + /// The subnetId that the private endpoint is connected to. + /// A new instance for mocking. + public static WorkspacePrivateEndpointResource WorkspacePrivateEndpointResource(string id = null, string subnetArmId = null) + { + return new WorkspacePrivateEndpointResource(id, subnetArmId); + } + + /// Initializes a new instance of MachineLearningWorkspaceConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , and . + /// + /// A new instance for mocking. + public static MachineLearningWorkspaceConnectionData MachineLearningWorkspaceConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningWorkspaceConnectionProperties properties = null) + { + return new MachineLearningWorkspaceConnectionData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MachineLearningWorkspaceDiagnoseResult. + /// + /// A new instance for mocking. + public static MachineLearningWorkspaceDiagnoseResult MachineLearningWorkspaceDiagnoseResult(MachineLearningDiagnoseResultValue value = null) + { + return new MachineLearningWorkspaceDiagnoseResult(value); + } + + /// Initializes a new instance of MachineLearningDiagnoseResultValue. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// A new instance for mocking. + public static MachineLearningDiagnoseResultValue MachineLearningDiagnoseResultValue(IEnumerable userDefinedRouteResults = null, IEnumerable networkSecurityRuleResults = null, IEnumerable resourceLockResults = null, IEnumerable dnsResolutionResults = null, IEnumerable storageAccountResults = null, IEnumerable keyVaultResults = null, IEnumerable containerRegistryResults = null, IEnumerable applicationInsightsResults = null, IEnumerable otherResults = null) + { + userDefinedRouteResults ??= new List(); + networkSecurityRuleResults ??= new List(); + resourceLockResults ??= new List(); + dnsResolutionResults ??= new List(); + storageAccountResults ??= new List(); + keyVaultResults ??= new List(); + containerRegistryResults ??= new List(); + applicationInsightsResults ??= new List(); + otherResults ??= new List(); + + return new MachineLearningDiagnoseResultValue(userDefinedRouteResults?.ToList(), networkSecurityRuleResults?.ToList(), resourceLockResults?.ToList(), dnsResolutionResults?.ToList(), storageAccountResults?.ToList(), keyVaultResults?.ToList(), containerRegistryResults?.ToList(), applicationInsightsResults?.ToList(), otherResults?.ToList()); + } + + /// Initializes a new instance of MachineLearningDiagnoseResult. + /// Code for workspace setup error. + /// Level of workspace setup error. + /// Message of workspace setup error. + /// A new instance for mocking. + public static MachineLearningDiagnoseResult MachineLearningDiagnoseResult(string code = null, MachineLearningDiagnoseResultLevel? level = null, string message = null) + { + return new MachineLearningDiagnoseResult(code, level, message); + } + + /// Initializes a new instance of MachineLearningWorkspaceGetKeysResult. + /// The access key of the workspace app insights. + /// + /// + /// The arm Id key of the workspace storage. + /// The access key of the workspace storage. + /// A new instance for mocking. + public static MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey = null, MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null, string userStorageArmId = null, string userStorageKey = null) + { + return new MachineLearningWorkspaceGetKeysResult(appInsightsInstrumentationKey, containerRegistryCredentials, notebookAccessKeys, userStorageArmId, userStorageKey); + } + + /// Initializes a new instance of MachineLearningContainerRegistryCredentials. + /// The location of the workspace ACR. + /// + /// The username of the workspace ACR. + /// A new instance for mocking. + public static MachineLearningContainerRegistryCredentials MachineLearningContainerRegistryCredentials(AzureLocation? location = null, IEnumerable passwords = null, string username = null) + { + passwords ??= new List(); + + return new MachineLearningContainerRegistryCredentials(location, passwords?.ToList(), username); + } + + /// Initializes a new instance of MachineLearningPasswordDetail. + /// + /// + /// A new instance for mocking. + public static MachineLearningPasswordDetail MachineLearningPasswordDetail(string name = null, string value = null) { - tags ??= new Dictionary(); - - return new MachineLearningOnlineDeploymentData(id, name, resourceType, systemData, tags, location, identity, kind, properties, sku); + return new MachineLearningPasswordDetail(name, value); } - /// Initializes a new instance of MachineLearningOnlineDeploymentProperties. - /// Code configuration for the endpoint deployment. - /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. - /// Environment variables configuration for the deployment. - /// Property dictionary. Properties can be added, but not removed or altered. - /// If true, enables Application Insights logging. - /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. - /// [Required] The compute type of the endpoint. - /// Compute instance type. - /// Liveness probe monitors the health of the container regularly. - /// The URI path to the model. - /// The path to mount the model in custom container. - /// Provisioning state for the endpoint deployment. - /// Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. - /// Request settings for the deployment. - /// - /// Scale settings for the deployment. - /// If it is null or not provided, - /// it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment - /// and to DefaultScaleSettings for ManagedOnlineDeployment. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// A new instance for mocking. - public static MachineLearningOnlineDeploymentProperties MachineLearningOnlineDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary properties = null, bool? appInsightsEnabled = null, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = null, string endpointComputeType = "Unknown", string instanceType = null, MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, MachineLearningDeploymentProvisioningState? provisioningState = null, MachineLearningProbeSettings readinessProbe = null, MachineLearningOnlineRequestSettings requestSettings = null, MachineLearningOnlineScaleSettings scaleSettings = null) + /// Initializes a new instance of MachineLearningWorkspaceGetNotebookKeysResult. + /// The primary access key of the Notebook. + /// The secondary access key of the Notebook. + /// A new instance for mocking. + public static MachineLearningWorkspaceGetNotebookKeysResult MachineLearningWorkspaceGetNotebookKeysResult(string primaryAccessKey = null, string secondaryAccessKey = null) { - environmentVariables ??= new Dictionary(); - properties ??= new Dictionary(); + return new MachineLearningWorkspaceGetNotebookKeysResult(primaryAccessKey, secondaryAccessKey); + } - return new MachineLearningOnlineDeploymentProperties(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, egressPublicNetworkAccess, endpointComputeType, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings); + /// Initializes a new instance of MachineLearningWorkspaceNotebookAccessTokenResult. + /// + /// + /// + /// + /// + /// + /// + /// + /// A new instance for mocking. + public static MachineLearningWorkspaceNotebookAccessTokenResult MachineLearningWorkspaceNotebookAccessTokenResult(string accessToken = null, int? expiresIn = null, string hostName = null, string notebookResourceId = null, string publicDns = null, string refreshToken = null, string scope = null, string tokenType = null) + { + return new MachineLearningWorkspaceNotebookAccessTokenResult(accessToken, expiresIn, hostName, notebookResourceId, publicDns, refreshToken, scope, tokenType); } - /// Initializes a new instance of MachineLearningDeploymentLogs. - /// The retrieved online deployment logs. - /// A new instance for mocking. - public static MachineLearningDeploymentLogs MachineLearningDeploymentLogs(string content = null) + /// Initializes a new instance of MachineLearningWorkspaceGetStorageAccountKeysResult. + /// The access key of the storage. + /// A new instance for mocking. + public static MachineLearningWorkspaceGetStorageAccountKeysResult MachineLearningWorkspaceGetStorageAccountKeysResult(string userStorageKey = null) { - return new MachineLearningDeploymentLogs(content); + return new MachineLearningWorkspaceGetStorageAccountKeysResult(userStorageKey); } - /// Initializes a new instance of MachineLearningSkuDetail. - /// Gets or sets the Sku Capacity. - /// The resource type name. - /// Gets or sets the Sku. - /// A new instance for mocking. - public static MachineLearningSkuDetail MachineLearningSkuDetail(MachineLearningSkuCapacity capacity = null, string resourceType = null, MachineLearningSkuSetting sku = null) + /// Initializes a new instance of FqdnEndpointsPropertyBag. + /// + /// A new instance for mocking. + public static FqdnEndpointsPropertyBag FqdnEndpointsPropertyBag(MachineLearningFqdnEndpoints properties = null) { - return new MachineLearningSkuDetail(capacity, resourceType, sku); + return new FqdnEndpointsPropertyBag(properties); } - /// Initializes a new instance of MachineLearningSkuCapacity. - /// Gets or sets the default capacity. - /// Gets or sets the maximum. - /// Gets or sets the minimum. - /// Gets or sets the type of the scale. - /// A new instance for mocking. - public static MachineLearningSkuCapacity MachineLearningSkuCapacity(int? @default = null, int? maximum = null, int? minimum = null, MachineLearningSkuScaleType? scaleType = null) + /// Initializes a new instance of MachineLearningFqdnEndpoints. + /// + /// + /// A new instance for mocking. + public static MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(string category = null, IEnumerable endpoints = null) { - return new MachineLearningSkuCapacity(@default, maximum, minimum, scaleType); + endpoints ??= new List(); + + return new MachineLearningFqdnEndpoints(category, endpoints?.ToList()); } - /// Initializes a new instance of MachineLearningSkuSetting. - /// [Required] The name of the SKU. Ex - P3. It is typically a letter+number code. - /// 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. - /// A new instance for mocking. - public static MachineLearningSkuSetting MachineLearningSkuSetting(string name = null, MachineLearningSkuTier? tier = null) + /// Initializes a new instance of MachineLearningFqdnEndpoint. + /// + /// + /// A new instance for mocking. + public static MachineLearningFqdnEndpoint MachineLearningFqdnEndpoint(string domainName = null, IEnumerable endpointDetails = null) { - return new MachineLearningSkuSetting(name, tier); + endpointDetails ??= new List(); + + return new MachineLearningFqdnEndpoint(domainName, endpointDetails?.ToList()); } - /// Initializes a new instance of MachineLearningEndpointAuthToken. - /// Access token for endpoint authentication. - /// Access token expiry time (UTC). - /// Refresh access token after time (UTC). - /// Access token type. - /// A new instance for mocking. - public static MachineLearningEndpointAuthToken MachineLearningEndpointAuthToken(string accessToken = null, DateTimeOffset? expireOn = null, DateTimeOffset? refreshOn = null, string tokenType = null) + /// Initializes a new instance of MachineLearningFqdnEndpointDetail. + /// + /// A new instance for mocking. + public static MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetail(int? port = null) { - return new MachineLearningEndpointAuthToken(accessToken, expireOn, refreshOn, tokenType); + return new MachineLearningFqdnEndpointDetail(port); } - /// Initializes a new instance of MachineLearningScheduleData. + /// Initializes a new instance of OutboundRuleBasicResourceData. /// The id. /// The name. /// The resourceType. /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningScheduleData MachineLearningScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningScheduleProperties properties = null) + /// + /// Outbound Rule for the managed network of a machine learning workspace. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// A new instance for mocking. + public static OutboundRuleBasicResourceData OutboundRuleBasicResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, OutboundRule properties = null) { - return new MachineLearningScheduleData(id, name, resourceType, systemData, properties); + return new OutboundRuleBasicResourceData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of MachineLearningScheduleProperties. - /// The asset description text. - /// The asset property dictionary. - /// Tag dictionary. Tags can be added, removed, and updated. - /// - /// [Required] Specifies the action of the schedule - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// Display name of schedule. - /// Is the schedule enabled?. - /// Provisioning state for the schedule. - /// - /// [Required] Specifies the trigger details - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// A new instance for mocking. - public static MachineLearningScheduleProperties MachineLearningScheduleProperties(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningScheduleAction action = null, string displayName = null, bool? isEnabled = null, MachineLearningScheduleProvisioningStatus? provisioningState = null, MachineLearningTriggerBase trigger = null) + /// Initializes a new instance of MachineLearningPrivateLinkResource. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Managed service identity (system assigned and/or user assigned identities). + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. + /// The private link resource group id. + /// The private link resource required member names. + /// The private link resource Private link DNS zone name. + /// A new instance for mocking. + public static MachineLearningPrivateLinkResource MachineLearningPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) { - properties ??= new Dictionary(); tags ??= new Dictionary(); + requiredMembers ??= new List(); + requiredZoneNames ??= new List(); - return new MachineLearningScheduleProperties(description, properties, tags, action, displayName, isEnabled, provisioningState, trigger); - } - - /// Initializes a new instance of MachineLearningUserFeature. - /// Specifies the feature ID. - /// Specifies the feature name. - /// Describes the feature for user experience. - /// A new instance for mocking. - public static MachineLearningUserFeature MachineLearningUserFeature(string id = null, string displayName = null, string description = null) - { - return new MachineLearningUserFeature(id, displayName, description); + return new MachineLearningPrivateLinkResource(id, name, resourceType, systemData, tags, location, identity, sku, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); } /// Initializes a new instance of MachineLearningAksCompute. @@ -1254,7 +1752,10 @@ public static AmlCompute AmlCompute(string computeLocation = null, MachineLearni /// Virtual Machine Size. /// Virtual network subnet resource ID the compute nodes belong to. /// 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. + /// Specifies settings for autologger. /// Specifies policy and settings for SSH access. + /// List of Custom Services added to the compute. + /// Returns metadata about the operating system image for this compute instance. /// Describes all connectivity endpoints available for this ComputeInstance. /// Describes available applications and their endpoints on this ComputeInstance. /// Describes information on user who created this ComputeInstance. @@ -1265,14 +1766,16 @@ public static AmlCompute AmlCompute(string computeLocation = null, MachineLearni /// Details of customized scripts to execute for setting up the cluster. /// The last operation on ComputeInstance. /// The list of schedules to be applied on the computes. + /// Stops compute instance after user defined period of inactivity. Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. /// 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. /// Describes informations of containers on this ComputeInstance. /// Describes informations of dataDisks on this ComputeInstance. /// Describes informations of dataMounts on this ComputeInstance. /// ComputeInstance version. /// A new instance for mocking. - public static MachineLearningComputeInstanceProperties MachineLearningComputeInstanceProperties(string vmSize = null, ResourceIdentifier subnetId = null, MachineLearningApplicationSharingPolicy? applicationSharingPolicy = null, MachineLearningComputeInstanceSshSettings sshSettings = null, MachineLearningComputeInstanceConnectivityEndpoints connectivityEndpoints = null, IEnumerable applications = null, MachineLearningComputeInstanceCreatedBy createdBy = null, IEnumerable errors = null, MachineLearningComputeInstanceState? state = null, MachineLearningComputeInstanceAuthorizationType? computeInstanceAuthorizationType = null, MachineLearningComputeInstanceAssignedUser personalComputeInstanceAssignedUser = null, MachineLearningScriptsToExecute scripts = null, MachineLearningComputeInstanceLastOperation lastOperation = null, IEnumerable schedulesComputeStartStop = null, bool? enableNodePublicIP = null, IEnumerable containers = null, IEnumerable dataDisks = null, IEnumerable dataMounts = null, string versionsRuntime = null) + public static MachineLearningComputeInstanceProperties MachineLearningComputeInstanceProperties(string vmSize = null, ResourceIdentifier subnetId = null, MachineLearningApplicationSharingPolicy? applicationSharingPolicy = null, MlflowAutologger? mlflowAutologger = null, MachineLearningComputeInstanceSshSettings sshSettings = null, IEnumerable customServices = null, ImageMetadata osImageMetadata = null, MachineLearningComputeInstanceConnectivityEndpoints connectivityEndpoints = null, IEnumerable applications = null, MachineLearningComputeInstanceCreatedBy createdBy = null, IEnumerable errors = null, MachineLearningComputeInstanceState? state = null, MachineLearningComputeInstanceAuthorizationType? computeInstanceAuthorizationType = null, MachineLearningComputeInstanceAssignedUser personalComputeInstanceAssignedUser = null, MachineLearningScriptsToExecute scripts = null, MachineLearningComputeInstanceLastOperation lastOperation = null, IEnumerable schedulesComputeStartStop = null, string idleTimeBeforeShutdown = null, bool? enableNodePublicIP = null, IEnumerable containers = null, IEnumerable dataDisks = null, IEnumerable dataMounts = null, string versionsRuntime = null) { + customServices ??= new List(); applications ??= new List(); errors ??= new List(); schedulesComputeStartStop ??= new List(); @@ -1280,7 +1783,7 @@ public static MachineLearningComputeInstanceProperties MachineLearningComputeIns dataDisks ??= new List(); dataMounts ??= new List(); - return new MachineLearningComputeInstanceProperties(vmSize, subnetId != null ? new ResourceId(subnetId) : null, applicationSharingPolicy, sshSettings, connectivityEndpoints, applications?.ToList(), createdBy, errors?.ToList(), state, computeInstanceAuthorizationType, personalComputeInstanceAssignedUser != null ? new PersonalComputeInstanceSettings(personalComputeInstanceAssignedUser) : null, scripts != null ? new SetupScripts(scripts) : null, lastOperation, schedulesComputeStartStop != null ? new ComputeSchedules(schedulesComputeStartStop?.ToList()) : null, enableNodePublicIP, containers?.ToList(), dataDisks?.ToList(), dataMounts?.ToList(), versionsRuntime != null ? new ComputeInstanceVersion(versionsRuntime) : null); + return new MachineLearningComputeInstanceProperties(vmSize, subnetId != null ? new ResourceId(subnetId) : null, applicationSharingPolicy, mlflowAutologger != null ? new ComputeInstanceAutologgerSettings(mlflowAutologger) : null, sshSettings, customServices?.ToList(), osImageMetadata, connectivityEndpoints, applications?.ToList(), createdBy, errors?.ToList(), state, computeInstanceAuthorizationType, personalComputeInstanceAssignedUser != null ? new PersonalComputeInstanceSettings(personalComputeInstanceAssignedUser) : null, scripts != null ? new SetupScripts(scripts) : null, lastOperation, schedulesComputeStartStop != null ? new ComputeSchedules(schedulesComputeStartStop?.ToList()) : null, idleTimeBeforeShutdown, enableNodePublicIP, containers?.ToList(), dataDisks?.ToList(), dataMounts?.ToList(), versionsRuntime != null ? new ComputeInstanceVersion(versionsRuntime) : null); } /// Initializes a new instance of MachineLearningComputeInstanceSshSettings. @@ -1294,6 +1797,16 @@ public static MachineLearningComputeInstanceSshSettings MachineLearningComputeIn return new MachineLearningComputeInstanceSshSettings(sshPublicAccess, adminUserName, sshPort, adminPublicKey); } + /// Initializes a new instance of ImageMetadata. + /// Specifies the current operating system image version this compute instance is running on. + /// Specifies the latest available operating system image version. + /// Specifies whether this compute instance is running on the latest operating system image. + /// A new instance for mocking. + public static ImageMetadata ImageMetadata(string currentImageVersion = null, string latestImageVersion = null, bool? isLatestOSImageVersion = null) + { + return new ImageMetadata(currentImageVersion, latestImageVersion, isLatestOSImageVersion); + } + /// Initializes a new instance of MachineLearningComputeInstanceConnectivityEndpoints. /// Public IP Address of this ComputeInstance. /// Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). @@ -1343,21 +1856,11 @@ public static MachineLearningComputeInstanceLastOperation MachineLearningCompute /// Required if triggerType is Cron. /// [Deprecated] Not used any more. /// A new instance for mocking. - public static MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, MachineLearningComputeProvisioningStatus? provisioningStatus = null, MachineLearningScheduleStatus? status = null, MachineLearningComputePowerAction? action = null, MachineLearningTriggerType? triggerType = null, MachineLearningRecurrenceTrigger recurrence = null, CronTrigger cron = null, MachineLearningScheduleBase schedule = null) + public static MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, MachineLearningComputeProvisioningStatus? provisioningStatus = null, MachineLearningScheduleStatus? status = null, MachineLearningComputePowerAction? action = null, MachineLearningTriggerType? triggerType = null, Recurrence recurrence = null, Cron cron = null, MachineLearningScheduleBase schedule = null) { return new MachineLearningComputeStartStopSchedule(id, provisioningStatus, status, action, triggerType, recurrence, cron, schedule); } - /// Initializes a new instance of MachineLearningScheduleBase. - /// A system assigned id for the schedule. - /// The current deployment state of schedule. - /// Is the schedule enabled or disabled?. - /// A new instance for mocking. - public static MachineLearningScheduleBase MachineLearningScheduleBase(string id = null, MachineLearningScheduleProvisioningState? provisioningStatus = null, MachineLearningScheduleStatus? status = null) - { - return new MachineLearningScheduleBase(id, provisioningStatus, status); - } - /// Initializes a new instance of MachineLearningComputeInstanceContainer. /// Name of the ComputeInstance container. /// Auto save settings. @@ -1582,6 +2085,8 @@ public static MachineLearningDatabricksComputeSecrets MachineLearningDatabricksC /// The available derived classes include , and . /// /// Is the asset archived?. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. @@ -1597,6 +2102,7 @@ public static MachineLearningDatabricksComputeSecrets MachineLearningDatabricksC /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , and . /// + /// Queue settings for the job. /// Compute Resource configuration for the job. /// /// [Required] This represents scenario which can be one of Tables/NLP/Image @@ -1604,15 +2110,16 @@ public static MachineLearningDatabricksComputeSecrets MachineLearningDatabricksC /// The available derived classes include , , , , , , , , and . /// /// A new instance for mocking. - public static AutoMLJob AutoMLJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, IDictionary services = null, MachineLearningJobStatus? status = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary outputs = null, MachineLearningJobResourceConfiguration resources = null, AutoMLVertical taskDetails = null) + public static AutoMLJob AutoMLJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary outputs = null, QueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null, AutoMLVertical taskDetails = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); + secretsConfiguration ??= new Dictionary(); services ??= new Dictionary(); environmentVariables ??= new Dictionary(); outputs ??= new Dictionary(); - return new AutoMLJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.AutoML, services, status, environmentId, environmentVariables, outputs, resources, taskDetails); + return new AutoMLJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.AutoML, notificationSetting, secretsConfiguration, services, status, environmentId, environmentVariables, outputs, queueSettings, resources, taskDetails); } /// Initializes a new instance of MachineLearningAzureBlobDatastore. @@ -1622,21 +2129,24 @@ public static AutoMLJob AutoMLJob(string description = null, IDictionary /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. /// Storage account name. /// Storage account container name. /// Azure cloud endpoint for the storage account. /// Protocol used to communicate with the storage account. /// Indicates which identity to use to authenticate service data access to customer's storage. + /// Azure Resource Group name. + /// Azure Subscription Id. /// A new instance for mocking. - public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, bool? isDefault = null, string accountName = null, string containerName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null) + public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null, string accountName = null, string containerName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string resourceGroup = null, string subscriptionId = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new MachineLearningAzureBlobDatastore(description, properties, tags, credentials, DatastoreType.AzureBlob, isDefault, accountName, containerName, endpoint, protocol, serviceDataAccessAuthIdentity); + return new MachineLearningAzureBlobDatastore(description, properties, tags, credentials, DatastoreType.AzureBlob, intellectualProperty, isDefault, accountName, containerName, endpoint, protocol, serviceDataAccessAuthIdentity, resourceGroup, subscriptionId); } /// Initializes a new instance of MachineLearningAzureDataLakeGen1Datastore. @@ -1646,18 +2156,21 @@ public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastor /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. /// Indicates which identity to use to authenticate service data access to customer's storage. /// [Required] Azure Data Lake store name. + /// Azure Resource Group name. + /// Azure Subscription Id. /// A new instance for mocking. - public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureDataLakeGen1Datastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, bool? isDefault = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string storeName = null) + public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureDataLakeGen1Datastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string storeName = null, string resourceGroup = null, string subscriptionId = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new MachineLearningAzureDataLakeGen1Datastore(description, properties, tags, credentials, DatastoreType.AzureDataLakeGen1, isDefault, serviceDataAccessAuthIdentity, storeName); + return new MachineLearningAzureDataLakeGen1Datastore(description, properties, tags, credentials, DatastoreType.AzureDataLakeGen1, intellectualProperty, isDefault, serviceDataAccessAuthIdentity, storeName, resourceGroup, subscriptionId); } /// Initializes a new instance of MachineLearningAzureDataLakeGen2Datastore. @@ -1667,21 +2180,24 @@ public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureData /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. /// [Required] Storage account name. /// Azure cloud endpoint for the storage account. /// [Required] The name of the Data Lake Gen2 filesystem. /// Protocol used to communicate with the storage account. /// Indicates which identity to use to authenticate service data access to customer's storage. + /// Azure Resource Group name. + /// Azure Subscription Id. /// A new instance for mocking. - public static MachineLearningAzureDataLakeGen2Datastore MachineLearningAzureDataLakeGen2Datastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, bool? isDefault = null, string accountName = null, string endpoint = null, string filesystem = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null) + public static MachineLearningAzureDataLakeGen2Datastore MachineLearningAzureDataLakeGen2Datastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null, string accountName = null, string endpoint = null, string filesystem = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string resourceGroup = null, string subscriptionId = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new MachineLearningAzureDataLakeGen2Datastore(description, properties, tags, credentials, DatastoreType.AzureDataLakeGen2, isDefault, accountName, endpoint, filesystem, protocol, serviceDataAccessAuthIdentity); + return new MachineLearningAzureDataLakeGen2Datastore(description, properties, tags, credentials, DatastoreType.AzureDataLakeGen2, intellectualProperty, isDefault, accountName, endpoint, filesystem, protocol, serviceDataAccessAuthIdentity, resourceGroup, subscriptionId); } /// Initializes a new instance of MachineLearningAzureFileDatastore. @@ -1691,21 +2207,37 @@ public static MachineLearningAzureDataLakeGen2Datastore MachineLearningAzureData /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. /// [Required] Storage account name. /// Azure cloud endpoint for the storage account. /// [Required] The name of the Azure file share that the datastore points to. /// Protocol used to communicate with the storage account. /// Indicates which identity to use to authenticate service data access to customer's storage. + /// Azure Resource Group name. + /// Azure Subscription Id. /// A new instance for mocking. - public static MachineLearningAzureFileDatastore MachineLearningAzureFileDatastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, bool? isDefault = null, string accountName = null, string endpoint = null, string fileShareName = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null) + public static MachineLearningAzureFileDatastore MachineLearningAzureFileDatastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null, string accountName = null, string endpoint = null, string fileShareName = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string resourceGroup = null, string subscriptionId = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new MachineLearningAzureFileDatastore(description, properties, tags, credentials, DatastoreType.AzureFile, isDefault, accountName, endpoint, fileShareName, protocol, serviceDataAccessAuthIdentity); + return new MachineLearningAzureFileDatastore(description, properties, tags, credentials, DatastoreType.AzureFile, intellectualProperty, isDefault, accountName, endpoint, fileShareName, protocol, serviceDataAccessAuthIdentity, resourceGroup, subscriptionId); + } + + /// Initializes a new instance of CocoExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + /// The container name to which the labels will be exported. + /// The output path where the labels will be exported. + /// A new instance for mocking. + public static CocoExportSummary CocoExportSummary(DateTimeOffset? endOn = null, long? exportedRowCount = null, string labelingJobId = null, DateTimeOffset? startOn = null, string containerName = null, string snapshotPath = null) + { + return new CocoExportSummary(endOn, exportedRowCount, ExportFormatType.Coco, labelingJobId, startOn, containerName, snapshotPath); } /// Initializes a new instance of MachineLearningCommandJob. @@ -1723,17 +2255,20 @@ public static MachineLearningAzureFileDatastore MachineLearningAzureFileDatastor /// The available derived classes include , and . /// /// Is the asset archived?. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. /// /// Status of the job. + /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. /// ARM resource ID of the code asset. /// [Required] The command to execute on startup of the job. eg. "python train.py". /// - /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. + /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, Ray, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , , and . /// /// [Required] The ARM resource ID of the Environment specification for the job. /// Environment variables included in the job. @@ -1749,27 +2284,78 @@ public static MachineLearningAzureFileDatastore MachineLearningAzureFileDatastor /// The available derived classes include , , , , and . /// /// Input parameters. + /// Queue settings for the job. /// Compute Resource configuration for the job. /// A new instance for mocking. - public static MachineLearningCommandJob MachineLearningCommandJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, IDictionary services = null, MachineLearningJobStatus? status = null, ResourceIdentifier codeId = null, string command = null, MachineLearningDistributionConfiguration distribution = null, ResourceIdentifier environmentId = null, IDictionary environmentVariables = null, IDictionary inputs = null, MachineLearningCommandJobLimits limits = null, IDictionary outputs = null, BinaryData parameters = null, MachineLearningJobResourceConfiguration resources = null) + public static MachineLearningCommandJob MachineLearningCommandJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, MLFlowAutologgerState? mlflowAutologger = null, ResourceIdentifier codeId = null, string command = null, MachineLearningDistributionConfiguration distribution = null, ResourceIdentifier environmentId = null, IDictionary environmentVariables = null, IDictionary inputs = null, MachineLearningCommandJobLimits limits = null, IDictionary outputs = null, BinaryData parameters = null, QueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); + secretsConfiguration ??= new Dictionary(); services ??= new Dictionary(); environmentVariables ??= new Dictionary(); inputs ??= new Dictionary(); outputs ??= new Dictionary(); - return new MachineLearningCommandJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Command, services, status, codeId, command, distribution, environmentId, environmentVariables, inputs, limits, outputs, parameters, resources); + return new MachineLearningCommandJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Command, notificationSetting, secretsConfiguration, services, status, mlflowAutologger.HasValue ? new AutologgerSettings(mlflowAutologger.Value) : null, codeId, command, distribution, environmentId, environmentVariables, inputs, limits, outputs, parameters, queueSettings, resources); + } + + /// Initializes a new instance of CsvExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + /// The container name to which the labels will be exported. + /// The output path where the labels will be exported. + /// A new instance for mocking. + public static CsvExportSummary CsvExportSummary(DateTimeOffset? endOn = null, long? exportedRowCount = null, string labelingJobId = null, DateTimeOffset? startOn = null, string containerName = null, string snapshotPath = null) + { + return new CsvExportSummary(endOn, exportedRowCount, ExportFormatType.CSV, labelingJobId, startOn, containerName, snapshotPath); + } + + /// Initializes a new instance of DatasetExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + /// The unique name of the labeled data asset. + /// A new instance for mocking. + public static DatasetExportSummary DatasetExportSummary(DateTimeOffset? endOn = null, long? exportedRowCount = null, string labelingJobId = null, DateTimeOffset? startOn = null, string labeledAssetName = null) + { + return new DatasetExportSummary(endOn, exportedRowCount, ExportFormatType.Dataset, labelingJobId, startOn, labeledAssetName); + } + + /// Initializes a new instance of HdfsDatastore. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// Intellectual Property details. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// The TLS cert of the HDFS server. Needs to be a base64 encoded string. Required if "Https" protocol is selected. + /// [Required] IP Address or DNS HostName. + /// Protocol used to communicate with the storage account (Https/Http). + /// A new instance for mocking. + public static HdfsDatastore HdfsDatastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null, string hdfsServerCertificate = null, string nameNodeAddress = null, string protocol = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new HdfsDatastore(description, properties, tags, credentials, DatastoreType.Hdfs, intellectualProperty, isDefault, hdfsServerCertificate, nameNodeAddress, protocol); } /// Initializes a new instance of MachineLearningKubernetesOnlineDeployment. /// Code configuration for the endpoint deployment. /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. /// Environment variables configuration for the deployment. /// Property dictionary. Properties can be added, but not removed or altered. /// If true, enables Application Insights logging. + /// The mdc configuration, we disable mdc when it's null. /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. /// Compute instance type. /// Liveness probe monitors the health of the container regularly. @@ -1788,21 +2374,22 @@ public static MachineLearningCommandJob MachineLearningCommandJob(string descrip /// /// The resource requirements for the container (cpu and memory). /// A new instance for mocking. - public static MachineLearningKubernetesOnlineDeployment MachineLearningKubernetesOnlineDeployment(MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary properties = null, bool? appInsightsEnabled = null, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = null, string instanceType = null, MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, MachineLearningDeploymentProvisioningState? provisioningState = null, MachineLearningProbeSettings readinessProbe = null, MachineLearningOnlineRequestSettings requestSettings = null, MachineLearningOnlineScaleSettings scaleSettings = null, MachineLearningContainerResourceRequirements containerResourceRequirements = null) + public static MachineLearningKubernetesOnlineDeployment MachineLearningKubernetesOnlineDeployment(MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary properties = null, bool? appInsightsEnabled = null, DataCollector dataCollector = null, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = null, string instanceType = null, MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, MachineLearningDeploymentProvisioningState? provisioningState = null, MachineLearningProbeSettings readinessProbe = null, MachineLearningOnlineRequestSettings requestSettings = null, MachineLearningOnlineScaleSettings scaleSettings = null, MachineLearningContainerResourceRequirements containerResourceRequirements = null) { environmentVariables ??= new Dictionary(); properties ??= new Dictionary(); - return new MachineLearningKubernetesOnlineDeployment(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, egressPublicNetworkAccess, MachineLearningEndpointComputeType.Kubernetes, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings, containerResourceRequirements); + return new MachineLearningKubernetesOnlineDeployment(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, dataCollector, egressPublicNetworkAccess, MachineLearningEndpointComputeType.Kubernetes, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings, containerResourceRequirements); } /// Initializes a new instance of MachineLearningManagedOnlineDeployment. /// Code configuration for the endpoint deployment. /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. /// Environment variables configuration for the deployment. /// Property dictionary. Properties can be added, but not removed or altered. /// If true, enables Application Insights logging. + /// The mdc configuration, we disable mdc when it's null. /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. /// Compute instance type. /// Liveness probe monitors the health of the container regularly. @@ -1820,12 +2407,40 @@ public static MachineLearningKubernetesOnlineDeployment MachineLearningKubernete /// The available derived classes include and . /// /// A new instance for mocking. - public static MachineLearningManagedOnlineDeployment MachineLearningManagedOnlineDeployment(MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary properties = null, bool? appInsightsEnabled = null, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = null, string instanceType = null, MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, MachineLearningDeploymentProvisioningState? provisioningState = null, MachineLearningProbeSettings readinessProbe = null, MachineLearningOnlineRequestSettings requestSettings = null, MachineLearningOnlineScaleSettings scaleSettings = null) + public static MachineLearningManagedOnlineDeployment MachineLearningManagedOnlineDeployment(MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary properties = null, bool? appInsightsEnabled = null, DataCollector dataCollector = null, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = null, string instanceType = null, MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, MachineLearningDeploymentProvisioningState? provisioningState = null, MachineLearningProbeSettings readinessProbe = null, MachineLearningOnlineRequestSettings requestSettings = null, MachineLearningOnlineScaleSettings scaleSettings = null) { environmentVariables ??= new Dictionary(); properties ??= new Dictionary(); - return new MachineLearningManagedOnlineDeployment(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, egressPublicNetworkAccess, MachineLearningEndpointComputeType.Managed, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings); + return new MachineLearningManagedOnlineDeployment(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, dataCollector, egressPublicNetworkAccess, MachineLearningEndpointComputeType.Managed, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings); + } + + /// Initializes a new instance of OneLakeDatastore. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// Intellectual Property details. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// + /// [Required] OneLake artifact backing the datastore. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// OneLake endpoint to use for the datastore. + /// [Required] OneLake workspace name. + /// Indicates which identity to use to authenticate service data access to customer's storage. + /// A new instance for mocking. + public static OneLakeDatastore OneLakeDatastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null, OneLakeArtifact artifact = null, string endpoint = null, string oneLakeWorkspaceName = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + + return new OneLakeDatastore(description, properties, tags, credentials, DatastoreType.OneLake, intellectualProperty, isDefault, artifact, endpoint, oneLakeWorkspaceName, serviceDataAccessAuthIdentity); } /// Initializes a new instance of MachineLearningPipelineJob. @@ -1843,6 +2458,8 @@ public static MachineLearningManagedOnlineDeployment MachineLearningManagedOnlin /// The available derived classes include , and . /// /// Is the asset archived?. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. @@ -1862,16 +2479,90 @@ public static MachineLearningManagedOnlineDeployment MachineLearningManagedOnlin /// Pipeline settings, for things like ContinueRunOnStepFailure etc. /// ARM resource ID of source job. /// A new instance for mocking. - public static MachineLearningPipelineJob MachineLearningPipelineJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, IDictionary services = null, MachineLearningJobStatus? status = null, IDictionary inputs = null, IDictionary jobs = null, IDictionary outputs = null, BinaryData settings = null, ResourceIdentifier sourceJobId = null) + public static MachineLearningPipelineJob MachineLearningPipelineJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, IDictionary inputs = null, IDictionary jobs = null, IDictionary outputs = null, BinaryData settings = null, ResourceIdentifier sourceJobId = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); + secretsConfiguration ??= new Dictionary(); services ??= new Dictionary(); inputs ??= new Dictionary(); jobs ??= new Dictionary(); outputs ??= new Dictionary(); - return new MachineLearningPipelineJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Pipeline, services, status, inputs, jobs, outputs, settings, sourceJobId); + return new MachineLearningPipelineJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Pipeline, notificationSetting, secretsConfiguration, services, status, inputs, jobs, outputs, settings, sourceJobId); + } + + /// Initializes a new instance of SasCredentialDto. + /// Full SAS Uri, including the storage, container/blob path and SAS token. + /// A new instance for mocking. + public static SasCredentialDto SasCredentialDto(Uri sasUri = null) + { + return new SasCredentialDto(PendingUploadCredentialType.Sas, sasUri); + } + + /// Initializes a new instance of SparkJob. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// ARM resource ID of the component resource. + /// ARM resource ID of the compute resource. + /// Display name of job. + /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. + /// + /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + /// Defaults to AmlToken if null. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Is the asset archived?. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. + /// + /// List of JobEndpoints. + /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + /// + /// Status of the job. + /// Archive files used in the job. + /// Arguments for the job. + /// [Required] ARM resource ID of the code asset. + /// Spark configured properties. + /// + /// [Required] The entry to execute on startup of the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// The ARM resource ID of the Environment specification for the job. + /// Files used in the job. + /// + /// Mapping of input data bindings used in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// Jar files used in the job. + /// + /// Mapping of output data bindings used in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// Python files used in the job. + /// Queue settings for the job. + /// Compute Resource configuration for the job. + /// A new instance for mocking. + public static SparkJob SparkJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, IEnumerable archives = null, string args = null, string codeId = null, IDictionary conf = null, SparkJobEntry entry = null, string environmentId = null, IEnumerable files = null, IDictionary inputs = null, IEnumerable jars = null, IDictionary outputs = null, IEnumerable pyFiles = null, QueueSettings queueSettings = null, SparkResourceConfiguration resources = null) + { + properties ??= new Dictionary(); + tags ??= new Dictionary(); + secretsConfiguration ??= new Dictionary(); + services ??= new Dictionary(); + archives ??= new List(); + conf ??= new Dictionary(); + files ??= new List(); + inputs ??= new Dictionary(); + jars ??= new List(); + outputs ??= new Dictionary(); + pyFiles ??= new List(); + + return new SparkJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Spark, notificationSetting, secretsConfiguration, services, status, archives?.ToList(), args, codeId, conf, entry, environmentId, files?.ToList(), inputs, jars?.ToList(), outputs, pyFiles?.ToList(), queueSettings, resources); } /// Initializes a new instance of MachineLearningSweepJob. @@ -1889,6 +2580,8 @@ public static MachineLearningPipelineJob MachineLearningPipelineJob(string descr /// The available derived classes include , and . /// /// Is the asset archived?. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. @@ -1911,6 +2604,7 @@ public static MachineLearningPipelineJob MachineLearningPipelineJob(string descr /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , and . /// + /// Queue settings for the job. /// /// [Required] The hyperparameter sampling algorithm /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -1919,15 +2613,16 @@ public static MachineLearningPipelineJob MachineLearningPipelineJob(string descr /// [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter. /// [Required] Trial component definition. /// A new instance for mocking. - public static MachineLearningSweepJob MachineLearningSweepJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, IDictionary services = null, MachineLearningJobStatus? status = null, MachineLearningEarlyTerminationPolicy earlyTermination = null, IDictionary inputs = null, MachineLearningSweepJobLimits limits = null, MachineLearningObjective objective = null, IDictionary outputs = null, SamplingAlgorithm samplingAlgorithm = null, BinaryData searchSpace = null, MachineLearningTrialComponent trial = null) + public static MachineLearningSweepJob MachineLearningSweepJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, MachineLearningEarlyTerminationPolicy earlyTermination = null, IDictionary inputs = null, MachineLearningSweepJobLimits limits = null, MachineLearningObjective objective = null, IDictionary outputs = null, QueueSettings queueSettings = null, SamplingAlgorithm samplingAlgorithm = null, BinaryData searchSpace = null, MachineLearningTrialComponent trial = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); + secretsConfiguration ??= new Dictionary(); services ??= new Dictionary(); inputs ??= new Dictionary(); outputs ??= new Dictionary(); - return new MachineLearningSweepJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Sweep, services, status, earlyTermination, inputs, limits, objective, outputs, samplingAlgorithm, searchSpace, trial); + return new MachineLearningSweepJob(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Sweep, notificationSetting, secretsConfiguration, services, status, earlyTermination, inputs, limits, objective, outputs, queueSettings, samplingAlgorithm, searchSpace, trial); } /// Initializes a new instance of TextClassificationMultilabel. @@ -1942,12 +2637,17 @@ public static MachineLearningSweepJob MachineLearningSweepJob(string description /// Currently only Accuracy is supported as primary metric, hence user need not set it explicitly. /// /// Featurization inputs needed for AutoML job. + /// Model/training parameters that will remain constant throughout training. /// Execution constraints for AutoMLJob. + /// Search space for sampling different combinations of models and their hyperparameters. + /// Settings for model sweeping and hyperparameter tuning. /// Validation data inputs. /// A new instance for mocking. - public static TextClassificationMultilabel TextClassificationMultilabel(MachineLearningLogVerbosity? logVerbosity = null, string targetColumnName = null, MachineLearningTableJobInput trainingData = null, ClassificationMultilabelPrimaryMetric? primaryMetric = null, string featurizationDatasetLanguage = null, NlpVerticalLimitSettings limitSettings = null, MachineLearningTableJobInput validationData = null) + public static TextClassificationMultilabel TextClassificationMultilabel(MachineLearningLogVerbosity? logVerbosity = null, string targetColumnName = null, MachineLearningTableJobInput trainingData = null, ClassificationMultilabelPrimaryMetric? primaryMetric = null, string featurizationDatasetLanguage = null, NlpFixedParameters fixedParameters = null, NlpVerticalLimitSettings limitSettings = null, IEnumerable searchSpace = null, NlpSweepSettings sweepSettings = null, MachineLearningTableJobInput validationData = null) { - return new TextClassificationMultilabel(logVerbosity, targetColumnName, TaskType.TextClassificationMultilabel, trainingData, primaryMetric, featurizationDatasetLanguage != null ? new NlpVerticalFeaturizationSettings(featurizationDatasetLanguage) : null, limitSettings, validationData); + searchSpace ??= new List(); + + return new TextClassificationMultilabel(logVerbosity, targetColumnName, TaskType.TextClassificationMultilabel, trainingData, primaryMetric, featurizationDatasetLanguage != null ? new NlpVerticalFeaturizationSettings(featurizationDatasetLanguage) : null, fixedParameters, limitSettings, searchSpace?.ToList(), sweepSettings, validationData); } /// Initializes a new instance of TextNer. @@ -1962,12 +2662,31 @@ public static TextClassificationMultilabel TextClassificationMultilabel(MachineL /// Only 'Accuracy' is supported for Text-NER, so user need not set this explicitly. /// /// Featurization inputs needed for AutoML job. + /// Model/training parameters that will remain constant throughout training. /// Execution constraints for AutoMLJob. + /// Search space for sampling different combinations of models and their hyperparameters. + /// Settings for model sweeping and hyperparameter tuning. /// Validation data inputs. /// A new instance for mocking. - public static TextNer TextNer(MachineLearningLogVerbosity? logVerbosity = null, string targetColumnName = null, MachineLearningTableJobInput trainingData = null, ClassificationPrimaryMetric? primaryMetric = null, string featurizationDatasetLanguage = null, NlpVerticalLimitSettings limitSettings = null, MachineLearningTableJobInput validationData = null) + public static TextNer TextNer(MachineLearningLogVerbosity? logVerbosity = null, string targetColumnName = null, MachineLearningTableJobInput trainingData = null, ClassificationPrimaryMetric? primaryMetric = null, string featurizationDatasetLanguage = null, NlpFixedParameters fixedParameters = null, NlpVerticalLimitSettings limitSettings = null, IEnumerable searchSpace = null, NlpSweepSettings sweepSettings = null, MachineLearningTableJobInput validationData = null) + { + searchSpace ??= new List(); + + return new TextNer(logVerbosity, targetColumnName, TaskType.TextNER, trainingData, primaryMetric, featurizationDatasetLanguage != null ? new NlpVerticalFeaturizationSettings(featurizationDatasetLanguage) : null, fixedParameters, limitSettings, searchSpace?.ToList(), sweepSettings, validationData); + } + + /// Initializes a new instance of ServiceTagDestination. + /// The action enum for networking rule. + /// Optional, if provided, the ServiceTag property will be ignored. + /// + /// + /// + /// A new instance for mocking. + public static ServiceTagDestination ServiceTagDestination(RuleAction? action = null, IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) { - return new TextNer(logVerbosity, targetColumnName, TaskType.TextNER, trainingData, primaryMetric, featurizationDatasetLanguage != null ? new NlpVerticalFeaturizationSettings(featurizationDatasetLanguage) : null, limitSettings, validationData); + addressPrefixes ??= new List(); + + return new ServiceTagDestination(action, addressPrefixes?.ToList(), portRanges, protocol, serviceTag); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs index 24da8cb98d8c..7cd08777ef96 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs @@ -50,229 +50,438 @@ private static SubscriptionResourceExtensionClient GetSubscriptionResourceExtens return new SubscriptionResourceExtensionClient(client, scope); }); } - #region MachineLearningWorkspaceResource + #region MachineLearningComputeResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningWorkspaceResource GetMachineLearningWorkspaceResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningComputeResource GetMachineLearningComputeResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningWorkspaceResource.ValidateResourceId(id); - return new MachineLearningWorkspaceResource(client, id); + MachineLearningComputeResource.ValidateResourceId(id); + return new MachineLearningComputeResource(client, id); } ); } #endregion - #region MachineLearningComputeResource + #region RegistryCodeResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningComputeResource GetMachineLearningComputeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RegistryCodeResource GetRegistryCodeResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningComputeResource.ValidateResourceId(id); - return new MachineLearningComputeResource(client, id); + RegistryCodeResource.ValidateResourceId(id); + return new RegistryCodeResource(client, id); } ); } #endregion - #region MachineLearningPrivateEndpointConnectionResource + #region WorkspaceCodeResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkspaceCodeResource GetWorkspaceCodeResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningPrivateEndpointConnectionResource.ValidateResourceId(id); - return new MachineLearningPrivateEndpointConnectionResource(client, id); + WorkspaceCodeResource.ValidateResourceId(id); + return new WorkspaceCodeResource(client, id); } ); } #endregion - #region MachineLearningWorkspaceConnectionResource + #region RegistryCodeVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningWorkspaceConnectionResource GetMachineLearningWorkspaceConnectionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RegistryCodeVersionResource GetRegistryCodeVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningWorkspaceConnectionResource.ValidateResourceId(id); - return new MachineLearningWorkspaceConnectionResource(client, id); + RegistryCodeVersionResource.ValidateResourceId(id); + return new RegistryCodeVersionResource(client, id); } ); } #endregion - #region MachineLearningBatchEndpointResource + #region WorkspaceCodeVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningBatchEndpointResource GetMachineLearningBatchEndpointResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkspaceCodeVersionResource GetWorkspaceCodeVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningBatchEndpointResource.ValidateResourceId(id); - return new MachineLearningBatchEndpointResource(client, id); + WorkspaceCodeVersionResource.ValidateResourceId(id); + return new WorkspaceCodeVersionResource(client, id); } ); } #endregion - #region MachineLearningBatchDeploymentResource + #region RegistryComponentResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningBatchDeploymentResource GetMachineLearningBatchDeploymentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RegistryComponentResource GetRegistryComponentResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningBatchDeploymentResource.ValidateResourceId(id); - return new MachineLearningBatchDeploymentResource(client, id); + RegistryComponentResource.ValidateResourceId(id); + return new RegistryComponentResource(client, id); + } + ); + } + #endregion + + #region WorkspaceComponentResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static WorkspaceComponentResource GetWorkspaceComponentResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + WorkspaceComponentResource.ValidateResourceId(id); + return new WorkspaceComponentResource(client, id); + } + ); + } + #endregion + + #region RegistryComponentVersionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static RegistryComponentVersionResource GetRegistryComponentVersionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + RegistryComponentVersionResource.ValidateResourceId(id); + return new RegistryComponentVersionResource(client, id); + } + ); + } + #endregion + + #region WorkspaceComponentVersionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static WorkspaceComponentVersionResource GetWorkspaceComponentVersionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + WorkspaceComponentVersionResource.ValidateResourceId(id); + return new WorkspaceComponentVersionResource(client, id); + } + ); + } + #endregion + + #region RegistryDataResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static RegistryDataResource GetRegistryDataResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + RegistryDataResource.ValidateResourceId(id); + return new RegistryDataResource(client, id); + } + ); + } + #endregion + + #region WorkspaceDataResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static WorkspaceDataResource GetWorkspaceDataResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + WorkspaceDataResource.ValidateResourceId(id); + return new WorkspaceDataResource(client, id); + } + ); + } + #endregion + + #region RegistryDataVersionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static RegistryDataVersionResource GetRegistryDataVersionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + RegistryDataVersionResource.ValidateResourceId(id); + return new RegistryDataVersionResource(client, id); + } + ); + } + #endregion + + #region WorkspaceDataVersionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static WorkspaceDataVersionResource GetWorkspaceDataVersionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + WorkspaceDataVersionResource.ValidateResourceId(id); + return new WorkspaceDataVersionResource(client, id); + } + ); + } + #endregion + + #region RegistryEnvironmentResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static RegistryEnvironmentResource GetRegistryEnvironmentResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + RegistryEnvironmentResource.ValidateResourceId(id); + return new RegistryEnvironmentResource(client, id); + } + ); + } + #endregion + + #region WorkspaceEnvironmentResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static WorkspaceEnvironmentResource GetWorkspaceEnvironmentResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + WorkspaceEnvironmentResource.ValidateResourceId(id); + return new WorkspaceEnvironmentResource(client, id); } ); } #endregion - #region MachineLearningCodeContainerResource + #region RegistryEnvironmentVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningCodeContainerResource GetMachineLearningCodeContainerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RegistryEnvironmentVersionResource GetRegistryEnvironmentVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningCodeContainerResource.ValidateResourceId(id); - return new MachineLearningCodeContainerResource(client, id); + RegistryEnvironmentVersionResource.ValidateResourceId(id); + return new RegistryEnvironmentVersionResource(client, id); } ); } #endregion - #region MachineLearningCodeVersionResource + #region WorkspaceEnvironmentVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningCodeVersionResource GetMachineLearningCodeVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkspaceEnvironmentVersionResource GetWorkspaceEnvironmentVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningCodeVersionResource.ValidateResourceId(id); - return new MachineLearningCodeVersionResource(client, id); + WorkspaceEnvironmentVersionResource.ValidateResourceId(id); + return new WorkspaceEnvironmentVersionResource(client, id); } ); } #endregion - #region MachineLearningComponentContainerResource + #region RegistryModelResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningComponentContainerResource GetMachineLearningComponentContainerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RegistryModelResource GetRegistryModelResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningComponentContainerResource.ValidateResourceId(id); - return new MachineLearningComponentContainerResource(client, id); + RegistryModelResource.ValidateResourceId(id); + return new RegistryModelResource(client, id); } ); } #endregion - #region MachineLearningComponentVersionResource + #region WorkspaceModelResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningComponentVersionResource GetMachineLearningComponentVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkspaceModelResource GetWorkspaceModelResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningComponentVersionResource.ValidateResourceId(id); - return new MachineLearningComponentVersionResource(client, id); + WorkspaceModelResource.ValidateResourceId(id); + return new WorkspaceModelResource(client, id); } ); } #endregion - #region MachineLearningDataContainerResource + #region RegistryModelVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningDataContainerResource GetMachineLearningDataContainerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static RegistryModelVersionResource GetRegistryModelVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningDataContainerResource.ValidateResourceId(id); - return new MachineLearningDataContainerResource(client, id); + RegistryModelVersionResource.ValidateResourceId(id); + return new RegistryModelVersionResource(client, id); } ); } #endregion - #region MachineLearningDataVersionResource + #region WorkspaceModelVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningDataVersionResource GetMachineLearningDataVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkspaceModelVersionResource GetWorkspaceModelVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningDataVersionResource.ValidateResourceId(id); - return new MachineLearningDataVersionResource(client, id); + WorkspaceModelVersionResource.ValidateResourceId(id); + return new WorkspaceModelVersionResource(client, id); + } + ); + } + #endregion + + #region MachineLearningBatchEndpointResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static MachineLearningBatchEndpointResource GetMachineLearningBatchEndpointResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + MachineLearningBatchEndpointResource.ValidateResourceId(id); + return new MachineLearningBatchEndpointResource(client, id); + } + ); + } + #endregion + + #region MachineLearningBatchDeploymentResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static MachineLearningBatchDeploymentResource GetMachineLearningBatchDeploymentResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + MachineLearningBatchDeploymentResource.ValidateResourceId(id); + return new MachineLearningBatchDeploymentResource(client, id); } ); } @@ -297,96 +506,134 @@ public static MachineLearningDatastoreResource GetMachineLearningDatastoreResour } #endregion - #region MachineLearningEnvironmentContainerResource + #region FeaturesetContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningEnvironmentContainerResource GetMachineLearningEnvironmentContainerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static FeaturesetContainerResource GetFeaturesetContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningEnvironmentContainerResource.ValidateResourceId(id); - return new MachineLearningEnvironmentContainerResource(client, id); + FeaturesetContainerResource.ValidateResourceId(id); + return new FeaturesetContainerResource(client, id); } ); } #endregion - #region MachineLearningEnvironmentVersionResource + #region FeatureResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningEnvironmentVersionResource GetMachineLearningEnvironmentVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static FeatureResource GetFeatureResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningEnvironmentVersionResource.ValidateResourceId(id); - return new MachineLearningEnvironmentVersionResource(client, id); + FeatureResource.ValidateResourceId(id); + return new FeatureResource(client, id); } ); } #endregion - #region MachineLearningJobResource + #region FeaturesetVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningJobResource GetMachineLearningJobResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static FeaturesetVersionResource GetFeaturesetVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningJobResource.ValidateResourceId(id); - return new MachineLearningJobResource(client, id); + FeaturesetVersionResource.ValidateResourceId(id); + return new FeaturesetVersionResource(client, id); + } + ); + } + #endregion + + #region FeaturestoreEntityContainerResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static FeaturestoreEntityContainerResource GetFeaturestoreEntityContainerResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + FeaturestoreEntityContainerResource.ValidateResourceId(id); + return new FeaturestoreEntityContainerResource(client, id); + } + ); + } + #endregion + + #region FeaturestoreEntityVersionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static FeaturestoreEntityVersionResource GetFeaturestoreEntityVersionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + FeaturestoreEntityVersionResource.ValidateResourceId(id); + return new FeaturestoreEntityVersionResource(client, id); } ); } #endregion - #region MachineLearningModelContainerResource + #region MachineLearningJobResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningModelContainerResource GetMachineLearningModelContainerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningJobResource GetMachineLearningJobResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningModelContainerResource.ValidateResourceId(id); - return new MachineLearningModelContainerResource(client, id); + MachineLearningJobResource.ValidateResourceId(id); + return new MachineLearningJobResource(client, id); } ); } #endregion - #region MachineLearningModelVersionResource + #region LabelingJobResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static MachineLearningModelVersionResource GetMachineLearningModelVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static LabelingJobResource GetLabelingJobResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - MachineLearningModelVersionResource.ValidateResourceId(id); - return new MachineLearningModelVersionResource(client, id); + LabelingJobResource.ValidateResourceId(id); + return new LabelingJobResource(client, id); } ); } @@ -449,104 +696,211 @@ public static MachineLearningScheduleResource GetMachineLearningScheduleResource } #endregion - /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. + #region RegistryResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static RegistryResource GetRegistryResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + RegistryResource.ValidateResourceId(id); + return new RegistryResource(client, id); + } + ); + } + #endregion + + #region MachineLearningWorkspaceResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static MachineLearningWorkspaceResource GetMachineLearningWorkspaceResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + MachineLearningWorkspaceResource.ValidateResourceId(id); + return new MachineLearningWorkspaceResource(client, id); + } + ); + } + #endregion + + #region MachineLearningWorkspaceConnectionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static MachineLearningWorkspaceConnectionResource GetMachineLearningWorkspaceConnectionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + MachineLearningWorkspaceConnectionResource.ValidateResourceId(id); + return new MachineLearningWorkspaceConnectionResource(client, id); + } + ); + } + #endregion + + #region OutboundRuleBasicResource + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static OutboundRuleBasicResource GetOutboundRuleBasicResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + OutboundRuleBasicResource.ValidateResourceId(id); + return new OutboundRuleBasicResource(client, id); + } + ); + } + #endregion + + #region MachineLearningPrivateEndpointConnectionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + MachineLearningPrivateEndpointConnectionResource.ValidateResourceId(id); + return new MachineLearningPrivateEndpointConnectionResource(client, id); + } + ); + } + #endregion + + /// Gets a collection of RegistryResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of MachineLearningWorkspaceResources and their operations over a MachineLearningWorkspaceResource. - public static MachineLearningWorkspaceCollection GetMachineLearningWorkspaces(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of RegistryResources and their operations over a RegistryResource. + public static RegistryCollection GetRegistries(this ResourceGroupResource resourceGroupResource) { - return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetMachineLearningWorkspaces(); + return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetRegistries(); } /// - /// Gets the properties of the specified machine learning workspace. + /// Get registry /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} /// /// /// Operation Id - /// Workspaces_Get + /// Registries_Get /// /// /// /// The instance the method will execute against. - /// Name of Azure Machine Learning workspace. + /// Name of Azure Machine Learning registry. This is case-insensitive. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public static async Task> GetMachineLearningWorkspaceAsync(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default) + public static async Task> GetRegistryAsync(this ResourceGroupResource resourceGroupResource, string registryName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetMachineLearningWorkspaces().GetAsync(workspaceName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetRegistries().GetAsync(registryName, cancellationToken).ConfigureAwait(false); } /// - /// Gets the properties of the specified machine learning workspace. + /// Get registry /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} /// /// /// Operation Id - /// Workspaces_Get + /// Registries_Get /// /// /// /// The instance the method will execute against. - /// Name of Azure Machine Learning workspace. + /// Name of Azure Machine Learning registry. This is case-insensitive. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public static Response GetMachineLearningWorkspace(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default) + public static Response GetRegistry(this ResourceGroupResource resourceGroupResource, string registryName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetMachineLearningWorkspaces().Get(workspaceName, cancellationToken); + return resourceGroupResource.GetRegistries().Get(registryName, cancellationToken); + } + + /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. + /// The instance the method will execute against. + /// An object representing collection of MachineLearningWorkspaceResources and their operations over a MachineLearningWorkspaceResource. + public static MachineLearningWorkspaceCollection GetMachineLearningWorkspaces(this ResourceGroupResource resourceGroupResource) + { + return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetMachineLearningWorkspaces(); } /// - /// Lists all the available machine learning workspaces under the specified subscription. + /// Gets the properties of the specified machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} /// /// /// Operation Id - /// Workspaces_ListBySubscription + /// Workspaces_Get /// /// /// - /// The instance the method will execute against. - /// Continuation token for pagination. + /// The instance the method will execute against. + /// Name of Azure Machine Learning workspace. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetMachineLearningWorkspacesAsync(this SubscriptionResource subscriptionResource, string skip = null, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static async Task> GetMachineLearningWorkspaceAsync(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default) { - return GetSubscriptionResourceExtensionClient(subscriptionResource).GetMachineLearningWorkspacesAsync(skip, cancellationToken); + return await resourceGroupResource.GetMachineLearningWorkspaces().GetAsync(workspaceName, cancellationToken).ConfigureAwait(false); } /// - /// Lists all the available machine learning workspaces under the specified subscription. + /// Gets the properties of the specified machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} /// /// /// Operation Id - /// Workspaces_ListBySubscription + /// Workspaces_Get /// /// /// - /// The instance the method will execute against. - /// Continuation token for pagination. + /// The instance the method will execute against. + /// Name of Azure Machine Learning workspace. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetMachineLearningWorkspaces(this SubscriptionResource subscriptionResource, string skip = null, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static Response GetMachineLearningWorkspace(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default) { - return GetSubscriptionResourceExtensionClient(subscriptionResource).GetMachineLearningWorkspaces(skip, cancellationToken); + return resourceGroupResource.GetMachineLearningWorkspaces().Get(workspaceName, cancellationToken); } /// @@ -732,5 +1086,93 @@ public static Pageable GetMachineLearningQuotas(th { return GetSubscriptionResourceExtensionClient(subscriptionResource).GetMachineLearningQuotas(location, cancellationToken); } + + /// + /// List registries by subscription + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries + /// + /// + /// Operation Id + /// Registries_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetRegistriesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetRegistriesAsync(cancellationToken); + } + + /// + /// List registries by subscription + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries + /// + /// + /// Operation Id + /// Registries_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetRegistries(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetRegistries(cancellationToken); + } + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// Continuation token for pagination. + /// Kind of workspace. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetMachineLearningWorkspacesAsync(this SubscriptionResource subscriptionResource, string skip = null, string kind = null, CancellationToken cancellationToken = default) + { + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetMachineLearningWorkspacesAsync(skip, kind, cancellationToken); + } + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// Continuation token for pagination. + /// Kind of workspace. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetMachineLearningWorkspaces(this SubscriptionResource subscriptionResource, string skip = null, string kind = null, CancellationToken cancellationToken = default) + { + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetMachineLearningWorkspaces(skip, kind, cancellationToken); + } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index 4685a8460ad5..4d13f156348d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -31,6 +31,13 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } + /// Gets a collection of RegistryResources in the ResourceGroupResource. + /// An object representing collection of RegistryResources and their operations over a RegistryResource. + public virtual RegistryCollection GetRegistries() + { + return GetCachedClient(Client => new RegistryCollection(Client, Id)); + } + /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. /// An object representing collection of MachineLearningWorkspaceResources and their operations over a MachineLearningWorkspaceResource. public virtual MachineLearningWorkspaceCollection GetMachineLearningWorkspaces() diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 5e7bbfede1d6..864af5027878 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -18,14 +18,16 @@ namespace Azure.ResourceManager.MachineLearning /// A class to add extension methods to SubscriptionResource. internal partial class SubscriptionResourceExtensionClient : ArmResource { - private ClientDiagnostics _machineLearningWorkspaceWorkspacesClientDiagnostics; - private WorkspacesRestOperations _machineLearningWorkspaceWorkspacesRestClient; private ClientDiagnostics _usagesClientDiagnostics; private UsagesRestOperations _usagesRestClient; private ClientDiagnostics _virtualMachineSizesClientDiagnostics; private VirtualMachineSizesRestOperations _virtualMachineSizesRestClient; private ClientDiagnostics _quotasClientDiagnostics; private QuotasRestOperations _quotasRestClient; + private ClientDiagnostics _registryClientDiagnostics; + private RegistriesRestOperations _registryRestClient; + private ClientDiagnostics _machineLearningWorkspaceWorkspacesClientDiagnostics; + private WorkspacesRestOperations _machineLearningWorkspaceWorkspacesRestClient; /// Initializes a new instance of the class for mocking. protected SubscriptionResourceExtensionClient() @@ -39,14 +41,16 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie { } - private ClientDiagnostics MachineLearningWorkspaceWorkspacesClientDiagnostics => _machineLearningWorkspaceWorkspacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningWorkspaceResource.ResourceType.Namespace, Diagnostics); - private WorkspacesRestOperations MachineLearningWorkspaceWorkspacesRestClient => _machineLearningWorkspaceWorkspacesRestClient ??= new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(MachineLearningWorkspaceResource.ResourceType)); private ClientDiagnostics UsagesClientDiagnostics => _usagesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); private UsagesRestOperations UsagesRestClient => _usagesRestClient ??= new UsagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics VirtualMachineSizesClientDiagnostics => _virtualMachineSizesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); private VirtualMachineSizesRestOperations VirtualMachineSizesRestClient => _virtualMachineSizesRestClient ??= new VirtualMachineSizesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics QuotasClientDiagnostics => _quotasClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); private QuotasRestOperations QuotasRestClient => _quotasRestClient ??= new QuotasRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics RegistryClientDiagnostics => _registryClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryResource.ResourceType.Namespace, Diagnostics); + private RegistriesRestOperations RegistryRestClient => _registryRestClient ??= new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(RegistryResource.ResourceType)); + private ClientDiagnostics MachineLearningWorkspaceWorkspacesClientDiagnostics => _machineLearningWorkspaceWorkspacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningWorkspaceResource.ResourceType.Namespace, Diagnostics); + private WorkspacesRestOperations MachineLearningWorkspaceWorkspacesRestClient => _machineLearningWorkspaceWorkspacesRestClient ??= new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(MachineLearningWorkspaceResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -54,52 +58,6 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// - /// Lists all the available machine learning workspaces under the specified subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces - /// - /// - /// Operation Id - /// Workspaces_ListBySubscription - /// - /// - /// - /// Continuation token for pagination. - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetMachineLearningWorkspacesAsync(string skip = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, skip); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), MachineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetMachineLearningWorkspaces", "value", "nextLink", cancellationToken); - } - - /// - /// Lists all the available machine learning workspaces under the specified subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces - /// - /// - /// Operation Id - /// Workspaces_ListBySubscription - /// - /// - /// - /// Continuation token for pagination. - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetMachineLearningWorkspaces(string skip = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, skip); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), MachineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetMachineLearningWorkspaces", "value", "nextLink", cancellationToken); - } - /// /// Gets the current usage information as well as limits for AML resources for given subscription and location. /// @@ -281,5 +239,97 @@ public virtual Pageable GetMachineLearningQuotas(A HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => QuotasRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, MachineLearningResourceQuota.DeserializeMachineLearningResourceQuota, QuotasClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetMachineLearningQuotas", "value", "nextLink", cancellationToken); } + + /// + /// List registries by subscription + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries + /// + /// + /// Operation Id + /// Registries_ListBySubscription + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetRegistriesAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => RegistryRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => RegistryRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryResource(Client, RegistryData.DeserializeRegistryData(e)), RegistryClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetRegistries", "value", "nextLink", cancellationToken); + } + + /// + /// List registries by subscription + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries + /// + /// + /// Operation Id + /// Registries_ListBySubscription + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetRegistries(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => RegistryRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => RegistryRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryResource(Client, RegistryData.DeserializeRegistryData(e)), RegistryClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetRegistries", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// + /// Continuation token for pagination. + /// Kind of workspace. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetMachineLearningWorkspacesAsync(string skip = null, string kind = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, skip, kind); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, skip, kind); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), MachineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetMachineLearningWorkspaces", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// + /// Continuation token for pagination. + /// Kind of workspace. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetMachineLearningWorkspaces(string skip = null, string kind = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, skip, kind); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, skip, kind); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), MachineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetMachineLearningWorkspaces", "value", "nextLink", cancellationToken); + } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureCollection.cs new file mode 100644 index 000000000000..2e665b715d51 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureCollection.cs @@ -0,0 +1,267 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetFeatures method from an instance of . + /// + public partial class FeatureCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _featureClientDiagnostics; + private readonly FeaturesRestOperations _featureRestClient; + + /// Initializes a new instance of the class for mocking. + protected FeatureCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal FeatureCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featureClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeatureResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(FeatureResource.ResourceType, out string featureApiVersion); + _featureRestClient = new FeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featureApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != FeaturesetVersionResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, FeaturesetVersionResource.ResourceType), nameof(id)); + } + + /// + /// Get feature. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName} + /// + /// + /// Operation Id + /// Features_Get + /// + /// + /// + /// Feature Name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string featureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); + + using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.Get"); + scope.Start(); + try + { + var response = await _featureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get feature. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName} + /// + /// + /// Operation Id + /// Features_Get + /// + /// + /// + /// Feature Name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string featureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); + + using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.Get"); + scope.Start(); + try + { + var response = _featureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List Features. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features + /// + /// + /// Operation Id + /// Features_List + /// + /// + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// feature name. + /// Description of the featureset. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _featureRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featureRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeatureResource(Client, FeatureData.DeserializeFeatureData(e)), _featureClientDiagnostics, Pipeline, "FeatureCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List Features. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features + /// + /// + /// Operation Id + /// Features_List + /// + /// + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// feature name. + /// Description of the featureset. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _featureRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featureRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeatureResource(Client, FeatureData.DeserializeFeatureData(e)), _featureClientDiagnostics, Pipeline, "FeatureCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName} + /// + /// + /// Operation Id + /// Features_Get + /// + /// + /// + /// Feature Name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string featureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); + + using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.Exists"); + scope.Start(); + try + { + var response = await _featureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName} + /// + /// + /// Operation Id + /// Features_Get + /// + /// + /// + /// Feature Name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string featureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); + + using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.Exists"); + scope.Start(); + try + { + var response = _featureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureData.cs new file mode 100644 index 000000000000..21b80a0ff513 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureData.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing the Feature data model. + /// Azure Resource Manager resource envelope. + /// + public partial class FeatureData : ResourceData + { + /// Initializes a new instance of FeatureData. + /// [Required] Additional attributes of the entity. + /// is null. + public FeatureData(FeatureProperties properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of FeatureData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + internal FeatureData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeatureProperties properties) : base(id, name, resourceType, systemData) + { + Properties = properties; + } + + /// [Required] Additional attributes of the entity. + public FeatureProperties Properties { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureResource.cs new file mode 100644 index 000000000000..368f011c7412 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureResource.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a Feature along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetFeatureResource method. + /// Otherwise you can get one from its parent resource using the GetFeature method. + /// + public partial class FeatureResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _featureClientDiagnostics; + private readonly FeaturesRestOperations _featureRestClient; + private readonly FeatureData _data; + + /// Initializes a new instance of the class for mocking. + protected FeatureResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal FeatureResource(ArmClient client, FeatureData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal FeatureResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featureClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string featureApiVersion); + _featureRestClient = new FeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featureApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/featuresets/versions/features"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual FeatureData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get feature. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName} + /// + /// + /// Operation Id + /// Features_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _featureClientDiagnostics.CreateScope("FeatureResource.Get"); + scope.Start(); + try + { + var response = await _featureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get feature. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName} + /// + /// + /// Operation Id + /// Features_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _featureClientDiagnostics.CreateScope("FeatureResource.Get"); + scope.Start(); + try + { + var response = _featureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerCollection.cs new file mode 100644 index 000000000000..18e1e270d2b4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerCollection.cs @@ -0,0 +1,348 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetFeaturesetContainers method from an instance of . + /// + public partial class FeaturesetContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _featuresetContainerClientDiagnostics; + private readonly FeaturesetContainersRestOperations _featuresetContainerRestClient; + + /// Initializes a new instance of the class for mocking. + protected FeaturesetContainerCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal FeaturesetContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featuresetContainerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeaturesetContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(FeaturesetContainerResource.ResourceType, out string featuresetContainerApiVersion); + _featuresetContainerRestClient = new FeaturesetContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featuresetContainerApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != MachineLearningWorkspaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningWorkspaceResource.ResourceType), nameof(id)); + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. This is case-sensitive. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, FeaturesetContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _featuresetContainerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturesetContainerOperationSource(Client), _featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. This is case-sensitive. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, FeaturesetContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _featuresetContainerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturesetContainerOperationSource(Client), _featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.Get"); + scope.Start(); + try + { + var response = await _featuresetContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.Get"); + scope.Start(); + try + { + var response = _featuresetContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List featurestore entity containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets + /// + /// + /// Operation Id + /// FeaturesetContainers_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(FeaturesetContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new FeaturesetContainerCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetContainerRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetContainerRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeaturesetContainerResource(Client, FeaturesetContainerData.DeserializeFeaturesetContainerData(e)), _featuresetContainerClientDiagnostics, Pipeline, "FeaturesetContainerCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List featurestore entity containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets + /// + /// + /// Operation Id + /// FeaturesetContainers_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(FeaturesetContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new FeaturesetContainerCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetContainerRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetContainerRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeaturesetContainerResource(Client, FeaturesetContainerData.DeserializeFeaturesetContainerData(e)), _featuresetContainerClientDiagnostics, Pipeline, "FeaturesetContainerCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.Exists"); + scope.Start(); + try + { + var response = await _featuresetContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.Exists"); + scope.Start(); + try + { + var response = _featuresetContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerData.cs new file mode 100644 index 000000000000..169154272379 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerData.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing the FeaturesetContainer data model. + /// Azure Resource Manager resource envelope. + /// + public partial class FeaturesetContainerData : ResourceData + { + /// Initializes a new instance of FeaturesetContainerData. + /// [Required] Additional attributes of the entity. + /// is null. + public FeaturesetContainerData(FeaturesetContainerProperties properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of FeaturesetContainerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + internal FeaturesetContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturesetContainerProperties properties) : base(id, name, resourceType, systemData) + { + Properties = properties; + } + + /// [Required] Additional attributes of the entity. + public FeaturesetContainerProperties Properties { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerResource.cs new file mode 100644 index 000000000000..b3f9897a0cac --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerResource.cs @@ -0,0 +1,350 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a FeaturesetContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetFeaturesetContainerResource method. + /// Otherwise you can get one from its parent resource using the GetFeaturesetContainer method. + /// + public partial class FeaturesetContainerResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _featuresetContainerClientDiagnostics; + private readonly FeaturesetContainersRestOperations _featuresetContainerRestClient; + private readonly FeaturesetContainerData _data; + + /// Initializes a new instance of the class for mocking. + protected FeaturesetContainerResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal FeaturesetContainerResource(ArmClient client, FeaturesetContainerData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal FeaturesetContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featuresetContainerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string featuresetContainerApiVersion); + _featuresetContainerRestClient = new FeaturesetContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featuresetContainerApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/featuresets"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual FeaturesetContainerData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of FeaturesetVersionResources in the FeaturesetContainer. + /// An object representing collection of FeaturesetVersionResources and their operations over a FeaturesetVersionResource. + public virtual FeaturesetVersionCollection GetFeaturesetVersions() + { + return GetCachedClient(Client => new FeaturesetVersionCollection(Client, Id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetFeaturesetVersionAsync(string version, CancellationToken cancellationToken = default) + { + return await GetFeaturesetVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetFeaturesetVersion(string version, CancellationToken cancellationToken = default) + { + return GetFeaturesetVersions().Get(version, cancellationToken); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_GetEntity + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Get"); + scope.Start(); + try + { + var response = await _featuresetContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_GetEntity + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Get"); + scope.Start(); + try + { + var response = _featuresetContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Delete"); + scope.Start(); + try + { + var response = await _featuresetContainerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Delete"); + scope.Start(); + try + { + var response = _featuresetContainerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, FeaturesetContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Update"); + scope.Start(); + try + { + var response = await _featuresetContainerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturesetContainerOperationSource(Client), _featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} + /// + /// + /// Operation Id + /// FeaturesetContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, FeaturesetContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Update"); + scope.Start(); + try + { + var response = _featuresetContainerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturesetContainerOperationSource(Client), _featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionCollection.cs new file mode 100644 index 000000000000..020bc628737b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionCollection.cs @@ -0,0 +1,348 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetFeaturesetVersions method from an instance of . + /// + public partial class FeaturesetVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _featuresetVersionClientDiagnostics; + private readonly FeaturesetVersionsRestOperations _featuresetVersionRestClient; + + /// Initializes a new instance of the class for mocking. + protected FeaturesetVersionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal FeaturesetVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featuresetVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeaturesetVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(FeaturesetVersionResource.ResourceType, out string featuresetVersionApiVersion); + _featuresetVersionRestClient = new FeaturesetVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featuresetVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != FeaturesetContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, FeaturesetContainerResource.ResourceType), nameof(id)); + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. This is case-sensitive. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, FeaturesetVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _featuresetVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturesetVersionOperationSource(Client), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. This is case-sensitive. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, FeaturesetVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _featuresetVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturesetVersionOperationSource(Client), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.Get"); + scope.Start(); + try + { + var response = await _featuresetVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.Get"); + scope.Start(); + try + { + var response = _featuresetVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions + /// + /// + /// Operation Id + /// FeaturesetVersions_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(FeaturesetVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new FeaturesetVersionCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeaturesetVersionResource(Client, FeaturesetVersionData.DeserializeFeaturesetVersionData(e)), _featuresetVersionClientDiagnostics, Pipeline, "FeaturesetVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions + /// + /// + /// Operation Id + /// FeaturesetVersions_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(FeaturesetVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new FeaturesetVersionCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeaturesetVersionResource(Client, FeaturesetVersionData.DeserializeFeaturesetVersionData(e)), _featuresetVersionClientDiagnostics, Pipeline, "FeaturesetVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.Exists"); + scope.Start(); + try + { + var response = await _featuresetVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.Exists"); + scope.Start(); + try + { + var response = _featuresetVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionData.cs new file mode 100644 index 000000000000..36f39a5a4fa3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionData.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing the FeaturesetVersion data model. + /// Azure Resource Manager resource envelope. + /// + public partial class FeaturesetVersionData : ResourceData + { + /// Initializes a new instance of FeaturesetVersionData. + /// [Required] Additional attributes of the entity. + /// is null. + public FeaturesetVersionData(FeaturesetVersionProperties properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of FeaturesetVersionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + internal FeaturesetVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturesetVersionProperties properties) : base(id, name, resourceType, systemData) + { + Properties = properties; + } + + /// [Required] Additional attributes of the entity. + public FeaturesetVersionProperties Properties { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionResource.cs new file mode 100644 index 000000000000..f7c8486a2789 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionResource.cs @@ -0,0 +1,480 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a FeaturesetVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetFeaturesetVersionResource method. + /// Otherwise you can get one from its parent resource using the GetFeaturesetVersion method. + /// + public partial class FeaturesetVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _featuresetVersionClientDiagnostics; + private readonly FeaturesetVersionsRestOperations _featuresetVersionRestClient; + private readonly FeaturesetVersionData _data; + + /// Initializes a new instance of the class for mocking. + protected FeaturesetVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal FeaturesetVersionResource(ArmClient client, FeaturesetVersionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal FeaturesetVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featuresetVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string featuresetVersionApiVersion); + _featuresetVersionRestClient = new FeaturesetVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featuresetVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/featuresets/versions"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual FeaturesetVersionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of FeatureResources in the FeaturesetVersion. + /// An object representing collection of FeatureResources and their operations over a FeatureResource. + public virtual FeatureCollection GetFeatures() + { + return GetCachedClient(Client => new FeatureCollection(Client, Id)); + } + + /// + /// Get feature. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName} + /// + /// + /// Operation Id + /// Features_Get + /// + /// + /// + /// Feature Name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetFeatureAsync(string featureName, CancellationToken cancellationToken = default) + { + return await GetFeatures().GetAsync(featureName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get feature. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName} + /// + /// + /// Operation Id + /// Features_Get + /// + /// + /// + /// Feature Name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetFeature(string featureName, CancellationToken cancellationToken = default) + { + return GetFeatures().Get(featureName, cancellationToken); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Get"); + scope.Start(); + try + { + var response = await _featuresetVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Get"); + scope.Start(); + try + { + var response = _featuresetVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Delete"); + scope.Start(); + try + { + var response = await _featuresetVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Delete"); + scope.Start(); + try + { + var response = _featuresetVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, FeaturesetVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Update"); + scope.Start(); + try + { + var response = await _featuresetVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturesetVersionOperationSource(Client), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturesetVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, FeaturesetVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Update"); + scope.Start(); + try + { + var response = _featuresetVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturesetVersionOperationSource(Client), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Backfill. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/backfill + /// + /// + /// Operation Id + /// FeaturesetVersions_Backfill + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Feature set version backfill request entity. + /// The cancellation token to use. + /// is null. + public virtual async Task> BackfillAsync(WaitUntil waitUntil, FeaturesetVersionBackfillContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Backfill"); + scope.Start(); + try + { + var response = await _featuresetVersionRestClient.BackfillAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturesetJobOperationSource(), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Backfill. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/backfill + /// + /// + /// Operation Id + /// FeaturesetVersions_Backfill + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Feature set version backfill request entity. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Backfill(WaitUntil waitUntil, FeaturesetVersionBackfillContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Backfill"); + scope.Start(); + try + { + var response = _featuresetVersionRestClient.Backfill(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturesetJobOperationSource(), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List materialization Jobs. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/listMaterializationJobs + /// + /// + /// Operation Id + /// FeaturesetVersions_ListMaterializationJobs + /// + /// + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Start time of the feature window to filter materialization jobs. + /// End time of the feature window to filter materialization jobs. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetVersionRestClient.CreateListMaterializationJobsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetVersionRestClient.CreateListMaterializationJobsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, FeaturesetJob.DeserializeFeaturesetJob, _featuresetVersionClientDiagnostics, Pipeline, "FeaturesetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); + } + + /// + /// List materialization Jobs. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/listMaterializationJobs + /// + /// + /// Operation Id + /// FeaturesetVersions_ListMaterializationJobs + /// + /// + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Start time of the feature window to filter materialization jobs. + /// End time of the feature window to filter materialization jobs. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetVersionRestClient.CreateListMaterializationJobsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetVersionRestClient.CreateListMaterializationJobsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, FeaturesetJob.DeserializeFeaturesetJob, _featuresetVersionClientDiagnostics, Pipeline, "FeaturesetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerCollection.cs new file mode 100644 index 000000000000..7d99987896c9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerCollection.cs @@ -0,0 +1,348 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetFeaturestoreEntityContainers method from an instance of . + /// + public partial class FeaturestoreEntityContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _featurestoreEntityContainerClientDiagnostics; + private readonly FeaturestoreEntityContainersRestOperations _featurestoreEntityContainerRestClient; + + /// Initializes a new instance of the class for mocking. + protected FeaturestoreEntityContainerCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal FeaturestoreEntityContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featurestoreEntityContainerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeaturestoreEntityContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(FeaturestoreEntityContainerResource.ResourceType, out string featurestoreEntityContainerApiVersion); + _featurestoreEntityContainerRestClient = new FeaturestoreEntityContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featurestoreEntityContainerApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != MachineLearningWorkspaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningWorkspaceResource.ResourceType), nameof(id)); + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. This is case-sensitive. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _featurestoreEntityContainerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturestoreEntityContainerOperationSource(Client), _featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. This is case-sensitive. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _featurestoreEntityContainerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturestoreEntityContainerOperationSource(Client), _featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.Get"); + scope.Start(); + try + { + var response = await _featurestoreEntityContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.Get"); + scope.Start(); + try + { + var response = _featurestoreEntityContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List featurestore entity containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(FeaturestoreEntityContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new FeaturestoreEntityContainerCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _featurestoreEntityContainerRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featurestoreEntityContainerRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeaturestoreEntityContainerResource(Client, FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(e)), _featurestoreEntityContainerClientDiagnostics, Pipeline, "FeaturestoreEntityContainerCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List featurestore entity containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(FeaturestoreEntityContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new FeaturestoreEntityContainerCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _featurestoreEntityContainerRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featurestoreEntityContainerRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeaturestoreEntityContainerResource(Client, FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(e)), _featurestoreEntityContainerClientDiagnostics, Pipeline, "FeaturestoreEntityContainerCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.Exists"); + scope.Start(); + try + { + var response = await _featurestoreEntityContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.Exists"); + scope.Start(); + try + { + var response = _featurestoreEntityContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerData.cs new file mode 100644 index 000000000000..0c8f9d5a7300 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerData.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing the FeaturestoreEntityContainer data model. + /// Azure Resource Manager resource envelope. + /// + public partial class FeaturestoreEntityContainerData : ResourceData + { + /// Initializes a new instance of FeaturestoreEntityContainerData. + /// [Required] Additional attributes of the entity. + /// is null. + public FeaturestoreEntityContainerData(FeaturestoreEntityContainerProperties properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of FeaturestoreEntityContainerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + internal FeaturestoreEntityContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturestoreEntityContainerProperties properties) : base(id, name, resourceType, systemData) + { + Properties = properties; + } + + /// [Required] Additional attributes of the entity. + public FeaturestoreEntityContainerProperties Properties { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerResource.cs new file mode 100644 index 000000000000..9c36c9007fc3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerResource.cs @@ -0,0 +1,350 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a FeaturestoreEntityContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetFeaturestoreEntityContainerResource method. + /// Otherwise you can get one from its parent resource using the GetFeaturestoreEntityContainer method. + /// + public partial class FeaturestoreEntityContainerResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _featurestoreEntityContainerClientDiagnostics; + private readonly FeaturestoreEntityContainersRestOperations _featurestoreEntityContainerRestClient; + private readonly FeaturestoreEntityContainerData _data; + + /// Initializes a new instance of the class for mocking. + protected FeaturestoreEntityContainerResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal FeaturestoreEntityContainerResource(ArmClient client, FeaturestoreEntityContainerData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal FeaturestoreEntityContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featurestoreEntityContainerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string featurestoreEntityContainerApiVersion); + _featurestoreEntityContainerRestClient = new FeaturestoreEntityContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featurestoreEntityContainerApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/featurestoreEntities"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual FeaturestoreEntityContainerData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of FeaturestoreEntityVersionResources in the FeaturestoreEntityContainer. + /// An object representing collection of FeaturestoreEntityVersionResources and their operations over a FeaturestoreEntityVersionResource. + public virtual FeaturestoreEntityVersionCollection GetFeaturestoreEntityVersions() + { + return GetCachedClient(Client => new FeaturestoreEntityVersionCollection(Client, Id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetFeaturestoreEntityVersionAsync(string version, CancellationToken cancellationToken = default) + { + return await GetFeaturestoreEntityVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetFeaturestoreEntityVersion(string version, CancellationToken cancellationToken = default) + { + return GetFeaturestoreEntityVersions().Get(version, cancellationToken); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_GetEntity + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Get"); + scope.Start(); + try + { + var response = await _featurestoreEntityContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_GetEntity + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Get"); + scope.Start(); + try + { + var response = _featurestoreEntityContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Delete"); + scope.Start(); + try + { + var response = await _featurestoreEntityContainerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Delete"); + scope.Start(); + try + { + var response = _featurestoreEntityContainerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Update"); + scope.Start(); + try + { + var response = await _featurestoreEntityContainerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturestoreEntityContainerOperationSource(Client), _featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Update"); + scope.Start(); + try + { + var response = _featurestoreEntityContainerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturestoreEntityContainerOperationSource(Client), _featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionCollection.cs new file mode 100644 index 000000000000..9ba0c36ee4ee --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionCollection.cs @@ -0,0 +1,348 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetFeaturestoreEntityVersions method from an instance of . + /// + public partial class FeaturestoreEntityVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _featurestoreEntityVersionClientDiagnostics; + private readonly FeaturestoreEntityVersionsRestOperations _featurestoreEntityVersionRestClient; + + /// Initializes a new instance of the class for mocking. + protected FeaturestoreEntityVersionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal FeaturestoreEntityVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _featurestoreEntityVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeaturestoreEntityVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(FeaturestoreEntityVersionResource.ResourceType, out string featurestoreEntityVersionApiVersion); + _featurestoreEntityVersionRestClient = new FeaturestoreEntityVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featurestoreEntityVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != FeaturestoreEntityContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, FeaturestoreEntityContainerResource.ResourceType), nameof(id)); + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. This is case-sensitive. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _featurestoreEntityVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturestoreEntityVersionOperationSource(Client), _featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. This is case-sensitive. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _featurestoreEntityVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturestoreEntityVersionOperationSource(Client), _featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.Get"); + scope.Start(); + try + { + var response = await _featurestoreEntityVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.Get"); + scope.Start(); + try + { + var response = _featurestoreEntityVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(FeaturestoreEntityVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new FeaturestoreEntityVersionCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _featurestoreEntityVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featurestoreEntityVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeaturestoreEntityVersionResource(Client, FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(e)), _featurestoreEntityVersionClientDiagnostics, Pipeline, "FeaturestoreEntityVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(FeaturestoreEntityVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new FeaturestoreEntityVersionCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _featurestoreEntityVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featurestoreEntityVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeaturestoreEntityVersionResource(Client, FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(e)), _featurestoreEntityVersionClientDiagnostics, Pipeline, "FeaturestoreEntityVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.Exists"); + scope.Start(); + try + { + var response = await _featurestoreEntityVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} + /// + /// + /// Operation Id + /// FeaturestoreEntityVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.Exists"); + scope.Start(); + try + { + var response = _featurestoreEntityVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionData.cs new file mode 100644 index 000000000000..9e37b0a51e57 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionData.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing the FeaturestoreEntityVersion data model. + /// Azure Resource Manager resource envelope. + /// + public partial class FeaturestoreEntityVersionData : ResourceData + { + /// Initializes a new instance of FeaturestoreEntityVersionData. + /// [Required] Additional attributes of the entity. + /// is null. + public FeaturestoreEntityVersionData(FeaturestoreEntityVersionProperties properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of FeaturestoreEntityVersionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + internal FeaturestoreEntityVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturestoreEntityVersionProperties properties) : base(id, name, resourceType, systemData) + { + Properties = properties; + } + + /// [Required] Additional attributes of the entity. + public FeaturestoreEntityVersionProperties Properties { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionResource.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionResource.cs index a9a347d2fa96..4a8347d7ec64 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionResource.cs @@ -17,60 +17,60 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningModelVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningModelVersionResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningModelVersion method. + /// A Class representing a FeaturestoreEntityVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetFeaturestoreEntityVersionResource method. + /// Otherwise you can get one from its parent resource using the GetFeaturestoreEntityVersion method. /// - public partial class MachineLearningModelVersionResource : ArmResource + public partial class FeaturestoreEntityVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}"; + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningModelVersionModelVersionsClientDiagnostics; - private readonly ModelVersionsRestOperations _machineLearningModelVersionModelVersionsRestClient; - private readonly MachineLearningModelVersionData _data; + private readonly ClientDiagnostics _featurestoreEntityVersionClientDiagnostics; + private readonly FeaturestoreEntityVersionsRestOperations _featurestoreEntityVersionRestClient; + private readonly FeaturestoreEntityVersionData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningModelVersionResource() + /// Initializes a new instance of the class for mocking. + protected FeaturestoreEntityVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningModelVersionResource(ArmClient client, MachineLearningModelVersionData data) : this(client, data.Id) + internal FeaturestoreEntityVersionResource(ArmClient client, FeaturestoreEntityVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningModelVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal FeaturestoreEntityVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningModelVersionModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningModelVersionModelVersionsApiVersion); - _machineLearningModelVersionModelVersionsRestClient = new ModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningModelVersionModelVersionsApiVersion); + _featurestoreEntityVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string featurestoreEntityVersionApiVersion); + _featurestoreEntityVersionRestClient = new FeaturestoreEntityVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featurestoreEntityVersionApiVersion); #if DEBUG ValidateResourceId(Id); #endif } /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/models/versions"; + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/featurestoreEntities/versions"; /// Gets whether or not the current instance has data. public virtual bool HasData { get; } /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual MachineLearningModelVersionData Data + public virtual FeaturestoreEntityVersionData Data { get { @@ -91,25 +91,25 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} /// /// /// Operation Id - /// ModelVersions_Get + /// FeaturestoreEntityVersions_Get /// /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Get"); + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Get"); scope.Start(); try { - var response = await _machineLearningModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _featurestoreEntityVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -123,25 +123,25 @@ public virtual async Task> GetAsyn /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} /// /// /// Operation Id - /// ModelVersions_Get + /// FeaturestoreEntityVersions_Get /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Get"); + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Get"); scope.Start(); try { - var response = _machineLearningModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _featurestoreEntityVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -155,11 +155,11 @@ public virtual Response Get(CancellationTok /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} /// /// /// Operation Id - /// ModelVersions_Delete + /// FeaturestoreEntityVersions_Delete /// /// /// @@ -167,12 +167,12 @@ public virtual Response Get(CancellationTok /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Delete"); + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Delete"); scope.Start(); try { - var response = await _machineLearningModelVersionModelVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var response = await _featurestoreEntityVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -189,11 +189,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} /// /// /// Operation Id - /// ModelVersions_Delete + /// FeaturestoreEntityVersions_Delete /// /// /// @@ -201,12 +201,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Delete"); + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Delete"); scope.Start(); try { - var response = _machineLearningModelVersionModelVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var response = _featurestoreEntityVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -223,11 +223,11 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} /// /// /// Operation Id - /// ModelVersions_CreateOrUpdate + /// FeaturestoreEntityVersions_CreateOrUpdate /// /// /// @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Update"); + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Update"); scope.Start(); try { - var response = await _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); + var response = await _featurestoreEntityVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturestoreEntityVersionOperationSource(Client), _featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -261,11 +261,11 @@ public virtual async Task> Upd /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version} /// /// /// Operation Id - /// ModelVersions_CreateOrUpdate + /// FeaturestoreEntityVersions_CreateOrUpdate /// /// /// @@ -273,16 +273,16 @@ public virtual async Task> Upd /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Update"); + using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Update"); scope.Start(); try { - var response = _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); + var response = _featurestoreEntityVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturestoreEntityVersionOperationSource(Client), _featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobCollection.cs new file mode 100644 index 000000000000..9b142797b0c6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobCollection.cs @@ -0,0 +1,353 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetLabelingJobs method from an instance of . + /// + public partial class LabelingJobCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _labelingJobClientDiagnostics; + private readonly LabelingJobsRestOperations _labelingJobRestClient; + + /// Initializes a new instance of the class for mocking. + protected LabelingJobCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal LabelingJobCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _labelingJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", LabelingJobResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(LabelingJobResource.ResourceType, out string labelingJobApiVersion); + _labelingJobRestClient = new LabelingJobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, labelingJobApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != MachineLearningWorkspaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningWorkspaceResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a labeling job (asynchronous). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name and identifier for the LabelingJob. + /// LabelingJob definition object. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string id, LabelingJobData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new LabelingJobOperationSource(Client), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a labeling job (asynchronous). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name and identifier for the LabelingJob. + /// LabelingJob definition object. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string id, LabelingJobData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _labelingJobRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken); + var operation = new MachineLearningArmOperation(new LabelingJobOperationSource(Client), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a labeling job by name/id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_Get + /// + /// + /// + /// The name and identifier for the LabelingJob. + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.Get"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a labeling job by name/id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_Get + /// + /// + /// + /// The name and identifier for the LabelingJob. + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.Get"); + scope.Start(); + try + { + var response = _labelingJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists labeling jobs in the workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs + /// + /// + /// Operation Id + /// LabelingJobs_List + /// + /// + /// + /// Continuation token for pagination. + /// Number of labeling jobs to return. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, int? top = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _labelingJobRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _labelingJobRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new LabelingJobResource(Client, LabelingJobData.DeserializeLabelingJobData(e)), _labelingJobClientDiagnostics, Pipeline, "LabelingJobCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists labeling jobs in the workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs + /// + /// + /// Operation Id + /// LabelingJobs_List + /// + /// + /// + /// Continuation token for pagination. + /// Number of labeling jobs to return. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, int? top = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _labelingJobRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _labelingJobRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new LabelingJobResource(Client, LabelingJobData.DeserializeLabelingJobData(e)), _labelingJobClientDiagnostics, Pipeline, "LabelingJobCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_Get + /// + /// + /// + /// The name and identifier for the LabelingJob. + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.Exists"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_Get + /// + /// + /// + /// The name and identifier for the LabelingJob. + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.Exists"); + scope.Start(); + try + { + var response = _labelingJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobData.cs new file mode 100644 index 000000000000..d6f5f7bdd6a3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobData.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing the LabelingJob data model. + /// Azure Resource Manager resource envelope. + /// + public partial class LabelingJobData : ResourceData + { + /// Initializes a new instance of LabelingJobData. + /// [Required] Additional attributes of the entity. + /// is null. + public LabelingJobData(LabelingJobProperties properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of LabelingJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + internal LabelingJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, LabelingJobProperties properties) : base(id, name, resourceType, systemData) + { + Properties = properties; + } + + /// [Required] Additional attributes of the entity. + public LabelingJobProperties Properties { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobResource.cs new file mode 100644 index 000000000000..9cde3458dc15 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobResource.cs @@ -0,0 +1,506 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a LabelingJob along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetLabelingJobResource method. + /// Otherwise you can get one from its parent resource using the GetLabelingJob method. + /// + public partial class LabelingJobResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _labelingJobClientDiagnostics; + private readonly LabelingJobsRestOperations _labelingJobRestClient; + private readonly LabelingJobData _data; + + /// Initializes a new instance of the class for mocking. + protected LabelingJobResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal LabelingJobResource(ArmClient client, LabelingJobData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal LabelingJobResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _labelingJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string labelingJobApiVersion); + _labelingJobRestClient = new LabelingJobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, labelingJobApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/labelingJobs"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual LabelingJobData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets a labeling job by name/id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_Get + /// + /// + /// + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. + /// The cancellation token to use. + public virtual async Task> GetAsync(bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + { + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Get"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a labeling job by name/id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_Get + /// + /// + /// + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. + /// The cancellation token to use. + public virtual Response Get(bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + { + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Get"); + scope.Start(); + try + { + var response = _labelingJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, includeJobInstructions, includeLabelCategories, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a labeling job. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Delete"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(response); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a labeling job. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Delete"); + scope.Start(); + try + { + var response = _labelingJobRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(response); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a labeling job (asynchronous). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// LabelingJob definition object. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, LabelingJobData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Update"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new LabelingJobOperationSource(Client), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a labeling job (asynchronous). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} + /// + /// + /// Operation Id + /// LabelingJobs_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// LabelingJob definition object. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, LabelingJobData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Update"); + scope.Start(); + try + { + var response = _labelingJobRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new LabelingJobOperationSource(Client), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Export labels from a labeling job (asynchronous). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels + /// + /// + /// Operation Id + /// LabelingJobs_ExportLabels + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The export summary. + /// The cancellation token to use. + /// is null. + public virtual async Task> ExportLabelsAsync(WaitUntil waitUntil, ExportSummary body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.ExportLabels"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.ExportLabelsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new ExportSummaryOperationSource(), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateExportLabelsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Export labels from a labeling job (asynchronous). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels + /// + /// + /// Operation Id + /// LabelingJobs_ExportLabels + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The export summary. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation ExportLabels(WaitUntil waitUntil, ExportSummary body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.ExportLabels"); + scope.Start(); + try + { + var response = _labelingJobRestClient.ExportLabels(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, cancellationToken); + var operation = new MachineLearningArmOperation(new ExportSummaryOperationSource(), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateExportLabelsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Pause a labeling job. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause + /// + /// + /// Operation Id + /// LabelingJobs_Pause + /// + /// + /// + /// The cancellation token to use. + public virtual async Task PauseAsync(CancellationToken cancellationToken = default) + { + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Pause"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.PauseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Pause a labeling job. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause + /// + /// + /// Operation Id + /// LabelingJobs_Pause + /// + /// + /// + /// The cancellation token to use. + public virtual Response Pause(CancellationToken cancellationToken = default) + { + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Pause"); + scope.Start(); + try + { + var response = _labelingJobRestClient.Pause(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Resume a labeling job (asynchronous). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume + /// + /// + /// Operation Id + /// LabelingJobs_Resume + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task ResumeAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Resume"); + scope.Start(); + try + { + var response = await _labelingJobRestClient.ResumeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateResumeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Resume a labeling job (asynchronous). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume + /// + /// + /// Operation Id + /// LabelingJobs_Resume + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Resume(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Resume"); + scope.Start(); + try + { + var response = _labelingJobRestClient.Resume(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateResumeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ExportSummaryOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ExportSummaryOperationSource.cs new file mode 100644 index 000000000000..88b76ee464b8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ExportSummaryOperationSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class ExportSummaryOperationSource : IOperationSource + { + ExportSummary IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return ExportSummary.DeserializeExportSummary(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return ExportSummary.DeserializeExportSummary(document.RootElement); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetContainerOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetContainerOperationSource.cs new file mode 100644 index 000000000000..acd7056bb953 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetContainerOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class FeaturesetContainerOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal FeaturesetContainerOperationSource(ArmClient client) + { + _client = client; + } + + FeaturesetContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = FeaturesetContainerData.DeserializeFeaturesetContainerData(document.RootElement); + return new FeaturesetContainerResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = FeaturesetContainerData.DeserializeFeaturesetContainerData(document.RootElement); + return new FeaturesetContainerResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetJobOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetJobOperationSource.cs new file mode 100644 index 000000000000..8ebacd0def7d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetJobOperationSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class FeaturesetJobOperationSource : IOperationSource + { + FeaturesetJob IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return FeaturesetJob.DeserializeFeaturesetJob(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return FeaturesetJob.DeserializeFeaturesetJob(document.RootElement); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetVersionOperationSource.cs new file mode 100644 index 000000000000..c26b7a31dd92 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class FeaturesetVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal FeaturesetVersionOperationSource(ArmClient client) + { + _client = client; + } + + FeaturesetVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = FeaturesetVersionData.DeserializeFeaturesetVersionData(document.RootElement); + return new FeaturesetVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = FeaturesetVersionData.DeserializeFeaturesetVersionData(document.RootElement); + return new FeaturesetVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityContainerOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityContainerOperationSource.cs new file mode 100644 index 000000000000..4872bfe73d78 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityContainerOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class FeaturestoreEntityContainerOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal FeaturestoreEntityContainerOperationSource(ArmClient client) + { + _client = client; + } + + FeaturestoreEntityContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(document.RootElement); + return new FeaturestoreEntityContainerResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(document.RootElement); + return new FeaturestoreEntityContainerResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityVersionOperationSource.cs new file mode 100644 index 000000000000..ce5111f557ce --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class FeaturestoreEntityVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal FeaturestoreEntityVersionOperationSource(ArmClient client) + { + _client = client; + } + + FeaturestoreEntityVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(document.RootElement); + return new FeaturestoreEntityVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(document.RootElement); + return new FeaturestoreEntityVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/LabelingJobOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/LabelingJobOperationSource.cs new file mode 100644 index 000000000000..569e96fd627d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/LabelingJobOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class LabelingJobOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal LabelingJobOperationSource(ArmClient client) + { + _client = client; + } + + LabelingJobResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = LabelingJobData.DeserializeLabelingJobData(document.RootElement); + return new LabelingJobResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = LabelingJobData.DeserializeLabelingJobData(document.RootElement); + return new LabelingJobResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ManagedNetworkProvisionStatusOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ManagedNetworkProvisionStatusOperationSource.cs new file mode 100644 index 000000000000..0452f51d71e7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ManagedNetworkProvisionStatusOperationSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class ManagedNetworkProvisionStatusOperationSource : IOperationSource + { + ManagedNetworkProvisionStatus IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return ManagedNetworkProvisionStatus.DeserializeManagedNetworkProvisionStatus(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return ManagedNetworkProvisionStatus.DeserializeManagedNetworkProvisionStatus(document.RootElement); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/OutboundRuleBasicResourceOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/OutboundRuleBasicResourceOperationSource.cs new file mode 100644 index 000000000000..684287a81b9d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/OutboundRuleBasicResourceOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class OutboundRuleBasicResourceOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal OutboundRuleBasicResourceOperationSource(ArmClient client) + { + _client = client; + } + + OutboundRuleBasicResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(document.RootElement); + return new OutboundRuleBasicResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(document.RootElement); + return new OutboundRuleBasicResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/PackageResponseOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/PackageResponseOperationSource.cs new file mode 100644 index 000000000000..21cb0719efa9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/PackageResponseOperationSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class PackageResponseOperationSource : IOperationSource + { + PackageResponse IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return PackageResponse.DeserializePackageResponse(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return PackageResponse.DeserializePackageResponse(document.RootElement); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeOperationSource.cs new file mode 100644 index 000000000000..1401d36618a5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryCodeOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryCodeOperationSource(ArmClient client) + { + _client = client; + } + + RegistryCodeResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(document.RootElement); + return new RegistryCodeResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(document.RootElement); + return new RegistryCodeResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeVersionOperationSource.cs new file mode 100644 index 000000000000..bbbd1ff3a688 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryCodeVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryCodeVersionOperationSource(ArmClient client) + { + _client = client; + } + + RegistryCodeVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(document.RootElement); + return new RegistryCodeVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(document.RootElement); + return new RegistryCodeVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentOperationSource.cs new file mode 100644 index 000000000000..2167a97e8764 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryComponentOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryComponentOperationSource(ArmClient client) + { + _client = client; + } + + RegistryComponentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(document.RootElement); + return new RegistryComponentResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(document.RootElement); + return new RegistryComponentResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentVersionOperationSource.cs new file mode 100644 index 000000000000..a5a6c60bcc29 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryComponentVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryComponentVersionOperationSource(ArmClient client) + { + _client = client; + } + + RegistryComponentVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(document.RootElement); + return new RegistryComponentVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(document.RootElement); + return new RegistryComponentVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataOperationSource.cs new file mode 100644 index 000000000000..751763329d13 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryDataOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryDataOperationSource(ArmClient client) + { + _client = client; + } + + RegistryDataResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(document.RootElement); + return new RegistryDataResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(document.RootElement); + return new RegistryDataResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataVersionOperationSource.cs new file mode 100644 index 000000000000..92975bbed8fc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryDataVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryDataVersionOperationSource(ArmClient client) + { + _client = client; + } + + RegistryDataVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(document.RootElement); + return new RegistryDataVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(document.RootElement); + return new RegistryDataVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentOperationSource.cs new file mode 100644 index 000000000000..af2e690646ed --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryEnvironmentOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryEnvironmentOperationSource(ArmClient client) + { + _client = client; + } + + RegistryEnvironmentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(document.RootElement); + return new RegistryEnvironmentResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(document.RootElement); + return new RegistryEnvironmentResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentVersionOperationSource.cs new file mode 100644 index 000000000000..fd4912bafd65 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryEnvironmentVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryEnvironmentVersionOperationSource(ArmClient client) + { + _client = client; + } + + RegistryEnvironmentVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(document.RootElement); + return new RegistryEnvironmentVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(document.RootElement); + return new RegistryEnvironmentVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelOperationSource.cs new file mode 100644 index 000000000000..bc1f6d88326e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryModelOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryModelOperationSource(ArmClient client) + { + _client = client; + } + + RegistryModelResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(document.RootElement); + return new RegistryModelResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(document.RootElement); + return new RegistryModelResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelVersionOperationSource.cs new file mode 100644 index 000000000000..6e13458e76d0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryModelVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryModelVersionOperationSource(ArmClient client) + { + _client = client; + } + + RegistryModelVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(document.RootElement); + return new RegistryModelVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(document.RootElement); + return new RegistryModelVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryOperationSource.cs new file mode 100644 index 000000000000..dee4124e952f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class RegistryOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal RegistryOperationSource(ArmClient client) + { + _client = client; + } + + RegistryResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = RegistryData.DeserializeRegistryData(document.RootElement); + return new RegistryResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = RegistryData.DeserializeRegistryData(document.RootElement); + return new RegistryResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningBatchDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningBatchDeploymentCollection.cs index 3b4b3f2331f7..3bb0e2558fc4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningBatchDeploymentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningBatchDeploymentCollection.cs @@ -82,7 +82,7 @@ public virtual async Task> try { var response = await _machineLearningBatchDeploymentBatchDeploymentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new MachineLearningBatchDeploymentOperationSource(Client), _machineLearningBatchDeploymentBatchDeploymentsClientDiagnostics, Pipeline, _machineLearningBatchDeploymentBatchDeploymentsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningBatchDeploymentOperationSource(Client), _machineLearningBatchDeploymentBatchDeploymentsClientDiagnostics, Pipeline, _machineLearningBatchDeploymentBatchDeploymentsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -123,7 +123,7 @@ public virtual ArmOperation CreateOrUpda try { var response = _machineLearningBatchDeploymentBatchDeploymentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new MachineLearningBatchDeploymentOperationSource(Client), _machineLearningBatchDeploymentBatchDeploymentsClientDiagnostics, Pipeline, _machineLearningBatchDeploymentBatchDeploymentsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningBatchDeploymentOperationSource(Client), _machineLearningBatchDeploymentBatchDeploymentsClientDiagnostics, Pipeline, _machineLearningBatchDeploymentBatchDeploymentsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningBatchEndpointCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningBatchEndpointCollection.cs index f462fd295b24..e87a24cb5450 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningBatchEndpointCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningBatchEndpointCollection.cs @@ -82,7 +82,7 @@ public virtual async Task> Cr try { var response = await _machineLearningBatchEndpointBatchEndpointsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new MachineLearningBatchEndpointOperationSource(Client), _machineLearningBatchEndpointBatchEndpointsClientDiagnostics, Pipeline, _machineLearningBatchEndpointBatchEndpointsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningBatchEndpointOperationSource(Client), _machineLearningBatchEndpointBatchEndpointsClientDiagnostics, Pipeline, _machineLearningBatchEndpointBatchEndpointsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -123,7 +123,7 @@ public virtual ArmOperation CreateOrUpdate try { var response = _machineLearningBatchEndpointBatchEndpointsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new MachineLearningBatchEndpointOperationSource(Client), _machineLearningBatchEndpointBatchEndpointsClientDiagnostics, Pipeline, _machineLearningBatchEndpointBatchEndpointsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningBatchEndpointOperationSource(Client), _machineLearningBatchEndpointBatchEndpointsClientDiagnostics, Pipeline, _machineLearningBatchEndpointBatchEndpointsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComputeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComputeResource.cs index c46d8772dcd6..befaf9255fa4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComputeResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComputeResource.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -298,6 +299,74 @@ public virtual ArmOperation Update(WaitUntil wai } } + /// + /// Updates the custom services list. The list of custom services provided shall be overwritten + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/customServices + /// + /// + /// Operation Id + /// Compute_UpdateCustomServices + /// + /// + /// + /// New list of Custom Services. + /// The cancellation token to use. + /// is null. + public virtual async Task UpdateCustomServicesAsync(IEnumerable customServices, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(customServices, nameof(customServices)); + + using var scope = _machineLearningComputeComputeClientDiagnostics.CreateScope("MachineLearningComputeResource.UpdateCustomServices"); + scope.Start(); + try + { + var response = await _machineLearningComputeComputeRestClient.UpdateCustomServicesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, customServices, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates the custom services list. The list of custom services provided shall be overwritten + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/customServices + /// + /// + /// Operation Id + /// Compute_UpdateCustomServices + /// + /// + /// + /// New list of Custom Services. + /// The cancellation token to use. + /// is null. + public virtual Response UpdateCustomServices(IEnumerable customServices, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(customServices, nameof(customServices)); + + using var scope = _machineLearningComputeComputeClientDiagnostics.CreateScope("MachineLearningComputeResource.UpdateCustomServices"); + scope.Start(); + try + { + var response = _machineLearningComputeComputeRestClient.UpdateCustomServices(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, customServices, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Get the details (e.g IP address, port etc) of all the compute nodes in the compute. /// @@ -605,5 +674,73 @@ public virtual ArmOperation Restart(WaitUntil waitUntil, CancellationToken cance throw; } } + + /// + /// Updates the idle shutdown setting of a compute instance. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateIdleShutdownSetting + /// + /// + /// Operation Id + /// Compute_UpdateIdleShutdownSetting + /// + /// + /// + /// The object for updating idle shutdown setting of specified ComputeInstance. + /// The cancellation token to use. + /// is null. + public virtual async Task UpdateIdleShutdownSettingAsync(IdleShutdownSetting idleShutdownSetting, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(idleShutdownSetting, nameof(idleShutdownSetting)); + + using var scope = _machineLearningComputeComputeClientDiagnostics.CreateScope("MachineLearningComputeResource.UpdateIdleShutdownSetting"); + scope.Start(); + try + { + var response = await _machineLearningComputeComputeRestClient.UpdateIdleShutdownSettingAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, idleShutdownSetting, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates the idle shutdown setting of a compute instance. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateIdleShutdownSetting + /// + /// + /// Operation Id + /// Compute_UpdateIdleShutdownSetting + /// + /// + /// + /// The object for updating idle shutdown setting of specified ComputeInstance. + /// The cancellation token to use. + /// is null. + public virtual Response UpdateIdleShutdownSetting(IdleShutdownSetting idleShutdownSetting, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(idleShutdownSetting, nameof(idleShutdownSetting)); + + using var scope = _machineLearningComputeComputeClientDiagnostics.CreateScope("MachineLearningComputeResource.UpdateIdleShutdownSetting"); + scope.Start(); + try + { + var response = _machineLearningComputeComputeRestClient.UpdateIdleShutdownSetting(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, idleShutdownSetting, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreData.cs index 2f222e5e4904..1a41ef9ab780 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreData.cs @@ -22,7 +22,7 @@ public partial class MachineLearningDatastoreData : ResourceData /// /// [Required] Additional attributes of the entity. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// /// is null. public MachineLearningDatastoreData(MachineLearningDatastoreProperties properties) @@ -40,7 +40,7 @@ public MachineLearningDatastoreData(MachineLearningDatastoreProperties propertie /// /// [Required] Additional attributes of the entity. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// internal MachineLearningDatastoreData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningDatastoreProperties properties) : base(id, name, resourceType, systemData) { @@ -50,7 +50,7 @@ internal MachineLearningDatastoreData(ResourceIdentifier id, string name, Resour /// /// [Required] Additional attributes of the entity. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public MachineLearningDatastoreProperties Properties { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobCollection.cs index f714649a6ce5..68fdc8859cd3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobCollection.cs @@ -223,16 +223,15 @@ public virtual Response Get(string id, CancellationT /// /// /// - /// Continuation token for pagination. - /// Type of job to be returned. - /// Jobs returned will have this tag key. - /// View type for including/excluding (for example) archived entities. + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(MachineLearningJobCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningJobJobsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, jobType, tag, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningJobJobsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, jobType, tag, listViewType); + options ??= new MachineLearningJobCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningJobJobsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.JobType, options.Tag, options.ListViewType, options.AssetName, options.Scheduled, options.ScheduleId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningJobJobsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.JobType, options.Tag, options.ListViewType, options.AssetName, options.Scheduled, options.ScheduleId); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningJobResource(Client, MachineLearningJobData.DeserializeMachineLearningJobData(e)), _machineLearningJobJobsClientDiagnostics, Pipeline, "MachineLearningJobCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -249,16 +248,15 @@ public virtual AsyncPageable GetAllAsync(string skip /// /// /// - /// Continuation token for pagination. - /// Type of job to be returned. - /// Jobs returned will have this tag key. - /// View type for including/excluding (for example) archived entities. + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public virtual Pageable GetAll(MachineLearningJobCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningJobJobsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, jobType, tag, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningJobJobsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, jobType, tag, listViewType); + options ??= new MachineLearningJobCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningJobJobsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.JobType, options.Tag, options.ListViewType, options.AssetName, options.Scheduled, options.ScheduleId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningJobJobsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.JobType, options.Tag, options.ListViewType, options.AssetName, options.Scheduled, options.ScheduleId); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningJobResource(Client, MachineLearningJobData.DeserializeMachineLearningJobData(e)), _machineLearningJobJobsClientDiagnostics, Pipeline, "MachineLearningJobCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -334,17 +332,17 @@ public virtual Response Exists(string id, CancellationToken cancellationTo IEnumerator IEnumerable.GetEnumerator() { - return GetAll().GetEnumerator(); + return GetAll(options: null).GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { - return GetAll().GetEnumerator(); + return GetAll(options: null).GetEnumerator(); } IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobData.cs index 46efa6d28bb0..7f688a51cedf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobData.cs @@ -22,7 +22,7 @@ public partial class MachineLearningJobData : ResourceData /// /// [Required] Additional attributes of the entity. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// /// is null. public MachineLearningJobData(MachineLearningJobProperties properties) @@ -40,7 +40,7 @@ public MachineLearningJobData(MachineLearningJobProperties properties) /// /// [Required] Additional attributes of the entity. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// internal MachineLearningJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningJobProperties properties) : base(id, name, resourceType, systemData) { @@ -50,7 +50,7 @@ internal MachineLearningJobData(ResourceIdentifier id, string name, ResourceType /// /// [Required] Additional attributes of the entity. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public MachineLearningJobProperties Properties { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobResource.cs index ac190817ca31..2c47c8bcf674 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobResource.cs @@ -13,6 +13,7 @@ using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; namespace Azure.ResourceManager.MachineLearning { @@ -219,7 +220,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Creates and executes a Job. + /// Updates a Job. /// /// /// Request Path @@ -227,27 +228,23 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Operation Id - /// Jobs_CreateOrUpdate + /// Jobs_Update /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Job definition object. + /// Job definition to apply during the operation. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningJobData data, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(MachineLearningJobPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using var scope = _machineLearningJobJobsClientDiagnostics.CreateScope("MachineLearningJobResource.Update"); scope.Start(); try { - var response = await _machineLearningJobJobsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningJobResource(Client, response), response.GetRawResponse())); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _machineLearningJobJobsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new MachineLearningJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +254,7 @@ public virtual async Task> UpdateAsync( } /// - /// Creates and executes a Job. + /// Updates a Job. /// /// /// Request Path @@ -265,27 +262,23 @@ public virtual async Task> UpdateAsync( /// /// /// Operation Id - /// Jobs_CreateOrUpdate + /// Jobs_Update /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Job definition object. + /// Job definition to apply during the operation. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningJobData data, CancellationToken cancellationToken = default) + /// is null. + public virtual Response Update(MachineLearningJobPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using var scope = _machineLearningJobJobsClientDiagnostics.CreateScope("MachineLearningJobResource.Update"); scope.Start(); try { - var response = _machineLearningJobJobsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningJobResource(Client, response), response.GetRawResponse())); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; + var response = _machineLearningJobJobsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new MachineLearningJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineDeploymentCollection.cs index fe9a7d27d83d..63590818b7f0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineDeploymentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineDeploymentCollection.cs @@ -82,7 +82,7 @@ public virtual async Task> try { var response = await _machineLearningOnlineDeploymentOnlineDeploymentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new MachineLearningOnlineDeploymentOperationSource(Client), _machineLearningOnlineDeploymentOnlineDeploymentsClientDiagnostics, Pipeline, _machineLearningOnlineDeploymentOnlineDeploymentsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningOnlineDeploymentOperationSource(Client), _machineLearningOnlineDeploymentOnlineDeploymentsClientDiagnostics, Pipeline, _machineLearningOnlineDeploymentOnlineDeploymentsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -123,7 +123,7 @@ public virtual ArmOperation CreateOrUpd try { var response = _machineLearningOnlineDeploymentOnlineDeploymentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new MachineLearningOnlineDeploymentOperationSource(Client), _machineLearningOnlineDeploymentOnlineDeploymentsClientDiagnostics, Pipeline, _machineLearningOnlineDeploymentOnlineDeploymentsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningOnlineDeploymentOperationSource(Client), _machineLearningOnlineDeploymentOnlineDeploymentsClientDiagnostics, Pipeline, _machineLearningOnlineDeploymentOnlineDeploymentsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deploymentName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineEndpointCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineEndpointCollection.cs index da1cc2416f15..54552054b5c3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineEndpointCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineEndpointCollection.cs @@ -83,7 +83,7 @@ public virtual async Task> C try { var response = await _machineLearningOnlineEndpointOnlineEndpointsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new MachineLearningOnlineEndpointOperationSource(Client), _machineLearningOnlineEndpointOnlineEndpointsClientDiagnostics, Pipeline, _machineLearningOnlineEndpointOnlineEndpointsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningOnlineEndpointOperationSource(Client), _machineLearningOnlineEndpointOnlineEndpointsClientDiagnostics, Pipeline, _machineLearningOnlineEndpointOnlineEndpointsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -124,7 +124,7 @@ public virtual ArmOperation CreateOrUpdat try { var response = _machineLearningOnlineEndpointOnlineEndpointsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new MachineLearningOnlineEndpointOperationSource(Client), _machineLearningOnlineEndpointOnlineEndpointsClientDiagnostics, Pipeline, _machineLearningOnlineEndpointOnlineEndpointsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningOnlineEndpointOperationSource(Client), _machineLearningOnlineEndpointOnlineEndpointsClientDiagnostics, Pipeline, _machineLearningOnlineEndpointOnlineEndpointsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineEndpointResource.cs index 6fcd4b6fb457..175fc1d9e835 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineEndpointResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOnlineEndpointResource.cs @@ -486,7 +486,7 @@ public virtual ArmOperation RegenerateKeys(WaitUntil waitUntil, MachineLearningE } /// - /// Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + /// Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. /// /// /// Request Path @@ -516,7 +516,7 @@ public virtual async Task> GetTokenAs } /// - /// Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + /// Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. /// /// /// Request Path diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionCollection.cs index a7f486015484..65f4a74549be 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionCollection.cs @@ -54,7 +54,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Update the state of 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. /// /// /// Request Path @@ -67,8 +68,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the private endpoint connection associated with the workspace. - /// The private endpoint connection properties. + /// NRP Private Endpoint Connection Name. + /// PrivateEndpointConnection object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -95,7 +96,8 @@ public virtual async Task - /// Update the state of 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. /// /// /// Request Path @@ -108,8 +110,8 @@ public virtual async Task /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the private endpoint connection associated with the workspace. - /// The private endpoint connection properties. + /// NRP Private Endpoint Connection Name. + /// PrivateEndpointConnection object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -136,7 +138,7 @@ public virtual ArmOperation Cr } /// - /// Gets the specified private endpoint connection associated with the workspace. + /// Called by end-users to get a PE connection. /// /// /// Request Path @@ -148,7 +150,7 @@ public virtual ArmOperation Cr /// /// /// - /// The name of the private endpoint connection associated with the workspace. + /// NRP Private Endpoint Connection Name. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -173,7 +175,7 @@ public virtual async Task - /// Gets the specified private endpoint connection associated with the workspace. + /// Called by end-users to get a PE connection. /// /// /// Request Path @@ -185,7 +187,7 @@ public virtual async Task /// /// - /// The name of the private endpoint connection associated with the workspace. + /// NRP Private Endpoint Connection Name. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -210,7 +212,7 @@ public virtual Response Get(st } /// - /// List all the private endpoint connections associated with the workspace. + /// Called by end-users to get all PE connections. /// /// /// Request Path @@ -231,7 +233,7 @@ public virtual AsyncPageable G } /// - /// List all the private endpoint connections associated with the workspace. + /// Called by end-users to get all PE connections. /// /// /// Request Path @@ -264,7 +266,7 @@ public virtual Pageable GetAll /// /// /// - /// The name of the private endpoint connection associated with the workspace. + /// NRP Private Endpoint Connection Name. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -299,7 +301,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// - /// The name of the private endpoint connection associated with the workspace. + /// NRP Private Endpoint Connection Name. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionData.cs index 3d301426cb38..486a36a53bcb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionData.cs @@ -31,12 +31,12 @@ public MachineLearningPrivateEndpointConnectionData(AzureLocation location) : ba /// The systemData. /// The tags. /// The location. - /// The identity of the resource. - /// The sku of the workspace. - /// The resource of private end point. - /// A collection of information about the state of the connection between service consumer and provider. - /// The provisioning state of the private endpoint connection resource. - internal MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, MachineLearningPrivateEndpoint privateEndpoint, MachineLearningPrivateLinkServiceConnectionState connectionState, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location) + /// Managed service identity (system assigned and/or user assigned identities). + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. + /// The Private Endpoint resource. + /// The connection state. + /// The current provisioning state. + internal MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, WorkspacePrivateEndpointResource privateEndpoint, MachineLearningPrivateLinkServiceConnectionState connectionState, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Sku = sku; @@ -45,15 +45,15 @@ internal MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id, str ProvisioningState = provisioningState; } - /// The identity of the resource. + /// Managed service identity (system assigned and/or user assigned identities). public ManagedServiceIdentity Identity { get; set; } - /// The sku of the workspace. + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. public MachineLearningSku Sku { get; set; } - /// The resource of private end point. - public MachineLearningPrivateEndpoint PrivateEndpoint { get; set; } - /// A collection of information about the state of the connection between service consumer and provider. + /// The Private Endpoint resource. + public WorkspacePrivateEndpointResource PrivateEndpoint { get; set; } + /// The connection state. public MachineLearningPrivateLinkServiceConnectionState ConnectionState { get; set; } - /// The provisioning state of the private endpoint connection resource. + /// The current provisioning state. public MachineLearningPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionResource.cs index 1a41d366f98f..1cc0de9fd54a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionResource.cs @@ -88,7 +88,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Gets the specified private endpoint connection associated with the workspace. + /// Called by end-users to get a PE connection. /// /// /// Request Path @@ -120,7 +120,7 @@ public virtual async Task - /// Gets the specified private endpoint connection associated with the workspace. + /// Called by end-users to get a PE connection. /// /// /// Request Path @@ -152,7 +152,7 @@ public virtual Response Get(Ca } /// - /// Deletes the specified private endpoint connection associated with the workspace. + /// Called by end-users to delete a PE connection. /// /// /// Request Path @@ -186,7 +186,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Deletes the specified private endpoint connection associated with the workspace. + /// Called by end-users to delete a PE connection. /// /// /// Request Path @@ -220,7 +220,8 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Update the state of 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. /// /// /// Request Path @@ -233,7 +234,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The private endpoint connection properties. + /// PrivateEndpointConnection object. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) @@ -258,7 +259,8 @@ public virtual async Task - /// Update the state of 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. /// /// /// Request Path @@ -271,7 +273,7 @@ public virtual async Task /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The private endpoint connection properties. + /// PrivateEndpointConnection object. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningScheduleCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningScheduleCollection.cs index ec6251d493c0..798d27bb6397 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningScheduleCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningScheduleCollection.cs @@ -83,7 +83,7 @@ public virtual async Task> CreateO try { var response = await _machineLearningScheduleSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new MachineLearningScheduleOperationSource(Client), _machineLearningScheduleSchedulesClientDiagnostics, Pipeline, _machineLearningScheduleSchedulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningScheduleOperationSource(Client), _machineLearningScheduleSchedulesClientDiagnostics, Pipeline, _machineLearningScheduleSchedulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -124,7 +124,7 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _machineLearningScheduleSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new MachineLearningScheduleOperationSource(Client), _machineLearningScheduleSchedulesClientDiagnostics, Pipeline, _machineLearningScheduleSchedulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningScheduleOperationSource(Client), _machineLearningScheduleSchedulesClientDiagnostics, Pipeline, _machineLearningScheduleSchedulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningScheduleResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningScheduleResource.cs index a2f5f864d1d2..7ba5e3023748 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningScheduleResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningScheduleResource.cs @@ -244,7 +244,7 @@ public virtual async Task> UpdateA try { var response = await _machineLearningScheduleSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new MachineLearningScheduleOperationSource(Client), _machineLearningScheduleSchedulesClientDiagnostics, Pipeline, _machineLearningScheduleSchedulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningScheduleOperationSource(Client), _machineLearningScheduleSchedulesClientDiagnostics, Pipeline, _machineLearningScheduleSchedulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -282,7 +282,7 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _machineLearningScheduleSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new MachineLearningScheduleOperationSource(Client), _machineLearningScheduleSchedulesClientDiagnostics, Pipeline, _machineLearningScheduleSchedulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningScheduleOperationSource(Client), _machineLearningScheduleSchedulesClientDiagnostics, Pipeline, _machineLearningScheduleSchedulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceCollection.cs index 1ba2b9200b16..26fcd1fddd40 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceCollection.cs @@ -224,12 +224,13 @@ public virtual Response Get(string workspaceNa /// /// /// Continuation token for pagination. + /// Kind of workspace. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(string skip = null, string kind = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningWorkspaceWorkspacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, skip); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, skip, kind); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningWorkspaceWorkspacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, skip, kind); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -247,12 +248,13 @@ public virtual AsyncPageable GetAllAsync(strin /// /// /// Continuation token for pagination. + /// Kind of workspace. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) + public virtual Pageable GetAll(string skip = null, string kind = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningWorkspaceWorkspacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, skip); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, skip, kind); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningWorkspaceWorkspacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, skip, kind); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceCollection.GetAll", "value", "nextLink", cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionCollection.cs index 45d050447d44..fb5e699150cf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionCollection.cs @@ -54,6 +54,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// + /// Create or update machine learning workspaces connections under the specified workspace. /// /// /// Request Path @@ -94,6 +95,7 @@ public virtual async Task + /// Create or update machine learning workspaces connections under the specified workspace. /// /// /// Request Path @@ -134,6 +136,7 @@ public virtual ArmOperation CreateOr } /// + /// Lists machine learning workspaces connections by name. /// /// /// Request Path @@ -170,6 +173,7 @@ public virtual async Task> } /// + /// Lists machine learning workspaces connections by name. /// /// /// Request Path @@ -206,6 +210,7 @@ public virtual Response Get(string c } /// + /// Lists all the available machine learning workspaces connections under the specified workspace. /// /// /// Request Path @@ -229,6 +234,7 @@ public virtual AsyncPageable GetAllA } /// + /// Lists all the available machine learning workspaces connections under the specified workspace. /// /// /// Request Path diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionData.cs index f21bd31072c5..f199a2171666 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionData.cs @@ -18,7 +18,7 @@ public partial class MachineLearningWorkspaceConnectionData : ResourceData /// Initializes a new instance of MachineLearningWorkspaceConnectionData. /// /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , , , and . /// /// is null. public MachineLearningWorkspaceConnectionData(MachineLearningWorkspaceConnectionProperties properties) @@ -35,7 +35,7 @@ public MachineLearningWorkspaceConnectionData(MachineLearningWorkspaceConnection /// The systemData. /// /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , , , and . /// internal MachineLearningWorkspaceConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningWorkspaceConnectionProperties properties) : base(id, name, resourceType, systemData) { @@ -45,7 +45,7 @@ internal MachineLearningWorkspaceConnectionData(ResourceIdentifier id, string na /// /// Gets or sets the properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , , , and . /// public MachineLearningWorkspaceConnectionProperties Properties { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionResource.cs index 19341564c8f5..f9127200809e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionResource.cs @@ -13,6 +13,7 @@ using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; namespace Azure.ResourceManager.MachineLearning { @@ -87,6 +88,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// + /// Lists machine learning workspaces connections by name. /// /// /// Request Path @@ -118,6 +120,7 @@ public virtual async Task> } /// + /// Lists machine learning workspaces connections by name. /// /// /// Request Path @@ -149,6 +152,7 @@ public virtual Response Get(Cancella } /// + /// Delete machine learning workspaces connections by name. /// /// /// Request Path @@ -182,6 +186,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// + /// Delete machine learning workspaces connections by name. /// /// /// Request Path @@ -215,6 +220,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// + /// Update machine learning workspaces connections under the specified workspace. /// /// /// Request Path @@ -222,27 +228,23 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Operation Id - /// WorkspaceConnections_Create + /// WorkspaceConnections_Update /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The object for creating or updating a new workspace connection. + /// Parameters for workspace connection update. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningWorkspaceConnectionData data, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(MachineLearningWorkspaceConnectionPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using var scope = _machineLearningWorkspaceConnectionWorkspaceConnectionsClientDiagnostics.CreateScope("MachineLearningWorkspaceConnectionResource.Update"); scope.Start(); try { - var response = await _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response), response.GetRawResponse())); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -252,6 +254,7 @@ public virtual async Task + /// Update machine learning workspaces connections under the specified workspace. /// /// /// Request Path @@ -259,27 +262,83 @@ public virtual async Task /// /// Operation Id - /// WorkspaceConnections_Create + /// WorkspaceConnections_Update /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The object for creating or updating a new workspace connection. + /// Parameters for workspace connection update. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningWorkspaceConnectionData data, CancellationToken cancellationToken = default) + /// is null. + public virtual Response Update(MachineLearningWorkspaceConnectionPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using var scope = _machineLearningWorkspaceConnectionWorkspaceConnectionsClientDiagnostics.CreateScope("MachineLearningWorkspaceConnectionResource.Update"); scope.Start(); try { - var response = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response), response.GetRawResponse())); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; + var response = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List all the secrets of a machine learning workspaces connections. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets + /// + /// + /// Operation Id + /// WorkspaceConnections_ListSecrets + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetSecretsAsync(CancellationToken cancellationToken = default) + { + using var scope = _machineLearningWorkspaceConnectionWorkspaceConnectionsClientDiagnostics.CreateScope("MachineLearningWorkspaceConnectionResource.GetSecrets"); + scope.Start(); + try + { + var response = await _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.ListSecretsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List all the secrets of a machine learning workspaces connections. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets + /// + /// + /// Operation Id + /// WorkspaceConnections_ListSecrets + /// + /// + /// + /// The cancellation token to use. + public virtual Response GetSecrets(CancellationToken cancellationToken = default) + { + using var scope = _machineLearningWorkspaceConnectionWorkspaceConnectionsClientDiagnostics.CreateScope("MachineLearningWorkspaceConnectionResource.GetSecrets"); + scope.Start(); + try + { + var response = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.ListSecrets(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs index dcd7fb2b7ea4..b275cf2e06fb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs @@ -23,8 +23,13 @@ public partial class MachineLearningWorkspaceData : TrackedResourceData /// The location. public MachineLearningWorkspaceData(AzureLocation location) : base(location) { + AssociatedWorkspaces = new ChangeTrackingList(); + ContainerRegistries = new ChangeTrackingList(); + ExistingWorkspaces = new ChangeTrackingList(); + KeyVaults = new ChangeTrackingList(); PrivateEndpointConnections = new ChangeTrackingList(); SharedPrivateLinkResources = new ChangeTrackingList(); + StorageAccounts = new ChangeTrackingList(); } /// Initializes a new instance of MachineLearningWorkspaceData. @@ -34,109 +39,149 @@ public MachineLearningWorkspaceData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// The identity of the resource. - /// The sku of the workspace. - /// The immutable id associated with this workspace. - /// The description of this workspace. - /// The friendly name for this workspace. This name in mutable. - /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. + /// Managed service identity (system assigned and/or user assigned identities). + /// + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. + /// The flag to indicate whether to allow public access when behind VNet. /// ARM id of the application insights associated with this workspace. + /// + /// /// ARM id of the container registry associated with this workspace. - /// ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created. + /// The description of this workspace. /// Url for the discovery service to identify regional endpoints for machine learning experimentation services. - /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. - /// The encryption settings of Azure ML workspace. + /// + /// + /// + /// Settings for feature store type workspace. + /// The friendly name for this workspace. This name in mutable. /// The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service. - /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. - /// Count of private connections in the workspace. + /// /// The compute name for image build. - /// The flag to indicate whether to allow public access when behind VNet. - /// Whether requests from Public Network are allowed. - /// The list of private endpoint connections in the workspace. - /// The list of shared private link resources in this workspace. + /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. + /// + /// Managed Network settings for a machine learning workspace. + /// The URI associated with this workspace that machine learning flow must point at to set up tracking. /// The notebook info of Azure ML workspace. - /// The service managed resource settings. /// The user assigned identity resource id that represents the workspace identity. - /// The tenant id associated with this workspace. + /// The list of private endpoint connections in the workspace. + /// Count of private connections in the workspace. + /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + /// Whether requests from Public Network are allowed. + /// The service managed resource settings. + /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. + /// The list of shared private link resources in this workspace. + /// Retention time in days after workspace get soft deleted. + /// ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created. + /// /// If the storage associated with the workspace has hierarchical namespace(HNS) enabled. - /// The URI associated with this workspace that machine learning flow must point at to set up tracking. + /// The auth mode used for accessing the system datastores of the workspace. + /// The tenant id associated with this workspace. /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. - internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, string workspaceId, string description, string friendlyName, string keyVault, string applicationInsights, string containerRegistry, string storageAccount, Uri discoveryUri, MachineLearningProvisioningState? provisioningState, MachineLearningEncryptionSetting encryption, bool? isHbiWorkspace, string serviceProvisionedResourceGroup, int? privateLinkCount, string imageBuildCompute, bool? allowPublicAccessWhenBehindVnet, MachineLearningPublicNetworkAccess? publicNetworkAccess, IReadOnlyList privateEndpointConnections, IList sharedPrivateLinkResources, MachineLearningNotebookResourceInfo notebookInfo, ServiceManagedResourcesSettings serviceManagedResourcesSettings, string primaryUserAssignedIdentity, Guid? tenantId, bool? isStorageHnsEnabled, Uri mlFlowTrackingUri, bool? isV1LegacyMode) : base(id, name, resourceType, systemData, tags, location) + /// WorkspaceHub's configuration object. + /// The immutable id associated with this workspace. + internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string kind, MachineLearningSku sku, bool? allowPublicAccessWhenBehindVnet, string applicationInsights, IList associatedWorkspaces, IList containerRegistries, string containerRegistry, string description, Uri discoveryUri, bool? enableDataIsolation, MachineLearningEncryptionSetting encryption, IList existingWorkspaces, FeatureStoreSettings featureStoreSettings, string friendlyName, bool? isHbiWorkspace, string hubResourceId, string imageBuildCompute, string keyVault, IList keyVaults, ManagedNetworkSettings managedNetwork, Uri mlFlowTrackingUri, MachineLearningNotebookResourceInfo notebookInfo, string primaryUserAssignedIdentity, IReadOnlyList privateEndpointConnections, int? privateLinkCount, MachineLearningProvisioningState? provisioningState, MachineLearningPublicNetworkAccessType? publicNetworkAccess, ServiceManagedResourcesSettings serviceManagedResourcesSettings, string serviceProvisionedResourceGroup, IList sharedPrivateLinkResources, int? softDeleteRetentionInDays, string storageAccount, IList storageAccounts, bool? isStorageHnsEnabled, string systemDatastoresAuthMode, Guid? tenantId, bool? isV1LegacyMode, WorkspaceHubConfig workspaceHubConfig, string workspaceId) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; + Kind = kind; Sku = sku; - WorkspaceId = workspaceId; - Description = description; - FriendlyName = friendlyName; - KeyVault = keyVault; + AllowPublicAccessWhenBehindVnet = allowPublicAccessWhenBehindVnet; ApplicationInsights = applicationInsights; + AssociatedWorkspaces = associatedWorkspaces; + ContainerRegistries = containerRegistries; ContainerRegistry = containerRegistry; - StorageAccount = storageAccount; + Description = description; DiscoveryUri = discoveryUri; - ProvisioningState = provisioningState; + EnableDataIsolation = enableDataIsolation; Encryption = encryption; + ExistingWorkspaces = existingWorkspaces; + FeatureStoreSettings = featureStoreSettings; + FriendlyName = friendlyName; IsHbiWorkspace = isHbiWorkspace; - ServiceProvisionedResourceGroup = serviceProvisionedResourceGroup; - PrivateLinkCount = privateLinkCount; + HubResourceId = hubResourceId; ImageBuildCompute = imageBuildCompute; - AllowPublicAccessWhenBehindVnet = allowPublicAccessWhenBehindVnet; - PublicNetworkAccess = publicNetworkAccess; - PrivateEndpointConnections = privateEndpointConnections; - SharedPrivateLinkResources = sharedPrivateLinkResources; + KeyVault = keyVault; + KeyVaults = keyVaults; + ManagedNetwork = managedNetwork; + MlFlowTrackingUri = mlFlowTrackingUri; NotebookInfo = notebookInfo; - ServiceManagedResourcesSettings = serviceManagedResourcesSettings; PrimaryUserAssignedIdentity = primaryUserAssignedIdentity; - TenantId = tenantId; + PrivateEndpointConnections = privateEndpointConnections; + PrivateLinkCount = privateLinkCount; + ProvisioningState = provisioningState; + PublicNetworkAccess = publicNetworkAccess; + ServiceManagedResourcesSettings = serviceManagedResourcesSettings; + ServiceProvisionedResourceGroup = serviceProvisionedResourceGroup; + SharedPrivateLinkResources = sharedPrivateLinkResources; + SoftDeleteRetentionInDays = softDeleteRetentionInDays; + StorageAccount = storageAccount; + StorageAccounts = storageAccounts; IsStorageHnsEnabled = isStorageHnsEnabled; - MlFlowTrackingUri = mlFlowTrackingUri; + SystemDatastoresAuthMode = systemDatastoresAuthMode; + TenantId = tenantId; IsV1LegacyMode = isV1LegacyMode; + WorkspaceHubConfig = workspaceHubConfig; + WorkspaceId = workspaceId; } - /// The identity of the resource. + /// Managed service identity (system assigned and/or user assigned identities). public ManagedServiceIdentity Identity { get; set; } - /// The sku of the workspace. + /// Gets or sets the kind. + public string Kind { get; set; } + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. public MachineLearningSku Sku { get; set; } - /// The immutable id associated with this workspace. - public string WorkspaceId { get; } - /// The description of this workspace. - public string Description { get; set; } - /// The friendly name for this workspace. This name in mutable. - public string FriendlyName { get; set; } - /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. - public string KeyVault { get; set; } + /// The flag to indicate whether to allow public access when behind VNet. + public bool? AllowPublicAccessWhenBehindVnet { get; set; } /// ARM id of the application insights associated with this workspace. public string ApplicationInsights { get; set; } + /// Gets the associated workspaces. + public IList AssociatedWorkspaces { get; } + /// Gets the container registries. + public IList ContainerRegistries { get; } /// ARM id of the container registry associated with this workspace. public string ContainerRegistry { get; set; } - /// ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created. - public string StorageAccount { get; set; } + /// The description of this workspace. + public string Description { get; set; } /// Url for the discovery service to identify regional endpoints for machine learning experimentation services. public Uri DiscoveryUri { get; set; } - /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. - public MachineLearningProvisioningState? ProvisioningState { get; } - /// The encryption settings of Azure ML workspace. + /// Gets or sets the enable data isolation. + public bool? EnableDataIsolation { get; set; } + /// Gets or sets the encryption. public MachineLearningEncryptionSetting Encryption { get; set; } + /// Gets the existing workspaces. + public IList ExistingWorkspaces { get; } + /// Settings for feature store type workspace. + public FeatureStoreSettings FeatureStoreSettings { get; set; } + /// The friendly name for this workspace. This name in mutable. + public string FriendlyName { get; set; } /// The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service. public bool? IsHbiWorkspace { get; set; } - /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. - public string ServiceProvisionedResourceGroup { get; } - /// Count of private connections in the workspace. - public int? PrivateLinkCount { get; } + /// Gets or sets the hub resource id. + public string HubResourceId { get; set; } /// The compute name for image build. public string ImageBuildCompute { get; set; } - /// The flag to indicate whether to allow public access when behind VNet. - public bool? AllowPublicAccessWhenBehindVnet { get; set; } - /// Whether requests from Public Network are allowed. - public MachineLearningPublicNetworkAccess? PublicNetworkAccess { get; set; } - /// The list of private endpoint connections in the workspace. - public IReadOnlyList PrivateEndpointConnections { get; } - /// The list of shared private link resources in this workspace. - public IList SharedPrivateLinkResources { get; } + /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. + public string KeyVault { get; set; } + /// Gets the key vaults. + public IList KeyVaults { get; } + /// Managed Network settings for a machine learning workspace. + public ManagedNetworkSettings ManagedNetwork { get; set; } + /// The URI associated with this workspace that machine learning flow must point at to set up tracking. + public Uri MlFlowTrackingUri { get; } /// The notebook info of Azure ML workspace. public MachineLearningNotebookResourceInfo NotebookInfo { get; } + /// The user assigned identity resource id that represents the workspace identity. + public string PrimaryUserAssignedIdentity { get; set; } + /// The list of private endpoint connections in the workspace. + public IReadOnlyList PrivateEndpointConnections { get; } + /// Count of private connections in the workspace. + public int? PrivateLinkCount { get; } + /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + public MachineLearningProvisioningState? ProvisioningState { get; } + /// Whether requests from Public Network are allowed. + public MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get; set; } /// The service managed resource settings. internal ServiceManagedResourcesSettings ServiceManagedResourcesSettings { get; set; } - /// The throughput of the collections in cosmosdb database. + /// Gets or sets the cosmos db collections throughput. public int? CosmosDbCollectionsThroughput { get => ServiceManagedResourcesSettings is null ? default : ServiceManagedResourcesSettings.CosmosDbCollectionsThroughput; @@ -148,15 +193,27 @@ public int? CosmosDbCollectionsThroughput } } - /// The user assigned identity resource id that represents the workspace identity. - public string PrimaryUserAssignedIdentity { get; set; } - /// The tenant id associated with this workspace. - public Guid? TenantId { get; } + /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. + public string ServiceProvisionedResourceGroup { get; } + /// The list of shared private link resources in this workspace. + public IList SharedPrivateLinkResources { get; } + /// Retention time in days after workspace get soft deleted. + public int? SoftDeleteRetentionInDays { get; set; } + /// ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created. + public string StorageAccount { get; set; } + /// Gets the storage accounts. + public IList StorageAccounts { get; } /// If the storage associated with the workspace has hierarchical namespace(HNS) enabled. public bool? IsStorageHnsEnabled { get; } - /// The URI associated with this workspace that machine learning flow must point at to set up tracking. - public Uri MlFlowTrackingUri { get; } + /// The auth mode used for accessing the system datastores of the workspace. + public string SystemDatastoresAuthMode { get; set; } + /// The tenant id associated with this workspace. + public Guid? TenantId { get; } /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. public bool? IsV1LegacyMode { get; set; } + /// WorkspaceHub's configuration object. + public WorkspaceHubConfig WorkspaceHubConfig { get; set; } + /// The immutable id associated with this workspace. + public string WorkspaceId { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs index 96a5d38237cf..2cbef638996e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs @@ -37,10 +37,12 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _machineLearningWorkspaceWorkspacesClientDiagnostics; private readonly WorkspacesRestOperations _machineLearningWorkspaceWorkspacesRestClient; - private readonly ClientDiagnostics _privateLinkResourcesClientDiagnostics; - private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; private readonly ClientDiagnostics _workspaceFeaturesClientDiagnostics; private readonly WorkspaceFeaturesRestOperations _workspaceFeaturesRestClient; + private readonly ClientDiagnostics _privateLinkResourcesClientDiagnostics; + private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; + private readonly ClientDiagnostics _managedNetworkProvisionsClientDiagnostics; + private readonly ManagedNetworkProvisionsRestOperations _managedNetworkProvisionsRestClient; private readonly MachineLearningWorkspaceData _data; /// Initializes a new instance of the class for mocking. @@ -65,10 +67,12 @@ internal MachineLearningWorkspaceResource(ArmClient client, ResourceIdentifier i _machineLearningWorkspaceWorkspacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string machineLearningWorkspaceWorkspacesApiVersion); _machineLearningWorkspaceWorkspacesRestClient = new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningWorkspaceWorkspacesApiVersion); - _privateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _privateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _workspaceFeaturesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); _workspaceFeaturesRestClient = new WorkspaceFeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + _privateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _privateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + _managedNetworkProvisionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _managedNetworkProvisionsRestClient = new ManagedNetworkProvisionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -151,168 +155,170 @@ public virtual Response GetMachineLearningComput return GetMachineLearningComputes().Get(computeName, cancellationToken); } - /// Gets a collection of MachineLearningPrivateEndpointConnectionResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningPrivateEndpointConnectionResources and their operations over a MachineLearningPrivateEndpointConnectionResource. - public virtual MachineLearningPrivateEndpointConnectionCollection GetMachineLearningPrivateEndpointConnections() + /// Gets a collection of WorkspaceCodeResources in the MachineLearningWorkspace. + /// An object representing collection of WorkspaceCodeResources and their operations over a WorkspaceCodeResource. + public virtual WorkspaceCodeCollection GetWorkspaceCodes() { - return GetCachedClient(Client => new MachineLearningPrivateEndpointConnectionCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceCodeCollection(Client, Id)); } /// - /// Gets the specified private endpoint connection associated with the workspace. + /// Get container. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name} /// /// /// Operation Id - /// PrivateEndpointConnections_Get + /// CodeContainers_Get /// /// /// - /// The name of the private endpoint connection associated with the workspace. + /// Container name. This is case-sensitive. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceCodeAsync(string name, CancellationToken cancellationToken = default) { - return await GetMachineLearningPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceCodes().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// - /// Gets the specified private endpoint connection associated with the workspace. + /// Get container. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name} /// /// /// Operation Id - /// PrivateEndpointConnections_Get + /// CodeContainers_Get /// /// /// - /// The name of the private endpoint connection associated with the workspace. + /// Container name. This is case-sensitive. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceCode(string name, CancellationToken cancellationToken = default) { - return GetMachineLearningPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); + return GetWorkspaceCodes().Get(name, cancellationToken); } - /// Gets a collection of MachineLearningWorkspaceConnectionResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningWorkspaceConnectionResources and their operations over a MachineLearningWorkspaceConnectionResource. - public virtual MachineLearningWorkspaceConnectionCollection GetMachineLearningWorkspaceConnections() + /// Gets a collection of WorkspaceComponentResources in the MachineLearningWorkspace. + /// An object representing collection of WorkspaceComponentResources and their operations over a WorkspaceComponentResource. + public virtual WorkspaceComponentCollection GetWorkspaceComponents() { - return GetCachedClient(Client => new MachineLearningWorkspaceConnectionCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceComponentCollection(Client, Id)); } /// + /// Get container. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name} /// /// /// Operation Id - /// WorkspaceConnections_Get + /// ComponentContainers_Get /// /// /// - /// Friendly name of the workspace connection. + /// Container name. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningWorkspaceConnectionAsync(string connectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceComponentAsync(string name, CancellationToken cancellationToken = default) { - return await GetMachineLearningWorkspaceConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceComponents().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// + /// Get container. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name} /// /// /// Operation Id - /// WorkspaceConnections_Get + /// ComponentContainers_Get /// /// /// - /// Friendly name of the workspace connection. + /// Container name. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningWorkspaceConnection(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceComponent(string name, CancellationToken cancellationToken = default) { - return GetMachineLearningWorkspaceConnections().Get(connectionName, cancellationToken); + return GetWorkspaceComponents().Get(name, cancellationToken); } - /// Gets a collection of MachineLearningBatchEndpointResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningBatchEndpointResources and their operations over a MachineLearningBatchEndpointResource. - public virtual MachineLearningBatchEndpointCollection GetMachineLearningBatchEndpoints() + /// Gets a collection of WorkspaceDataResources in the MachineLearningWorkspace. + /// An object representing collection of WorkspaceDataResources and their operations over a WorkspaceDataResource. + public virtual WorkspaceDataCollection GetAllWorkspaceData() { - return GetCachedClient(Client => new MachineLearningBatchEndpointCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceDataCollection(Client, Id)); } /// - /// Gets a batch inference endpoint by name. + /// Get container. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name} /// /// /// Operation Id - /// BatchEndpoints_Get + /// DataContainers_Get /// /// /// - /// Name for the Batch Endpoint. + /// Container name. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningBatchEndpointAsync(string endpointName, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceDataAsync(string name, CancellationToken cancellationToken = default) { - return await GetMachineLearningBatchEndpoints().GetAsync(endpointName, cancellationToken).ConfigureAwait(false); + return await GetAllWorkspaceData().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// - /// Gets a batch inference endpoint by name. + /// Get container. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name} /// /// /// Operation Id - /// BatchEndpoints_Get + /// DataContainers_Get /// /// /// - /// Name for the Batch Endpoint. + /// Container name. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningBatchEndpoint(string endpointName, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceData(string name, CancellationToken cancellationToken = default) { - return GetMachineLearningBatchEndpoints().Get(endpointName, cancellationToken); + return GetAllWorkspaceData().Get(name, cancellationToken); } - /// Gets a collection of MachineLearningCodeContainerResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningCodeContainerResources and their operations over a MachineLearningCodeContainerResource. - public virtual MachineLearningCodeContainerCollection GetMachineLearningCodeContainers() + /// Gets a collection of WorkspaceEnvironmentResources in the MachineLearningWorkspace. + /// An object representing collection of WorkspaceEnvironmentResources and their operations over a WorkspaceEnvironmentResource. + public virtual WorkspaceEnvironmentCollection GetWorkspaceEnvironments() { - return GetCachedClient(Client => new MachineLearningCodeContainerCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceEnvironmentCollection(Client, Id)); } /// @@ -320,11 +326,11 @@ public virtual MachineLearningCodeContainerCollection GetMachineLearningCodeCont /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name} /// /// /// Operation Id - /// CodeContainers_Get + /// EnvironmentContainers_Get /// /// /// @@ -333,9 +339,9 @@ public virtual MachineLearningCodeContainerCollection GetMachineLearningCodeCont /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningCodeContainerAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceEnvironmentAsync(string name, CancellationToken cancellationToken = default) { - return await GetMachineLearningCodeContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceEnvironments().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -343,11 +349,11 @@ public virtual async Task> GetMac /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name} /// /// /// Operation Id - /// CodeContainers_Get + /// EnvironmentContainers_Get /// /// /// @@ -356,16 +362,16 @@ public virtual async Task> GetMac /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningCodeContainer(string name, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceEnvironment(string name, CancellationToken cancellationToken = default) { - return GetMachineLearningCodeContainers().Get(name, cancellationToken); + return GetWorkspaceEnvironments().Get(name, cancellationToken); } - /// Gets a collection of MachineLearningComponentContainerResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningComponentContainerResources and their operations over a MachineLearningComponentContainerResource. - public virtual MachineLearningComponentContainerCollection GetMachineLearningComponentContainers() + /// Gets a collection of WorkspaceModelResources in the MachineLearningWorkspace. + /// An object representing collection of WorkspaceModelResources and their operations over a WorkspaceModelResource. + public virtual WorkspaceModelCollection GetWorkspaceModels() { - return GetCachedClient(Client => new MachineLearningComponentContainerCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceModelCollection(Client, Id)); } /// @@ -373,22 +379,22 @@ public virtual MachineLearningComponentContainerCollection GetMachineLearningCom /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name} /// /// /// Operation Id - /// ComponentContainers_Get + /// ModelContainers_Get /// /// /// - /// Container name. + /// Container name. This is case-sensitive. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningComponentContainerAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceModelAsync(string name, CancellationToken cancellationToken = default) { - return await GetMachineLearningComponentContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceModels().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -396,75 +402,75 @@ public virtual async Task> G /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name} /// /// /// Operation Id - /// ComponentContainers_Get + /// ModelContainers_Get /// /// /// - /// Container name. + /// Container name. This is case-sensitive. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningComponentContainer(string name, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceModel(string name, CancellationToken cancellationToken = default) { - return GetMachineLearningComponentContainers().Get(name, cancellationToken); + return GetWorkspaceModels().Get(name, cancellationToken); } - /// Gets a collection of MachineLearningDataContainerResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningDataContainerResources and their operations over a MachineLearningDataContainerResource. - public virtual MachineLearningDataContainerCollection GetMachineLearningDataContainers() + /// Gets a collection of MachineLearningBatchEndpointResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningBatchEndpointResources and their operations over a MachineLearningBatchEndpointResource. + public virtual MachineLearningBatchEndpointCollection GetMachineLearningBatchEndpoints() { - return GetCachedClient(Client => new MachineLearningDataContainerCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningBatchEndpointCollection(Client, Id)); } /// - /// Get container. + /// Gets a batch inference endpoint by name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName} /// /// /// Operation Id - /// DataContainers_Get + /// BatchEndpoints_Get /// /// /// - /// Container name. + /// Name for the Batch Endpoint. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningDataContainerAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningBatchEndpointAsync(string endpointName, CancellationToken cancellationToken = default) { - return await GetMachineLearningDataContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningBatchEndpoints().GetAsync(endpointName, cancellationToken).ConfigureAwait(false); } /// - /// Get container. + /// Gets a batch inference endpoint by name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName} /// /// /// Operation Id - /// DataContainers_Get + /// BatchEndpoints_Get /// /// /// - /// Container name. + /// Name for the Batch Endpoint. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningDataContainer(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningBatchEndpoint(string endpointName, CancellationToken cancellationToken = default) { - return GetMachineLearningDataContainers().Get(name, cancellationToken); + return GetMachineLearningBatchEndpoints().Get(endpointName, cancellationToken); } /// Gets a collection of MachineLearningDatastoreResources in the MachineLearningWorkspace. @@ -520,11 +526,11 @@ public virtual Response GetMachineLearningData return GetMachineLearningDatastores().Get(name, cancellationToken); } - /// Gets a collection of MachineLearningEnvironmentContainerResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningEnvironmentContainerResources and their operations over a MachineLearningEnvironmentContainerResource. - public virtual MachineLearningEnvironmentContainerCollection GetMachineLearningEnvironmentContainers() + /// Gets a collection of FeaturesetContainerResources in the MachineLearningWorkspace. + /// An object representing collection of FeaturesetContainerResources and their operations over a FeaturesetContainerResource. + public virtual FeaturesetContainerCollection GetFeaturesetContainers() { - return GetCachedClient(Client => new MachineLearningEnvironmentContainerCollection(Client, Id)); + return GetCachedClient(Client => new FeaturesetContainerCollection(Client, Id)); } /// @@ -532,11 +538,11 @@ public virtual MachineLearningEnvironmentContainerCollection GetMachineLearningE /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} /// /// /// Operation Id - /// EnvironmentContainers_Get + /// FeaturesetContainers_GetEntity /// /// /// @@ -545,9 +551,9 @@ public virtual MachineLearningEnvironmentContainerCollection GetMachineLearningE /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningEnvironmentContainerAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetFeaturesetContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetMachineLearningEnvironmentContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetFeaturesetContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -555,11 +561,64 @@ public virtual async Task> /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name} /// /// /// Operation Id - /// EnvironmentContainers_Get + /// FeaturesetContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetFeaturesetContainer(string name, CancellationToken cancellationToken = default) + { + return GetFeaturesetContainers().Get(name, cancellationToken); + } + + /// Gets a collection of FeaturestoreEntityContainerResources in the MachineLearningWorkspace. + /// An object representing collection of FeaturestoreEntityContainerResources and their operations over a FeaturestoreEntityContainerResource. + public virtual FeaturestoreEntityContainerCollection GetFeaturestoreEntityContainers() + { + return GetCachedClient(Client => new FeaturestoreEntityContainerCollection(Client, Id)); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_GetEntity + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetFeaturestoreEntityContainerAsync(string name, CancellationToken cancellationToken = default) + { + return await GetFeaturestoreEntityContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name} + /// + /// + /// Operation Id + /// FeaturestoreEntityContainers_GetEntity /// /// /// @@ -568,9 +627,9 @@ public virtual async Task> /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningEnvironmentContainer(string name, CancellationToken cancellationToken = default) + public virtual Response GetFeaturestoreEntityContainer(string name, CancellationToken cancellationToken = default) { - return GetMachineLearningEnvironmentContainers().Get(name, cancellationToken); + return GetFeaturestoreEntityContainers().Get(name, cancellationToken); } /// Gets a collection of MachineLearningJobResources in the MachineLearningWorkspace. @@ -626,57 +685,61 @@ public virtual Response GetMachineLearningJob(string return GetMachineLearningJobs().Get(id, cancellationToken); } - /// Gets a collection of MachineLearningModelContainerResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningModelContainerResources and their operations over a MachineLearningModelContainerResource. - public virtual MachineLearningModelContainerCollection GetMachineLearningModelContainers() + /// Gets a collection of LabelingJobResources in the MachineLearningWorkspace. + /// An object representing collection of LabelingJobResources and their operations over a LabelingJobResource. + public virtual LabelingJobCollection GetLabelingJobs() { - return GetCachedClient(Client => new MachineLearningModelContainerCollection(Client, Id)); + return GetCachedClient(Client => new LabelingJobCollection(Client, Id)); } /// - /// Get container. + /// Gets a labeling job by name/id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} /// /// /// Operation Id - /// ModelContainers_Get + /// LabelingJobs_Get /// /// /// - /// Container name. This is case-sensitive. + /// The name and identifier for the LabelingJob. + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningModelContainerAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetLabelingJobAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { - return await GetMachineLearningModelContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetLabelingJobs().GetAsync(id, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); } /// - /// Get container. + /// Gets a labeling job by name/id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id} /// /// /// Operation Id - /// ModelContainers_Get + /// LabelingJobs_Get /// /// /// - /// Container name. This is case-sensitive. + /// The name and identifier for the LabelingJob. + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningModelContainer(string name, CancellationToken cancellationToken = default) + public virtual Response GetLabelingJob(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { - return GetMachineLearningModelContainers().Get(name, cancellationToken); + return GetLabelingJobs().Get(id, includeJobInstructions, includeLabelCategories, cancellationToken); } /// Gets a collection of MachineLearningOnlineEndpointResources in the MachineLearningWorkspace. @@ -785,55 +848,214 @@ public virtual Response GetMachineLearningSched return GetMachineLearningSchedules().Get(name, cancellationToken); } + /// Gets a collection of MachineLearningWorkspaceConnectionResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningWorkspaceConnectionResources and their operations over a MachineLearningWorkspaceConnectionResource. + public virtual MachineLearningWorkspaceConnectionCollection GetMachineLearningWorkspaceConnections() + { + return GetCachedClient(Client => new MachineLearningWorkspaceConnectionCollection(Client, Id)); + } + /// - /// Gets the properties of the specified machine learning workspace. + /// Lists machine learning workspaces connections by name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} /// /// /// Operation Id - /// Workspaces_Get + /// WorkspaceConnections_Get /// /// /// + /// Friendly name of the workspace connection. /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetMachineLearningWorkspaceConnectionAsync(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.Get"); - scope.Start(); - try - { - var response = await _machineLearningWorkspaceWorkspacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningWorkspaceResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + return await GetMachineLearningWorkspaceConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); } /// - /// Gets the properties of the specified machine learning workspace. + /// Lists machine learning workspaces connections by name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} /// /// /// Operation Id - /// Workspaces_Get + /// WorkspaceConnections_Get /// /// /// + /// Friendly name of the workspace connection. /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetMachineLearningWorkspaceConnection(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.Get"); + return GetMachineLearningWorkspaceConnections().Get(connectionName, cancellationToken); + } + + /// Gets a collection of OutboundRuleBasicResources in the MachineLearningWorkspace. + /// An object representing collection of OutboundRuleBasicResources and their operations over a OutboundRuleBasicResource. + public virtual OutboundRuleBasicResourceCollection GetOutboundRuleBasicResources() + { + return GetCachedClient(Client => new OutboundRuleBasicResourceCollection(Client, Id)); + } + + /// + /// Gets an outbound rule from the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Get + /// + /// + /// + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetOutboundRuleBasicResourceAsync(string ruleName, CancellationToken cancellationToken = default) + { + return await GetOutboundRuleBasicResources().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets an outbound rule from the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Get + /// + /// + /// + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetOutboundRuleBasicResource(string ruleName, CancellationToken cancellationToken = default) + { + return GetOutboundRuleBasicResources().Get(ruleName, cancellationToken); + } + + /// Gets a collection of MachineLearningPrivateEndpointConnectionResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningPrivateEndpointConnectionResources and their operations over a MachineLearningPrivateEndpointConnectionResource. + public virtual MachineLearningPrivateEndpointConnectionCollection GetMachineLearningPrivateEndpointConnections() + { + return GetCachedClient(Client => new MachineLearningPrivateEndpointConnectionCollection(Client, Id)); + } + + /// + /// Called by end-users to get a PE connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName} + /// + /// + /// Operation Id + /// PrivateEndpointConnections_Get + /// + /// + /// + /// NRP Private Endpoint Connection Name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetMachineLearningPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + return await GetMachineLearningPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Called by end-users to get a PE connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName} + /// + /// + /// Operation Id + /// PrivateEndpointConnections_Get + /// + /// + /// + /// NRP Private Endpoint Connection Name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetMachineLearningPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + return GetMachineLearningPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); + } + + /// + /// Gets the properties of the specified machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// + /// + /// Operation Id + /// Workspaces_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.Get"); + scope.Start(); + try + { + var response = await _machineLearningWorkspaceWorkspacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new MachineLearningWorkspaceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the properties of the specified machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// + /// + /// Operation Id + /// Workspaces_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.Get"); scope.Start(); try { @@ -863,15 +1085,16 @@ public virtual Response Get(CancellationToken /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Flag to indicate delete is a purge request. /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? forceToPurge = null, CancellationToken cancellationToken = default) { using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.Delete"); scope.Start(); try { - var response = await _machineLearningWorkspaceWorkspacesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningWorkspaceWorkspacesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceToPurge, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceToPurge).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -897,15 +1120,16 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Flag to indicate delete is a purge request. /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? forceToPurge = null, CancellationToken cancellationToken = default) { using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.Delete"); scope.Start(); try { - var response = _machineLearningWorkspaceWorkspacesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningWorkspaceWorkspacesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceToPurge, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceToPurge).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -993,6 +1217,50 @@ public virtual ArmOperation Update(WaitUntil w } } + /// + /// Lists all enabled features for a workspace + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features + /// + /// + /// Operation Id + /// WorkspaceFeatures_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetWorkspaceFeaturesAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, MachineLearningUserFeature.DeserializeMachineLearningUserFeature, _workspaceFeaturesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetWorkspaceFeatures", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all enabled features for a workspace + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features + /// + /// + /// Operation Id + /// WorkspaceFeatures_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetWorkspaceFeatures(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, MachineLearningUserFeature.DeserializeMachineLearningUserFeature, _workspaceFeaturesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetWorkspaceFeatures", "value", "nextLink", cancellationToken); + } + /// /// Diagnose workspace setup issue. /// @@ -1064,7 +1332,7 @@ public virtual ArmOperation Diagnose(Wai } /// - /// Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry + /// Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry. /// /// /// Request Path @@ -1094,7 +1362,7 @@ public virtual async Task> GetKe } /// - /// Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry + /// Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry. /// /// /// Request Path @@ -1124,31 +1392,27 @@ public virtual Response GetKeys(Cancellat } /// - /// 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 /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken /// /// /// Operation Id - /// Workspaces_ResyncKeys + /// Workspaces_ListNotebookAccessToken /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task ResyncKeysAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> GetNotebookAccessTokenAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.ResyncKeys"); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetNotebookAccessToken"); scope.Start(); try { - var response = await _machineLearningWorkspaceWorkspacesRestClient.ResyncKeysAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreateResyncKeysRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _machineLearningWorkspaceWorkspacesRestClient.ListNotebookAccessTokenAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; } catch (Exception e) { @@ -1158,31 +1422,27 @@ public virtual async Task ResyncKeysAsync(WaitUntil waitUntil, Can } /// - /// 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 /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken /// /// /// Operation Id - /// Workspaces_ResyncKeys + /// Workspaces_ListNotebookAccessToken /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation ResyncKeys(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual Response GetNotebookAccessToken(CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.ResyncKeys"); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetNotebookAccessToken"); scope.Start(); try { - var response = _machineLearningWorkspaceWorkspacesRestClient.ResyncKeys(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreateResyncKeysRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; + var response = _machineLearningWorkspaceWorkspacesRestClient.ListNotebookAccessToken(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; } catch (Exception e) { @@ -1192,26 +1452,26 @@ public virtual ArmOperation ResyncKeys(WaitUntil waitUntil, CancellationToken ca } /// - /// return notebook access token and refresh token + /// Lists keys of Azure Machine Learning Workspaces notebook. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys /// /// /// Operation Id - /// Workspaces_ListNotebookAccessToken + /// Workspaces_ListNotebookKeys /// /// /// /// The cancellation token to use. - public virtual async Task> GetNotebookAccessTokenAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetNotebookKeysAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetNotebookAccessToken"); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetNotebookKeys"); scope.Start(); try { - var response = await _machineLearningWorkspaceWorkspacesRestClient.ListNotebookAccessTokenAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningWorkspaceWorkspacesRestClient.ListNotebookKeysAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -1222,26 +1482,26 @@ public virtual async Task - /// return notebook access token and refresh token + /// Lists keys of Azure Machine Learning Workspaces notebook. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys /// /// /// Operation Id - /// Workspaces_ListNotebookAccessToken + /// Workspaces_ListNotebookKeys /// /// /// /// The cancellation token to use. - public virtual Response GetNotebookAccessToken(CancellationToken cancellationToken = default) + public virtual Response GetNotebookKeys(CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetNotebookAccessToken"); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetNotebookKeys"); scope.Start(); try { - var response = _machineLearningWorkspaceWorkspacesRestClient.ListNotebookAccessToken(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _machineLearningWorkspaceWorkspacesRestClient.ListNotebookKeys(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); return response; } catch (Exception e) @@ -1252,31 +1512,27 @@ public virtual Response GetNo } /// - /// Prepare a notebook. + /// Lists keys of Azure Machine Learning Workspace's storage account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys /// /// /// Operation Id - /// Workspaces_PrepareNotebook + /// Workspaces_ListStorageAccountKeys /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> PrepareNotebookAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> GetStorageAccountKeysAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.PrepareNotebook"); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetStorageAccountKeys"); scope.Start(); try { - var response = await _machineLearningWorkspaceWorkspacesRestClient.PrepareNotebookAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new MachineLearningNotebookResourceInfoOperationSource(), _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreatePrepareNotebookRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _machineLearningWorkspaceWorkspacesRestClient.ListStorageAccountKeysAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; } catch (Exception e) { @@ -1286,31 +1542,27 @@ public virtual async Task> Pre } /// - /// Prepare a notebook. + /// Lists keys of Azure Machine Learning Workspace's storage account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys /// /// /// Operation Id - /// Workspaces_PrepareNotebook + /// Workspaces_ListStorageAccountKeys /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation PrepareNotebook(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual Response GetStorageAccountKeys(CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.PrepareNotebook"); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetStorageAccountKeys"); scope.Start(); try { - var response = _machineLearningWorkspaceWorkspacesRestClient.PrepareNotebook(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(new MachineLearningNotebookResourceInfoOperationSource(), _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreatePrepareNotebookRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; + var response = _machineLearningWorkspaceWorkspacesRestClient.ListStorageAccountKeys(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; } catch (Exception e) { @@ -1320,87 +1572,73 @@ public virtual ArmOperation PrepareNotebook } /// - /// List storage account keys of a workspace. + /// Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints /// /// /// Operation Id - /// Workspaces_ListStorageAccountKeys + /// Workspaces_ListOutboundNetworkDependenciesEndpoints /// /// /// /// The cancellation token to use. - public virtual async Task> GetStorageAccountKeysAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetStorageAccountKeys"); - scope.Start(); - try - { - var response = await _machineLearningWorkspaceWorkspacesRestClient.ListStorageAccountKeysAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListOutboundNetworkDependenciesEndpointsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, FqdnEndpointsPropertyBag.DeserializeFqdnEndpointsPropertyBag, _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetOutboundNetworkDependenciesEndpoints", "value", null, cancellationToken); } /// - /// List storage account keys of a workspace. + /// Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints /// /// /// Operation Id - /// Workspaces_ListStorageAccountKeys + /// Workspaces_ListOutboundNetworkDependenciesEndpoints /// /// /// /// The cancellation token to use. - public virtual Response GetStorageAccountKeys(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetOutboundNetworkDependenciesEndpoints(CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetStorageAccountKeys"); - scope.Start(); - try - { - var response = _machineLearningWorkspaceWorkspacesRestClient.ListStorageAccountKeys(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListOutboundNetworkDependenciesEndpointsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, FqdnEndpointsPropertyBag.DeserializeFqdnEndpointsPropertyBag, _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetOutboundNetworkDependenciesEndpoints", "value", null, cancellationToken); } /// - /// List keys of a notebook. + /// Prepare Azure Machine Learning Workspace's notebook resource /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook /// /// /// Operation Id - /// Workspaces_ListNotebookKeys + /// Workspaces_PrepareNotebook /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> GetNotebookKeysAsync(CancellationToken cancellationToken = default) + public virtual async Task> PrepareNotebookAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetNotebookKeys"); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.PrepareNotebook"); scope.Start(); try { - var response = await _machineLearningWorkspaceWorkspacesRestClient.ListNotebookKeysAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; + var response = await _machineLearningWorkspaceWorkspacesRestClient.PrepareNotebookAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningNotebookResourceInfoOperationSource(), _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreatePrepareNotebookRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; } catch (Exception e) { @@ -1410,27 +1648,31 @@ public virtual async Task - /// List keys of a notebook. + /// Prepare Azure Machine Learning Workspace's notebook resource /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook /// /// /// Operation Id - /// Workspaces_ListNotebookKeys + /// Workspaces_PrepareNotebook /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual Response GetNotebookKeys(CancellationToken cancellationToken = default) + public virtual ArmOperation PrepareNotebook(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.GetNotebookKeys"); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.PrepareNotebook"); scope.Start(); try { - var response = _machineLearningWorkspaceWorkspacesRestClient.ListNotebookKeys(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; + var response = _machineLearningWorkspaceWorkspacesRestClient.PrepareNotebook(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningNotebookResourceInfoOperationSource(), _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreatePrepareNotebookRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; } catch (Exception e) { @@ -1440,49 +1682,79 @@ public virtual Response GetNotebo } /// - /// 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 /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys /// /// /// Operation Id - /// Workspaces_ListOutboundNetworkDependenciesEndpoints + /// Workspaces_ResyncKeys /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(CancellationToken cancellationToken = default) + public virtual async Task ResyncKeysAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListOutboundNetworkDependenciesEndpointsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, MachineLearningFqdnEndpoints.DeserializeMachineLearningFqdnEndpoints, _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetOutboundNetworkDependenciesEndpoints", "value", null, cancellationToken); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.ResyncKeys"); + scope.Start(); + try + { + var response = await _machineLearningWorkspaceWorkspacesRestClient.ResyncKeysAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreateResyncKeysRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// 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 /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys /// /// /// Operation Id - /// Workspaces_ListOutboundNetworkDependenciesEndpoints + /// Workspaces_ResyncKeys /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetOutboundNetworkDependenciesEndpoints(CancellationToken cancellationToken = default) + public virtual ArmOperation ResyncKeys(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListOutboundNetworkDependenciesEndpointsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, MachineLearningFqdnEndpoints.DeserializeMachineLearningFqdnEndpoints, _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetOutboundNetworkDependenciesEndpoints", "value", null, cancellationToken); + using var scope = _machineLearningWorkspaceWorkspacesClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.ResyncKeys"); + scope.Start(); + try + { + var response = _machineLearningWorkspaceWorkspacesRestClient.ResyncKeys(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, _machineLearningWorkspaceWorkspacesRestClient.CreateResyncKeysRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// 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". /// /// /// Request Path @@ -1503,7 +1775,11 @@ public virtual AsyncPageable GetPrivateLinkR } /// - /// 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". /// /// /// Request Path @@ -1524,47 +1800,73 @@ public virtual Pageable GetPrivateLinkResour } /// - /// Lists all enabled features for a workspace + /// Provisions the managed network of a machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/provisionManagedNetwork /// /// /// Operation Id - /// WorkspaceFeatures_List + /// ManagedNetworkProvisions_ProvisionManagedNetwork /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Managed Network Provisioning Options for a machine learning workspace. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetWorkspaceFeaturesAsync(CancellationToken cancellationToken = default) + public virtual async Task> ProvisionManagedNetworkManagedNetworkProvisionAsync(WaitUntil waitUntil, ManagedNetworkProvisionContent content = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, MachineLearningUserFeature.DeserializeMachineLearningUserFeature, _workspaceFeaturesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetWorkspaceFeatures", "value", "nextLink", cancellationToken); + using var scope = _managedNetworkProvisionsClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.ProvisionManagedNetworkManagedNetworkProvision"); + scope.Start(); + try + { + var response = await _managedNetworkProvisionsRestClient.ProvisionManagedNetworkAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new ManagedNetworkProvisionStatusOperationSource(), _managedNetworkProvisionsClientDiagnostics, Pipeline, _managedNetworkProvisionsRestClient.CreateProvisionManagedNetworkRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// Lists all enabled features for a workspace + /// Provisions the managed network of a machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/provisionManagedNetwork /// /// /// Operation Id - /// WorkspaceFeatures_List + /// ManagedNetworkProvisions_ProvisionManagedNetwork /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Managed Network Provisioning Options for a machine learning workspace. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetWorkspaceFeatures(CancellationToken cancellationToken = default) + public virtual ArmOperation ProvisionManagedNetworkManagedNetworkProvision(WaitUntil waitUntil, ManagedNetworkProvisionContent content = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, MachineLearningUserFeature.DeserializeMachineLearningUserFeature, _workspaceFeaturesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetWorkspaceFeatures", "value", "nextLink", cancellationToken); + using var scope = _managedNetworkProvisionsClientDiagnostics.CreateScope("MachineLearningWorkspaceResource.ProvisionManagedNetworkManagedNetworkProvision"); + scope.Start(); + try + { + var response = _managedNetworkProvisionsRestClient.ProvisionManagedNetwork(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new MachineLearningArmOperation(new ManagedNetworkProvisionStatusOperationSource(), _managedNetworkProvisionsClientDiagnostics, Pipeline, _managedNetworkProvisionsRestClient.CreateProvisionManagedNetworkRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AccessKeyAuthTypeWorkspaceConnectionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AccessKeyAuthTypeWorkspaceConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..b6a17afce818 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AccessKeyAuthTypeWorkspaceConnectionProperties.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AccessKeyAuthTypeWorkspaceConnectionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Credentials)) + { + writer.WritePropertyName("credentials"u8); + writer.WriteObjectValue(Credentials); + } + writer.WritePropertyName("authType"u8); + writer.WriteStringValue(AuthType.ToString()); + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(ExpiryOn)) + { + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); + } + if (Optional.IsDefined(Metadata)) + { + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif + } + if (Optional.IsDefined(Target)) + { + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); + } + writer.WriteEndObject(); + } + + internal static AccessKeyAuthTypeWorkspaceConnectionProperties DeserializeAccessKeyAuthTypeWorkspaceConnectionProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional credentials = default; + MachineLearningConnectionAuthType authType = default; + Optional category = default; + Optional expiryTime = default; + Optional metadata = default; + Optional target = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("credentials"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + credentials = WorkspaceConnectionAccessKey.DeserializeWorkspaceConnectionAccessKey(property.Value); + continue; + } + if (property.NameEquals("authType"u8)) + { + authType = new MachineLearningConnectionAuthType(property.Value.GetString()); + continue; + } + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + category = new MachineLearningConnectionCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("expiryTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("metadata"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); + continue; + } + } + return new AccessKeyAuthTypeWorkspaceConnectionProperties(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value, credentials.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AccessKeyAuthTypeWorkspaceConnectionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AccessKeyAuthTypeWorkspaceConnectionProperties.cs new file mode 100644 index 000000000000..452f2e6231f0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AccessKeyAuthTypeWorkspaceConnectionProperties.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The AccessKeyAuthTypeWorkspaceConnectionProperties. + public partial class AccessKeyAuthTypeWorkspaceConnectionProperties : MachineLearningWorkspaceConnectionProperties + { + /// Initializes a new instance of AccessKeyAuthTypeWorkspaceConnectionProperties. + public AccessKeyAuthTypeWorkspaceConnectionProperties() + { + AuthType = MachineLearningConnectionAuthType.AccessKey; + } + + /// Initializes a new instance of AccessKeyAuthTypeWorkspaceConnectionProperties. + /// Authentication type of the connection target. + /// Category of the connection. + /// + /// Any object. + /// + /// + internal AccessKeyAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, WorkspaceConnectionAccessKey credentials) : base(authType, category, expiryOn, metadata, target) + { + Credentials = credentials; + AuthType = authType; + } + + /// Gets or sets the credentials. + public WorkspaceConnectionAccessKey Credentials { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.Serialization.cs new file mode 100644 index 000000000000..62bf8f2fdc5f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.Serialization.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AcrDetails : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(SystemCreatedAcrAccount)) + { + if (SystemCreatedAcrAccount != null) + { + writer.WritePropertyName("systemCreatedAcrAccount"u8); + writer.WriteObjectValue(SystemCreatedAcrAccount); + } + else + { + writer.WriteNull("systemCreatedAcrAccount"); + } + } + if (Optional.IsDefined(UserCreatedAcrAccount)) + { + if (UserCreatedAcrAccount != null) + { + writer.WritePropertyName("userCreatedAcrAccount"u8); + writer.WriteObjectValue(UserCreatedAcrAccount); + } + else + { + writer.WriteNull("userCreatedAcrAccount"); + } + } + writer.WriteEndObject(); + } + + internal static AcrDetails DeserializeAcrDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional systemCreatedAcrAccount = default; + Optional userCreatedAcrAccount = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("systemCreatedAcrAccount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + systemCreatedAcrAccount = null; + continue; + } + systemCreatedAcrAccount = SystemCreatedAcrAccount.DeserializeSystemCreatedAcrAccount(property.Value); + continue; + } + if (property.NameEquals("userCreatedAcrAccount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + userCreatedAcrAccount = null; + continue; + } + userCreatedAcrAccount = UserCreatedAcrAccount.DeserializeUserCreatedAcrAccount(property.Value); + continue; + } + } + return new AcrDetails(systemCreatedAcrAccount.Value, userCreatedAcrAccount.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs new file mode 100644 index 000000000000..358a34b9b2d7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Details of ACR account to be used for the Registry. + public partial class AcrDetails + { + /// Initializes a new instance of AcrDetails. + public AcrDetails() + { + } + + /// Initializes a new instance of AcrDetails. + /// Details of system created ACR account to be used for the Registry. + /// Details of user created ACR account to be used for the Registry. + internal AcrDetails(SystemCreatedAcrAccount systemCreatedAcrAccount, UserCreatedAcrAccount userCreatedAcrAccount) + { + SystemCreatedAcrAccount = systemCreatedAcrAccount; + UserCreatedAcrAccount = userCreatedAcrAccount; + } + + /// Details of system created ACR account to be used for the Registry. + public SystemCreatedAcrAccount SystemCreatedAcrAccount { get; set; } + /// Details of user created ACR account to be used for the Registry. + internal UserCreatedAcrAccount UserCreatedAcrAccount { get; set; } + /// + /// 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}" + /// + public string ArmResourceId + { + get => UserCreatedAcrAccount is null ? default : UserCreatedAcrAccount.ArmResourceId; + set + { + if (UserCreatedAcrAccount is null) + UserCreatedAcrAccount = new UserCreatedAcrAccount(); + UserCreatedAcrAccount.ArmResourceId = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.Serialization.cs new file mode 100644 index 000000000000..4d0573cc836c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AllFeatures : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("filterType"u8); + writer.WriteStringValue(FilterType.ToString()); + writer.WriteEndObject(); + } + + internal static AllFeatures DeserializeAllFeatures(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitoringFeatureFilterType filterType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("filterType"u8)) + { + filterType = new MonitoringFeatureFilterType(property.Value.GetString()); + continue; + } + } + return new AllFeatures(filterType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.cs new file mode 100644 index 000000000000..0f7b7e0ebf68 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The AllFeatures. + public partial class AllFeatures : MonitoringFeatureFilterBase + { + /// Initializes a new instance of AllFeatures. + public AllFeatures() + { + FilterType = MonitoringFeatureFilterType.AllFeatures; + } + + /// Initializes a new instance of AllFeatures. + /// [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over. + internal AllFeatures(MonitoringFeatureFilterType filterType) : base(filterType) + { + FilterType = filterType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.Serialization.cs new file mode 100644 index 000000000000..fe539a524764 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AllNodes : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("nodesValueType"u8); + writer.WriteStringValue(NodesValueType.ToString()); + writer.WriteEndObject(); + } + + internal static AllNodes DeserializeAllNodes(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + NodesValueType nodesValueType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nodesValueType"u8)) + { + nodesValueType = new NodesValueType(property.Value.GetString()); + continue; + } + } + return new AllNodes(nodesValueType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.cs new file mode 100644 index 000000000000..e68a8e4e9d30 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// All nodes means the service will be running on all of the nodes of the job. + public partial class AllNodes : Nodes + { + /// Initializes a new instance of AllNodes. + public AllNodes() + { + NodesValueType = NodesValueType.All; + } + + /// Initializes a new instance of AllNodes. + /// [Required] Type of the Nodes value. + internal AllNodes(NodesValueType nodesValueType) : base(nodesValueType) + { + NodesValueType = nodesValueType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlTokenComputeIdentity.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlTokenComputeIdentity.Serialization.cs new file mode 100644 index 000000000000..e1326a7d5d84 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlTokenComputeIdentity.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AmlTokenComputeIdentity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("computeIdentityType"u8); + writer.WriteStringValue(ComputeIdentityType.ToString()); + writer.WriteEndObject(); + } + + internal static AmlTokenComputeIdentity DeserializeAmlTokenComputeIdentity(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitorComputeIdentityType computeIdentityType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("computeIdentityType"u8)) + { + computeIdentityType = new MonitorComputeIdentityType(property.Value.GetString()); + continue; + } + } + return new AmlTokenComputeIdentity(computeIdentityType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlTokenComputeIdentity.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlTokenComputeIdentity.cs new file mode 100644 index 000000000000..084d82326a83 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlTokenComputeIdentity.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// AML token compute identity definition. + public partial class AmlTokenComputeIdentity : MonitorComputeIdentityBase + { + /// Initializes a new instance of AmlTokenComputeIdentity. + public AmlTokenComputeIdentity() + { + ComputeIdentityType = MonitorComputeIdentityType.AmlToken; + } + + /// Initializes a new instance of AmlTokenComputeIdentity. + /// [Required] Monitor compute identity type enum. + internal AmlTokenComputeIdentity(MonitorComputeIdentityType computeIdentityType) : base(computeIdentityType) + { + ComputeIdentityType = computeIdentityType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ApiKeyAuthWorkspaceConnectionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ApiKeyAuthWorkspaceConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..db917f315870 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ApiKeyAuthWorkspaceConnectionProperties.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ApiKeyAuthWorkspaceConnectionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Credentials)) + { + writer.WritePropertyName("credentials"u8); + writer.WriteObjectValue(Credentials); + } + writer.WritePropertyName("authType"u8); + writer.WriteStringValue(AuthType.ToString()); + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(ExpiryOn)) + { + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); + } + if (Optional.IsDefined(Metadata)) + { + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif + } + if (Optional.IsDefined(Target)) + { + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); + } + writer.WriteEndObject(); + } + + internal static ApiKeyAuthWorkspaceConnectionProperties DeserializeApiKeyAuthWorkspaceConnectionProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional credentials = default; + MachineLearningConnectionAuthType authType = default; + Optional category = default; + Optional expiryTime = default; + Optional metadata = default; + Optional target = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("credentials"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + credentials = WorkspaceConnectionApiKey.DeserializeWorkspaceConnectionApiKey(property.Value); + continue; + } + if (property.NameEquals("authType"u8)) + { + authType = new MachineLearningConnectionAuthType(property.Value.GetString()); + continue; + } + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + category = new MachineLearningConnectionCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("expiryTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("metadata"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); + continue; + } + } + return new ApiKeyAuthWorkspaceConnectionProperties(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value, credentials.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ApiKeyAuthWorkspaceConnectionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ApiKeyAuthWorkspaceConnectionProperties.cs new file mode 100644 index 000000000000..dac0d3fd324f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ApiKeyAuthWorkspaceConnectionProperties.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// 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 + /// + public partial class ApiKeyAuthWorkspaceConnectionProperties : MachineLearningWorkspaceConnectionProperties + { + /// Initializes a new instance of ApiKeyAuthWorkspaceConnectionProperties. + public ApiKeyAuthWorkspaceConnectionProperties() + { + AuthType = MachineLearningConnectionAuthType.ApiKey; + } + + /// Initializes a new instance of ApiKeyAuthWorkspaceConnectionProperties. + /// Authentication type of the connection target. + /// Category of the connection. + /// + /// Any object. + /// + /// Api key object for workspace connection credential. + internal ApiKeyAuthWorkspaceConnectionProperties(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, WorkspaceConnectionApiKey credentials) : base(authType, category, expiryOn, metadata, target) + { + Credentials = credentials; + AuthType = authType; + } + + /// Api key object for workspace connection credential. + internal WorkspaceConnectionApiKey Credentials { get; set; } + /// Gets or sets the credentials key. + public string CredentialsKey + { + get => Credentials is null ? default : Credentials.Key; + set + { + if (Credentials is null) + Credentials = new WorkspaceConnectionApiKey(); + Credentials.Key = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.Serialization.cs new file mode 100644 index 000000000000..796180b3c4b3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class ArmResourceId : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ResourceId)) + { + if (ResourceId != null) + { + writer.WritePropertyName("resourceId"u8); + writer.WriteStringValue(ResourceId); + } + else + { + writer.WriteNull("resourceId"); + } + } + writer.WriteEndObject(); + } + + internal static ArmResourceId DeserializeArmResourceId(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional resourceId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resourceId = null; + continue; + } + resourceId = property.Value.GetString(); + continue; + } + } + return new ArmResourceId(resourceId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.cs new file mode 100644 index 000000000000..5dcfcf53539d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// ARM ResourceId of a resource. + internal partial class ArmResourceId + { + /// Initializes a new instance of ArmResourceId. + public ArmResourceId() + { + } + + /// Initializes a new instance of 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}" + /// + internal ArmResourceId(string resourceId) + { + ResourceId = resourceId; + } + + /// + /// 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}" + /// + public string ResourceId { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AssetProvisioningState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AssetProvisioningState.cs new file mode 100644 index 000000000000..246e97f431a7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AssetProvisioningState.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Provisioning state of registry asset. + public readonly partial struct AssetProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AssetProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string CreatingValue = "Creating"; + private const string UpdatingValue = "Updating"; + private const string DeletingValue = "Deleting"; + + /// Succeeded. + public static AssetProvisioningState Succeeded { get; } = new AssetProvisioningState(SucceededValue); + /// Failed. + public static AssetProvisioningState Failed { get; } = new AssetProvisioningState(FailedValue); + /// Canceled. + public static AssetProvisioningState Canceled { get; } = new AssetProvisioningState(CanceledValue); + /// Creating. + public static AssetProvisioningState Creating { get; } = new AssetProvisioningState(CreatingValue); + /// Updating. + public static AssetProvisioningState Updating { get; } = new AssetProvisioningState(UpdatingValue); + /// Deleting. + public static AssetProvisioningState Deleting { get; } = new AssetProvisioningState(DeletingValue); + /// Determines if two values are the same. + public static bool operator ==(AssetProvisioningState left, AssetProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AssetProvisioningState left, AssetProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AssetProvisioningState(string value) => new AssetProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AssetProvisioningState other && Equals(other); + /// + public bool Equals(AssetProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteCondition.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteCondition.cs new file mode 100644 index 000000000000..5ee64c0f5cab --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteCondition.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The AutoDeleteCondition. + public readonly partial struct AutoDeleteCondition : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutoDeleteCondition(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CreatedGreaterThanValue = "CreatedGreaterThan"; + private const string LastAccessedGreaterThanValue = "LastAccessedGreaterThan"; + + /// CreatedGreaterThan. + public static AutoDeleteCondition CreatedGreaterThan { get; } = new AutoDeleteCondition(CreatedGreaterThanValue); + /// LastAccessedGreaterThan. + public static AutoDeleteCondition LastAccessedGreaterThan { get; } = new AutoDeleteCondition(LastAccessedGreaterThanValue); + /// Determines if two values are the same. + public static bool operator ==(AutoDeleteCondition left, AutoDeleteCondition right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutoDeleteCondition left, AutoDeleteCondition right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutoDeleteCondition(string value) => new AutoDeleteCondition(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutoDeleteCondition other && Equals(other); + /// + public bool Equals(AutoDeleteCondition other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteSetting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteSetting.Serialization.cs new file mode 100644 index 000000000000..ba81a2ea0102 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteSetting.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AutoDeleteSetting : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Condition)) + { + writer.WritePropertyName("condition"u8); + writer.WriteStringValue(Condition.Value.ToString()); + } + if (Optional.IsDefined(Value)) + { + if (Value != null) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + else + { + writer.WriteNull("value"); + } + } + writer.WriteEndObject(); + } + + internal static AutoDeleteSetting DeserializeAutoDeleteSetting(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional condition = default; + Optional value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("condition"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + condition = new AutoDeleteCondition(property.Value.GetString()); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + value = null; + continue; + } + value = property.Value.GetString(); + continue; + } + } + return new AutoDeleteSetting(Optional.ToNullable(condition), value.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteSetting.cs new file mode 100644 index 000000000000..469a12683b9f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoDeleteSetting.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The AutoDeleteSetting. + public partial class AutoDeleteSetting + { + /// Initializes a new instance of AutoDeleteSetting. + public AutoDeleteSetting() + { + } + + /// Initializes a new instance of AutoDeleteSetting. + /// When to check if an asset is expired. + /// Expiration condition value. + internal AutoDeleteSetting(AutoDeleteCondition? condition, string value) + { + Condition = condition; + Value = value; + } + + /// When to check if an asset is expired. + public AutoDeleteCondition? Condition { get; set; } + /// Expiration condition value. + public string Value { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.Serialization.cs index 961c7d54c2f3..62f48194eea2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.Serialization.cs @@ -64,6 +64,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("outputs"); } } + if (Optional.IsDefined(QueueSettings)) + { + if (QueueSettings != null) + { + writer.WritePropertyName("queueSettings"u8); + writer.WriteObjectValue(QueueSettings); + } + else + { + writer.WriteNull("queueSettings"); + } + } if (Optional.IsDefined(Resources)) { writer.WritePropertyName("resources"u8); @@ -131,6 +143,36 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("jobType"u8); writer.WriteStringValue(JobType.ToString()); + if (Optional.IsDefined(NotificationSetting)) + { + if (NotificationSetting != null) + { + writer.WritePropertyName("notificationSetting"u8); + writer.WriteObjectValue(NotificationSetting); + } + else + { + writer.WriteNull("notificationSetting"); + } + } + if (Optional.IsCollectionDefined(SecretsConfiguration)) + { + if (SecretsConfiguration != null) + { + writer.WritePropertyName("secretsConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SecretsConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("secretsConfiguration"); + } + } if (Optional.IsCollectionDefined(Services)) { if (Services != null) @@ -209,6 +251,7 @@ internal static AutoMLJob DeserializeAutoMLJob(JsonElement element) Optional environmentId = default; Optional> environmentVariables = default; Optional> outputs = default; + Optional queueSettings = default; Optional resources = default; AutoMLVertical taskDetails = default; Optional componentId = default; @@ -218,6 +261,8 @@ internal static AutoMLJob DeserializeAutoMLJob(JsonElement element) Optional identity = default; Optional isArchived = default; JobType jobType = default; + Optional notificationSetting = default; + Optional> secretsConfiguration = default; Optional> services = default; Optional status = default; Optional description = default; @@ -265,6 +310,16 @@ internal static AutoMLJob DeserializeAutoMLJob(JsonElement element) outputs = dictionary; continue; } + if (property.NameEquals("queueSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + queueSettings = null; + continue; + } + queueSettings = QueueSettings.DeserializeQueueSettings(property.Value); + continue; + } if (property.NameEquals("resources"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -338,6 +393,31 @@ internal static AutoMLJob DeserializeAutoMLJob(JsonElement element) jobType = new JobType(property.Value.GetString()); continue; } + if (property.NameEquals("notificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + notificationSetting = null; + continue; + } + notificationSetting = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("secretsConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + secretsConfiguration = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, SecretConfiguration.DeserializeSecretConfiguration(property0.Value)); + } + secretsConfiguration = dictionary; + continue; + } if (property.NameEquals("services"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -403,7 +483,7 @@ internal static AutoMLJob DeserializeAutoMLJob(JsonElement element) continue; } } - return new AutoMLJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, Optional.ToDictionary(services), Optional.ToNullable(status), environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(outputs), resources.Value, taskDetails); + return new AutoMLJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, notificationSetting.Value, Optional.ToDictionary(secretsConfiguration), Optional.ToDictionary(services), Optional.ToNullable(status), environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(outputs), queueSettings.Value, resources.Value, taskDetails); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.cs index 7a6452155a73..3fc0aeeabab4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.cs @@ -51,6 +51,8 @@ public AutoMLJob(AutoMLVertical taskDetails) /// /// Is the asset archived?. /// [Required] Specifies the type of job. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. @@ -66,17 +68,19 @@ public AutoMLJob(AutoMLVertical taskDetails) /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , and . /// + /// Queue settings for the job. /// Compute Resource configuration for the job. /// /// [Required] This represents scenario which can be one of Tables/NLP/Image /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , and . /// - internal AutoMLJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, IDictionary services, MachineLearningJobStatus? status, string environmentId, IDictionary environmentVariables, IDictionary outputs, MachineLearningJobResourceConfiguration resources, AutoMLVertical taskDetails) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, services, status) + internal AutoMLJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, string environmentId, IDictionary environmentVariables, IDictionary outputs, QueueSettings queueSettings, MachineLearningJobResourceConfiguration resources, AutoMLVertical taskDetails) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { EnvironmentId = environmentId; EnvironmentVariables = environmentVariables; Outputs = outputs; + QueueSettings = queueSettings; Resources = resources; TaskDetails = taskDetails; JobType = jobType; @@ -95,6 +99,8 @@ internal AutoMLJob(string description, IDictionary properties, I /// The available derived classes include , , , , and . /// public IDictionary Outputs { get; set; } + /// Queue settings for the job. + public QueueSettings QueueSettings { get; set; } /// Compute Resource configuration for the job. public MachineLearningJobResourceConfiguration Resources { get; set; } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.Serialization.cs index 12f84276c3c6..c414b5ede106 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.Serialization.cs @@ -62,6 +62,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("featurizationSettings"); } } + if (Optional.IsDefined(FixedParameters)) + { + if (FixedParameters != null) + { + writer.WritePropertyName("fixedParameters"u8); + writer.WriteObjectValue(FixedParameters); + } + else + { + writer.WriteNull("fixedParameters"); + } + } if (Optional.IsDefined(LimitSettings)) { if (LimitSettings != null) @@ -86,6 +98,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("nCrossValidations"); } } + if (Optional.IsCollectionDefined(SearchSpace)) + { + if (SearchSpace != null) + { + writer.WritePropertyName("searchSpace"u8); + writer.WriteStartArray(); + foreach (var item in SearchSpace) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("searchSpace"); + } + } + if (Optional.IsDefined(SweepSettings)) + { + if (SweepSettings != null) + { + writer.WritePropertyName("sweepSettings"u8); + writer.WriteObjectValue(SweepSettings); + } + else + { + writer.WriteNull("sweepSettings"); + } + } if (Optional.IsDefined(TestData)) { if (TestData != null) @@ -180,8 +221,11 @@ internal static AutoMLVerticalRegression DeserializeAutoMLVerticalRegression(Jso Optional trainingSettings = default; Optional> cvSplitColumnNames = default; Optional featurizationSettings = default; + Optional fixedParameters = default; Optional limitSettings = default; Optional nCrossValidations = default; + Optional> searchSpace = default; + Optional sweepSettings = default; Optional testData = default; Optional testDataSize = default; Optional validationData = default; @@ -237,6 +281,16 @@ internal static AutoMLVerticalRegression DeserializeAutoMLVerticalRegression(Jso featurizationSettings = TableVerticalFeaturizationSettings.DeserializeTableVerticalFeaturizationSettings(property.Value); continue; } + if (property.NameEquals("fixedParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + fixedParameters = null; + continue; + } + fixedParameters = TableFixedParameters.DeserializeTableFixedParameters(property.Value); + continue; + } if (property.NameEquals("limitSettings"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -257,6 +311,31 @@ internal static AutoMLVerticalRegression DeserializeAutoMLVerticalRegression(Jso nCrossValidations = NCrossValidations.DeserializeNCrossValidations(property.Value); continue; } + if (property.NameEquals("searchSpace"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + searchSpace = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(TableParameterSubspace.DeserializeTableParameterSubspace(item)); + } + searchSpace = array; + continue; + } + if (property.NameEquals("sweepSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sweepSettings = null; + continue; + } + sweepSettings = TableSweepSettings.DeserializeTableSweepSettings(property.Value); + continue; + } if (property.NameEquals("testData"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -337,7 +416,7 @@ internal static AutoMLVerticalRegression DeserializeAutoMLVerticalRegression(Jso continue; } } - return new AutoMLVerticalRegression(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, Optional.ToNullable(primaryMetric), trainingSettings.Value, Optional.ToList(cvSplitColumnNames), featurizationSettings.Value, limitSettings.Value, nCrossValidations.Value, testData.Value, Optional.ToNullable(testDataSize), validationData.Value, Optional.ToNullable(validationDataSize), weightColumnName.Value); + return new AutoMLVerticalRegression(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, Optional.ToNullable(primaryMetric), trainingSettings.Value, Optional.ToList(cvSplitColumnNames), featurizationSettings.Value, fixedParameters.Value, limitSettings.Value, nCrossValidations.Value, Optional.ToList(searchSpace), sweepSettings.Value, testData.Value, Optional.ToNullable(testDataSize), validationData.Value, Optional.ToNullable(validationDataSize), weightColumnName.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.cs index 270bf68e08a4..21c4705be73b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.cs @@ -22,6 +22,7 @@ public AutoMLVerticalRegression(MachineLearningTableJobInput trainingData) : bas Argument.AssertNotNull(trainingData, nameof(trainingData)); CvSplitColumnNames = new ChangeTrackingList(); + SearchSpace = new ChangeTrackingList(); TaskType = TaskType.Regression; } @@ -37,6 +38,7 @@ public AutoMLVerticalRegression(MachineLearningTableJobInput trainingData) : bas /// Inputs for training phase for an AutoML Job. /// Columns to use for CVSplit data. /// Featurization inputs needed for AutoML job. + /// Model/training parameters that will remain constant throughout training. /// Execution constraints for AutoMLJob. /// /// Number of cross validation folds to be applied on training dataset @@ -44,6 +46,8 @@ public AutoMLVerticalRegression(MachineLearningTableJobInput trainingData) : bas /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// + /// Search space for sampling different combinations of models and their hyperparameters. + /// Settings for model sweeping and hyperparameter tuning. /// Test data input. /// /// The fraction of test dataset that needs to be set aside for validation purpose. @@ -57,14 +61,17 @@ public AutoMLVerticalRegression(MachineLearningTableJobInput trainingData) : bas /// Applied when validation dataset is not provided. /// /// 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. - internal AutoMLVerticalRegression(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, AutoMLVerticalRegressionPrimaryMetric? primaryMetric, RegressionTrainingSettings trainingSettings, IList cvSplitColumnNames, TableVerticalFeaturizationSettings featurizationSettings, TableVerticalLimitSettings limitSettings, NCrossValidations nCrossValidations, MachineLearningTableJobInput testData, double? testDataSize, MachineLearningTableJobInput validationData, double? validationDataSize, string weightColumnName) : base(logVerbosity, targetColumnName, taskType, trainingData) + internal AutoMLVerticalRegression(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, AutoMLVerticalRegressionPrimaryMetric? primaryMetric, RegressionTrainingSettings trainingSettings, IList cvSplitColumnNames, TableVerticalFeaturizationSettings featurizationSettings, TableFixedParameters fixedParameters, TableVerticalLimitSettings limitSettings, NCrossValidations nCrossValidations, IList searchSpace, TableSweepSettings sweepSettings, MachineLearningTableJobInput testData, double? testDataSize, MachineLearningTableJobInput validationData, double? validationDataSize, string weightColumnName) : base(logVerbosity, targetColumnName, taskType, trainingData) { PrimaryMetric = primaryMetric; TrainingSettings = trainingSettings; CvSplitColumnNames = cvSplitColumnNames; FeaturizationSettings = featurizationSettings; + FixedParameters = fixedParameters; LimitSettings = limitSettings; NCrossValidations = nCrossValidations; + SearchSpace = searchSpace; + SweepSettings = sweepSettings; TestData = testData; TestDataSize = testDataSize; ValidationData = validationData; @@ -81,6 +88,8 @@ internal AutoMLVerticalRegression(MachineLearningLogVerbosity? logVerbosity, str public IList CvSplitColumnNames { get; set; } /// Featurization inputs needed for AutoML job. public TableVerticalFeaturizationSettings FeaturizationSettings { get; set; } + /// Model/training parameters that will remain constant throughout training. + public TableFixedParameters FixedParameters { get; set; } /// Execution constraints for AutoMLJob. public TableVerticalLimitSettings LimitSettings { get; set; } /// @@ -90,6 +99,10 @@ internal AutoMLVerticalRegression(MachineLearningLogVerbosity? logVerbosity, str /// The available derived classes include and . /// public NCrossValidations NCrossValidations { get; set; } + /// Search space for sampling different combinations of models and their hyperparameters. + public IList SearchSpace { get; set; } + /// Settings for model sweeping and hyperparameter tuning. + public TableSweepSettings SweepSettings { get; set; } /// Test data input. public MachineLearningTableJobInput TestData { get; set; } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegressionModel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegressionModel.cs index 617270cdacc7..3e141a38e0c0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegressionModel.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegressionModel.cs @@ -57,7 +57,7 @@ public AutoMLVerticalRegressionModel(string value) public static AutoMLVerticalRegressionModel SGD { get; } = new AutoMLVerticalRegressionModel(SGDValue); /// /// Random forest is a supervised learning algorithm. - /// The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + /// The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. /// The general idea of the bagging method is that a combination of learning models increases the overall result. /// public static AutoMLVerticalRegressionModel RandomForest { get; } = new AutoMLVerticalRegressionModel(RandomForestValue); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs new file mode 100644 index 000000000000..42d42cb54626 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class AutologgerSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("mlflowAutologger"u8); + writer.WriteStringValue(MlflowAutologger.ToString()); + writer.WriteEndObject(); + } + + internal static AutologgerSettings DeserializeAutologgerSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MLFlowAutologgerState mlflowAutologger = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mlflowAutologger"u8)) + { + mlflowAutologger = new MLFlowAutologgerState(property.Value.GetString()); + continue; + } + } + return new AutologgerSettings(mlflowAutologger); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs new file mode 100644 index 000000000000..cdffc64f8883 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Settings for Autologger. + internal partial class AutologgerSettings + { + /// Initializes a new instance of AutologgerSettings. + /// [Required] Indicates whether mlflow autologger is enabled. + public AutologgerSettings(MLFlowAutologgerState mlflowAutologger) + { + MlflowAutologger = mlflowAutologger; + } + + /// [Required] Indicates whether mlflow autologger is enabled. + public MLFlowAutologgerState MlflowAutologger { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzMonMonitoringAlertNotificationSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzMonMonitoringAlertNotificationSettings.Serialization.cs new file mode 100644 index 000000000000..8f5c9aba5ea0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzMonMonitoringAlertNotificationSettings.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AzMonMonitoringAlertNotificationSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("alertNotificationType"u8); + writer.WriteStringValue(AlertNotificationType.ToString()); + writer.WriteEndObject(); + } + + internal static AzMonMonitoringAlertNotificationSettings DeserializeAzMonMonitoringAlertNotificationSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitoringAlertNotificationType alertNotificationType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("alertNotificationType"u8)) + { + alertNotificationType = new MonitoringAlertNotificationType(property.Value.GetString()); + continue; + } + } + return new AzMonMonitoringAlertNotificationSettings(alertNotificationType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzMonMonitoringAlertNotificationSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzMonMonitoringAlertNotificationSettings.cs new file mode 100644 index 000000000000..7e7261eef039 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzMonMonitoringAlertNotificationSettings.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The AzMonMonitoringAlertNotificationSettings. + public partial class AzMonMonitoringAlertNotificationSettings : MonitoringAlertNotificationSettingsBase + { + /// Initializes a new instance of AzMonMonitoringAlertNotificationSettings. + public AzMonMonitoringAlertNotificationSettings() + { + AlertNotificationType = MonitoringAlertNotificationType.AzureMonitor; + } + + /// Initializes a new instance of AzMonMonitoringAlertNotificationSettings. + /// [Required] Specifies the type of signal to monitor. + internal AzMonMonitoringAlertNotificationSettings(MonitoringAlertNotificationType alertNotificationType) : base(alertNotificationType) + { + AlertNotificationType = alertNotificationType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.Serialization.cs new file mode 100644 index 000000000000..3aaacf354524 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AzureDevOpsWebhook : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(EventType)) + { + if (EventType != null) + { + writer.WritePropertyName("eventType"u8); + writer.WriteStringValue(EventType); + } + else + { + writer.WriteNull("eventType"); + } + } + writer.WritePropertyName("webhookType"u8); + writer.WriteStringValue(WebhookType.ToString()); + writer.WriteEndObject(); + } + + internal static AzureDevOpsWebhook DeserializeAzureDevOpsWebhook(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional eventType = default; + WebhookType webhookType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("eventType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + eventType = null; + continue; + } + eventType = property.Value.GetString(); + continue; + } + if (property.NameEquals("webhookType"u8)) + { + webhookType = new WebhookType(property.Value.GetString()); + continue; + } + } + return new AzureDevOpsWebhook(eventType.Value, webhookType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.cs new file mode 100644 index 000000000000..256162d37b45 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Webhook details specific for Azure DevOps. + public partial class AzureDevOpsWebhook : Webhook + { + /// Initializes a new instance of AzureDevOpsWebhook. + public AzureDevOpsWebhook() + { + WebhookType = WebhookType.AzureDevOps; + } + + /// Initializes a new instance of AzureDevOpsWebhook. + /// Send callback on a specified notification event. + /// [Required] Specifies the type of service to send a callback. + internal AzureDevOpsWebhook(string eventType, WebhookType webhookType) : base(eventType, webhookType) + { + WebhookType = webhookType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLBatchInferencingServer.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLBatchInferencingServer.Serialization.cs new file mode 100644 index 000000000000..e5462f617acb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLBatchInferencingServer.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AzureMLBatchInferencingServer : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(CodeConfiguration)) + { + if (CodeConfiguration != null) + { + writer.WritePropertyName("codeConfiguration"u8); + writer.WriteObjectValue(CodeConfiguration); + } + else + { + writer.WriteNull("codeConfiguration"); + } + } + writer.WritePropertyName("serverType"u8); + writer.WriteStringValue(ServerType.ToString()); + writer.WriteEndObject(); + } + + internal static AzureMLBatchInferencingServer DeserializeAzureMLBatchInferencingServer(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional codeConfiguration = default; + InferencingServerType serverType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("codeConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + codeConfiguration = null; + continue; + } + codeConfiguration = MachineLearningCodeConfiguration.DeserializeMachineLearningCodeConfiguration(property.Value); + continue; + } + if (property.NameEquals("serverType"u8)) + { + serverType = new InferencingServerType(property.Value.GetString()); + continue; + } + } + return new AzureMLBatchInferencingServer(serverType, codeConfiguration.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLBatchInferencingServer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLBatchInferencingServer.cs new file mode 100644 index 000000000000..f6b647007eb2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLBatchInferencingServer.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Azure ML batch inferencing server configurations. + public partial class AzureMLBatchInferencingServer : InferencingServer + { + /// Initializes a new instance of AzureMLBatchInferencingServer. + public AzureMLBatchInferencingServer() + { + ServerType = InferencingServerType.AzureMLBatch; + } + + /// Initializes a new instance of AzureMLBatchInferencingServer. + /// [Required] Inferencing server type for various targets. + /// Code configuration for AML batch inferencing server. + internal AzureMLBatchInferencingServer(InferencingServerType serverType, MachineLearningCodeConfiguration codeConfiguration) : base(serverType) + { + CodeConfiguration = codeConfiguration; + ServerType = serverType; + } + + /// Code configuration for AML batch inferencing server. + public MachineLearningCodeConfiguration CodeConfiguration { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLOnlineInferencingServer.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLOnlineInferencingServer.Serialization.cs new file mode 100644 index 000000000000..ee58999ff856 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLOnlineInferencingServer.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class AzureMLOnlineInferencingServer : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(CodeConfiguration)) + { + if (CodeConfiguration != null) + { + writer.WritePropertyName("codeConfiguration"u8); + writer.WriteObjectValue(CodeConfiguration); + } + else + { + writer.WriteNull("codeConfiguration"); + } + } + writer.WritePropertyName("serverType"u8); + writer.WriteStringValue(ServerType.ToString()); + writer.WriteEndObject(); + } + + internal static AzureMLOnlineInferencingServer DeserializeAzureMLOnlineInferencingServer(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional codeConfiguration = default; + InferencingServerType serverType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("codeConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + codeConfiguration = null; + continue; + } + codeConfiguration = MachineLearningCodeConfiguration.DeserializeMachineLearningCodeConfiguration(property.Value); + continue; + } + if (property.NameEquals("serverType"u8)) + { + serverType = new InferencingServerType(property.Value.GetString()); + continue; + } + } + return new AzureMLOnlineInferencingServer(serverType, codeConfiguration.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLOnlineInferencingServer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLOnlineInferencingServer.cs new file mode 100644 index 000000000000..e9a236afc4a0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureMLOnlineInferencingServer.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Azure ML online inferencing configurations. + public partial class AzureMLOnlineInferencingServer : InferencingServer + { + /// Initializes a new instance of AzureMLOnlineInferencingServer. + public AzureMLOnlineInferencingServer() + { + ServerType = InferencingServerType.AzureMLOnline; + } + + /// Initializes a new instance of AzureMLOnlineInferencingServer. + /// [Required] Inferencing server type for various targets. + /// Code configuration for AML inferencing server. + internal AzureMLOnlineInferencingServer(InferencingServerType serverType, MachineLearningCodeConfiguration codeConfiguration) : base(serverType) + { + CodeConfiguration = codeConfiguration; + ServerType = serverType; + } + + /// Code configuration for AML inferencing server. + public MachineLearningCodeConfiguration CodeConfiguration { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.Serialization.cs new file mode 100644 index 000000000000..e33cf53c217c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class BaseEnvironmentId : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("resourceId"u8); + writer.WriteStringValue(ResourceId); + writer.WritePropertyName("baseEnvironmentSourceType"u8); + writer.WriteStringValue(BaseEnvironmentSourceType.ToString()); + writer.WriteEndObject(); + } + + internal static BaseEnvironmentId DeserializeBaseEnvironmentId(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string resourceId = default; + BaseEnvironmentSourceType baseEnvironmentSourceType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceId"u8)) + { + resourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("baseEnvironmentSourceType"u8)) + { + baseEnvironmentSourceType = new BaseEnvironmentSourceType(property.Value.GetString()); + continue; + } + } + return new BaseEnvironmentId(baseEnvironmentSourceType, resourceId); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.cs new file mode 100644 index 000000000000..549f457920e4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Base environment type. + public partial class BaseEnvironmentId : BaseEnvironmentSource + { + /// Initializes a new instance of BaseEnvironmentId. + /// [Required] Resource id accepting ArmId or AzureMlId. + /// is null. + public BaseEnvironmentId(string resourceId) + { + Argument.AssertNotNull(resourceId, nameof(resourceId)); + + ResourceId = resourceId; + BaseEnvironmentSourceType = BaseEnvironmentSourceType.EnvironmentAsset; + } + + /// Initializes a new instance of BaseEnvironmentId. + /// [Required] Base environment type. + /// [Required] Resource id accepting ArmId or AzureMlId. + internal BaseEnvironmentId(BaseEnvironmentSourceType baseEnvironmentSourceType, string resourceId) : base(baseEnvironmentSourceType) + { + ResourceId = resourceId; + BaseEnvironmentSourceType = baseEnvironmentSourceType; + } + + /// [Required] Resource id accepting ArmId or AzureMlId. + public string ResourceId { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.Serialization.cs new file mode 100644 index 000000000000..c2b156e21bd0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class BaseEnvironmentSource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("baseEnvironmentSourceType"u8); + writer.WriteStringValue(BaseEnvironmentSourceType.ToString()); + writer.WriteEndObject(); + } + + internal static BaseEnvironmentSource DeserializeBaseEnvironmentSource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("baseEnvironmentSourceType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "EnvironmentAsset": return BaseEnvironmentId.DeserializeBaseEnvironmentId(element); + } + } + return UnknownBaseEnvironmentSource.DeserializeUnknownBaseEnvironmentSource(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.cs new file mode 100644 index 000000000000..9157406346e4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The BaseEnvironmentSource. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class BaseEnvironmentSource + { + /// Initializes a new instance of BaseEnvironmentSource. + protected BaseEnvironmentSource() + { + } + + /// Initializes a new instance of BaseEnvironmentSource. + /// [Required] Base environment type. + internal BaseEnvironmentSource(BaseEnvironmentSourceType baseEnvironmentSourceType) + { + BaseEnvironmentSourceType = baseEnvironmentSourceType; + } + + /// [Required] Base environment type. + internal BaseEnvironmentSourceType BaseEnvironmentSourceType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSourceType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSourceType.cs new file mode 100644 index 000000000000..4e90202e8f45 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSourceType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Base environment type. + internal readonly partial struct BaseEnvironmentSourceType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BaseEnvironmentSourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnvironmentAssetValue = "EnvironmentAsset"; + + /// EnvironmentAsset. + public static BaseEnvironmentSourceType EnvironmentAsset { get; } = new BaseEnvironmentSourceType(EnvironmentAssetValue); + /// Determines if two values are the same. + public static bool operator ==(BaseEnvironmentSourceType left, BaseEnvironmentSourceType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BaseEnvironmentSourceType left, BaseEnvironmentSourceType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BaseEnvironmentSourceType(string value) => new BaseEnvironmentSourceType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BaseEnvironmentSourceType other && Equals(other); + /// + public bool Equals(BaseEnvironmentSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfiguration.Serialization.cs new file mode 100644 index 000000000000..ab0d56a43ab1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfiguration.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class BatchDeploymentConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("deploymentConfigurationType"u8); + writer.WriteStringValue(DeploymentConfigurationType.ToString()); + writer.WriteEndObject(); + } + + internal static BatchDeploymentConfiguration DeserializeBatchDeploymentConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("deploymentConfigurationType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "PipelineComponent": return BatchPipelineComponentDeploymentConfiguration.DeserializeBatchPipelineComponentDeploymentConfiguration(element); + } + } + return UnknownBatchDeploymentConfiguration.DeserializeUnknownBatchDeploymentConfiguration(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfiguration.cs new file mode 100644 index 000000000000..0fd9f75c7087 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfiguration.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Properties relevant to different deployment types. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class BatchDeploymentConfiguration + { + /// Initializes a new instance of BatchDeploymentConfiguration. + protected BatchDeploymentConfiguration() + { + } + + /// Initializes a new instance of BatchDeploymentConfiguration. + /// [Required] The type of the deployment. + internal BatchDeploymentConfiguration(BatchDeploymentConfigurationType deploymentConfigurationType) + { + DeploymentConfigurationType = deploymentConfigurationType; + } + + /// [Required] The type of the deployment. + internal BatchDeploymentConfigurationType DeploymentConfigurationType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfigurationType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfigurationType.cs new file mode 100644 index 000000000000..c8850165329c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentConfigurationType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The enumerated property types for batch deployments. + internal readonly partial struct BatchDeploymentConfigurationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BatchDeploymentConfigurationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ModelValue = "Model"; + private const string PipelineComponentValue = "PipelineComponent"; + + /// Model. + public static BatchDeploymentConfigurationType Model { get; } = new BatchDeploymentConfigurationType(ModelValue); + /// PipelineComponent. + public static BatchDeploymentConfigurationType PipelineComponent { get; } = new BatchDeploymentConfigurationType(PipelineComponentValue); + /// Determines if two values are the same. + public static bool operator ==(BatchDeploymentConfigurationType left, BatchDeploymentConfigurationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BatchDeploymentConfigurationType left, BatchDeploymentConfigurationType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BatchDeploymentConfigurationType(string value) => new BatchDeploymentConfigurationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BatchDeploymentConfigurationType other && Equals(other); + /// + public bool Equals(BatchDeploymentConfigurationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchPipelineComponentDeploymentConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchPipelineComponentDeploymentConfiguration.Serialization.cs new file mode 100644 index 000000000000..85f5f9426f9d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchPipelineComponentDeploymentConfiguration.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class BatchPipelineComponentDeploymentConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ComponentId)) + { + if (ComponentId != null) + { + writer.WritePropertyName("componentId"u8); + writer.WriteObjectValue(ComponentId); + } + else + { + writer.WriteNull("componentId"); + } + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Settings)) + { + if (Settings != null) + { + writer.WritePropertyName("settings"u8); + writer.WriteStartObject(); + foreach (var item in Settings) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("settings"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WritePropertyName("deploymentConfigurationType"u8); + writer.WriteStringValue(DeploymentConfigurationType.ToString()); + writer.WriteEndObject(); + } + + internal static BatchPipelineComponentDeploymentConfiguration DeserializeBatchPipelineComponentDeploymentConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional componentId = default; + Optional description = default; + Optional> settings = default; + Optional> tags = default; + BatchDeploymentConfigurationType deploymentConfigurationType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("componentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + componentId = null; + continue; + } + componentId = MachineLearningIdAssetReference.DeserializeMachineLearningIdAssetReference(property.Value); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("settings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + settings = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + settings = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("deploymentConfigurationType"u8)) + { + deploymentConfigurationType = new BatchDeploymentConfigurationType(property.Value.GetString()); + continue; + } + } + return new BatchPipelineComponentDeploymentConfiguration(deploymentConfigurationType, componentId.Value, description.Value, Optional.ToDictionary(settings), Optional.ToDictionary(tags)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchPipelineComponentDeploymentConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchPipelineComponentDeploymentConfiguration.cs new file mode 100644 index 000000000000..b0a074229e56 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchPipelineComponentDeploymentConfiguration.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Properties for a Batch Pipeline Component Deployment. + public partial class BatchPipelineComponentDeploymentConfiguration : BatchDeploymentConfiguration + { + /// Initializes a new instance of BatchPipelineComponentDeploymentConfiguration. + public BatchPipelineComponentDeploymentConfiguration() + { + Settings = new ChangeTrackingDictionary(); + Tags = new ChangeTrackingDictionary(); + DeploymentConfigurationType = BatchDeploymentConfigurationType.PipelineComponent; + } + + /// Initializes a new instance of BatchPipelineComponentDeploymentConfiguration. + /// [Required] The type of the deployment. + /// The ARM id of the component to be run. + /// The description which will be applied to the job. + /// Run-time settings for the pipeline job. + /// The tags which will be applied to the job. + internal BatchPipelineComponentDeploymentConfiguration(BatchDeploymentConfigurationType deploymentConfigurationType, MachineLearningIdAssetReference componentId, string description, IDictionary settings, IDictionary tags) : base(deploymentConfigurationType) + { + ComponentId = componentId; + Description = description; + Settings = settings; + Tags = tags; + DeploymentConfigurationType = deploymentConfigurationType; + } + + /// The ARM id of the component to be run. + public MachineLearningIdAssetReference ComponentId { get; set; } + /// The description which will be applied to the job. + public string Description { get; set; } + /// Run-time settings for the pipeline job. + public IDictionary Settings { get; set; } + /// The tags which will be applied to the job. + public IDictionary Tags { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.Serialization.cs new file mode 100644 index 000000000000..2ab5b1eee140 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.Serialization.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class BindOptions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Propagation)) + { + if (Propagation != null) + { + writer.WritePropertyName("propagation"u8); + writer.WriteStringValue(Propagation); + } + else + { + writer.WriteNull("propagation"); + } + } + if (Optional.IsDefined(CreateHostPath)) + { + if (CreateHostPath != null) + { + writer.WritePropertyName("createHostPath"u8); + writer.WriteBooleanValue(CreateHostPath.Value); + } + else + { + writer.WriteNull("createHostPath"); + } + } + if (Optional.IsDefined(Selinux)) + { + if (Selinux != null) + { + writer.WritePropertyName("selinux"u8); + writer.WriteStringValue(Selinux); + } + else + { + writer.WriteNull("selinux"); + } + } + writer.WriteEndObject(); + } + + internal static BindOptions DeserializeBindOptions(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional propagation = default; + Optional createHostPath = default; + Optional selinux = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("propagation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + propagation = null; + continue; + } + propagation = property.Value.GetString(); + continue; + } + if (property.NameEquals("createHostPath"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + createHostPath = null; + continue; + } + createHostPath = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("selinux"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + selinux = null; + continue; + } + selinux = property.Value.GetString(); + continue; + } + } + return new BindOptions(propagation.Value, Optional.ToNullable(createHostPath), selinux.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.cs new file mode 100644 index 000000000000..743e446aeda3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The BindOptions. + public partial class BindOptions + { + /// Initializes a new instance of BindOptions. + public BindOptions() + { + } + + /// Initializes a new instance of BindOptions. + /// Type of Bind Option. + /// Indicate whether to create host path. + /// Mention the selinux options. + internal BindOptions(string propagation, bool? createHostPath, string selinux) + { + Propagation = propagation; + CreateHostPath = createHostPath; + Selinux = selinux; + } + + /// Type of Bind Option. + public string Propagation { get; set; } + /// Indicate whether to create host path. + public bool? CreateHostPath { get; set; } + /// Mention the selinux options. + public string Selinux { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.Serialization.cs new file mode 100644 index 000000000000..05b7cc18eb3d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.Serialization.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class BlobReferenceForConsumptionDto + { + internal static BlobReferenceForConsumptionDto DeserializeBlobReferenceForConsumptionDto(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional blobUri = default; + Optional credential = default; + Optional storageAccountArmId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("blobUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + blobUri = null; + continue; + } + blobUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("credential"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + credential = null; + continue; + } + credential = PendingUploadCredentialDto.DeserializePendingUploadCredentialDto(property.Value); + continue; + } + if (property.NameEquals("storageAccountArmId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + storageAccountArmId = null; + continue; + } + storageAccountArmId = property.Value.GetString(); + continue; + } + } + return new BlobReferenceForConsumptionDto(blobUri.Value, credential.Value, storageAccountArmId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.cs new file mode 100644 index 000000000000..e7edd8c33323 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The BlobReferenceForConsumptionDto. + public partial class BlobReferenceForConsumptionDto + { + /// Initializes a new instance of BlobReferenceForConsumptionDto. + internal BlobReferenceForConsumptionDto() + { + } + + /// Initializes a new instance of BlobReferenceForConsumptionDto. + /// + /// Blob URI path for client to upload data. + /// Example: https://blob.windows.core.net/Container/Path + /// + /// + /// Credential info to access storage account + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// Arm ID of the storage account to use. + internal BlobReferenceForConsumptionDto(Uri blobUri, PendingUploadCredentialDto credential, string storageAccountArmId) + { + BlobUri = blobUri; + Credential = credential; + StorageAccountArmId = storageAccountArmId; + } + + /// + /// Blob URI path for client to upload data. + /// Example: https://blob.windows.core.net/Container/Path + /// + public Uri BlobUri { get; } + /// + /// Credential info to access storage account + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public PendingUploadCredentialDto Credential { get; } + /// Arm ID of the storage account to use. + public string StorageAccountArmId { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetric.cs new file mode 100644 index 000000000000..9f14f675a04d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetric.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CategoricalDataDriftMetric. + public readonly partial struct CategoricalDataDriftMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CategoricalDataDriftMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string JensenShannonDistanceValue = "JensenShannonDistance"; + private const string PopulationStabilityIndexValue = "PopulationStabilityIndex"; + private const string PearsonsChiSquaredTestValue = "PearsonsChiSquaredTest"; + + /// The Jensen Shannon Distance (JSD) metric. + public static CategoricalDataDriftMetric JensenShannonDistance { get; } = new CategoricalDataDriftMetric(JensenShannonDistanceValue); + /// The Population Stability Index (PSI) metric. + public static CategoricalDataDriftMetric PopulationStabilityIndex { get; } = new CategoricalDataDriftMetric(PopulationStabilityIndexValue); + /// The Pearsons Chi Squared Test metric. + public static CategoricalDataDriftMetric PearsonsChiSquaredTest { get; } = new CategoricalDataDriftMetric(PearsonsChiSquaredTestValue); + /// Determines if two values are the same. + public static bool operator ==(CategoricalDataDriftMetric left, CategoricalDataDriftMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CategoricalDataDriftMetric left, CategoricalDataDriftMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CategoricalDataDriftMetric(string value) => new CategoricalDataDriftMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CategoricalDataDriftMetric other && Equals(other); + /// + public bool Equals(CategoricalDataDriftMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..eebe83aa59d2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetricThreshold.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CategoricalDataDriftMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static CategoricalDataDriftMetricThreshold DeserializeCategoricalDataDriftMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CategoricalDataDriftMetric metric = default; + MonitoringFeatureDataType dataType = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new CategoricalDataDriftMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new CategoricalDataDriftMetricThreshold(dataType, threshold.Value, metric); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetricThreshold.cs new file mode 100644 index 000000000000..bac24ccdeb0b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataDriftMetricThreshold.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CategoricalDataDriftMetricThreshold. + public partial class CategoricalDataDriftMetricThreshold : DataDriftMetricThresholdBase + { + /// Initializes a new instance of CategoricalDataDriftMetricThreshold. + /// [Required] The categorical data drift metric to calculate. + public CategoricalDataDriftMetricThreshold(CategoricalDataDriftMetric metric) + { + Metric = metric; + DataType = MonitoringFeatureDataType.Categorical; + } + + /// Initializes a new instance of CategoricalDataDriftMetricThreshold. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + /// [Required] The categorical data drift metric to calculate. + internal CategoricalDataDriftMetricThreshold(MonitoringFeatureDataType dataType, MonitoringThreshold threshold, CategoricalDataDriftMetric metric) : base(dataType, threshold) + { + Metric = metric; + DataType = dataType; + } + + /// [Required] The categorical data drift metric to calculate. + public CategoricalDataDriftMetric Metric { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetric.cs new file mode 100644 index 000000000000..089e056550e5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetric.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CategoricalDataQualityMetric. + public readonly partial struct CategoricalDataQualityMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CategoricalDataQualityMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NullValueRateValue = "NullValueRate"; + private const string DataTypeErrorRateValue = "DataTypeErrorRate"; + private const string OutOfBoundsRateValue = "OutOfBoundsRate"; + + /// Calculates the rate of null values. + public static CategoricalDataQualityMetric NullValueRate { get; } = new CategoricalDataQualityMetric(NullValueRateValue); + /// Calculates the rate of data type errors. + public static CategoricalDataQualityMetric DataTypeErrorRate { get; } = new CategoricalDataQualityMetric(DataTypeErrorRateValue); + /// Calculates the rate values are out of bounds. + public static CategoricalDataQualityMetric OutOfBoundsRate { get; } = new CategoricalDataQualityMetric(OutOfBoundsRateValue); + /// Determines if two values are the same. + public static bool operator ==(CategoricalDataQualityMetric left, CategoricalDataQualityMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CategoricalDataQualityMetric left, CategoricalDataQualityMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CategoricalDataQualityMetric(string value) => new CategoricalDataQualityMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CategoricalDataQualityMetric other && Equals(other); + /// + public bool Equals(CategoricalDataQualityMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..d185e7833404 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetricThreshold.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CategoricalDataQualityMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static CategoricalDataQualityMetricThreshold DeserializeCategoricalDataQualityMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CategoricalDataQualityMetric metric = default; + MonitoringFeatureDataType dataType = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new CategoricalDataQualityMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new CategoricalDataQualityMetricThreshold(dataType, threshold.Value, metric); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetricThreshold.cs new file mode 100644 index 000000000000..b368cc90f555 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalDataQualityMetricThreshold.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CategoricalDataQualityMetricThreshold. + public partial class CategoricalDataQualityMetricThreshold : DataQualityMetricThresholdBase + { + /// Initializes a new instance of CategoricalDataQualityMetricThreshold. + /// [Required] The categorical data quality metric to calculate. + public CategoricalDataQualityMetricThreshold(CategoricalDataQualityMetric metric) + { + Metric = metric; + DataType = MonitoringFeatureDataType.Categorical; + } + + /// Initializes a new instance of CategoricalDataQualityMetricThreshold. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + /// [Required] The categorical data quality metric to calculate. + internal CategoricalDataQualityMetricThreshold(MonitoringFeatureDataType dataType, MonitoringThreshold threshold, CategoricalDataQualityMetric metric) : base(dataType, threshold) + { + Metric = metric; + DataType = dataType; + } + + /// [Required] The categorical data quality metric to calculate. + public CategoricalDataQualityMetric Metric { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetric.cs new file mode 100644 index 000000000000..3f2de97d362f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetric.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CategoricalPredictionDriftMetric. + public readonly partial struct CategoricalPredictionDriftMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CategoricalPredictionDriftMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string JensenShannonDistanceValue = "JensenShannonDistance"; + private const string PopulationStabilityIndexValue = "PopulationStabilityIndex"; + private const string PearsonsChiSquaredTestValue = "PearsonsChiSquaredTest"; + + /// The Jensen Shannon Distance (JSD) metric. + public static CategoricalPredictionDriftMetric JensenShannonDistance { get; } = new CategoricalPredictionDriftMetric(JensenShannonDistanceValue); + /// The Population Stability Index (PSI) metric. + public static CategoricalPredictionDriftMetric PopulationStabilityIndex { get; } = new CategoricalPredictionDriftMetric(PopulationStabilityIndexValue); + /// The Pearsons Chi Squared Test metric. + public static CategoricalPredictionDriftMetric PearsonsChiSquaredTest { get; } = new CategoricalPredictionDriftMetric(PearsonsChiSquaredTestValue); + /// Determines if two values are the same. + public static bool operator ==(CategoricalPredictionDriftMetric left, CategoricalPredictionDriftMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CategoricalPredictionDriftMetric left, CategoricalPredictionDriftMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CategoricalPredictionDriftMetric(string value) => new CategoricalPredictionDriftMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CategoricalPredictionDriftMetric other && Equals(other); + /// + public bool Equals(CategoricalPredictionDriftMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..f703459d2e4a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetricThreshold.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CategoricalPredictionDriftMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static CategoricalPredictionDriftMetricThreshold DeserializeCategoricalPredictionDriftMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CategoricalPredictionDriftMetric metric = default; + MonitoringFeatureDataType dataType = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new CategoricalPredictionDriftMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new CategoricalPredictionDriftMetricThreshold(dataType, threshold.Value, metric); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetricThreshold.cs new file mode 100644 index 000000000000..1cd2539b88dc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CategoricalPredictionDriftMetricThreshold.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CategoricalPredictionDriftMetricThreshold. + public partial class CategoricalPredictionDriftMetricThreshold : PredictionDriftMetricThresholdBase + { + /// Initializes a new instance of CategoricalPredictionDriftMetricThreshold. + /// [Required] The categorical prediction drift metric to calculate. + public CategoricalPredictionDriftMetricThreshold(CategoricalPredictionDriftMetric metric) + { + Metric = metric; + DataType = MonitoringFeatureDataType.Categorical; + } + + /// Initializes a new instance of CategoricalPredictionDriftMetricThreshold. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + /// [Required] The categorical prediction drift metric to calculate. + internal CategoricalPredictionDriftMetricThreshold(MonitoringFeatureDataType dataType, MonitoringThreshold threshold, CategoricalPredictionDriftMetric metric) : base(dataType, threshold) + { + Metric = metric; + DataType = dataType; + } + + /// [Required] The categorical prediction drift metric to calculate. + public CategoricalPredictionDriftMetric Metric { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModel.cs index eecf2d8b2ed0..3aff2adad66c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModel.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModel.cs @@ -78,7 +78,7 @@ public ClassificationModel(string value) public static ClassificationModel DecisionTree { get; } = new ClassificationModel(DecisionTreeValue); /// /// Random forest is a supervised learning algorithm. - /// The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + /// The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. /// The general idea of the bagging method is that a combination of learning models increases the overall result. /// public static ClassificationModel RandomForest { get; } = new ClassificationModel(RandomForestValue); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetric.cs new file mode 100644 index 000000000000..9bdcde202a1e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetric.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The ClassificationModelPerformanceMetric. + public readonly partial struct ClassificationModelPerformanceMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ClassificationModelPerformanceMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AccuracyValue = "Accuracy"; + private const string PrecisionValue = "Precision"; + private const string RecallValue = "Recall"; + + /// Calculates the accuracy of the model predictions. + public static ClassificationModelPerformanceMetric Accuracy { get; } = new ClassificationModelPerformanceMetric(AccuracyValue); + /// Calculates the precision of the model predictions. + public static ClassificationModelPerformanceMetric Precision { get; } = new ClassificationModelPerformanceMetric(PrecisionValue); + /// Calculates the recall of the model predictions. + public static ClassificationModelPerformanceMetric Recall { get; } = new ClassificationModelPerformanceMetric(RecallValue); + /// Determines if two values are the same. + public static bool operator ==(ClassificationModelPerformanceMetric left, ClassificationModelPerformanceMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ClassificationModelPerformanceMetric left, ClassificationModelPerformanceMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ClassificationModelPerformanceMetric(string value) => new ClassificationModelPerformanceMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ClassificationModelPerformanceMetric other && Equals(other); + /// + public bool Equals(ClassificationModelPerformanceMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..63f7e0c7d37f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetricThreshold.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ClassificationModelPerformanceMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + writer.WritePropertyName("modelType"u8); + writer.WriteStringValue(ModelType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static ClassificationModelPerformanceMetricThreshold DeserializeClassificationModelPerformanceMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ClassificationModelPerformanceMetric metric = default; + MonitoringModelType modelType = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new ClassificationModelPerformanceMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("modelType"u8)) + { + modelType = new MonitoringModelType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new ClassificationModelPerformanceMetricThreshold(modelType, threshold.Value, metric); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetricThreshold.cs new file mode 100644 index 000000000000..b42ee68855fb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationModelPerformanceMetricThreshold.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The ClassificationModelPerformanceMetricThreshold. + public partial class ClassificationModelPerformanceMetricThreshold : ModelPerformanceMetricThresholdBase + { + /// Initializes a new instance of ClassificationModelPerformanceMetricThreshold. + /// [Required] The classification model performance to calculate. + public ClassificationModelPerformanceMetricThreshold(ClassificationModelPerformanceMetric metric) + { + Metric = metric; + ModelType = MonitoringModelType.Classification; + } + + /// Initializes a new instance of ClassificationModelPerformanceMetricThreshold. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + /// [Required] The classification model performance to calculate. + internal ClassificationModelPerformanceMetricThreshold(MonitoringModelType modelType, MonitoringThreshold threshold, ClassificationModelPerformanceMetric metric) : base(modelType, threshold) + { + Metric = metric; + ModelType = modelType; + } + + /// [Required] The classification model performance to calculate. + public ClassificationModelPerformanceMetric Metric { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.Serialization.cs index c761f62cb82e..2bd19537e116 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.Serialization.cs @@ -74,6 +74,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("featurizationSettings"); } } + if (Optional.IsDefined(FixedParameters)) + { + if (FixedParameters != null) + { + writer.WritePropertyName("fixedParameters"u8); + writer.WriteObjectValue(FixedParameters); + } + else + { + writer.WriteNull("fixedParameters"); + } + } if (Optional.IsDefined(LimitSettings)) { if (LimitSettings != null) @@ -98,6 +110,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("nCrossValidations"); } } + if (Optional.IsCollectionDefined(SearchSpace)) + { + if (SearchSpace != null) + { + writer.WritePropertyName("searchSpace"u8); + writer.WriteStartArray(); + foreach (var item in SearchSpace) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("searchSpace"); + } + } + if (Optional.IsDefined(SweepSettings)) + { + if (SweepSettings != null) + { + writer.WritePropertyName("sweepSettings"u8); + writer.WriteObjectValue(SweepSettings); + } + else + { + writer.WriteNull("sweepSettings"); + } + } if (Optional.IsDefined(TestData)) { if (TestData != null) @@ -193,8 +234,11 @@ internal static ClassificationTask DeserializeClassificationTask(JsonElement ele Optional trainingSettings = default; Optional> cvSplitColumnNames = default; Optional featurizationSettings = default; + Optional fixedParameters = default; Optional limitSettings = default; Optional nCrossValidations = default; + Optional> searchSpace = default; + Optional sweepSettings = default; Optional testData = default; Optional testDataSize = default; Optional validationData = default; @@ -260,6 +304,16 @@ internal static ClassificationTask DeserializeClassificationTask(JsonElement ele featurizationSettings = TableVerticalFeaturizationSettings.DeserializeTableVerticalFeaturizationSettings(property.Value); continue; } + if (property.NameEquals("fixedParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + fixedParameters = null; + continue; + } + fixedParameters = TableFixedParameters.DeserializeTableFixedParameters(property.Value); + continue; + } if (property.NameEquals("limitSettings"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -280,6 +334,31 @@ internal static ClassificationTask DeserializeClassificationTask(JsonElement ele nCrossValidations = NCrossValidations.DeserializeNCrossValidations(property.Value); continue; } + if (property.NameEquals("searchSpace"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + searchSpace = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(TableParameterSubspace.DeserializeTableParameterSubspace(item)); + } + searchSpace = array; + continue; + } + if (property.NameEquals("sweepSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sweepSettings = null; + continue; + } + sweepSettings = TableSweepSettings.DeserializeTableSweepSettings(property.Value); + continue; + } if (property.NameEquals("testData"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -360,7 +439,7 @@ internal static ClassificationTask DeserializeClassificationTask(JsonElement ele continue; } } - return new ClassificationTask(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, positiveLabel.Value, Optional.ToNullable(primaryMetric), trainingSettings.Value, Optional.ToList(cvSplitColumnNames), featurizationSettings.Value, limitSettings.Value, nCrossValidations.Value, testData.Value, Optional.ToNullable(testDataSize), validationData.Value, Optional.ToNullable(validationDataSize), weightColumnName.Value); + return new ClassificationTask(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, positiveLabel.Value, Optional.ToNullable(primaryMetric), trainingSettings.Value, Optional.ToList(cvSplitColumnNames), featurizationSettings.Value, fixedParameters.Value, limitSettings.Value, nCrossValidations.Value, Optional.ToList(searchSpace), sweepSettings.Value, testData.Value, Optional.ToNullable(testDataSize), validationData.Value, Optional.ToNullable(validationDataSize), weightColumnName.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.cs index edd09e3dee0f..b0b9c93c959b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.cs @@ -22,6 +22,7 @@ public ClassificationTask(MachineLearningTableJobInput trainingData) : base(trai Argument.AssertNotNull(trainingData, nameof(trainingData)); CvSplitColumnNames = new ChangeTrackingList(); + SearchSpace = new ChangeTrackingList(); TaskType = TaskType.Classification; } @@ -38,6 +39,7 @@ public ClassificationTask(MachineLearningTableJobInput trainingData) : base(trai /// Inputs for training phase for an AutoML Job. /// Columns to use for CVSplit data. /// Featurization inputs needed for AutoML job. + /// Model/training parameters that will remain constant throughout training. /// Execution constraints for AutoMLJob. /// /// Number of cross validation folds to be applied on training dataset @@ -45,6 +47,8 @@ public ClassificationTask(MachineLearningTableJobInput trainingData) : base(trai /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// + /// Search space for sampling different combinations of models and their hyperparameters. + /// Settings for model sweeping and hyperparameter tuning. /// Test data input. /// /// The fraction of test dataset that needs to be set aside for validation purpose. @@ -58,15 +62,18 @@ public ClassificationTask(MachineLearningTableJobInput trainingData) : base(trai /// Applied when validation dataset is not provided. /// /// 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. - internal ClassificationTask(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, string positiveLabel, ClassificationPrimaryMetric? primaryMetric, ClassificationTrainingSettings trainingSettings, IList cvSplitColumnNames, TableVerticalFeaturizationSettings featurizationSettings, TableVerticalLimitSettings limitSettings, NCrossValidations nCrossValidations, MachineLearningTableJobInput testData, double? testDataSize, MachineLearningTableJobInput validationData, double? validationDataSize, string weightColumnName) : base(logVerbosity, targetColumnName, taskType, trainingData) + internal ClassificationTask(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, string positiveLabel, ClassificationPrimaryMetric? primaryMetric, ClassificationTrainingSettings trainingSettings, IList cvSplitColumnNames, TableVerticalFeaturizationSettings featurizationSettings, TableFixedParameters fixedParameters, TableVerticalLimitSettings limitSettings, NCrossValidations nCrossValidations, IList searchSpace, TableSweepSettings sweepSettings, MachineLearningTableJobInput testData, double? testDataSize, MachineLearningTableJobInput validationData, double? validationDataSize, string weightColumnName) : base(logVerbosity, targetColumnName, taskType, trainingData) { PositiveLabel = positiveLabel; PrimaryMetric = primaryMetric; TrainingSettings = trainingSettings; CvSplitColumnNames = cvSplitColumnNames; FeaturizationSettings = featurizationSettings; + FixedParameters = fixedParameters; LimitSettings = limitSettings; NCrossValidations = nCrossValidations; + SearchSpace = searchSpace; + SweepSettings = sweepSettings; TestData = testData; TestDataSize = testDataSize; ValidationData = validationData; @@ -85,6 +92,8 @@ internal ClassificationTask(MachineLearningLogVerbosity? logVerbosity, string ta public IList CvSplitColumnNames { get; set; } /// Featurization inputs needed for AutoML job. public TableVerticalFeaturizationSettings FeaturizationSettings { get; set; } + /// Model/training parameters that will remain constant throughout training. + public TableFixedParameters FixedParameters { get; set; } /// Execution constraints for AutoMLJob. public TableVerticalLimitSettings LimitSettings { get; set; } /// @@ -94,6 +103,10 @@ internal ClassificationTask(MachineLearningLogVerbosity? logVerbosity, string ta /// The available derived classes include and . /// public NCrossValidations NCrossValidations { get; set; } + /// Search space for sampling different combinations of models and their hyperparameters. + public IList SearchSpace { get; set; } + /// Settings for model sweeping and hyperparameter tuning. + public TableSweepSettings SweepSettings { get; set; } /// Test data input. public MachineLearningTableJobInput TestData { get; set; } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.Serialization.cs index 400f43fc0668..4c7c8f63a07d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.Serialization.cs @@ -93,6 +93,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("stackEnsembleSettings"); } } + if (Optional.IsDefined(TrainingMode)) + { + writer.WritePropertyName("trainingMode"u8); + writer.WriteStringValue(TrainingMode.Value.ToString()); + } writer.WriteEndObject(); } @@ -111,6 +116,7 @@ internal static ClassificationTrainingSettings DeserializeClassificationTraining Optional enableVoteEnsemble = default; Optional ensembleModelDownloadTimeout = default; Optional stackEnsembleSettings = default; + Optional trainingMode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("allowedTrainingAlgorithms"u8)) @@ -207,8 +213,17 @@ internal static ClassificationTrainingSettings DeserializeClassificationTraining stackEnsembleSettings = MachineLearningStackEnsembleSettings.DeserializeMachineLearningStackEnsembleSettings(property.Value); continue; } + if (property.NameEquals("trainingMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + trainingMode = new TrainingMode(property.Value.GetString()); + continue; + } } - return new ClassificationTrainingSettings(Optional.ToNullable(enableDnnTraining), Optional.ToNullable(enableModelExplainability), Optional.ToNullable(enableOnnxCompatibleModels), Optional.ToNullable(enableStackEnsemble), Optional.ToNullable(enableVoteEnsemble), Optional.ToNullable(ensembleModelDownloadTimeout), stackEnsembleSettings.Value, Optional.ToList(allowedTrainingAlgorithms), Optional.ToList(blockedTrainingAlgorithms)); + return new ClassificationTrainingSettings(Optional.ToNullable(enableDnnTraining), Optional.ToNullable(enableModelExplainability), Optional.ToNullable(enableOnnxCompatibleModels), Optional.ToNullable(enableStackEnsemble), Optional.ToNullable(enableVoteEnsemble), Optional.ToNullable(ensembleModelDownloadTimeout), stackEnsembleSettings.Value, Optional.ToNullable(trainingMode), Optional.ToList(allowedTrainingAlgorithms), Optional.ToList(blockedTrainingAlgorithms)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.cs index fc454b5fc3a8..709346e6aedb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.cs @@ -32,9 +32,14 @@ public ClassificationTrainingSettings() /// Configure this parameter with a higher value than 300 secs, if more time is needed. /// /// Stack ensemble settings for stack ensemble run. + /// + /// 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. + /// /// Allowed models for classification task. /// Blocked models for classification task. - internal ClassificationTrainingSettings(bool? isDnnTrainingEnabled, bool? isModelExplainabilityEnabled, bool? isOnnxCompatibleModelsEnabled, bool? isStackEnsembleEnabled, bool? isVoteEnsembleEnabled, TimeSpan? ensembleModelDownloadTimeout, MachineLearningStackEnsembleSettings stackEnsembleSettings, IList allowedTrainingAlgorithms, IList blockedTrainingAlgorithms) : base(isDnnTrainingEnabled, isModelExplainabilityEnabled, isOnnxCompatibleModelsEnabled, isStackEnsembleEnabled, isVoteEnsembleEnabled, ensembleModelDownloadTimeout, stackEnsembleSettings) + internal ClassificationTrainingSettings(bool? isDnnTrainingEnabled, bool? isModelExplainabilityEnabled, bool? isOnnxCompatibleModelsEnabled, bool? isStackEnsembleEnabled, bool? isVoteEnsembleEnabled, TimeSpan? ensembleModelDownloadTimeout, MachineLearningStackEnsembleSettings stackEnsembleSettings, TrainingMode? trainingMode, IList allowedTrainingAlgorithms, IList blockedTrainingAlgorithms) : base(isDnnTrainingEnabled, isModelExplainabilityEnabled, isOnnxCompatibleModelsEnabled, isStackEnsembleEnabled, isVoteEnsembleEnabled, ensembleModelDownloadTimeout, stackEnsembleSettings, trainingMode) { AllowedTrainingAlgorithms = allowedTrainingAlgorithms; BlockedTrainingAlgorithms = blockedTrainingAlgorithms; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CocoExportSummary.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CocoExportSummary.Serialization.cs new file mode 100644 index 000000000000..f4512aeb0a29 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CocoExportSummary.Serialization.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CocoExportSummary : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("format"u8); + writer.WriteStringValue(Format.ToString()); + writer.WriteEndObject(); + } + + internal static CocoExportSummary DeserializeCocoExportSummary(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional containerName = default; + Optional snapshotPath = default; + Optional endDateTime = default; + Optional exportedRowCount = default; + ExportFormatType format = default; + Optional labelingJobId = default; + Optional startDateTime = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("containerName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + containerName = null; + continue; + } + containerName = property.Value.GetString(); + continue; + } + if (property.NameEquals("snapshotPath"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + snapshotPath = null; + continue; + } + snapshotPath = property.Value.GetString(); + continue; + } + if (property.NameEquals("endDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + endDateTime = null; + continue; + } + endDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("exportedRowCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + exportedRowCount = null; + continue; + } + exportedRowCount = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("format"u8)) + { + format = new ExportFormatType(property.Value.GetString()); + continue; + } + if (property.NameEquals("labelingJobId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + labelingJobId = null; + continue; + } + labelingJobId = property.Value.GetString(); + continue; + } + if (property.NameEquals("startDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + startDateTime = null; + continue; + } + startDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new CocoExportSummary(Optional.ToNullable(endDateTime), Optional.ToNullable(exportedRowCount), format, labelingJobId.Value, Optional.ToNullable(startDateTime), containerName.Value, snapshotPath.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CocoExportSummary.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CocoExportSummary.cs new file mode 100644 index 000000000000..50e8dab33eb8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CocoExportSummary.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CocoExportSummary. + public partial class CocoExportSummary : ExportSummary + { + /// Initializes a new instance of CocoExportSummary. + public CocoExportSummary() + { + Format = ExportFormatType.Coco; + } + + /// Initializes a new instance of CocoExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// [Required] The format of exported labels, also as the discriminator. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + /// The container name to which the labels will be exported. + /// The output path where the labels will be exported. + internal CocoExportSummary(DateTimeOffset? endOn, long? exportedRowCount, ExportFormatType format, string labelingJobId, DateTimeOffset? startOn, string containerName, string snapshotPath) : base(endOn, exportedRowCount, format, labelingJobId, startOn) + { + ContainerName = containerName; + SnapshotPath = snapshotPath; + Format = format; + } + + /// The container name to which the labels will be exported. + public string ContainerName { get; } + /// The output path where the labels will be exported. + public string SnapshotPath { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.Serialization.cs new file mode 100644 index 000000000000..609a9175783a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.Serialization.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Collection : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ClientId)) + { + if (ClientId != null) + { + writer.WritePropertyName("clientId"u8); + writer.WriteStringValue(ClientId); + } + else + { + writer.WriteNull("clientId"); + } + } + if (Optional.IsDefined(DataCollectionMode)) + { + writer.WritePropertyName("dataCollectionMode"u8); + writer.WriteStringValue(DataCollectionMode.Value.ToString()); + } + if (Optional.IsDefined(DataId)) + { + if (DataId != null) + { + writer.WritePropertyName("dataId"u8); + writer.WriteStringValue(DataId); + } + else + { + writer.WriteNull("dataId"); + } + } + if (Optional.IsDefined(SamplingRate)) + { + writer.WritePropertyName("samplingRate"u8); + writer.WriteNumberValue(SamplingRate.Value); + } + writer.WriteEndObject(); + } + + internal static Collection DeserializeCollection(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional clientId = default; + Optional dataCollectionMode = default; + Optional dataId = default; + Optional samplingRate = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("clientId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + clientId = null; + continue; + } + clientId = property.Value.GetString(); + continue; + } + if (property.NameEquals("dataCollectionMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dataCollectionMode = new DataCollectionMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataId = null; + continue; + } + dataId = property.Value.GetString(); + continue; + } + if (property.NameEquals("samplingRate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + samplingRate = property.Value.GetDouble(); + continue; + } + } + return new Collection(clientId.Value, Optional.ToNullable(dataCollectionMode), dataId.Value, Optional.ToNullable(samplingRate)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.cs new file mode 100644 index 000000000000..dd8f977a57ff --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The Collection. + public partial class Collection + { + /// Initializes a new instance of Collection. + public Collection() + { + } + + /// Initializes a new instance of 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. + /// Enable or disable data collection. + /// 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. + /// The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default. + internal Collection(string clientId, DataCollectionMode? dataCollectionMode, string dataId, double? samplingRate) + { + ClientId = clientId; + DataCollectionMode = dataCollectionMode; + DataId = dataId; + SamplingRate = samplingRate; + } + + /// The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth. + public string ClientId { get; set; } + /// Enable or disable data collection. + public DataCollectionMode? DataCollectionMode { get; set; } + /// 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. + public string DataId { get; set; } + /// The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default. + public double? SamplingRate { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs new file mode 100644 index 000000000000..d5ca44c9d932 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class ComputeInstanceAutologgerSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(MlflowAutologger)) + { + writer.WritePropertyName("mlflowAutologger"u8); + writer.WriteStringValue(MlflowAutologger.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static ComputeInstanceAutologgerSettings DeserializeComputeInstanceAutologgerSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional mlflowAutologger = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mlflowAutologger"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mlflowAutologger = new MlflowAutologger(property.Value.GetString()); + continue; + } + } + return new ComputeInstanceAutologgerSettings(Optional.ToNullable(mlflowAutologger)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs new file mode 100644 index 000000000000..cb611673b178 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Specifies settings for autologger. + internal partial class ComputeInstanceAutologgerSettings + { + /// Initializes a new instance of ComputeInstanceAutologgerSettings. + public ComputeInstanceAutologgerSettings() + { + } + + /// Initializes a new instance of ComputeInstanceAutologgerSettings. + /// Indicates whether mlflow autologger is enabled for notebooks. + internal ComputeInstanceAutologgerSettings(MlflowAutologger? mlflowAutologger) + { + MlflowAutologger = mlflowAutologger; + } + + /// Indicates whether mlflow autologger is enabled for notebooks. + public MlflowAutologger? MlflowAutologger { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeRuntimeDto.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeRuntimeDto.Serialization.cs new file mode 100644 index 000000000000..3f14eff3af36 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeRuntimeDto.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class ComputeRuntimeDto : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(SparkRuntimeVersion)) + { + writer.WritePropertyName("sparkRuntimeVersion"u8); + writer.WriteStringValue(SparkRuntimeVersion); + } + writer.WriteEndObject(); + } + + internal static ComputeRuntimeDto DeserializeComputeRuntimeDto(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional sparkRuntimeVersion = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sparkRuntimeVersion"u8)) + { + sparkRuntimeVersion = property.Value.GetString(); + continue; + } + } + return new ComputeRuntimeDto(sparkRuntimeVersion.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeRuntimeDto.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeRuntimeDto.cs new file mode 100644 index 000000000000..c3f0e1ca8b12 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeRuntimeDto.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The ComputeRuntimeDto. + internal partial class ComputeRuntimeDto + { + /// Initializes a new instance of ComputeRuntimeDto. + public ComputeRuntimeDto() + { + } + + /// Initializes a new instance of ComputeRuntimeDto. + /// + internal ComputeRuntimeDto(string sparkRuntimeVersion) + { + SparkRuntimeVersion = sparkRuntimeVersion; + } + + /// Gets or sets the spark runtime version. + public string SparkRuntimeVersion { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.Serialization.cs index 54abed101a0e..afbf2ebb99e2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.Serialization.cs @@ -11,15 +11,31 @@ namespace Azure.ResourceManager.MachineLearning.Models { - internal partial class ComputeSchedules + internal partial class ComputeSchedules : IUtf8JsonSerializable { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(ComputeStartStop)) + { + writer.WritePropertyName("computeStartStop"u8); + writer.WriteStartArray(); + foreach (var item in ComputeStartStop) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + internal static ComputeSchedules DeserializeComputeSchedules(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional> computeStartStop = default; + Optional> computeStartStop = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("computeStartStop"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.cs index c10f7b1401da..8d6d9ac92e79 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.cs @@ -14,19 +14,19 @@ namespace Azure.ResourceManager.MachineLearning.Models internal partial class ComputeSchedules { /// Initializes a new instance of ComputeSchedules. - internal ComputeSchedules() + public ComputeSchedules() { ComputeStartStop = new ChangeTrackingList(); } /// Initializes a new instance of ComputeSchedules. /// The list of compute start stop schedules to be applied. - internal ComputeSchedules(IReadOnlyList computeStartStop) + internal ComputeSchedules(IList computeStartStop) { ComputeStartStop = computeStartStop; } /// The list of compute start stop schedules to be applied. - public IReadOnlyList ComputeStartStop { get; } + public IList ComputeStartStop { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CosmosDbSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CosmosDbSettings.cs index df1c551b9cf2..775bdf943cfc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CosmosDbSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CosmosDbSettings.cs @@ -16,13 +16,13 @@ public CosmosDbSettings() } /// Initializes a new instance of CosmosDbSettings. - /// The throughput of the collections in cosmosdb database. + /// internal CosmosDbSettings(int? collectionsThroughput) { CollectionsThroughput = collectionsThroughput; } - /// The throughput of the collections in cosmosdb database. + /// Gets or sets the collections throughput. public int? CollectionsThroughput { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CreateMonitorAction.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CreateMonitorAction.Serialization.cs new file mode 100644 index 000000000000..a1429904dc91 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CreateMonitorAction.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CreateMonitorAction : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("monitorDefinition"u8); + writer.WriteObjectValue(MonitorDefinition); + writer.WritePropertyName("actionType"u8); + writer.WriteStringValue(ActionType.ToString()); + writer.WriteEndObject(); + } + + internal static CreateMonitorAction DeserializeCreateMonitorAction(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitorDefinition monitorDefinition = default; + ScheduleActionType actionType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("monitorDefinition"u8)) + { + monitorDefinition = MonitorDefinition.DeserializeMonitorDefinition(property.Value); + continue; + } + if (property.NameEquals("actionType"u8)) + { + actionType = new ScheduleActionType(property.Value.GetString()); + continue; + } + } + return new CreateMonitorAction(actionType, monitorDefinition); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CreateMonitorAction.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CreateMonitorAction.cs new file mode 100644 index 000000000000..6f5ada0ed925 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CreateMonitorAction.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CreateMonitorAction. + public partial class CreateMonitorAction : MachineLearningScheduleAction + { + /// Initializes a new instance of CreateMonitorAction. + /// [Required] Defines the monitor. + /// is null. + public CreateMonitorAction(MonitorDefinition monitorDefinition) + { + Argument.AssertNotNull(monitorDefinition, nameof(monitorDefinition)); + + MonitorDefinition = monitorDefinition; + ActionType = ScheduleActionType.CreateMonitor; + } + + /// Initializes a new instance of CreateMonitorAction. + /// [Required] Specifies the action type of the schedule. + /// [Required] Defines the monitor. + internal CreateMonitorAction(ScheduleActionType actionType, MonitorDefinition monitorDefinition) : base(actionType) + { + MonitorDefinition = monitorDefinition; + ActionType = actionType; + } + + /// [Required] Defines the monitor. + public MonitorDefinition MonitorDefinition { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CredentialsType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CredentialsType.cs index d5aab2ec1aa4..71841967407f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CredentialsType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CredentialsType.cs @@ -27,6 +27,8 @@ public CredentialsType(string value) private const string NoneValue = "None"; private const string SasValue = "Sas"; private const string ServicePrincipalValue = "ServicePrincipal"; + private const string KerberosKeytabValue = "KerberosKeytab"; + private const string KerberosPasswordValue = "KerberosPassword"; /// AccountKey. public static CredentialsType AccountKey { get; } = new CredentialsType(AccountKeyValue); @@ -38,6 +40,10 @@ public CredentialsType(string value) public static CredentialsType Sas { get; } = new CredentialsType(SasValue); /// ServicePrincipal. public static CredentialsType ServicePrincipal { get; } = new CredentialsType(ServicePrincipalValue); + /// KerberosKeytab. + public static CredentialsType KerberosKeytab { get; } = new CredentialsType(KerberosKeytabValue); + /// KerberosPassword. + public static CredentialsType KerberosPassword { get; } = new CredentialsType(KerberosPasswordValue); /// Determines if two values are the same. public static bool operator ==(CredentialsType left, CredentialsType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.Serialization.cs new file mode 100644 index 000000000000..663b7ff82463 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.Serialization.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Cron : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(StartTime)) + { + if (StartTime != null) + { + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartTime); + } + else + { + writer.WriteNull("startTime"); + } + } + if (Optional.IsDefined(TimeZone)) + { + writer.WritePropertyName("timeZone"u8); + writer.WriteStringValue(TimeZone); + } + if (Optional.IsDefined(Expression)) + { + writer.WritePropertyName("expression"u8); + writer.WriteStringValue(Expression); + } + writer.WriteEndObject(); + } + + internal static Cron DeserializeCron(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional startTime = default; + Optional timeZone = default; + Optional expression = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("startTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + startTime = null; + continue; + } + startTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("timeZone"u8)) + { + timeZone = property.Value.GetString(); + continue; + } + if (property.NameEquals("expression"u8)) + { + expression = property.Value.GetString(); + continue; + } + } + return new Cron(startTime.Value, timeZone.Value, expression.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.cs new file mode 100644 index 000000000000..5a8de26578c5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The workflow trigger cron for ComputeStartStop schedule type. + public partial class Cron + { + /// Initializes a new instance of Cron. + public Cron() + { + } + + /// Initializes a new instance of Cron. + /// The start time in yyyy-MM-ddTHH:mm:ss format. + /// + /// 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 + /// + /// + /// [Required] Specifies cron expression of schedule. + /// The expression should follow NCronTab format. + /// + internal Cron(string startTime, string timeZone, string expression) + { + StartTime = startTime; + TimeZone = timeZone; + Expression = expression; + } + + /// The start time in yyyy-MM-ddTHH:mm:ss format. + public string StartTime { get; set; } + /// + /// 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 + /// + public string TimeZone { get; set; } + /// + /// [Required] Specifies cron expression of schedule. + /// The expression should follow NCronTab format. + /// + public string Expression { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CsvExportSummary.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CsvExportSummary.Serialization.cs new file mode 100644 index 000000000000..f740a4743aac --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CsvExportSummary.Serialization.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CsvExportSummary : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("format"u8); + writer.WriteStringValue(Format.ToString()); + writer.WriteEndObject(); + } + + internal static CsvExportSummary DeserializeCsvExportSummary(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional containerName = default; + Optional snapshotPath = default; + Optional endDateTime = default; + Optional exportedRowCount = default; + ExportFormatType format = default; + Optional labelingJobId = default; + Optional startDateTime = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("containerName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + containerName = null; + continue; + } + containerName = property.Value.GetString(); + continue; + } + if (property.NameEquals("snapshotPath"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + snapshotPath = null; + continue; + } + snapshotPath = property.Value.GetString(); + continue; + } + if (property.NameEquals("endDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + endDateTime = null; + continue; + } + endDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("exportedRowCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + exportedRowCount = null; + continue; + } + exportedRowCount = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("format"u8)) + { + format = new ExportFormatType(property.Value.GetString()); + continue; + } + if (property.NameEquals("labelingJobId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + labelingJobId = null; + continue; + } + labelingJobId = property.Value.GetString(); + continue; + } + if (property.NameEquals("startDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + startDateTime = null; + continue; + } + startDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new CsvExportSummary(Optional.ToNullable(endDateTime), Optional.ToNullable(exportedRowCount), format, labelingJobId.Value, Optional.ToNullable(startDateTime), containerName.Value, snapshotPath.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CsvExportSummary.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CsvExportSummary.cs new file mode 100644 index 000000000000..b765715fb5f5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CsvExportSummary.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CsvExportSummary. + public partial class CsvExportSummary : ExportSummary + { + /// Initializes a new instance of CsvExportSummary. + public CsvExportSummary() + { + Format = ExportFormatType.CSV; + } + + /// Initializes a new instance of CsvExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// [Required] The format of exported labels, also as the discriminator. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + /// The container name to which the labels will be exported. + /// The output path where the labels will be exported. + internal CsvExportSummary(DateTimeOffset? endOn, long? exportedRowCount, ExportFormatType format, string labelingJobId, DateTimeOffset? startOn, string containerName, string snapshotPath) : base(endOn, exportedRowCount, format, labelingJobId, startOn) + { + ContainerName = containerName; + SnapshotPath = snapshotPath; + Format = format; + } + + /// The container name to which the labels will be exported. + public string ContainerName { get; } + /// The output path where the labels will be exported. + public string SnapshotPath { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomInferencingServer.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomInferencingServer.Serialization.cs new file mode 100644 index 000000000000..c83e562fdb46 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomInferencingServer.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CustomInferencingServer : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(InferenceConfiguration)) + { + if (InferenceConfiguration != null) + { + writer.WritePropertyName("inferenceConfiguration"u8); + writer.WriteObjectValue(InferenceConfiguration); + } + else + { + writer.WriteNull("inferenceConfiguration"); + } + } + writer.WritePropertyName("serverType"u8); + writer.WriteStringValue(ServerType.ToString()); + writer.WriteEndObject(); + } + + internal static CustomInferencingServer DeserializeCustomInferencingServer(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional inferenceConfiguration = default; + InferencingServerType serverType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("inferenceConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + inferenceConfiguration = null; + continue; + } + inferenceConfiguration = OnlineInferenceConfiguration.DeserializeOnlineInferenceConfiguration(property.Value); + continue; + } + if (property.NameEquals("serverType"u8)) + { + serverType = new InferencingServerType(property.Value.GetString()); + continue; + } + } + return new CustomInferencingServer(serverType, inferenceConfiguration.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomInferencingServer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomInferencingServer.cs new file mode 100644 index 000000000000..8fbbe33bf2a7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomInferencingServer.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Custom inference server configurations. + public partial class CustomInferencingServer : InferencingServer + { + /// Initializes a new instance of CustomInferencingServer. + public CustomInferencingServer() + { + ServerType = InferencingServerType.Custom; + } + + /// Initializes a new instance of CustomInferencingServer. + /// [Required] Inferencing server type for various targets. + /// Inference configuration for custom inferencing. + internal CustomInferencingServer(InferencingServerType serverType, OnlineInferenceConfiguration inferenceConfiguration) : base(serverType) + { + InferenceConfiguration = inferenceConfiguration; + ServerType = serverType; + } + + /// Inference configuration for custom inferencing. + public OnlineInferenceConfiguration InferenceConfiguration { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeys.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeys.Serialization.cs new file mode 100644 index 000000000000..cfe662b7f9e6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeys.Serialization.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class CustomKeys : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Keys)) + { + writer.WritePropertyName("keys"u8); + writer.WriteStartObject(); + foreach (var item in Keys) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + + internal static CustomKeys DeserializeCustomKeys(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> keys = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("keys"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + keys = dictionary; + continue; + } + } + return new CustomKeys(Optional.ToDictionary(keys)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeys.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeys.cs new file mode 100644 index 000000000000..902a75e5003a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeys.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Custom Keys credential object. + internal partial class CustomKeys + { + /// Initializes a new instance of CustomKeys. + public CustomKeys() + { + Keys = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of CustomKeys. + /// Dictionary of <string>. + internal CustomKeys(IDictionary keys) + { + Keys = keys; + } + + /// Dictionary of <string>. + public IDictionary Keys { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeysWorkspaceConnectionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeysWorkspaceConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..d166ede3cf2b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeysWorkspaceConnectionProperties.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CustomKeysWorkspaceConnectionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Credentials)) + { + writer.WritePropertyName("credentials"u8); + writer.WriteObjectValue(Credentials); + } + writer.WritePropertyName("authType"u8); + writer.WriteStringValue(AuthType.ToString()); + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(ExpiryOn)) + { + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); + } + if (Optional.IsDefined(Metadata)) + { + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif + } + if (Optional.IsDefined(Target)) + { + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); + } + writer.WriteEndObject(); + } + + internal static CustomKeysWorkspaceConnectionProperties DeserializeCustomKeysWorkspaceConnectionProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional credentials = default; + MachineLearningConnectionAuthType authType = default; + Optional category = default; + Optional expiryTime = default; + Optional metadata = default; + Optional target = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("credentials"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + credentials = CustomKeys.DeserializeCustomKeys(property.Value); + continue; + } + if (property.NameEquals("authType"u8)) + { + authType = new MachineLearningConnectionAuthType(property.Value.GetString()); + continue; + } + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + category = new MachineLearningConnectionCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("expiryTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("metadata"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); + continue; + } + } + return new CustomKeysWorkspaceConnectionProperties(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value, credentials.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeysWorkspaceConnectionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeysWorkspaceConnectionProperties.cs new file mode 100644 index 000000000000..ac8d8c57caeb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomKeysWorkspaceConnectionProperties.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// 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 + /// + public partial class CustomKeysWorkspaceConnectionProperties : MachineLearningWorkspaceConnectionProperties + { + /// Initializes a new instance of CustomKeysWorkspaceConnectionProperties. + public CustomKeysWorkspaceConnectionProperties() + { + AuthType = MachineLearningConnectionAuthType.CustomKeys; + } + + /// Initializes a new instance of CustomKeysWorkspaceConnectionProperties. + /// Authentication type of the connection target. + /// Category of the connection. + /// + /// Any object. + /// + /// Custom Keys credential object. + internal CustomKeysWorkspaceConnectionProperties(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, CustomKeys credentials) : base(authType, category, expiryOn, metadata, target) + { + Credentials = credentials; + AuthType = authType; + } + + /// Custom Keys credential object. + internal CustomKeys Credentials { get; set; } + /// Dictionary of <string>. + public IDictionary CredentialsKeys + { + get + { + if (Credentials is null) + Credentials = new CustomKeys(); + return Credentials.Keys; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..6ee4e5147b66 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMetricThreshold.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CustomMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static CustomMetricThreshold DeserializeCustomMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string metric = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = property.Value.GetString(); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new CustomMetricThreshold(metric, threshold.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMetricThreshold.cs new file mode 100644 index 000000000000..4294c0a8eb9b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMetricThreshold.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CustomMetricThreshold. + public partial class CustomMetricThreshold + { + /// Initializes a new instance of CustomMetricThreshold. + /// [Required] The user-defined metric to calculate. + /// is null. + public CustomMetricThreshold(string metric) + { + Argument.AssertNotNull(metric, nameof(metric)); + + Metric = metric; + } + + /// Initializes a new instance of CustomMetricThreshold. + /// [Required] The user-defined metric to calculate. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal CustomMetricThreshold(string metric, MonitoringThreshold threshold) + { + Metric = metric; + Threshold = threshold; + } + + /// [Required] The user-defined metric to calculate. + public string Metric { get; set; } + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal MonitoringThreshold Threshold { get; set; } + /// The threshold value. If null, the set default is dependent on the metric type. + public double? ThresholdValue + { + get => Threshold is null ? default : Threshold.Value; + set + { + if (Threshold is null) + Threshold = new MonitoringThreshold(); + Threshold.Value = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMonitoringSignal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMonitoringSignal.Serialization.cs new file mode 100644 index 000000000000..182dd9e58cca --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMonitoringSignal.Serialization.cs @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CustomMonitoringSignal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("componentId"u8); + writer.WriteStringValue(ComponentId); + if (Optional.IsCollectionDefined(InputAssets)) + { + if (InputAssets != null) + { + writer.WritePropertyName("inputAssets"u8); + writer.WriteStartObject(); + foreach (var item in InputAssets) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("inputAssets"); + } + } + if (Optional.IsCollectionDefined(Inputs)) + { + if (Inputs != null) + { + writer.WritePropertyName("inputs"u8); + writer.WriteStartObject(); + foreach (var item in Inputs) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("inputs"); + } + } + writer.WritePropertyName("metricThresholds"u8); + writer.WriteStartArray(); + foreach (var item in MetricThresholds) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("workspaceConnection"u8); + writer.WriteObjectValue(WorkspaceConnection); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static CustomMonitoringSignal DeserializeCustomMonitoringSignal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string componentId = default; + Optional> inputAssets = default; + Optional> inputs = default; + IList metricThresholds = default; + MonitoringWorkspaceConnection workspaceConnection = default; + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("componentId"u8)) + { + componentId = property.Value.GetString(); + continue; + } + if (property.NameEquals("inputAssets"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + inputAssets = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property0.Value)); + } + inputAssets = dictionary; + continue; + } + if (property.NameEquals("inputs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + inputs = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, MachineLearningJobInput.DeserializeMachineLearningJobInput(property0.Value)); + } + inputs = dictionary; + continue; + } + if (property.NameEquals("metricThresholds"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CustomMetricThreshold.DeserializeCustomMetricThreshold(item)); + } + metricThresholds = array; + continue; + } + if (property.NameEquals("workspaceConnection"u8)) + { + workspaceConnection = MonitoringWorkspaceConnection.DeserializeMonitoringWorkspaceConnection(property.Value); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new CustomMonitoringSignal(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType, componentId, Optional.ToDictionary(inputAssets), Optional.ToDictionary(inputs), metricThresholds, workspaceConnection); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMonitoringSignal.cs new file mode 100644 index 000000000000..820c2ba78d33 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomMonitoringSignal.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The CustomMonitoringSignal. + public partial class CustomMonitoringSignal : MonitoringSignalBase + { + /// Initializes a new instance of CustomMonitoringSignal. + /// [Required] ARM resource ID of the component resource used to calculate the custom metrics. + /// [Required] A list of metrics to calculate and their associated thresholds. + /// [Required] A list of metrics to calculate and their associated thresholds. + /// , or is null. + public CustomMonitoringSignal(string componentId, IEnumerable metricThresholds, MonitoringWorkspaceConnection workspaceConnection) + { + Argument.AssertNotNull(componentId, nameof(componentId)); + Argument.AssertNotNull(metricThresholds, nameof(metricThresholds)); + Argument.AssertNotNull(workspaceConnection, nameof(workspaceConnection)); + + ComponentId = componentId; + InputAssets = new ChangeTrackingDictionary(); + Inputs = new ChangeTrackingDictionary(); + MetricThresholds = metricThresholds.ToList(); + WorkspaceConnection = workspaceConnection; + SignalType = MonitoringSignalType.Custom; + } + + /// Initializes a new instance of CustomMonitoringSignal. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + /// [Required] ARM resource ID of the component resource used to calculate the custom metrics. + /// + /// Monitoring assets to take as input. Key is the component input port name, value is the data asset. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// Extra component parameters to take as input. Key is the component literal input port name, value is the parameter value. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// [Required] A list of metrics to calculate and their associated thresholds. + internal CustomMonitoringSignal(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType, string componentId, IDictionary inputAssets, IDictionary inputs, IList metricThresholds, MonitoringWorkspaceConnection workspaceConnection) : base(mode, properties, signalType) + { + ComponentId = componentId; + InputAssets = inputAssets; + Inputs = inputs; + MetricThresholds = metricThresholds; + WorkspaceConnection = workspaceConnection; + SignalType = signalType; + } + + /// [Required] ARM resource ID of the component resource used to calculate the custom metrics. + public string ComponentId { get; set; } + /// + /// Monitoring assets to take as input. Key is the component input port name, value is the data asset. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public IDictionary InputAssets { get; set; } + /// + /// Extra component parameters to take as input. Key is the component literal input port name, value is the parameter value. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + public IDictionary Inputs { get; set; } + /// [Required] A list of metrics to calculate and their associated thresholds. + public IList MetricThresholds { get; } + /// [Required] A list of metrics to calculate and their associated thresholds. + public MonitoringWorkspaceConnection WorkspaceConnection { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.Serialization.cs new file mode 100644 index 000000000000..82ae1791018c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.Serialization.cs @@ -0,0 +1,173 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class CustomService : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Image)) + { + writer.WritePropertyName("image"u8); + writer.WriteObjectValue(Image); + } + if (Optional.IsCollectionDefined(EnvironmentVariables)) + { + writer.WritePropertyName("environmentVariables"u8); + writer.WriteStartObject(); + foreach (var item in EnvironmentVariables) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Docker)) + { + if (Docker != null) + { + writer.WritePropertyName("docker"u8); + writer.WriteObjectValue(Docker); + } + else + { + writer.WriteNull("docker"); + } + } + if (Optional.IsCollectionDefined(Endpoints)) + { + writer.WritePropertyName("endpoints"u8); + writer.WriteStartArray(); + foreach (var item in Endpoints) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Volumes)) + { + writer.WritePropertyName("volumes"u8); + writer.WriteStartArray(); + foreach (var item in Volumes) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement); +#endif + } + writer.WriteEndObject(); + } + + internal static CustomService DeserializeCustomService(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + Optional image = default; + Optional> environmentVariables = default; + Optional docker = default; + Optional> endpoints = default; + Optional> volumes = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("image"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + image = Image.DeserializeImage(property.Value); + continue; + } + if (property.NameEquals("environmentVariables"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, EnvironmentVariable.DeserializeEnvironmentVariable(property0.Value)); + } + environmentVariables = dictionary; + continue; + } + if (property.NameEquals("docker"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + docker = null; + continue; + } + docker = Docker.DeserializeDocker(property.Value); + continue; + } + if (property.NameEquals("endpoints"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Endpoint.DeserializeEndpoint(item)); + } + endpoints = array; + continue; + } + if (property.NameEquals("volumes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(VolumeDefinition.DeserializeVolumeDefinition(item)); + } + volumes = array; + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new CustomService(name.Value, image.Value, Optional.ToDictionary(environmentVariables), docker.Value, Optional.ToList(endpoints), Optional.ToList(volumes), additionalProperties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs new file mode 100644 index 000000000000..8293b75febbd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Specifies the custom service configuration. + public partial class CustomService + { + /// Initializes a new instance of CustomService. + public CustomService() + { + EnvironmentVariables = new ChangeTrackingDictionary(); + Endpoints = new ChangeTrackingList(); + Volumes = new ChangeTrackingList(); + AdditionalProperties = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of CustomService. + /// Name of the Custom Service. + /// Describes the Image Specifications. + /// Environment Variable for the container. + /// Describes the docker settings for the image. + /// Configuring the endpoints for the container. + /// Configuring the volumes for the container. + /// Additional Properties. + internal CustomService(string name, Image image, IDictionary environmentVariables, Docker docker, IList endpoints, IList volumes, IDictionary additionalProperties) + { + Name = name; + Image = image; + EnvironmentVariables = environmentVariables; + Docker = docker; + Endpoints = endpoints; + Volumes = volumes; + AdditionalProperties = additionalProperties; + } + + /// Name of the Custom Service. + public string Name { get; set; } + /// Describes the Image Specifications. + public Image Image { get; set; } + /// Environment Variable for the container. + public IDictionary EnvironmentVariables { get; } + /// Describes the docker settings for the image. + public Docker Docker { get; set; } + /// Configuring the endpoints for the container. + public IList Endpoints { get; } + /// Configuring the volumes for the container. + public IList Volumes { get; } + /// + /// Additional Properties + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public IDictionary AdditionalProperties { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionMode.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionMode.cs new file mode 100644 index 000000000000..e44da5855cc1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The DataCollectionMode. + public readonly partial struct DataCollectionMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DataCollectionMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static DataCollectionMode Enabled { get; } = new DataCollectionMode(EnabledValue); + /// Disabled. + public static DataCollectionMode Disabled { get; } = new DataCollectionMode(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(DataCollectionMode left, DataCollectionMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DataCollectionMode left, DataCollectionMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DataCollectionMode(string value) => new DataCollectionMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DataCollectionMode other && Equals(other); + /// + public bool Equals(DataCollectionMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs new file mode 100644 index 000000000000..2b32599fa43d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DataCollector : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("collections"u8); + writer.WriteStartObject(); + foreach (var item in Collections) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + if (Optional.IsDefined(RequestLogging)) + { + if (RequestLogging != null) + { + writer.WritePropertyName("requestLogging"u8); + writer.WriteObjectValue(RequestLogging); + } + else + { + writer.WriteNull("requestLogging"); + } + } + if (Optional.IsDefined(RollingRate)) + { + writer.WritePropertyName("rollingRate"u8); + writer.WriteStringValue(RollingRate.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static DataCollector DeserializeDataCollector(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary collections = default; + Optional requestLogging = default; + Optional rollingRate = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("collections"u8)) + { + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, Collection.DeserializeCollection(property0.Value)); + } + collections = dictionary; + continue; + } + if (property.NameEquals("requestLogging"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + requestLogging = null; + continue; + } + requestLogging = RequestLogging.DeserializeRequestLogging(property.Value); + continue; + } + if (property.NameEquals("rollingRate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rollingRate = new RollingRateType(property.Value.GetString()); + continue; + } + } + return new DataCollector(collections, requestLogging.Value, Optional.ToNullable(rollingRate)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs new file mode 100644 index 000000000000..e9cc59817f5b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The DataCollector. + public partial class DataCollector + { + /// Initializes a new instance of 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. + /// + /// is null. + public DataCollector(IDictionary collections) + { + Argument.AssertNotNull(collections, nameof(collections)); + + Collections = collections; + } + + /// Initializes a new instance of 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. + /// + /// The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. + /// + /// 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. + /// + internal DataCollector(IDictionary collections, RequestLogging requestLogging, RollingRateType? rollingRate) + { + Collections = collections; + RequestLogging = requestLogging; + RollingRate = rollingRate; + } + + /// + /// [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. + /// + public IDictionary Collections { get; } + /// The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. + internal RequestLogging RequestLogging { get; set; } + /// 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. + public IList RequestLoggingCaptureHeaders + { + get => RequestLogging is null ? default : RequestLogging.CaptureHeaders; + set + { + if (RequestLogging is null) + RequestLogging = new RequestLogging(); + RequestLogging.CaptureHeaders = value; + } + } + + /// + /// 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. + /// + public RollingRateType? RollingRate { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMetricThresholdBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMetricThresholdBase.Serialization.cs new file mode 100644 index 000000000000..4edeb10dbf6a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMetricThresholdBase.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DataDriftMetricThresholdBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static DataDriftMetricThresholdBase DeserializeDataDriftMetricThresholdBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("dataType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Categorical": return CategoricalDataDriftMetricThreshold.DeserializeCategoricalDataDriftMetricThreshold(element); + case "Numerical": return NumericalDataDriftMetricThreshold.DeserializeNumericalDataDriftMetricThreshold(element); + } + } + return UnknownDataDriftMetricThresholdBase.DeserializeUnknownDataDriftMetricThresholdBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMetricThresholdBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMetricThresholdBase.cs new file mode 100644 index 000000000000..066b5f8728d9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMetricThresholdBase.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The DataDriftMetricThresholdBase. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class DataDriftMetricThresholdBase + { + /// Initializes a new instance of DataDriftMetricThresholdBase. + protected DataDriftMetricThresholdBase() + { + } + + /// Initializes a new instance of DataDriftMetricThresholdBase. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal DataDriftMetricThresholdBase(MonitoringFeatureDataType dataType, MonitoringThreshold threshold) + { + DataType = dataType; + Threshold = threshold; + } + + /// [Required] Specifies the data type of the metric threshold. + internal MonitoringFeatureDataType DataType { get; set; } + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal MonitoringThreshold Threshold { get; set; } + /// The threshold value. If null, the set default is dependent on the metric type. + public double? ThresholdValue + { + get => Threshold is null ? default : Threshold.Value; + set + { + if (Threshold is null) + Threshold = new MonitoringThreshold(); + Threshold.Value = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.Serialization.cs new file mode 100644 index 000000000000..672b3f3e7dc1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.Serialization.cs @@ -0,0 +1,205 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DataDriftMonitoringSignal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DataSegment)) + { + if (DataSegment != null) + { + writer.WritePropertyName("dataSegment"u8); + writer.WriteObjectValue(DataSegment); + } + else + { + writer.WriteNull("dataSegment"); + } + } + if (Optional.IsCollectionDefined(FeatureDataTypeOverride)) + { + if (FeatureDataTypeOverride != null) + { + writer.WritePropertyName("featureDataTypeOverride"u8); + writer.WriteStartObject(); + foreach (var item in FeatureDataTypeOverride) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value.ToString()); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("featureDataTypeOverride"); + } + } + if (Optional.IsDefined(Features)) + { + if (Features != null) + { + writer.WritePropertyName("features"u8); + writer.WriteObjectValue(Features); + } + else + { + writer.WriteNull("features"); + } + } + writer.WritePropertyName("metricThresholds"u8); + writer.WriteStartArray(); + foreach (var item in MetricThresholds) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("productionData"u8); + writer.WriteObjectValue(ProductionData); + writer.WritePropertyName("referenceData"u8); + writer.WriteObjectValue(ReferenceData); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static DataDriftMonitoringSignal DeserializeDataDriftMonitoringSignal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional dataSegment = default; + Optional> featureDataTypeOverride = default; + Optional features = default; + IList metricThresholds = default; + MonitoringInputDataBase productionData = default; + MonitoringInputDataBase referenceData = default; + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dataSegment"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataSegment = null; + continue; + } + dataSegment = MonitoringDataSegment.DeserializeMonitoringDataSegment(property.Value); + continue; + } + if (property.NameEquals("featureDataTypeOverride"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + featureDataTypeOverride = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, new MonitoringFeatureDataType(property0.Value.GetString())); + } + featureDataTypeOverride = dictionary; + continue; + } + if (property.NameEquals("features"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + features = null; + continue; + } + features = MonitoringFeatureFilterBase.DeserializeMonitoringFeatureFilterBase(property.Value); + continue; + } + if (property.NameEquals("metricThresholds"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DataDriftMetricThresholdBase.DeserializeDataDriftMetricThresholdBase(item)); + } + metricThresholds = array; + continue; + } + if (property.NameEquals("productionData"u8)) + { + productionData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("referenceData"u8)) + { + referenceData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new DataDriftMonitoringSignal(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType, dataSegment.Value, Optional.ToDictionary(featureDataTypeOverride), features.Value, metricThresholds, productionData, referenceData); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.cs new file mode 100644 index 000000000000..1bff8932e1fb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The DataDriftMonitoringSignal. + public partial class DataDriftMonitoringSignal : MonitoringSignalBase + { + /// Initializes a new instance of DataDriftMonitoringSignal. + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// , or is null. + public DataDriftMonitoringSignal(IEnumerable metricThresholds, MonitoringInputDataBase productionData, MonitoringInputDataBase referenceData) + { + Argument.AssertNotNull(metricThresholds, nameof(metricThresholds)); + Argument.AssertNotNull(productionData, nameof(productionData)); + Argument.AssertNotNull(referenceData, nameof(referenceData)); + + FeatureDataTypeOverride = new ChangeTrackingDictionary(); + MetricThresholds = metricThresholds.ToList(); + ProductionData = productionData; + ReferenceData = referenceData; + SignalType = MonitoringSignalType.DataDrift; + } + + /// Initializes a new instance of DataDriftMonitoringSignal. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + /// The data segment used for scoping on a subset of the data population. + /// A dictionary that maps feature names to their respective data types. + /// + /// The feature filter which identifies which feature to calculate drift over. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + internal DataDriftMonitoringSignal(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType, MonitoringDataSegment dataSegment, IDictionary featureDataTypeOverride, MonitoringFeatureFilterBase features, IList metricThresholds, MonitoringInputDataBase productionData, MonitoringInputDataBase referenceData) : base(mode, properties, signalType) + { + DataSegment = dataSegment; + FeatureDataTypeOverride = featureDataTypeOverride; + Features = features; + MetricThresholds = metricThresholds; + ProductionData = productionData; + ReferenceData = referenceData; + SignalType = signalType; + } + + /// The data segment used for scoping on a subset of the data population. + public MonitoringDataSegment DataSegment { get; set; } + /// A dictionary that maps feature names to their respective data types. + public IDictionary FeatureDataTypeOverride { get; set; } + /// + /// The feature filter which identifies which feature to calculate drift over. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringFeatureFilterBase Features { get; set; } + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public IList MetricThresholds { get; } + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ProductionData { get; set; } + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ReferenceData { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImport.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImport.Serialization.cs new file mode 100644 index 000000000000..3745196fc9a4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImport.Serialization.cs @@ -0,0 +1,287 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DataImport : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AssetName)) + { + if (AssetName != null) + { + writer.WritePropertyName("assetName"u8); + writer.WriteStringValue(AssetName); + } + else + { + writer.WriteNull("assetName"); + } + } + if (Optional.IsDefined(Source)) + { + if (Source != null) + { + writer.WritePropertyName("source"u8); + writer.WriteObjectValue(Source); + } + else + { + writer.WriteNull("source"); + } + } + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + writer.WritePropertyName("dataUri"u8); + writer.WriteStringValue(DataUri.AbsoluteUri); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } + if (Optional.IsDefined(IsAnonymous)) + { + writer.WritePropertyName("isAnonymous"u8); + writer.WriteBooleanValue(IsAnonymous.Value); + } + if (Optional.IsDefined(IsArchived)) + { + writer.WritePropertyName("isArchived"u8); + writer.WriteBooleanValue(IsArchived.Value); + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static DataImport DeserializeDataImport(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional assetName = default; + Optional source = default; + MachineLearningDataType dataType = default; + Uri dataUri = default; + Optional intellectualProperty = default; + Optional stage = default; + Optional autoDeleteSetting = default; + Optional isAnonymous = default; + Optional isArchived = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("assetName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetName = null; + continue; + } + assetName = property.Value.GetString(); + continue; + } + if (property.NameEquals("source"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + source = null; + continue; + } + source = DataImportSource.DeserializeDataImportSource(property.Value); + continue; + } + if (property.NameEquals("dataType"u8)) + { + dataType = new MachineLearningDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataUri"u8)) + { + dataUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } + if (property.NameEquals("isAnonymous"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isAnonymous = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isArchived"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isArchived = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new DataImport(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri, intellectualProperty.Value, stage.Value, assetName.Value, source.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImport.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImport.cs new file mode 100644 index 000000000000..4bccc6472435 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImport.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The DataImport. + public partial class DataImport : MachineLearningDataVersionProperties + { + /// Initializes a new instance of DataImport. + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. + /// is null. + public DataImport(Uri dataUri) : base(dataUri) + { + Argument.AssertNotNull(dataUri, nameof(dataUri)); + + DataType = MachineLearningDataType.UriFolder; + } + + /// Initializes a new instance of DataImport. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + /// [Required] Specifies the type of data. + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. + /// Intellectual Property details. Used if data is an Intellectual Property. + /// Stage in the data lifecycle assigned to this data asset. + /// Name of the asset for data import job to create. + /// + /// Source data of the asset to import from + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + internal DataImport(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri, IntellectualProperty intellectualProperty, string stage, string assetName, DataImportSource source) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, dataType, dataUri, intellectualProperty, stage) + { + AssetName = assetName; + Source = source; + DataType = dataType; + } + + /// Name of the asset for data import job to create. + public string AssetName { get; set; } + /// + /// Source data of the asset to import from + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public DataImportSource Source { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSource.Serialization.cs new file mode 100644 index 000000000000..e0570377e5e9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSource.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DataImportSource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Connection)) + { + if (Connection != null) + { + writer.WritePropertyName("connection"u8); + writer.WriteStringValue(Connection); + } + else + { + writer.WriteNull("connection"); + } + } + writer.WritePropertyName("sourceType"u8); + writer.WriteStringValue(SourceType.ToString()); + writer.WriteEndObject(); + } + + internal static DataImportSource DeserializeDataImportSource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("sourceType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "database": return DatabaseSource.DeserializeDatabaseSource(element); + case "file_system": return FileSystemSource.DeserializeFileSystemSource(element); + } + } + return UnknownDataImportSource.DeserializeUnknownDataImportSource(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSource.cs new file mode 100644 index 000000000000..f0150d675da3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSource.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The DataImportSource. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class DataImportSource + { + /// Initializes a new instance of DataImportSource. + protected DataImportSource() + { + } + + /// Initializes a new instance of DataImportSource. + /// Workspace connection for data import source storage. + /// [Required] Specifies the type of data. + internal DataImportSource(string connection, DataImportSourceType sourceType) + { + Connection = connection; + SourceType = sourceType; + } + + /// Workspace connection for data import source storage. + public string Connection { get; set; } + /// [Required] Specifies the type of data. + internal DataImportSourceType SourceType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSourceType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSourceType.cs new file mode 100644 index 000000000000..22bde726ce7f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataImportSourceType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the type of data. + internal readonly partial struct DataImportSourceType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DataImportSourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DatabaseValue = "database"; + private const string FileSystemValue = "file_system"; + + /// database. + public static DataImportSourceType Database { get; } = new DataImportSourceType(DatabaseValue); + /// file_system. + public static DataImportSourceType FileSystem { get; } = new DataImportSourceType(FileSystemValue); + /// Determines if two values are the same. + public static bool operator ==(DataImportSourceType left, DataImportSourceType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DataImportSourceType left, DataImportSourceType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DataImportSourceType(string value) => new DataImportSourceType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DataImportSourceType other && Equals(other); + /// + public bool Equals(DataImportSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMetricThresholdBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMetricThresholdBase.Serialization.cs new file mode 100644 index 000000000000..a492ce548f85 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMetricThresholdBase.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DataQualityMetricThresholdBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static DataQualityMetricThresholdBase DeserializeDataQualityMetricThresholdBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("dataType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Categorical": return CategoricalDataQualityMetricThreshold.DeserializeCategoricalDataQualityMetricThreshold(element); + case "Numerical": return NumericalDataQualityMetricThreshold.DeserializeNumericalDataQualityMetricThreshold(element); + } + } + return UnknownDataQualityMetricThresholdBase.DeserializeUnknownDataQualityMetricThresholdBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMetricThresholdBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMetricThresholdBase.cs new file mode 100644 index 000000000000..6e2b38dfa69b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMetricThresholdBase.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The DataQualityMetricThresholdBase. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class DataQualityMetricThresholdBase + { + /// Initializes a new instance of DataQualityMetricThresholdBase. + protected DataQualityMetricThresholdBase() + { + } + + /// Initializes a new instance of DataQualityMetricThresholdBase. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal DataQualityMetricThresholdBase(MonitoringFeatureDataType dataType, MonitoringThreshold threshold) + { + DataType = dataType; + Threshold = threshold; + } + + /// [Required] Specifies the data type of the metric threshold. + internal MonitoringFeatureDataType DataType { get; set; } + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal MonitoringThreshold Threshold { get; set; } + /// The threshold value. If null, the set default is dependent on the metric type. + public double? ThresholdValue + { + get => Threshold is null ? default : Threshold.Value; + set + { + if (Threshold is null) + Threshold = new MonitoringThreshold(); + Threshold.Value = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.Serialization.cs new file mode 100644 index 000000000000..1ddee77bb636 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.Serialization.cs @@ -0,0 +1,182 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DataQualityMonitoringSignal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(FeatureDataTypeOverride)) + { + if (FeatureDataTypeOverride != null) + { + writer.WritePropertyName("featureDataTypeOverride"u8); + writer.WriteStartObject(); + foreach (var item in FeatureDataTypeOverride) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value.ToString()); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("featureDataTypeOverride"); + } + } + if (Optional.IsDefined(Features)) + { + if (Features != null) + { + writer.WritePropertyName("features"u8); + writer.WriteObjectValue(Features); + } + else + { + writer.WriteNull("features"); + } + } + writer.WritePropertyName("metricThresholds"u8); + writer.WriteStartArray(); + foreach (var item in MetricThresholds) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("productionData"u8); + writer.WriteObjectValue(ProductionData); + writer.WritePropertyName("referenceData"u8); + writer.WriteObjectValue(ReferenceData); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static DataQualityMonitoringSignal DeserializeDataQualityMonitoringSignal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> featureDataTypeOverride = default; + Optional features = default; + IList metricThresholds = default; + MonitoringInputDataBase productionData = default; + MonitoringInputDataBase referenceData = default; + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("featureDataTypeOverride"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + featureDataTypeOverride = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, new MonitoringFeatureDataType(property0.Value.GetString())); + } + featureDataTypeOverride = dictionary; + continue; + } + if (property.NameEquals("features"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + features = null; + continue; + } + features = MonitoringFeatureFilterBase.DeserializeMonitoringFeatureFilterBase(property.Value); + continue; + } + if (property.NameEquals("metricThresholds"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DataQualityMetricThresholdBase.DeserializeDataQualityMetricThresholdBase(item)); + } + metricThresholds = array; + continue; + } + if (property.NameEquals("productionData"u8)) + { + productionData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("referenceData"u8)) + { + referenceData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new DataQualityMonitoringSignal(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType, Optional.ToDictionary(featureDataTypeOverride), features.Value, metricThresholds, productionData, referenceData); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.cs new file mode 100644 index 000000000000..cb51f2ac6266 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The DataQualityMonitoringSignal. + public partial class DataQualityMonitoringSignal : MonitoringSignalBase + { + /// Initializes a new instance of DataQualityMonitoringSignal. + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// [Required] The data produced by the production service which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// , or is null. + public DataQualityMonitoringSignal(IEnumerable metricThresholds, MonitoringInputDataBase productionData, MonitoringInputDataBase referenceData) + { + Argument.AssertNotNull(metricThresholds, nameof(metricThresholds)); + Argument.AssertNotNull(productionData, nameof(productionData)); + Argument.AssertNotNull(referenceData, nameof(referenceData)); + + FeatureDataTypeOverride = new ChangeTrackingDictionary(); + MetricThresholds = metricThresholds.ToList(); + ProductionData = productionData; + ReferenceData = referenceData; + SignalType = MonitoringSignalType.DataQuality; + } + + /// Initializes a new instance of DataQualityMonitoringSignal. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + /// A dictionary that maps feature names to their respective data types. + /// + /// The features to calculate drift over. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// [Required] The data produced by the production service which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + internal DataQualityMonitoringSignal(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType, IDictionary featureDataTypeOverride, MonitoringFeatureFilterBase features, IList metricThresholds, MonitoringInputDataBase productionData, MonitoringInputDataBase referenceData) : base(mode, properties, signalType) + { + FeatureDataTypeOverride = featureDataTypeOverride; + Features = features; + MetricThresholds = metricThresholds; + ProductionData = productionData; + ReferenceData = referenceData; + SignalType = signalType; + } + + /// A dictionary that maps feature names to their respective data types. + public IDictionary FeatureDataTypeOverride { get; set; } + /// + /// The features to calculate drift over. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringFeatureFilterBase Features { get; set; } + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public IList MetricThresholds { get; } + /// + /// [Required] The data produced by the production service which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ProductionData { get; set; } + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ReferenceData { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.Serialization.cs new file mode 100644 index 000000000000..b0fb522b0f8e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.Serialization.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DatabaseSource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Query)) + { + if (Query != null) + { + writer.WritePropertyName("query"u8); + writer.WriteStringValue(Query); + } + else + { + writer.WriteNull("query"); + } + } + if (Optional.IsDefined(StoredProcedure)) + { + if (StoredProcedure != null) + { + writer.WritePropertyName("storedProcedure"u8); + writer.WriteStringValue(StoredProcedure); + } + else + { + writer.WriteNull("storedProcedure"); + } + } + if (Optional.IsCollectionDefined(StoredProcedureParams)) + { + if (StoredProcedureParams != null) + { + writer.WritePropertyName("storedProcedureParams"u8); + writer.WriteStartArray(); + foreach (var item in StoredProcedureParams) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStartObject(); + foreach (var item0 in item) + { + writer.WritePropertyName(item0.Key); + writer.WriteStringValue(item0.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("storedProcedureParams"); + } + } + if (Optional.IsDefined(TableName)) + { + if (TableName != null) + { + writer.WritePropertyName("tableName"u8); + writer.WriteStringValue(TableName); + } + else + { + writer.WriteNull("tableName"); + } + } + if (Optional.IsDefined(Connection)) + { + if (Connection != null) + { + writer.WritePropertyName("connection"u8); + writer.WriteStringValue(Connection); + } + else + { + writer.WriteNull("connection"); + } + } + writer.WritePropertyName("sourceType"u8); + writer.WriteStringValue(SourceType.ToString()); + writer.WriteEndObject(); + } + + internal static DatabaseSource DeserializeDatabaseSource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional query = default; + Optional storedProcedure = default; + Optional>> storedProcedureParams = default; + Optional tableName = default; + Optional connection = default; + DataImportSourceType sourceType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("query"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + query = null; + continue; + } + query = property.Value.GetString(); + continue; + } + if (property.NameEquals("storedProcedure"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + storedProcedure = null; + continue; + } + storedProcedure = property.Value.GetString(); + continue; + } + if (property.NameEquals("storedProcedureParams"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + storedProcedureParams = null; + continue; + } + List> array = new List>(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + Dictionary dictionary = new Dictionary(); + foreach (var property0 in item.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + array.Add(dictionary); + } + } + storedProcedureParams = array; + continue; + } + if (property.NameEquals("tableName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tableName = null; + continue; + } + tableName = property.Value.GetString(); + continue; + } + if (property.NameEquals("connection"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connection = null; + continue; + } + connection = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceType"u8)) + { + sourceType = new DataImportSourceType(property.Value.GetString()); + continue; + } + } + return new DatabaseSource(connection.Value, sourceType, query.Value, storedProcedure.Value, Optional.ToList(storedProcedureParams), tableName.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.cs new file mode 100644 index 000000000000..8041e9b511c2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The DatabaseSource. + public partial class DatabaseSource : DataImportSource + { + /// Initializes a new instance of DatabaseSource. + public DatabaseSource() + { + StoredProcedureParams = new ChangeTrackingList>(); + SourceType = DataImportSourceType.Database; + } + + /// Initializes a new instance of DatabaseSource. + /// Workspace connection for data import source storage. + /// [Required] Specifies the type of data. + /// SQL Query statement for data import Database source. + /// SQL StoredProcedure on data import Database source. + /// SQL StoredProcedure parameters. + /// Name of the table on data import Database source. + internal DatabaseSource(string connection, DataImportSourceType sourceType, string query, string storedProcedure, IList> storedProcedureParams, string tableName) : base(connection, sourceType) + { + Query = query; + StoredProcedure = storedProcedure; + StoredProcedureParams = storedProcedureParams; + TableName = tableName; + SourceType = sourceType; + } + + /// SQL Query statement for data import Database source. + public string Query { get; set; } + /// SQL StoredProcedure on data import Database source. + public string StoredProcedure { get; set; } + /// SQL StoredProcedure parameters. + public IList> StoredProcedureParams { get; set; } + /// Name of the table on data import Database source. + public string TableName { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatasetExportSummary.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatasetExportSummary.Serialization.cs new file mode 100644 index 000000000000..fae668a8b165 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatasetExportSummary.Serialization.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class DatasetExportSummary : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("format"u8); + writer.WriteStringValue(Format.ToString()); + writer.WriteEndObject(); + } + + internal static DatasetExportSummary DeserializeDatasetExportSummary(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional labeledAssetName = default; + Optional endDateTime = default; + Optional exportedRowCount = default; + ExportFormatType format = default; + Optional labelingJobId = default; + Optional startDateTime = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("labeledAssetName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + labeledAssetName = null; + continue; + } + labeledAssetName = property.Value.GetString(); + continue; + } + if (property.NameEquals("endDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + endDateTime = null; + continue; + } + endDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("exportedRowCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + exportedRowCount = null; + continue; + } + exportedRowCount = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("format"u8)) + { + format = new ExportFormatType(property.Value.GetString()); + continue; + } + if (property.NameEquals("labelingJobId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + labelingJobId = null; + continue; + } + labelingJobId = property.Value.GetString(); + continue; + } + if (property.NameEquals("startDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + startDateTime = null; + continue; + } + startDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new DatasetExportSummary(Optional.ToNullable(endDateTime), Optional.ToNullable(exportedRowCount), format, labelingJobId.Value, Optional.ToNullable(startDateTime), labeledAssetName.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatasetExportSummary.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatasetExportSummary.cs new file mode 100644 index 000000000000..f5e887f2b58a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatasetExportSummary.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The DatasetExportSummary. + public partial class DatasetExportSummary : ExportSummary + { + /// Initializes a new instance of DatasetExportSummary. + public DatasetExportSummary() + { + Format = ExportFormatType.Dataset; + } + + /// Initializes a new instance of DatasetExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// [Required] The format of exported labels, also as the discriminator. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + /// The unique name of the labeled data asset. + internal DatasetExportSummary(DateTimeOffset? endOn, long? exportedRowCount, ExportFormatType format, string labelingJobId, DateTimeOffset? startOn, string labeledAssetName) : base(endOn, exportedRowCount, format, labelingJobId, startOn) + { + LabeledAssetName = labeledAssetName; + Format = format; + } + + /// The unique name of the labeled data asset. + public string LabeledAssetName { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatastoreType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatastoreType.cs index 0f3b08b127a8..49ea2b29761e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatastoreType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatastoreType.cs @@ -26,6 +26,8 @@ public DatastoreType(string value) private const string AzureDataLakeGen1Value = "AzureDataLakeGen1"; private const string AzureDataLakeGen2Value = "AzureDataLakeGen2"; private const string AzureFileValue = "AzureFile"; + private const string HdfsValue = "Hdfs"; + private const string OneLakeValue = "OneLake"; /// AzureBlob. public static DatastoreType AzureBlob { get; } = new DatastoreType(AzureBlobValue); @@ -35,6 +37,10 @@ public DatastoreType(string value) public static DatastoreType AzureDataLakeGen2 { get; } = new DatastoreType(AzureDataLakeGen2Value); /// AzureFile. public static DatastoreType AzureFile { get; } = new DatastoreType(AzureFileValue); + /// Hdfs. + public static DatastoreType Hdfs { get; } = new DatastoreType(HdfsValue); + /// OneLake. + public static DatastoreType OneLake { get; } = new DatastoreType(OneLakeValue); /// Determines if two values are the same. public static bool operator ==(DatastoreType left, DatastoreType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DistributionType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DistributionType.cs index 68ff218dc4be..67bd94762b7f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DistributionType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DistributionType.cs @@ -25,6 +25,7 @@ public DistributionType(string value) private const string PyTorchValue = "PyTorch"; private const string TensorFlowValue = "TensorFlow"; private const string MpiValue = "Mpi"; + private const string RayValue = "Ray"; /// PyTorch. public static DistributionType PyTorch { get; } = new DistributionType(PyTorchValue); @@ -32,6 +33,8 @@ public DistributionType(string value) public static DistributionType TensorFlow { get; } = new DistributionType(TensorFlowValue); /// Mpi. public static DistributionType Mpi { get; } = new DistributionType(MpiValue); + /// Ray. + public static DistributionType Ray { get; } = new DistributionType(RayValue); /// Determines if two values are the same. public static bool operator ==(DistributionType left, DistributionType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.Serialization.cs new file mode 100644 index 000000000000..10995a02d9c7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Docker : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Privileged)) + { + if (Privileged != null) + { + writer.WritePropertyName("privileged"u8); + writer.WriteBooleanValue(Privileged.Value); + } + else + { + writer.WriteNull("privileged"); + } + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement); +#endif + } + writer.WriteEndObject(); + } + + internal static Docker DeserializeDocker(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional privileged = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("privileged"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + privileged = null; + continue; + } + privileged = property.Value.GetBoolean(); + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new Docker(Optional.ToNullable(privileged), additionalProperties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.cs new file mode 100644 index 000000000000..6292ed849f2b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The Docker. + public partial class Docker + { + /// Initializes a new instance of Docker. + public Docker() + { + AdditionalProperties = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of Docker. + /// Indicate whether container shall run in privileged or non-privileged mode. + /// Additional Properties. + internal Docker(bool? privileged, IDictionary additionalProperties) + { + Privileged = privileged; + AdditionalProperties = additionalProperties; + } + + /// Indicate whether container shall run in privileged or non-privileged mode. + public bool? Privileged { get; set; } + /// + /// Additional Properties + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public IDictionary AdditionalProperties { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailMonitoringAlertNotificationSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailMonitoringAlertNotificationSettings.Serialization.cs new file mode 100644 index 000000000000..6767215dbffa --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailMonitoringAlertNotificationSettings.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class EmailMonitoringAlertNotificationSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(EmailNotificationSetting)) + { + if (EmailNotificationSetting != null) + { + writer.WritePropertyName("emailNotificationSetting"u8); + writer.WriteObjectValue(EmailNotificationSetting); + } + else + { + writer.WriteNull("emailNotificationSetting"); + } + } + writer.WritePropertyName("alertNotificationType"u8); + writer.WriteStringValue(AlertNotificationType.ToString()); + writer.WriteEndObject(); + } + + internal static EmailMonitoringAlertNotificationSettings DeserializeEmailMonitoringAlertNotificationSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional emailNotificationSetting = default; + MonitoringAlertNotificationType alertNotificationType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("emailNotificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + emailNotificationSetting = null; + continue; + } + emailNotificationSetting = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("alertNotificationType"u8)) + { + alertNotificationType = new MonitoringAlertNotificationType(property.Value.GetString()); + continue; + } + } + return new EmailMonitoringAlertNotificationSettings(alertNotificationType, emailNotificationSetting.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailMonitoringAlertNotificationSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailMonitoringAlertNotificationSettings.cs new file mode 100644 index 000000000000..9e85c80d07ec --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailMonitoringAlertNotificationSettings.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The EmailMonitoringAlertNotificationSettings. + public partial class EmailMonitoringAlertNotificationSettings : MonitoringAlertNotificationSettingsBase + { + /// Initializes a new instance of EmailMonitoringAlertNotificationSettings. + public EmailMonitoringAlertNotificationSettings() + { + AlertNotificationType = MonitoringAlertNotificationType.Email; + } + + /// Initializes a new instance of EmailMonitoringAlertNotificationSettings. + /// [Required] Specifies the type of signal to monitor. + /// Configuration for notification. + internal EmailMonitoringAlertNotificationSettings(MonitoringAlertNotificationType alertNotificationType, NotificationSetting emailNotificationSetting) : base(alertNotificationType) + { + EmailNotificationSetting = emailNotificationSetting; + AlertNotificationType = alertNotificationType; + } + + /// Configuration for notification. + public NotificationSetting EmailNotificationSetting { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailNotificationEnableType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailNotificationEnableType.cs new file mode 100644 index 000000000000..8903dcb3c82b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EmailNotificationEnableType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the email notification type. + public readonly partial struct EmailNotificationEnableType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EmailNotificationEnableType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string JobCompletedValue = "JobCompleted"; + private const string JobFailedValue = "JobFailed"; + private const string JobCancelledValue = "JobCancelled"; + + /// JobCompleted. + public static EmailNotificationEnableType JobCompleted { get; } = new EmailNotificationEnableType(JobCompletedValue); + /// JobFailed. + public static EmailNotificationEnableType JobFailed { get; } = new EmailNotificationEnableType(JobFailedValue); + /// JobCancelled. + public static EmailNotificationEnableType JobCancelled { get; } = new EmailNotificationEnableType(JobCancelledValue); + /// Determines if two values are the same. + public static bool operator ==(EmailNotificationEnableType left, EmailNotificationEnableType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EmailNotificationEnableType left, EmailNotificationEnableType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EmailNotificationEnableType(string value) => new EmailNotificationEnableType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EmailNotificationEnableType other && Equals(other); + /// + public bool Equals(EmailNotificationEnableType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionKeyVaultUpdateProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionKeyVaultUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..41e93b7229fa --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionKeyVaultUpdateProperties.Serialization.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class EncryptionKeyVaultUpdateProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("keyIdentifier"u8); + writer.WriteStringValue(KeyIdentifier); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionKeyVaultUpdateProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionKeyVaultUpdateProperties.cs new file mode 100644 index 000000000000..26e840c25231 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionKeyVaultUpdateProperties.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The EncryptionKeyVaultUpdateProperties. + public partial class EncryptionKeyVaultUpdateProperties + { + /// Initializes a new instance of EncryptionKeyVaultUpdateProperties. + /// + /// is null. + public EncryptionKeyVaultUpdateProperties(string keyIdentifier) + { + Argument.AssertNotNull(keyIdentifier, nameof(keyIdentifier)); + + KeyIdentifier = keyIdentifier; + } + + /// Gets the key identifier. + public string KeyIdentifier { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionUpdateProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..c45b7c0ab9cc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionUpdateProperties.Serialization.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class EncryptionUpdateProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("keyVaultProperties"u8); + writer.WriteObjectValue(KeyVaultProperties); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionUpdateProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionUpdateProperties.cs new file mode 100644 index 000000000000..6188dd2ce498 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EncryptionUpdateProperties.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The EncryptionUpdateProperties. + public partial class EncryptionUpdateProperties + { + /// Initializes a new instance of EncryptionUpdateProperties. + /// + /// is null. + public EncryptionUpdateProperties(EncryptionKeyVaultUpdateProperties keyVaultProperties) + { + Argument.AssertNotNull(keyVaultProperties, nameof(keyVaultProperties)); + + KeyVaultProperties = keyVaultProperties; + } + + /// Gets the key vault properties. + internal EncryptionKeyVaultUpdateProperties KeyVaultProperties { get; } + /// Gets the key identifier. + public string KeyIdentifier + { + get => KeyVaultProperties?.KeyIdentifier; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.Serialization.cs new file mode 100644 index 000000000000..4265434bff7e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.Serialization.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Endpoint : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Protocol)) + { + writer.WritePropertyName("protocol"u8); + writer.WriteStringValue(Protocol.Value.ToString()); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Target)) + { + writer.WritePropertyName("target"u8); + writer.WriteNumberValue(Target.Value); + } + if (Optional.IsDefined(Published)) + { + if (Published != null) + { + writer.WritePropertyName("published"u8); + writer.WriteNumberValue(Published.Value); + } + else + { + writer.WriteNull("published"); + } + } + if (Optional.IsDefined(HostIP)) + { + if (HostIP != null) + { + writer.WritePropertyName("hostIp"u8); + writer.WriteStringValue(HostIP); + } + else + { + writer.WriteNull("hostIp"); + } + } + writer.WriteEndObject(); + } + + internal static Endpoint DeserializeEndpoint(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional protocol = default; + Optional name = default; + Optional target = default; + Optional published = default; + Optional hostIP = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("protocol"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + protocol = new Protocol(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("target"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + target = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("published"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + published = null; + continue; + } + published = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("hostIp"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + hostIP = null; + continue; + } + hostIP = property.Value.GetString(); + continue; + } + } + return new Endpoint(Optional.ToNullable(protocol), name.Value, Optional.ToNullable(target), Optional.ToNullable(published), hostIP.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.cs new file mode 100644 index 000000000000..f589bf5758ce --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The Endpoint. + public partial class Endpoint + { + /// Initializes a new instance of Endpoint. + public Endpoint() + { + } + + /// Initializes a new instance of Endpoint. + /// Protocol over which communication will happen over this endpoint. + /// Name of the Endpoint. + /// Application port inside the container. + /// Port over which the application is exposed from container. + /// Host IP over which the application is exposed from the container. + internal Endpoint(Protocol? protocol, string name, int? target, int? published, string hostIP) + { + Protocol = protocol; + Name = name; + Target = target; + Published = published; + HostIP = hostIP; + } + + /// Protocol over which communication will happen over this endpoint. + public Protocol? Protocol { get; set; } + /// Name of the Endpoint. + public string Name { get; set; } + /// Application port inside the container. + public int? Target { get; set; } + /// Port over which the application is exposed from container. + public int? Published { get; set; } + /// Host IP over which the application is exposed from the container. + public string HostIP { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EndpointServiceConnectionStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EndpointServiceConnectionStatus.cs new file mode 100644 index 000000000000..099461d73473 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EndpointServiceConnectionStatus.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Connection status of the service consumer with the service provider. + public readonly partial struct EndpointServiceConnectionStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EndpointServiceConnectionStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ApprovedValue = "Approved"; + private const string PendingValue = "Pending"; + private const string RejectedValue = "Rejected"; + private const string DisconnectedValue = "Disconnected"; + private const string TimeoutValue = "Timeout"; + + /// Approved. + public static EndpointServiceConnectionStatus Approved { get; } = new EndpointServiceConnectionStatus(ApprovedValue); + /// Pending. + public static EndpointServiceConnectionStatus Pending { get; } = new EndpointServiceConnectionStatus(PendingValue); + /// Rejected. + public static EndpointServiceConnectionStatus Rejected { get; } = new EndpointServiceConnectionStatus(RejectedValue); + /// Disconnected. + public static EndpointServiceConnectionStatus Disconnected { get; } = new EndpointServiceConnectionStatus(DisconnectedValue); + /// Timeout. + public static EndpointServiceConnectionStatus Timeout { get; } = new EndpointServiceConnectionStatus(TimeoutValue); + /// Determines if two values are the same. + public static bool operator ==(EndpointServiceConnectionStatus left, EndpointServiceConnectionStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EndpointServiceConnectionStatus left, EndpointServiceConnectionStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EndpointServiceConnectionStatus(string value) => new EndpointServiceConnectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EndpointServiceConnectionStatus other && Equals(other); + /// + public bool Equals(EndpointServiceConnectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariable.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariable.Serialization.cs new file mode 100644 index 000000000000..1a580f709f97 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariable.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class EnvironmentVariable : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(VariableType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(VariableType.Value.ToString()); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement); +#endif + } + writer.WriteEndObject(); + } + + internal static EnvironmentVariable DeserializeEnvironmentVariable(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional type = default; + Optional value = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new EnvironmentVariableType(property.Value.GetString()); + continue; + } + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new EnvironmentVariable(Optional.ToNullable(type), value.Value, additionalProperties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariable.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariable.cs new file mode 100644 index 000000000000..38d87d43501f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariable.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The EnvironmentVariable. + public partial class EnvironmentVariable + { + /// Initializes a new instance of EnvironmentVariable. + public EnvironmentVariable() + { + AdditionalProperties = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of EnvironmentVariable. + /// Type of the Environment Variable. Possible values are: local - For local variable. + /// Value of the Environment variable. + /// Additional Properties. + internal EnvironmentVariable(EnvironmentVariableType? variableType, string value, IDictionary additionalProperties) + { + VariableType = variableType; + Value = value; + AdditionalProperties = additionalProperties; + } + + /// Type of the Environment Variable. Possible values are: local - For local variable. + public EnvironmentVariableType? VariableType { get; set; } + /// Value of the Environment variable. + public string Value { get; set; } + /// + /// Additional Properties + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public IDictionary AdditionalProperties { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariableType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariableType.cs new file mode 100644 index 000000000000..188c9440407a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVariableType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of the Environment Variable. Possible values are: local - For local variable. + public readonly partial struct EnvironmentVariableType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EnvironmentVariableType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string LocalValue = "local"; + + /// local. + public static EnvironmentVariableType Local { get; } = new EnvironmentVariableType(LocalValue); + /// Determines if two values are the same. + public static bool operator ==(EnvironmentVariableType left, EnvironmentVariableType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EnvironmentVariableType left, EnvironmentVariableType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EnvironmentVariableType(string value) => new EnvironmentVariableType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EnvironmentVariableType other && Equals(other); + /// + public bool Equals(EnvironmentVariableType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportFormatType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportFormatType.cs new file mode 100644 index 000000000000..ef4c243ca240 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportFormatType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The format of exported labels. + internal readonly partial struct ExportFormatType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ExportFormatType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DatasetValue = "Dataset"; + private const string CocoValue = "Coco"; + private const string CSVValue = "CSV"; + + /// Dataset. + public static ExportFormatType Dataset { get; } = new ExportFormatType(DatasetValue); + /// Coco. + public static ExportFormatType Coco { get; } = new ExportFormatType(CocoValue); + /// CSV. + public static ExportFormatType CSV { get; } = new ExportFormatType(CSVValue); + /// Determines if two values are the same. + public static bool operator ==(ExportFormatType left, ExportFormatType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ExportFormatType left, ExportFormatType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ExportFormatType(string value) => new ExportFormatType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ExportFormatType other && Equals(other); + /// + public bool Equals(ExportFormatType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportSummary.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportSummary.Serialization.cs new file mode 100644 index 000000000000..85559f6fb40b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportSummary.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ExportSummary : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("format"u8); + writer.WriteStringValue(Format.ToString()); + writer.WriteEndObject(); + } + + internal static ExportSummary DeserializeExportSummary(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("format", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "CSV": return CsvExportSummary.DeserializeCsvExportSummary(element); + case "Coco": return CocoExportSummary.DeserializeCocoExportSummary(element); + case "Dataset": return DatasetExportSummary.DeserializeDatasetExportSummary(element); + } + } + return UnknownExportSummary.DeserializeUnknownExportSummary(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportSummary.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportSummary.cs new file mode 100644 index 000000000000..a43504ec0c47 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExportSummary.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The ExportSummary. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public abstract partial class ExportSummary + { + /// Initializes a new instance of ExportSummary. + protected ExportSummary() + { + } + + /// Initializes a new instance of ExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// [Required] The format of exported labels, also as the discriminator. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + internal ExportSummary(DateTimeOffset? endOn, long? exportedRowCount, ExportFormatType format, string labelingJobId, DateTimeOffset? startOn) + { + EndOn = endOn; + ExportedRowCount = exportedRowCount; + Format = format; + LabelingJobId = labelingJobId; + StartOn = startOn; + } + + /// The time when the export was completed. + public DateTimeOffset? EndOn { get; } + /// The total number of labeled datapoints exported. + public long? ExportedRowCount { get; } + /// [Required] The format of exported labels, also as the discriminator. + internal ExportFormatType Format { get; set; } + /// Name and identifier of the job containing exported labels. + public string LabelingJobId { get; } + /// The time when the export was requested. + public DateTimeOffset? StartOn { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.Serialization.cs index 42e58154ef78..383ef773a560 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.Serialization.cs @@ -19,7 +19,7 @@ internal static ExternalFqdnResponse DeserializeExternalFqdnResponse(JsonElement { return null; } - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) @@ -28,10 +28,10 @@ internal static ExternalFqdnResponse DeserializeExternalFqdnResponse(JsonElement { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(MachineLearningFqdnEndpoints.DeserializeMachineLearningFqdnEndpoints(item)); + array.Add(FqdnEndpointsPropertyBag.DeserializeFqdnEndpointsPropertyBag(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs index 1a90310b23b7..6b646fa5118f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs @@ -16,17 +16,17 @@ internal partial class ExternalFqdnResponse /// Initializes a new instance of ExternalFqdnResponse. internal ExternalFqdnResponse() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ExternalFqdnResponse. /// - internal ExternalFqdnResponse(IReadOnlyList value) + internal ExternalFqdnResponse(IReadOnlyList value) { Value = value; } /// Gets the value. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionDriftMonitoringSignal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionDriftMonitoringSignal.Serialization.cs new file mode 100644 index 000000000000..f192ca31690f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionDriftMonitoringSignal.Serialization.cs @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeatureAttributionDriftMonitoringSignal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metricThreshold"u8); + writer.WriteObjectValue(MetricThreshold); + writer.WritePropertyName("productionData"u8); + writer.WriteStartArray(); + foreach (var item in ProductionData) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("referenceData"u8); + writer.WriteObjectValue(ReferenceData); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static FeatureAttributionDriftMonitoringSignal DeserializeFeatureAttributionDriftMonitoringSignal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + FeatureAttributionMetricThreshold metricThreshold = default; + IList productionData = default; + MonitoringInputDataBase referenceData = default; + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metricThreshold"u8)) + { + metricThreshold = FeatureAttributionMetricThreshold.DeserializeFeatureAttributionMetricThreshold(property.Value); + continue; + } + if (property.NameEquals("productionData"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MonitoringInputDataBase.DeserializeMonitoringInputDataBase(item)); + } + productionData = array; + continue; + } + if (property.NameEquals("referenceData"u8)) + { + referenceData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new FeatureAttributionDriftMonitoringSignal(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType, metricThreshold, productionData, referenceData); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionDriftMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionDriftMonitoringSignal.cs new file mode 100644 index 000000000000..b3d7c34e48d9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionDriftMonitoringSignal.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeatureAttributionDriftMonitoringSignal. + public partial class FeatureAttributionDriftMonitoringSignal : MonitoringSignalBase + { + /// Initializes a new instance of FeatureAttributionDriftMonitoringSignal. + /// [Required] A list of metrics to calculate and their associated thresholds. + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// , or is null. + public FeatureAttributionDriftMonitoringSignal(FeatureAttributionMetricThreshold metricThreshold, IEnumerable productionData, MonitoringInputDataBase referenceData) + { + Argument.AssertNotNull(metricThreshold, nameof(metricThreshold)); + Argument.AssertNotNull(productionData, nameof(productionData)); + Argument.AssertNotNull(referenceData, nameof(referenceData)); + + MetricThreshold = metricThreshold; + ProductionData = productionData.ToList(); + ReferenceData = referenceData; + SignalType = MonitoringSignalType.FeatureAttributionDrift; + } + + /// Initializes a new instance of FeatureAttributionDriftMonitoringSignal. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + /// [Required] A list of metrics to calculate and their associated thresholds. + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + internal FeatureAttributionDriftMonitoringSignal(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType, FeatureAttributionMetricThreshold metricThreshold, IList productionData, MonitoringInputDataBase referenceData) : base(mode, properties, signalType) + { + MetricThreshold = metricThreshold; + ProductionData = productionData; + ReferenceData = referenceData; + SignalType = signalType; + } + + /// [Required] A list of metrics to calculate and their associated thresholds. + public FeatureAttributionMetricThreshold MetricThreshold { get; set; } + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public IList ProductionData { get; } + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ReferenceData { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetric.cs new file mode 100644 index 000000000000..f16b9a6c05ec --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetric.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeatureAttributionMetric. + public readonly partial struct FeatureAttributionMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FeatureAttributionMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NormalizedDiscountedCumulativeGainValue = "NormalizedDiscountedCumulativeGain"; + + /// The Normalized Discounted Cumulative Gain metric. + public static FeatureAttributionMetric NormalizedDiscountedCumulativeGain { get; } = new FeatureAttributionMetric(NormalizedDiscountedCumulativeGainValue); + /// Determines if two values are the same. + public static bool operator ==(FeatureAttributionMetric left, FeatureAttributionMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FeatureAttributionMetric left, FeatureAttributionMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FeatureAttributionMetric(string value) => new FeatureAttributionMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FeatureAttributionMetric other && Equals(other); + /// + public bool Equals(FeatureAttributionMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..5c3fd33622a5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetricThreshold.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeatureAttributionMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static FeatureAttributionMetricThreshold DeserializeFeatureAttributionMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + FeatureAttributionMetric metric = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new FeatureAttributionMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new FeatureAttributionMetricThreshold(metric, threshold.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetricThreshold.cs new file mode 100644 index 000000000000..ef4aa6428644 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureAttributionMetricThreshold.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeatureAttributionMetricThreshold. + public partial class FeatureAttributionMetricThreshold + { + /// Initializes a new instance of FeatureAttributionMetricThreshold. + /// [Required] The feature attribution metric to calculate. + public FeatureAttributionMetricThreshold(FeatureAttributionMetric metric) + { + Metric = metric; + } + + /// Initializes a new instance of FeatureAttributionMetricThreshold. + /// [Required] The feature attribution metric to calculate. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal FeatureAttributionMetricThreshold(FeatureAttributionMetric metric, MonitoringThreshold threshold) + { + Metric = metric; + Threshold = threshold; + } + + /// [Required] The feature attribution metric to calculate. + public FeatureAttributionMetric Metric { get; set; } + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal MonitoringThreshold Threshold { get; set; } + /// The threshold value. If null, the set default is dependent on the metric type. + public double? ThresholdValue + { + get => Threshold is null ? default : Threshold.Value; + set + { + if (Threshold is null) + Threshold = new MonitoringThreshold(); + Threshold.Value = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureData.Serialization.cs new file mode 100644 index 000000000000..d98c1cc4493f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureData.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class FeatureData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static FeatureData DeserializeFeatureData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + FeatureProperties properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = FeatureProperties.DeserializeFeatureProperties(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new FeatureData(id, name, type, systemData.Value, properties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureDataType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureDataType.cs new file mode 100644 index 000000000000..5d286af8c791 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureDataType.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeatureDataType. + public readonly partial struct FeatureDataType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FeatureDataType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string StringValue = "String"; + private const string IntegerValue = "Integer"; + private const string LongValue = "Long"; + private const string FloatValue = "Float"; + private const string DoubleValue = "Double"; + private const string BinaryValue = "Binary"; + private const string DatetimeValue = "Datetime"; + private const string BooleanValue = "Boolean"; + + /// String. + public static FeatureDataType String { get; } = new FeatureDataType(StringValue); + /// Integer. + public static FeatureDataType Integer { get; } = new FeatureDataType(IntegerValue); + /// Long. + public static FeatureDataType Long { get; } = new FeatureDataType(LongValue); + /// Float. + public static FeatureDataType Float { get; } = new FeatureDataType(FloatValue); + /// Double. + public static FeatureDataType Double { get; } = new FeatureDataType(DoubleValue); + /// Binary. + public static FeatureDataType Binary { get; } = new FeatureDataType(BinaryValue); + /// Datetime. + public static FeatureDataType Datetime { get; } = new FeatureDataType(DatetimeValue); + /// Boolean. + public static FeatureDataType Boolean { get; } = new FeatureDataType(BooleanValue); + /// Determines if two values are the same. + public static bool operator ==(FeatureDataType left, FeatureDataType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FeatureDataType left, FeatureDataType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FeatureDataType(string value) => new FeatureDataType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FeatureDataType other && Equals(other); + /// + public bool Equals(FeatureDataType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.Serialization.cs new file mode 100644 index 000000000000..9bec453131e3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.Serialization.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeatureProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DataType)) + { + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.Value.ToString()); + } + if (Optional.IsDefined(FeatureName)) + { + if (FeatureName != null) + { + writer.WritePropertyName("featureName"u8); + writer.WriteStringValue(FeatureName); + } + else + { + writer.WriteNull("featureName"); + } + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static FeatureProperties DeserializeFeatureProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional dataType = default; + Optional featureName = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dataType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dataType = new FeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("featureName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + featureName = null; + continue; + } + featureName = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new FeatureProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(dataType), featureName.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.cs new file mode 100644 index 000000000000..9b20353efe6c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing feature. + public partial class FeatureProperties : MachineLearningResourceBase + { + /// Initializes a new instance of FeatureProperties. + public FeatureProperties() + { + } + + /// Initializes a new instance of FeatureProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Specifies type. + /// Specifies name. + internal FeatureProperties(string description, IDictionary properties, IDictionary tags, FeatureDataType? dataType, string featureName) : base(description, properties, tags) + { + DataType = dataType; + FeatureName = featureName; + } + + /// Specifies type. + public FeatureDataType? DataType { get; set; } + /// Specifies name. + public string FeatureName { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.Serialization.cs similarity index 51% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.Serialization.cs index b9c3a38995a8..5193c9e19f87 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.Serialization.cs @@ -8,42 +8,43 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { - public partial class MachineLearningFqdnEndpointsProperties + internal partial class FeatureResourceArmPaginatedResult { - internal static MachineLearningFqdnEndpointsProperties DeserializeMachineLearningFqdnEndpointsProperties(JsonElement element) + internal static FeatureResourceArmPaginatedResult DeserializeFeatureResourceArmPaginatedResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional category = default; - Optional> endpoints = default; + Optional nextLink = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (property.NameEquals("nextLink"u8)) { - category = property.Value.GetString(); + nextLink = property.Value.GetString(); continue; } - if (property.NameEquals("endpoints"u8)) + if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(MachineLearningFqdnEndpoint.DeserializeMachineLearningFqdnEndpoint(item)); + array.Add(FeatureData.DeserializeFeatureData(item)); } - endpoints = array; + value = array; continue; } } - return new MachineLearningFqdnEndpointsProperties(category.Value, Optional.ToList(endpoints)); + return new FeatureResourceArmPaginatedResult(nextLink.Value, Optional.ToList(value)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs new file mode 100644 index 000000000000..839956790741 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// A paginated list of Feature entities. + internal partial class FeatureResourceArmPaginatedResult + { + /// Initializes a new instance of FeatureResourceArmPaginatedResult. + internal FeatureResourceArmPaginatedResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of FeatureResourceArmPaginatedResult. + /// The link to the next page of Feature objects. If null, there are no additional pages. + /// An array of objects of type Feature. + internal FeatureResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page of Feature objects. If null, there are no additional pages. + public string NextLink { get; } + /// An array of objects of type Feature. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreSettings.Serialization.cs new file mode 100644 index 000000000000..f0dca2d9ac96 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreSettings.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeatureStoreSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ComputeRuntime)) + { + writer.WritePropertyName("computeRuntime"u8); + writer.WriteObjectValue(ComputeRuntime); + } + if (Optional.IsDefined(OfflineStoreConnectionName)) + { + writer.WritePropertyName("offlineStoreConnectionName"u8); + writer.WriteStringValue(OfflineStoreConnectionName); + } + if (Optional.IsDefined(OnlineStoreConnectionName)) + { + writer.WritePropertyName("onlineStoreConnectionName"u8); + writer.WriteStringValue(OnlineStoreConnectionName); + } + writer.WriteEndObject(); + } + + internal static FeatureStoreSettings DeserializeFeatureStoreSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional computeRuntime = default; + Optional offlineStoreConnectionName = default; + Optional onlineStoreConnectionName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("computeRuntime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + computeRuntime = ComputeRuntimeDto.DeserializeComputeRuntimeDto(property.Value); + continue; + } + if (property.NameEquals("offlineStoreConnectionName"u8)) + { + offlineStoreConnectionName = property.Value.GetString(); + continue; + } + if (property.NameEquals("onlineStoreConnectionName"u8)) + { + onlineStoreConnectionName = property.Value.GetString(); + continue; + } + } + return new FeatureStoreSettings(computeRuntime.Value, offlineStoreConnectionName.Value, onlineStoreConnectionName.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreSettings.cs new file mode 100644 index 000000000000..214be4047f8f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreSettings.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeatureStoreSettings. + public partial class FeatureStoreSettings + { + /// Initializes a new instance of FeatureStoreSettings. + public FeatureStoreSettings() + { + } + + /// Initializes a new instance of FeatureStoreSettings. + /// + /// + /// + internal FeatureStoreSettings(ComputeRuntimeDto computeRuntime, string offlineStoreConnectionName, string onlineStoreConnectionName) + { + ComputeRuntime = computeRuntime; + OfflineStoreConnectionName = offlineStoreConnectionName; + OnlineStoreConnectionName = onlineStoreConnectionName; + } + + /// Gets or sets the compute runtime. + internal ComputeRuntimeDto ComputeRuntime { get; set; } + /// Gets or sets the spark runtime version. + public string SparkRuntimeVersion + { + get => ComputeRuntime is null ? default : ComputeRuntime.SparkRuntimeVersion; + set + { + if (ComputeRuntime is null) + ComputeRuntime = new ComputeRuntimeDto(); + ComputeRuntime.SparkRuntimeVersion = value; + } + } + + /// Gets or sets the offline store connection name. + public string OfflineStoreConnectionName { get; set; } + /// Gets or sets the online store connection name. + public string OnlineStoreConnectionName { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSubset.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSubset.Serialization.cs new file mode 100644 index 000000000000..328a12e0dad0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSubset.Serialization.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeatureSubset : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("features"u8); + writer.WriteStartArray(); + foreach (var item in Features) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("filterType"u8); + writer.WriteStringValue(FilterType.ToString()); + writer.WriteEndObject(); + } + + internal static FeatureSubset DeserializeFeatureSubset(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList features = default; + MonitoringFeatureFilterType filterType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("features"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + features = array; + continue; + } + if (property.NameEquals("filterType"u8)) + { + filterType = new MonitoringFeatureFilterType(property.Value.GetString()); + continue; + } + } + return new FeatureSubset(filterType, features); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSubset.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSubset.cs new file mode 100644 index 000000000000..e0d119e7a4ea --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSubset.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeatureSubset. + public partial class FeatureSubset : MonitoringFeatureFilterBase + { + /// Initializes a new instance of FeatureSubset. + /// [Required] The list of features to include. + /// is null. + public FeatureSubset(IEnumerable features) + { + Argument.AssertNotNull(features, nameof(features)); + + Features = features.ToList(); + FilterType = MonitoringFeatureFilterType.FeatureSubset; + } + + /// Initializes a new instance of FeatureSubset. + /// [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over. + /// [Required] The list of features to include. + internal FeatureSubset(MonitoringFeatureFilterType filterType, IList features) : base(filterType) + { + Features = features; + FilterType = filterType; + } + + /// [Required] The list of features to include. + public IList Features { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureWindow.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureWindow.Serialization.cs new file mode 100644 index 000000000000..535dc5ced4c0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureWindow.Serialization.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeatureWindow : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(FeatureWindowEnd)) + { + if (FeatureWindowEnd != null) + { + writer.WritePropertyName("featureWindowEnd"u8); + writer.WriteStringValue(FeatureWindowEnd.Value, "O"); + } + else + { + writer.WriteNull("featureWindowEnd"); + } + } + if (Optional.IsDefined(FeatureWindowStart)) + { + if (FeatureWindowStart != null) + { + writer.WritePropertyName("featureWindowStart"u8); + writer.WriteStringValue(FeatureWindowStart.Value, "O"); + } + else + { + writer.WriteNull("featureWindowStart"); + } + } + writer.WriteEndObject(); + } + + internal static FeatureWindow DeserializeFeatureWindow(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional featureWindowEnd = default; + Optional featureWindowStart = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("featureWindowEnd"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + featureWindowEnd = null; + continue; + } + featureWindowEnd = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("featureWindowStart"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + featureWindowStart = null; + continue; + } + featureWindowStart = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new FeatureWindow(Optional.ToNullable(featureWindowEnd), Optional.ToNullable(featureWindowStart)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureWindow.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureWindow.cs new file mode 100644 index 000000000000..2a129fa63155 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureWindow.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Specifies the feature window. + public partial class FeatureWindow + { + /// Initializes a new instance of FeatureWindow. + public FeatureWindow() + { + } + + /// Initializes a new instance of FeatureWindow. + /// Specifies the feature window end time. + /// Specifies the feature window start time. + internal FeatureWindow(DateTimeOffset? featureWindowEnd, DateTimeOffset? featureWindowStart) + { + FeatureWindowEnd = featureWindowEnd; + FeatureWindowStart = featureWindowStart; + } + + /// Specifies the feature window end time. + public DateTimeOffset? FeatureWindowEnd { get; set; } + /// Specifies the feature window start time. + public DateTimeOffset? FeatureWindowStart { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerCollectionGetAllOptions.cs new file mode 100644 index 000000000000..b0b11a8c168b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerCollectionGetAllOptions.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeaturesetContainerCollectionGetAllOptions. + public partial class FeaturesetContainerCollectionGetAllOptions + { + /// Initializes a new instance of FeaturesetContainerCollectionGetAllOptions. + public FeaturesetContainerCollectionGetAllOptions() + { + } + + /// Continuation token for pagination. + public string Skip { get; set; } + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + public string Tags { get; set; } + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + public MachineLearningListViewType? ListViewType { get; set; } + /// page size. + public int? PageSize { get; set; } + /// name for the featureset. + public string Name { get; set; } + /// description for the feature set. + public string Description { get; set; } + /// createdBy user name. + public string CreatedBy { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerData.Serialization.cs new file mode 100644 index 000000000000..818bf5371250 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerData.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class FeaturesetContainerData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static FeaturesetContainerData DeserializeFeaturesetContainerData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + FeaturesetContainerProperties properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = FeaturesetContainerProperties.DeserializeFeaturesetContainerProperties(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new FeaturesetContainerData(id, name, type, systemData.Value, properties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.Serialization.cs new file mode 100644 index 000000000000..c23071fb0f30 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.Serialization.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeaturesetContainerProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsArchived)) + { + writer.WritePropertyName("isArchived"u8); + writer.WriteBooleanValue(IsArchived.Value); + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static FeaturesetContainerProperties DeserializeFeaturesetContainerProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional provisioningState = default; + Optional isArchived = default; + Optional latestVersion = default; + Optional nextVersion = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("isArchived"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isArchived = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("latestVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + latestVersion = null; + continue; + } + latestVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("nextVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + nextVersion = null; + continue; + } + nextVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new FeaturesetContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.cs new file mode 100644 index 000000000000..abe7ba08753b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing feature set. + public partial class FeaturesetContainerProperties : MachineLearningAssetContainer + { + /// Initializes a new instance of FeaturesetContainerProperties. + public FeaturesetContainerProperties() + { + } + + /// Initializes a new instance of FeaturesetContainerProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the featureset container. + internal FeaturesetContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + { + ProvisioningState = provisioningState; + } + + /// Provisioning state for the featureset container. + public AssetProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.Serialization.cs new file mode 100644 index 000000000000..109730330cde --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class FeaturesetContainerResourceArmPaginatedResult + { + internal static FeaturesetContainerResourceArmPaginatedResult DeserializeFeaturesetContainerResourceArmPaginatedResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FeaturesetContainerData.DeserializeFeaturesetContainerData(item)); + } + value = array; + continue; + } + } + return new FeaturesetContainerResourceArmPaginatedResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs new file mode 100644 index 000000000000..1c2bcd7ac708 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// A paginated list of FeaturesetContainer entities. + internal partial class FeaturesetContainerResourceArmPaginatedResult + { + /// Initializes a new instance of FeaturesetContainerResourceArmPaginatedResult. + internal FeaturesetContainerResourceArmPaginatedResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of FeaturesetContainerResourceArmPaginatedResult. + /// The link to the next page of FeaturesetContainer objects. If null, there are no additional pages. + /// An array of objects of type FeaturesetContainer. + internal FeaturesetContainerResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page of FeaturesetContainer objects. If null, there are no additional pages. + public string NextLink { get; } + /// An array of objects of type FeaturesetContainer. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.Serialization.cs new file mode 100644 index 000000000000..6662bc7b0a51 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.Serialization.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeaturesetJob + { + internal static FeaturesetJob DeserializeFeaturesetJob(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional createdDate = default; + Optional displayName = default; + Optional duration = default; + Optional experimentId = default; + Optional featureWindow = default; + Optional jobId = default; + Optional status = default; + Optional> tags = default; + Optional type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("createdDate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + createdDate = null; + continue; + } + createdDate = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("displayName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("duration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + duration = null; + continue; + } + duration = property.Value.GetTimeSpan("P"); + continue; + } + if (property.NameEquals("experimentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + experimentId = null; + continue; + } + experimentId = property.Value.GetString(); + continue; + } + if (property.NameEquals("featureWindow"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + featureWindow = null; + continue; + } + featureWindow = FeatureWindow.DeserializeFeatureWindow(property.Value); + continue; + } + if (property.NameEquals("jobId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + jobId = null; + continue; + } + jobId = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new MachineLearningJobStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new FeaturestoreJobType(property.Value.GetString()); + continue; + } + } + return new FeaturesetJob(Optional.ToNullable(createdDate), displayName.Value, Optional.ToNullable(duration), experimentId.Value, featureWindow.Value, jobId.Value, Optional.ToNullable(status), Optional.ToDictionary(tags), Optional.ToNullable(type)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.cs new file mode 100644 index 000000000000..ff94fa8ba78f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing the feature set job. + public partial class FeaturesetJob + { + /// Initializes a new instance of FeaturesetJob. + internal FeaturesetJob() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of FeaturesetJob. + /// Specifies the created date. + /// Specifies the display name. + /// Specifies the duration. + /// Specifies the experiment id. + /// Specifies the backfill feature window to be materialized. + /// Specifies the job id. + /// Specifies the job status. + /// Specifies the tags if any. + /// Specifies the feature store job type. + internal FeaturesetJob(DateTimeOffset? createdOn, string displayName, TimeSpan? duration, string experimentId, FeatureWindow featureWindow, string jobId, MachineLearningJobStatus? status, IReadOnlyDictionary tags, FeaturestoreJobType? featurestoreJobType) + { + CreatedOn = createdOn; + DisplayName = displayName; + Duration = duration; + ExperimentId = experimentId; + FeatureWindow = featureWindow; + JobId = jobId; + Status = status; + Tags = tags; + FeaturestoreJobType = featurestoreJobType; + } + + /// Specifies the created date. + public DateTimeOffset? CreatedOn { get; } + /// Specifies the display name. + public string DisplayName { get; } + /// Specifies the duration. + public TimeSpan? Duration { get; } + /// Specifies the experiment id. + public string ExperimentId { get; } + /// Specifies the backfill feature window to be materialized. + public FeatureWindow FeatureWindow { get; } + /// Specifies the job id. + public string JobId { get; } + /// Specifies the job status. + public MachineLearningJobStatus? Status { get; } + /// Specifies the tags if any. + public IReadOnlyDictionary Tags { get; } + /// Specifies the feature store job type. + public FeaturestoreJobType? FeaturestoreJobType { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.Serialization.cs new file mode 100644 index 000000000000..2435005569e8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class FeaturesetJobArmPaginatedResult + { + internal static FeaturesetJobArmPaginatedResult DeserializeFeaturesetJobArmPaginatedResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FeaturesetJob.DeserializeFeaturesetJob(item)); + } + value = array; + continue; + } + } + return new FeaturesetJobArmPaginatedResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs new file mode 100644 index 000000000000..db3ff1c29527 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// A paginated list of FeaturesetJob entities. + internal partial class FeaturesetJobArmPaginatedResult + { + /// Initializes a new instance of FeaturesetJobArmPaginatedResult. + internal FeaturesetJobArmPaginatedResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of FeaturesetJobArmPaginatedResult. + /// The link to the next page of FeaturesetJob objects. If null, there are no additional pages. + /// An array of objects of type FeaturesetJob. + internal FeaturesetJobArmPaginatedResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page of FeaturesetJob objects. If null, there are no additional pages. + public string NextLink { get; } + /// An array of objects of type FeaturesetJob. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetSpecification.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetSpecification.Serialization.cs new file mode 100644 index 000000000000..42cc6a4a256a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetSpecification.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class FeaturesetSpecification : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Path)) + { + if (Path != null) + { + writer.WritePropertyName("path"u8); + writer.WriteStringValue(Path); + } + else + { + writer.WriteNull("path"); + } + } + writer.WriteEndObject(); + } + + internal static FeaturesetSpecification DeserializeFeaturesetSpecification(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional path = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("path"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + path = null; + continue; + } + path = property.Value.GetString(); + continue; + } + } + return new FeaturesetSpecification(path.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetSpecification.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetSpecification.cs new file mode 100644 index 000000000000..81ae4147bd32 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetSpecification.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing specification. + internal partial class FeaturesetSpecification + { + /// Initializes a new instance of FeaturesetSpecification. + public FeaturesetSpecification() + { + } + + /// Initializes a new instance of FeaturesetSpecification. + /// Specifies the spec path. + internal FeaturesetSpecification(string path) + { + Path = path; + } + + /// Specifies the spec path. + public string Path { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.Serialization.cs new file mode 100644 index 000000000000..b241beb1c344 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeaturesetVersionBackfillContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(DisplayName)) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + if (Optional.IsDefined(FeatureWindow)) + { + if (FeatureWindow != null) + { + writer.WritePropertyName("featureWindow"u8); + writer.WriteObjectValue(FeatureWindow); + } + else + { + writer.WriteNull("featureWindow"); + } + } + if (Optional.IsDefined(Resource)) + { + writer.WritePropertyName("resource"u8); + writer.WriteObjectValue(Resource); + } + if (Optional.IsCollectionDefined(SparkConfiguration)) + { + writer.WritePropertyName("sparkConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SparkConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.cs new file mode 100644 index 000000000000..bcabb4a8130b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Request payload for creating a backfill request for a given feature set version. + public partial class FeaturesetVersionBackfillContent + { + /// Initializes a new instance of FeaturesetVersionBackfillContent. + public FeaturesetVersionBackfillContent() + { + SparkConfiguration = new ChangeTrackingDictionary(); + Tags = new ChangeTrackingDictionary(); + } + + /// Specifies description. + public string Description { get; set; } + /// Specifies description. + public string DisplayName { get; set; } + /// Specifies the backfill feature window to be materialized. + public FeatureWindow FeatureWindow { get; set; } + /// Specifies the compute resource settings. + internal MaterializationComputeResource Resource { get; set; } + /// Specifies the instance type. + public string ResourceInstanceType + { + get => Resource is null ? default : Resource.InstanceType; + set + { + if (Resource is null) + Resource = new MaterializationComputeResource(); + Resource.InstanceType = value; + } + } + + /// Specifies the spark compute settings. + public IDictionary SparkConfiguration { get; } + /// Specifies the tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionCollectionGetAllOptions.cs new file mode 100644 index 000000000000..da4426cdd2a3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionCollectionGetAllOptions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeaturesetVersionCollectionGetAllOptions. + public partial class FeaturesetVersionCollectionGetAllOptions + { + /// Initializes a new instance of FeaturesetVersionCollectionGetAllOptions. + public FeaturesetVersionCollectionGetAllOptions() + { + } + + /// Continuation token for pagination. + public string Skip { get; set; } + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + public string Tags { get; set; } + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + public MachineLearningListViewType? ListViewType { get; set; } + /// page size. + public int? PageSize { get; set; } + /// name for the featureset version. + public string VersionName { get; set; } + /// featureset version. + public string Version { get; set; } + /// description for the feature set version. + public string Description { get; set; } + /// createdBy user name. + public string CreatedBy { get; set; } + /// Specifies the featurestore stage. + public string Stage { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionData.Serialization.cs new file mode 100644 index 000000000000..ca71170aa54b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionData.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class FeaturesetVersionData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static FeaturesetVersionData DeserializeFeaturesetVersionData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + FeaturesetVersionProperties properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = FeaturesetVersionProperties.DeserializeFeaturesetVersionProperties(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new FeaturesetVersionData(id, name, type, systemData.Value, properties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.Serialization.cs new file mode 100644 index 000000000000..d5646c5c4b85 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.Serialization.cs @@ -0,0 +1,290 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeaturesetVersionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Entities)) + { + if (Entities != null) + { + writer.WritePropertyName("entities"u8); + writer.WriteStartArray(); + foreach (var item in Entities) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("entities"); + } + } + if (Optional.IsDefined(MaterializationSettings)) + { + if (MaterializationSettings != null) + { + writer.WritePropertyName("materializationSettings"u8); + writer.WriteObjectValue(MaterializationSettings); + } + else + { + writer.WriteNull("materializationSettings"); + } + } + if (Optional.IsDefined(Specification)) + { + if (Specification != null) + { + writer.WritePropertyName("specification"u8); + writer.WriteObjectValue(Specification); + } + else + { + writer.WriteNull("specification"); + } + } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } + if (Optional.IsDefined(IsAnonymous)) + { + writer.WritePropertyName("isAnonymous"u8); + writer.WriteBooleanValue(IsAnonymous.Value); + } + if (Optional.IsDefined(IsArchived)) + { + writer.WritePropertyName("isArchived"u8); + writer.WriteBooleanValue(IsArchived.Value); + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static FeaturesetVersionProperties DeserializeFeaturesetVersionProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> entities = default; + Optional materializationSettings = default; + Optional provisioningState = default; + Optional specification = default; + Optional stage = default; + Optional autoDeleteSetting = default; + Optional isAnonymous = default; + Optional isArchived = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("entities"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + entities = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + entities = array; + continue; + } + if (property.NameEquals("materializationSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + materializationSettings = null; + continue; + } + materializationSettings = MaterializationSettings.DeserializeMaterializationSettings(property.Value); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("specification"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + specification = null; + continue; + } + specification = FeaturesetSpecification.DeserializeFeaturesetSpecification(property.Value); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } + if (property.NameEquals("isAnonymous"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isAnonymous = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isArchived"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isArchived = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new FeaturesetVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToList(entities), materializationSettings.Value, Optional.ToNullable(provisioningState), specification.Value, stage.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.cs new file mode 100644 index 000000000000..693af73da79c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing feature set version. + public partial class FeaturesetVersionProperties : MachineLearningAssetBase + { + /// Initializes a new instance of FeaturesetVersionProperties. + public FeaturesetVersionProperties() + { + Entities = new ChangeTrackingList(); + } + + /// Initializes a new instance of FeaturesetVersionProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + /// Specifies list of entities. + /// Specifies the materialization settings. + /// Provisioning state for the featureset version container. + /// Specifies the feature spec details. + /// Specifies the asset stage. + internal FeaturesetVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IList entities, MaterializationSettings materializationSettings, AssetProvisioningState? provisioningState, FeaturesetSpecification specification, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) + { + Entities = entities; + MaterializationSettings = materializationSettings; + ProvisioningState = provisioningState; + Specification = specification; + Stage = stage; + } + + /// Specifies list of entities. + public IList Entities { get; set; } + /// Specifies the materialization settings. + public MaterializationSettings MaterializationSettings { get; set; } + /// Provisioning state for the featureset version container. + public AssetProvisioningState? ProvisioningState { get; } + /// Specifies the feature spec details. + internal FeaturesetSpecification Specification { get; set; } + /// Specifies the spec path. + public string SpecificationPath + { + get => Specification is null ? default : Specification.Path; + set + { + if (Specification is null) + Specification = new FeaturesetSpecification(); + Specification.Path = value; + } + } + + /// Specifies the asset stage. + public string Stage { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.Serialization.cs new file mode 100644 index 000000000000..549a2d62fdeb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class FeaturesetVersionResourceArmPaginatedResult + { + internal static FeaturesetVersionResourceArmPaginatedResult DeserializeFeaturesetVersionResourceArmPaginatedResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FeaturesetVersionData.DeserializeFeaturesetVersionData(item)); + } + value = array; + continue; + } + } + return new FeaturesetVersionResourceArmPaginatedResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs new file mode 100644 index 000000000000..ef6187df3e68 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// A paginated list of FeaturesetVersion entities. + internal partial class FeaturesetVersionResourceArmPaginatedResult + { + /// Initializes a new instance of FeaturesetVersionResourceArmPaginatedResult. + internal FeaturesetVersionResourceArmPaginatedResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of FeaturesetVersionResourceArmPaginatedResult. + /// The link to the next page of FeaturesetVersion objects. If null, there are no additional pages. + /// An array of objects of type FeaturesetVersion. + internal FeaturesetVersionResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page of FeaturesetVersion objects. If null, there are no additional pages. + public string NextLink { get; } + /// An array of objects of type FeaturesetVersion. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerCollectionGetAllOptions.cs new file mode 100644 index 000000000000..c419a2841d26 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerCollectionGetAllOptions.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeaturestoreEntityContainerCollectionGetAllOptions. + public partial class FeaturestoreEntityContainerCollectionGetAllOptions + { + /// Initializes a new instance of FeaturestoreEntityContainerCollectionGetAllOptions. + public FeaturestoreEntityContainerCollectionGetAllOptions() + { + } + + /// Continuation token for pagination. + public string Skip { get; set; } + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + public string Tags { get; set; } + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + public MachineLearningListViewType? ListViewType { get; set; } + /// page size. + public int? PageSize { get; set; } + /// name for the featurestore entity. + public string Name { get; set; } + /// description for the featurestore entity. + public string Description { get; set; } + /// createdBy user name. + public string CreatedBy { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerData.Serialization.cs new file mode 100644 index 000000000000..a9b23714fe54 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerData.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class FeaturestoreEntityContainerData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static FeaturestoreEntityContainerData DeserializeFeaturestoreEntityContainerData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + FeaturestoreEntityContainerProperties properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = FeaturestoreEntityContainerProperties.DeserializeFeaturestoreEntityContainerProperties(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new FeaturestoreEntityContainerData(id, name, type, systemData.Value, properties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.Serialization.cs new file mode 100644 index 000000000000..c59d992bc69e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.Serialization.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeaturestoreEntityContainerProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsArchived)) + { + writer.WritePropertyName("isArchived"u8); + writer.WriteBooleanValue(IsArchived.Value); + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static FeaturestoreEntityContainerProperties DeserializeFeaturestoreEntityContainerProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional provisioningState = default; + Optional isArchived = default; + Optional latestVersion = default; + Optional nextVersion = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("isArchived"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isArchived = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("latestVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + latestVersion = null; + continue; + } + latestVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("nextVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + nextVersion = null; + continue; + } + nextVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new FeaturestoreEntityContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.cs new file mode 100644 index 000000000000..9a9b56011cab --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing feature entity. + public partial class FeaturestoreEntityContainerProperties : MachineLearningAssetContainer + { + /// Initializes a new instance of FeaturestoreEntityContainerProperties. + public FeaturestoreEntityContainerProperties() + { + } + + /// Initializes a new instance of FeaturestoreEntityContainerProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the featurestore entity container. + internal FeaturestoreEntityContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + { + ProvisioningState = provisioningState; + } + + /// Provisioning state for the featurestore entity container. + public AssetProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.Serialization.cs new file mode 100644 index 000000000000..e0bc36f50d63 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class FeaturestoreEntityContainerResourceArmPaginatedResult + { + internal static FeaturestoreEntityContainerResourceArmPaginatedResult DeserializeFeaturestoreEntityContainerResourceArmPaginatedResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(item)); + } + value = array; + continue; + } + } + return new FeaturestoreEntityContainerResourceArmPaginatedResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs new file mode 100644 index 000000000000..7efe78dad265 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// A paginated list of FeaturestoreEntityContainer entities. + internal partial class FeaturestoreEntityContainerResourceArmPaginatedResult + { + /// Initializes a new instance of FeaturestoreEntityContainerResourceArmPaginatedResult. + internal FeaturestoreEntityContainerResourceArmPaginatedResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of FeaturestoreEntityContainerResourceArmPaginatedResult. + /// The link to the next page of FeaturestoreEntityContainer objects. If null, there are no additional pages. + /// An array of objects of type FeaturestoreEntityContainer. + internal FeaturestoreEntityContainerResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page of FeaturestoreEntityContainer objects. If null, there are no additional pages. + public string NextLink { get; } + /// An array of objects of type FeaturestoreEntityContainer. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionCollectionGetAllOptions.cs new file mode 100644 index 000000000000..ca5b3d0b2d80 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionCollectionGetAllOptions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeaturestoreEntityVersionCollectionGetAllOptions. + public partial class FeaturestoreEntityVersionCollectionGetAllOptions + { + /// Initializes a new instance of FeaturestoreEntityVersionCollectionGetAllOptions. + public FeaturestoreEntityVersionCollectionGetAllOptions() + { + } + + /// Continuation token for pagination. + public string Skip { get; set; } + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + public string Tags { get; set; } + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + public MachineLearningListViewType? ListViewType { get; set; } + /// page size. + public int? PageSize { get; set; } + /// name for the featurestore entity version. + public string VersionName { get; set; } + /// featurestore entity version. + public string Version { get; set; } + /// description for the feature entity version. + public string Description { get; set; } + /// createdBy user name. + public string CreatedBy { get; set; } + /// Specifies the featurestore stage. + public string Stage { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionData.Serialization.cs new file mode 100644 index 000000000000..9ac34a92c24d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionData.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class FeaturestoreEntityVersionData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static FeaturestoreEntityVersionData DeserializeFeaturestoreEntityVersionData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + FeaturestoreEntityVersionProperties properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = FeaturestoreEntityVersionProperties.DeserializeFeaturestoreEntityVersionProperties(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new FeaturestoreEntityVersionData(id, name, type, systemData.Value, properties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.Serialization.cs new file mode 100644 index 000000000000..7f3990153464 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.Serialization.cs @@ -0,0 +1,244 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FeaturestoreEntityVersionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(IndexColumns)) + { + if (IndexColumns != null) + { + writer.WritePropertyName("indexColumns"u8); + writer.WriteStartArray(); + foreach (var item in IndexColumns) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("indexColumns"); + } + } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } + if (Optional.IsDefined(IsAnonymous)) + { + writer.WritePropertyName("isAnonymous"u8); + writer.WriteBooleanValue(IsAnonymous.Value); + } + if (Optional.IsDefined(IsArchived)) + { + writer.WritePropertyName("isArchived"u8); + writer.WriteBooleanValue(IsArchived.Value); + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static FeaturestoreEntityVersionProperties DeserializeFeaturestoreEntityVersionProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> indexColumns = default; + Optional provisioningState = default; + Optional stage = default; + Optional autoDeleteSetting = default; + Optional isAnonymous = default; + Optional isArchived = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("indexColumns"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + indexColumns = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(IndexColumn.DeserializeIndexColumn(item)); + } + indexColumns = array; + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } + if (property.NameEquals("isAnonymous"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isAnonymous = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isArchived"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isArchived = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new FeaturestoreEntityVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToList(indexColumns), Optional.ToNullable(provisioningState), stage.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.cs new file mode 100644 index 000000000000..064380b91fb6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing feature entity version. + public partial class FeaturestoreEntityVersionProperties : MachineLearningAssetBase + { + /// Initializes a new instance of FeaturestoreEntityVersionProperties. + public FeaturestoreEntityVersionProperties() + { + IndexColumns = new ChangeTrackingList(); + } + + /// Initializes a new instance of FeaturestoreEntityVersionProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + /// Specifies index columns. + /// Provisioning state for the featurestore entity version. + /// Specifies the asset stage. + internal FeaturestoreEntityVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IList indexColumns, AssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) + { + IndexColumns = indexColumns; + ProvisioningState = provisioningState; + Stage = stage; + } + + /// Specifies index columns. + public IList IndexColumns { get; set; } + /// Provisioning state for the featurestore entity version. + public AssetProvisioningState? ProvisioningState { get; } + /// Specifies the asset stage. + public string Stage { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.Serialization.cs new file mode 100644 index 000000000000..45b7ed650630 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class FeaturestoreEntityVersionResourceArmPaginatedResult + { + internal static FeaturestoreEntityVersionResourceArmPaginatedResult DeserializeFeaturestoreEntityVersionResourceArmPaginatedResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(item)); + } + value = array; + continue; + } + } + return new FeaturestoreEntityVersionResourceArmPaginatedResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs new file mode 100644 index 000000000000..85ba286ed363 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// A paginated list of FeaturestoreEntityVersion entities. + internal partial class FeaturestoreEntityVersionResourceArmPaginatedResult + { + /// Initializes a new instance of FeaturestoreEntityVersionResourceArmPaginatedResult. + internal FeaturestoreEntityVersionResourceArmPaginatedResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of FeaturestoreEntityVersionResourceArmPaginatedResult. + /// The link to the next page of FeaturestoreEntityVersion objects. If null, there are no additional pages. + /// An array of objects of type FeaturestoreEntityVersion. + internal FeaturestoreEntityVersionResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page of FeaturestoreEntityVersion objects. If null, there are no additional pages. + public string NextLink { get; } + /// An array of objects of type FeaturestoreEntityVersion. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreJobType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreJobType.cs new file mode 100644 index 000000000000..1b591d1ec72f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreJobType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FeaturestoreJobType. + public readonly partial struct FeaturestoreJobType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FeaturestoreJobType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RecurrentMaterializationValue = "RecurrentMaterialization"; + private const string BackfillMaterializationValue = "BackfillMaterialization"; + + /// RecurrentMaterialization. + public static FeaturestoreJobType RecurrentMaterialization { get; } = new FeaturestoreJobType(RecurrentMaterializationValue); + /// BackfillMaterialization. + public static FeaturestoreJobType BackfillMaterialization { get; } = new FeaturestoreJobType(BackfillMaterializationValue); + /// Determines if two values are the same. + public static bool operator ==(FeaturestoreJobType left, FeaturestoreJobType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FeaturestoreJobType left, FeaturestoreJobType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FeaturestoreJobType(string value) => new FeaturestoreJobType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FeaturestoreJobType other && Equals(other); + /// + public bool Equals(FeaturestoreJobType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FileSystemSource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FileSystemSource.Serialization.cs new file mode 100644 index 000000000000..143281f4c1a5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FileSystemSource.Serialization.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FileSystemSource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Path)) + { + if (Path != null) + { + writer.WritePropertyName("path"u8); + writer.WriteStringValue(Path); + } + else + { + writer.WriteNull("path"); + } + } + if (Optional.IsDefined(Connection)) + { + if (Connection != null) + { + writer.WritePropertyName("connection"u8); + writer.WriteStringValue(Connection); + } + else + { + writer.WriteNull("connection"); + } + } + writer.WritePropertyName("sourceType"u8); + writer.WriteStringValue(SourceType.ToString()); + writer.WriteEndObject(); + } + + internal static FileSystemSource DeserializeFileSystemSource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional path = default; + Optional connection = default; + DataImportSourceType sourceType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("path"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + path = null; + continue; + } + path = property.Value.GetString(); + continue; + } + if (property.NameEquals("connection"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connection = null; + continue; + } + connection = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceType"u8)) + { + sourceType = new DataImportSourceType(property.Value.GetString()); + continue; + } + } + return new FileSystemSource(connection.Value, sourceType, path.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FileSystemSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FileSystemSource.cs new file mode 100644 index 000000000000..4a34fed38177 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FileSystemSource.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The FileSystemSource. + public partial class FileSystemSource : DataImportSource + { + /// Initializes a new instance of FileSystemSource. + public FileSystemSource() + { + SourceType = DataImportSourceType.FileSystem; + } + + /// Initializes a new instance of FileSystemSource. + /// Workspace connection for data import source storage. + /// [Required] Specifies the type of data. + /// Path on data import FileSystem source. + internal FileSystemSource(string connection, DataImportSourceType sourceType, string path) : base(connection, sourceType) + { + Path = path; + SourceType = sourceType; + } + + /// Path on data import FileSystem source. + public string Path { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FixedInputData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FixedInputData.Serialization.cs new file mode 100644 index 000000000000..941d8d51dbff --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FixedInputData.Serialization.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FixedInputData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Columns)) + { + if (Columns != null) + { + writer.WritePropertyName("columns"u8); + writer.WriteStartObject(); + foreach (var item in Columns) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("columns"); + } + } + if (Optional.IsDefined(DataContext)) + { + if (DataContext != null) + { + writer.WritePropertyName("dataContext"u8); + writer.WriteStringValue(DataContext); + } + else + { + writer.WriteNull("dataContext"); + } + } + writer.WritePropertyName("inputDataType"u8); + writer.WriteStringValue(InputDataType.ToString()); + writer.WritePropertyName("jobInputType"u8); + writer.WriteStringValue(JobInputType.ToString()); + writer.WritePropertyName("uri"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + writer.WriteEndObject(); + } + + internal static FixedInputData DeserializeFixedInputData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> columns = default; + Optional dataContext = default; + MonitoringInputDataType inputDataType = default; + JobInputType jobInputType = default; + Uri uri = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("columns"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + columns = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + columns = dictionary; + continue; + } + if (property.NameEquals("dataContext"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataContext = null; + continue; + } + dataContext = property.Value.GetString(); + continue; + } + if (property.NameEquals("inputDataType"u8)) + { + inputDataType = new MonitoringInputDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("jobInputType"u8)) + { + jobInputType = new JobInputType(property.Value.GetString()); + continue; + } + if (property.NameEquals("uri"u8)) + { + uri = new Uri(property.Value.GetString()); + continue; + } + } + return new FixedInputData(Optional.ToDictionary(columns), dataContext.Value, inputDataType, jobInputType, uri); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FixedInputData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FixedInputData.cs new file mode 100644 index 000000000000..b0338343e001 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FixedInputData.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Fixed input data definition. + public partial class FixedInputData : MonitoringInputDataBase + { + /// Initializes a new instance of FixedInputData. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + /// is null. + public FixedInputData(JobInputType jobInputType, Uri uri) : base(jobInputType, uri) + { + Argument.AssertNotNull(uri, nameof(uri)); + + InputDataType = MonitoringInputDataType.Fixed; + } + + /// Initializes a new instance of FixedInputData. + /// Mapping of column names to special uses. + /// The context metadata of the data source. + /// [Required] Specifies the type of signal to monitor. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + internal FixedInputData(IDictionary columns, string dataContext, MonitoringInputDataType inputDataType, JobInputType jobInputType, Uri uri) : base(columns, dataContext, inputDataType, jobInputType, uri) + { + InputDataType = inputDataType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingModel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingModel.cs index 7dcd291ca8ba..84435a3ff6b6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingModel.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingModel.cs @@ -93,7 +93,7 @@ public ForecastingModel(string value) public static ForecastingModel SGD { get; } = new ForecastingModel(SGDValue); /// /// Random forest is a supervised learning algorithm. - /// The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + /// The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. /// The general idea of the bagging method is that a combination of learning models increases the overall result. /// public static ForecastingModel RandomForest { get; } = new ForecastingModel(RandomForestValue); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.Serialization.cs index 77ef47a261c6..3e484190837c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.Serialization.cs @@ -45,6 +45,23 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("featureLags"u8); writer.WriteStringValue(FeatureLags.Value.ToString()); } + if (Optional.IsCollectionDefined(FeaturesUnknownAtForecastTime)) + { + if (FeaturesUnknownAtForecastTime != null) + { + writer.WritePropertyName("featuresUnknownAtForecastTime"u8); + writer.WriteStartArray(); + foreach (var item in FeaturesUnknownAtForecastTime) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("featuresUnknownAtForecastTime"); + } + } if (Optional.IsDefined(ForecastHorizon)) { writer.WritePropertyName("forecastHorizon"u8); @@ -147,6 +164,7 @@ internal static ForecastingSettings DeserializeForecastingSettings(JsonElement e Optional countryOrRegionForHolidays = default; Optional cvStepSize = default; Optional featureLags = default; + Optional> featuresUnknownAtForecastTime = default; Optional forecastHorizon = default; Optional frequency = default; Optional seasonality = default; @@ -188,6 +206,21 @@ internal static ForecastingSettings DeserializeForecastingSettings(JsonElement e featureLags = new MachineLearningFeatureLag(property.Value.GetString()); continue; } + if (property.NameEquals("featuresUnknownAtForecastTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + featuresUnknownAtForecastTime = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + featuresUnknownAtForecastTime = array; + continue; + } if (property.NameEquals("forecastHorizon"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -289,7 +322,7 @@ internal static ForecastingSettings DeserializeForecastingSettings(JsonElement e continue; } } - return new ForecastingSettings(countryOrRegionForHolidays.Value, Optional.ToNullable(cvStepSize), Optional.ToNullable(featureLags), forecastHorizon.Value, frequency.Value, seasonality.Value, Optional.ToNullable(shortSeriesHandlingConfig), Optional.ToNullable(targetAggregateFunction), targetLags.Value, targetRollingWindowSize.Value, timeColumnName.Value, Optional.ToList(timeSeriesIdColumnNames), Optional.ToNullable(useStl)); + return new ForecastingSettings(countryOrRegionForHolidays.Value, Optional.ToNullable(cvStepSize), Optional.ToNullable(featureLags), Optional.ToList(featuresUnknownAtForecastTime), forecastHorizon.Value, frequency.Value, seasonality.Value, Optional.ToNullable(shortSeriesHandlingConfig), Optional.ToNullable(targetAggregateFunction), targetLags.Value, targetRollingWindowSize.Value, timeColumnName.Value, Optional.ToList(timeSeriesIdColumnNames), Optional.ToNullable(useStl)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.cs index 7573a3c1d72e..bfa7d372a15b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.cs @@ -16,6 +16,7 @@ public partial class ForecastingSettings /// Initializes a new instance of ForecastingSettings. public ForecastingSettings() { + FeaturesUnknownAtForecastTime = new ChangeTrackingList(); TimeSeriesIdColumnNames = new ChangeTrackingList(); } @@ -30,6 +31,10 @@ public ForecastingSettings() /// three days apart. /// /// Flag for generating lags for the numeric features with 'auto' or null. + /// + /// 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. + /// /// /// The desired maximum forecast horizon in units of time-series frequency. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -63,11 +68,12 @@ public ForecastingSettings() /// If grain is not defined, the data set is assumed to be one time-series. This parameter is used with task type forecasting. /// /// Configure STL Decomposition of the time-series target column. - internal ForecastingSettings(string countryOrRegionForHolidays, int? cvStepSize, MachineLearningFeatureLag? featureLags, ForecastHorizon forecastHorizon, string frequency, ForecastingSeasonality seasonality, MachineLearningShortSeriesHandlingConfiguration? shortSeriesHandlingConfig, TargetAggregationFunction? targetAggregateFunction, TargetLags targetLags, TargetRollingWindowSize targetRollingWindowSize, string timeColumnName, IList timeSeriesIdColumnNames, MachineLearningUseStl? useStl) + internal ForecastingSettings(string countryOrRegionForHolidays, int? cvStepSize, MachineLearningFeatureLag? featureLags, IList featuresUnknownAtForecastTime, ForecastHorizon forecastHorizon, string frequency, ForecastingSeasonality seasonality, MachineLearningShortSeriesHandlingConfiguration? shortSeriesHandlingConfig, TargetAggregationFunction? targetAggregateFunction, TargetLags targetLags, TargetRollingWindowSize targetRollingWindowSize, string timeColumnName, IList timeSeriesIdColumnNames, MachineLearningUseStl? useStl) { CountryOrRegionForHolidays = countryOrRegionForHolidays; CvStepSize = cvStepSize; FeatureLags = featureLags; + FeaturesUnknownAtForecastTime = featuresUnknownAtForecastTime; ForecastHorizon = forecastHorizon; Frequency = frequency; Seasonality = seasonality; @@ -94,6 +100,11 @@ internal ForecastingSettings(string countryOrRegionForHolidays, int? cvStepSize, /// Flag for generating lags for the numeric features with 'auto' or null. public MachineLearningFeatureLag? FeatureLags { get; set; } /// + /// 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. + /// + public IList FeaturesUnknownAtForecastTime { get; set; } + /// /// The desired maximum forecast horizon in units of time-series frequency. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.Serialization.cs index 9f57db8fee59..b70a0b8d3e8e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.Serialization.cs @@ -93,6 +93,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("stackEnsembleSettings"); } } + if (Optional.IsDefined(TrainingMode)) + { + writer.WritePropertyName("trainingMode"u8); + writer.WriteStringValue(TrainingMode.Value.ToString()); + } writer.WriteEndObject(); } @@ -111,6 +116,7 @@ internal static ForecastingTrainingSettings DeserializeForecastingTrainingSettin Optional enableVoteEnsemble = default; Optional ensembleModelDownloadTimeout = default; Optional stackEnsembleSettings = default; + Optional trainingMode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("allowedTrainingAlgorithms"u8)) @@ -207,8 +213,17 @@ internal static ForecastingTrainingSettings DeserializeForecastingTrainingSettin stackEnsembleSettings = MachineLearningStackEnsembleSettings.DeserializeMachineLearningStackEnsembleSettings(property.Value); continue; } + if (property.NameEquals("trainingMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + trainingMode = new TrainingMode(property.Value.GetString()); + continue; + } } - return new ForecastingTrainingSettings(Optional.ToNullable(enableDnnTraining), Optional.ToNullable(enableModelExplainability), Optional.ToNullable(enableOnnxCompatibleModels), Optional.ToNullable(enableStackEnsemble), Optional.ToNullable(enableVoteEnsemble), Optional.ToNullable(ensembleModelDownloadTimeout), stackEnsembleSettings.Value, Optional.ToList(allowedTrainingAlgorithms), Optional.ToList(blockedTrainingAlgorithms)); + return new ForecastingTrainingSettings(Optional.ToNullable(enableDnnTraining), Optional.ToNullable(enableModelExplainability), Optional.ToNullable(enableOnnxCompatibleModels), Optional.ToNullable(enableStackEnsemble), Optional.ToNullable(enableVoteEnsemble), Optional.ToNullable(ensembleModelDownloadTimeout), stackEnsembleSettings.Value, Optional.ToNullable(trainingMode), Optional.ToList(allowedTrainingAlgorithms), Optional.ToList(blockedTrainingAlgorithms)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.cs index 08c2180e84b9..1075463d97a7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.cs @@ -32,9 +32,14 @@ public ForecastingTrainingSettings() /// Configure this parameter with a higher value than 300 secs, if more time is needed. /// /// Stack ensemble settings for stack ensemble run. + /// + /// 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. + /// /// Allowed models for forecasting task. /// Blocked models for forecasting task. - internal ForecastingTrainingSettings(bool? isDnnTrainingEnabled, bool? isModelExplainabilityEnabled, bool? isOnnxCompatibleModelsEnabled, bool? isStackEnsembleEnabled, bool? isVoteEnsembleEnabled, TimeSpan? ensembleModelDownloadTimeout, MachineLearningStackEnsembleSettings stackEnsembleSettings, IList allowedTrainingAlgorithms, IList blockedTrainingAlgorithms) : base(isDnnTrainingEnabled, isModelExplainabilityEnabled, isOnnxCompatibleModelsEnabled, isStackEnsembleEnabled, isVoteEnsembleEnabled, ensembleModelDownloadTimeout, stackEnsembleSettings) + internal ForecastingTrainingSettings(bool? isDnnTrainingEnabled, bool? isModelExplainabilityEnabled, bool? isOnnxCompatibleModelsEnabled, bool? isStackEnsembleEnabled, bool? isVoteEnsembleEnabled, TimeSpan? ensembleModelDownloadTimeout, MachineLearningStackEnsembleSettings stackEnsembleSettings, TrainingMode? trainingMode, IList allowedTrainingAlgorithms, IList blockedTrainingAlgorithms) : base(isDnnTrainingEnabled, isModelExplainabilityEnabled, isOnnxCompatibleModelsEnabled, isStackEnsembleEnabled, isVoteEnsembleEnabled, ensembleModelDownloadTimeout, stackEnsembleSettings, trainingMode) { AllowedTrainingAlgorithms = allowedTrainingAlgorithms; BlockedTrainingAlgorithms = blockedTrainingAlgorithms; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.Serialization.cs new file mode 100644 index 000000000000..e6b5a1b7b74e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.Serialization.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FqdnEndpointsPropertyBag + { + internal static FqdnEndpointsPropertyBag DeserializeFqdnEndpointsPropertyBag(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional properties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = MachineLearningFqdnEndpoints.DeserializeMachineLearningFqdnEndpoints(property.Value); + continue; + } + } + return new FqdnEndpointsPropertyBag(properties.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.cs new file mode 100644 index 000000000000..fe8b777b67e8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Property bag for FQDN endpoints result. + public partial class FqdnEndpointsPropertyBag + { + /// Initializes a new instance of FqdnEndpointsPropertyBag. + internal FqdnEndpointsPropertyBag() + { + } + + /// Initializes a new instance of FqdnEndpointsPropertyBag. + /// + internal FqdnEndpointsPropertyBag(MachineLearningFqdnEndpoints properties) + { + Properties = properties; + } + + /// Gets the properties. + public MachineLearningFqdnEndpoints Properties { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.Serialization.cs new file mode 100644 index 000000000000..eb31ee093dbc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.Serialization.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class FqdnOutboundRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Destination)) + { + writer.WritePropertyName("destination"u8); + writer.WriteStringValue(Destination); + } + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + writer.WritePropertyName("type"u8); + writer.WriteStringValue(RuleType.ToString()); + writer.WriteEndObject(); + } + + internal static FqdnOutboundRule DeserializeFqdnOutboundRule(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional destination = default; + Optional category = default; + Optional status = default; + RuleType type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("destination"u8)) + { + destination = property.Value.GetString(); + continue; + } + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + category = new RuleCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new RuleStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new RuleType(property.Value.GetString()); + continue; + } + } + return new FqdnOutboundRule(Optional.ToNullable(category), Optional.ToNullable(status), type, destination.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.cs new file mode 100644 index 000000000000..df2fbcef7a0b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// FQDN Outbound Rule for the managed network of a machine learning workspace. + public partial class FqdnOutboundRule : OutboundRule + { + /// Initializes a new instance of FqdnOutboundRule. + public FqdnOutboundRule() + { + RuleType = RuleType.Fqdn; + } + + /// Initializes a new instance of FqdnOutboundRule. + /// Category of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// + internal FqdnOutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType, string destination) : base(category, status, ruleType) + { + Destination = destination; + RuleType = ruleType; + } + + /// Gets or sets the destination. + public string Destination { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetric.cs new file mode 100644 index 000000000000..a40ed69bb1e9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetric.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Generation safety quality metric enum. + public readonly partial struct GenerationSafetyQualityMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public GenerationSafetyQualityMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AcceptableGroundednessScorePerInstanceValue = "AcceptableGroundednessScorePerInstance"; + private const string AggregatedGroundednessPassRateValue = "AggregatedGroundednessPassRate"; + private const string AcceptableCoherenceScorePerInstanceValue = "AcceptableCoherenceScorePerInstance"; + private const string AggregatedCoherencePassRateValue = "AggregatedCoherencePassRate"; + private const string AcceptableFluencyScorePerInstanceValue = "AcceptableFluencyScorePerInstance"; + private const string AggregatedFluencyPassRateValue = "AggregatedFluencyPassRate"; + private const string AcceptableSimilarityScorePerInstanceValue = "AcceptableSimilarityScorePerInstance"; + private const string AggregatedSimilarityPassRateValue = "AggregatedSimilarityPassRate"; + private const string AcceptableRelevanceScorePerInstanceValue = "AcceptableRelevanceScorePerInstance"; + private const string AggregatedRelevancePassRateValue = "AggregatedRelevancePassRate"; + + /// AcceptableGroundednessScorePerInstance. + public static GenerationSafetyQualityMetric AcceptableGroundednessScorePerInstance { get; } = new GenerationSafetyQualityMetric(AcceptableGroundednessScorePerInstanceValue); + /// AggregatedGroundednessPassRate. + public static GenerationSafetyQualityMetric AggregatedGroundednessPassRate { get; } = new GenerationSafetyQualityMetric(AggregatedGroundednessPassRateValue); + /// AcceptableCoherenceScorePerInstance. + public static GenerationSafetyQualityMetric AcceptableCoherenceScorePerInstance { get; } = new GenerationSafetyQualityMetric(AcceptableCoherenceScorePerInstanceValue); + /// AggregatedCoherencePassRate. + public static GenerationSafetyQualityMetric AggregatedCoherencePassRate { get; } = new GenerationSafetyQualityMetric(AggregatedCoherencePassRateValue); + /// AcceptableFluencyScorePerInstance. + public static GenerationSafetyQualityMetric AcceptableFluencyScorePerInstance { get; } = new GenerationSafetyQualityMetric(AcceptableFluencyScorePerInstanceValue); + /// AggregatedFluencyPassRate. + public static GenerationSafetyQualityMetric AggregatedFluencyPassRate { get; } = new GenerationSafetyQualityMetric(AggregatedFluencyPassRateValue); + /// AcceptableSimilarityScorePerInstance. + public static GenerationSafetyQualityMetric AcceptableSimilarityScorePerInstance { get; } = new GenerationSafetyQualityMetric(AcceptableSimilarityScorePerInstanceValue); + /// AggregatedSimilarityPassRate. + public static GenerationSafetyQualityMetric AggregatedSimilarityPassRate { get; } = new GenerationSafetyQualityMetric(AggregatedSimilarityPassRateValue); + /// AcceptableRelevanceScorePerInstance. + public static GenerationSafetyQualityMetric AcceptableRelevanceScorePerInstance { get; } = new GenerationSafetyQualityMetric(AcceptableRelevanceScorePerInstanceValue); + /// AggregatedRelevancePassRate. + public static GenerationSafetyQualityMetric AggregatedRelevancePassRate { get; } = new GenerationSafetyQualityMetric(AggregatedRelevancePassRateValue); + /// Determines if two values are the same. + public static bool operator ==(GenerationSafetyQualityMetric left, GenerationSafetyQualityMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(GenerationSafetyQualityMetric left, GenerationSafetyQualityMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator GenerationSafetyQualityMetric(string value) => new GenerationSafetyQualityMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is GenerationSafetyQualityMetric other && Equals(other); + /// + public bool Equals(GenerationSafetyQualityMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..5c95dbfe47c4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetricThreshold.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class GenerationSafetyQualityMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static GenerationSafetyQualityMetricThreshold DeserializeGenerationSafetyQualityMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + GenerationSafetyQualityMetric metric = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new GenerationSafetyQualityMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new GenerationSafetyQualityMetricThreshold(metric, threshold.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetricThreshold.cs new file mode 100644 index 000000000000..c9573ee2651e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMetricThreshold.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Generation safety quality metric threshold definition. + public partial class GenerationSafetyQualityMetricThreshold + { + /// Initializes a new instance of GenerationSafetyQualityMetricThreshold. + /// [Required] Gets or sets the feature attribution metric to calculate. + public GenerationSafetyQualityMetricThreshold(GenerationSafetyQualityMetric metric) + { + Metric = metric; + } + + /// Initializes a new instance of GenerationSafetyQualityMetricThreshold. + /// [Required] Gets or sets the feature attribution metric to calculate. + /// + /// Gets or sets the threshold value. + /// If null, a default value will be set depending on the selected metric. + /// + internal GenerationSafetyQualityMetricThreshold(GenerationSafetyQualityMetric metric, MonitoringThreshold threshold) + { + Metric = metric; + Threshold = threshold; + } + + /// [Required] Gets or sets the feature attribution metric to calculate. + public GenerationSafetyQualityMetric Metric { get; set; } + /// + /// Gets or sets the threshold value. + /// If null, a default value will be set depending on the selected metric. + /// + internal MonitoringThreshold Threshold { get; set; } + /// The threshold value. If null, the set default is dependent on the metric type. + public double? ThresholdValue + { + get => Threshold is null ? default : Threshold.Value; + set + { + if (Threshold is null) + Threshold = new MonitoringThreshold(); + Threshold.Value = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.Serialization.cs new file mode 100644 index 000000000000..58defcc26d86 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.Serialization.cs @@ -0,0 +1,173 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class GenerationSafetyQualityMonitoringSignal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metricThresholds"u8); + writer.WriteStartArray(); + foreach (var item in MetricThresholds) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + if (Optional.IsCollectionDefined(ProductionData)) + { + if (ProductionData != null) + { + writer.WritePropertyName("productionData"u8); + writer.WriteStartArray(); + foreach (var item in ProductionData) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("productionData"); + } + } + writer.WritePropertyName("samplingRate"u8); + writer.WriteNumberValue(SamplingRate); + if (Optional.IsDefined(WorkspaceConnectionId)) + { + if (WorkspaceConnectionId != null) + { + writer.WritePropertyName("workspaceConnectionId"u8); + writer.WriteStringValue(WorkspaceConnectionId); + } + else + { + writer.WriteNull("workspaceConnectionId"); + } + } + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static GenerationSafetyQualityMonitoringSignal DeserializeGenerationSafetyQualityMonitoringSignal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList metricThresholds = default; + Optional> productionData = default; + double samplingRate = default; + Optional workspaceConnectionId = default; + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metricThresholds"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(GenerationSafetyQualityMetricThreshold.DeserializeGenerationSafetyQualityMetricThreshold(item)); + } + metricThresholds = array; + continue; + } + if (property.NameEquals("productionData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + productionData = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MonitoringInputDataBase.DeserializeMonitoringInputDataBase(item)); + } + productionData = array; + continue; + } + if (property.NameEquals("samplingRate"u8)) + { + samplingRate = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("workspaceConnectionId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + workspaceConnectionId = null; + continue; + } + workspaceConnectionId = property.Value.GetString(); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new GenerationSafetyQualityMonitoringSignal(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType, metricThresholds, Optional.ToList(productionData), samplingRate, workspaceConnectionId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.cs new file mode 100644 index 000000000000..0dd066021b32 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Generation safety quality monitoring signal definition. + public partial class GenerationSafetyQualityMonitoringSignal : MonitoringSignalBase + { + /// Initializes a new instance of GenerationSafetyQualityMonitoringSignal. + /// [Required] Gets or sets the metrics to calculate and the corresponding thresholds. + /// [Required] The sample rate of the target data, should be greater than 0 and at most 1. + /// is null. + public GenerationSafetyQualityMonitoringSignal(IEnumerable metricThresholds, double samplingRate) + { + Argument.AssertNotNull(metricThresholds, nameof(metricThresholds)); + + MetricThresholds = metricThresholds.ToList(); + ProductionData = new ChangeTrackingList(); + SamplingRate = samplingRate; + SignalType = MonitoringSignalType.GenerationSafetyQuality; + } + + /// Initializes a new instance of GenerationSafetyQualityMonitoringSignal. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + /// [Required] Gets or sets the metrics to calculate and the corresponding thresholds. + /// + /// Gets or sets the target data for computing metrics. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// [Required] The sample rate of the target data, should be greater than 0 and at most 1. + /// Gets or sets the workspace connection ID used to connect to the content generation endpoint. + internal GenerationSafetyQualityMonitoringSignal(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType, IList metricThresholds, IList productionData, double samplingRate, string workspaceConnectionId) : base(mode, properties, signalType) + { + MetricThresholds = metricThresholds; + ProductionData = productionData; + SamplingRate = samplingRate; + WorkspaceConnectionId = workspaceConnectionId; + SignalType = signalType; + } + + /// [Required] Gets or sets the metrics to calculate and the corresponding thresholds. + public IList MetricThresholds { get; } + /// + /// Gets or sets the target data for computing metrics. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public IList ProductionData { get; set; } + /// [Required] The sample rate of the target data, should be greater than 0 and at most 1. + public double SamplingRate { get; set; } + /// Gets or sets the workspace connection ID used to connect to the content generation endpoint. + public string WorkspaceConnectionId { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetric.cs new file mode 100644 index 000000000000..8e0203d7c896 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetric.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Generation token statistics metric enum. + public readonly partial struct GenerationTokenStatisticsMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public GenerationTokenStatisticsMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TotalTokenCountValue = "TotalTokenCount"; + private const string TotalTokenCountPerGroupValue = "TotalTokenCountPerGroup"; + + /// TotalTokenCount. + public static GenerationTokenStatisticsMetric TotalTokenCount { get; } = new GenerationTokenStatisticsMetric(TotalTokenCountValue); + /// TotalTokenCountPerGroup. + public static GenerationTokenStatisticsMetric TotalTokenCountPerGroup { get; } = new GenerationTokenStatisticsMetric(TotalTokenCountPerGroupValue); + /// Determines if two values are the same. + public static bool operator ==(GenerationTokenStatisticsMetric left, GenerationTokenStatisticsMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(GenerationTokenStatisticsMetric left, GenerationTokenStatisticsMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator GenerationTokenStatisticsMetric(string value) => new GenerationTokenStatisticsMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is GenerationTokenStatisticsMetric other && Equals(other); + /// + public bool Equals(GenerationTokenStatisticsMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..efe94394cee7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetricThreshold.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class GenerationTokenStatisticsMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static GenerationTokenStatisticsMetricThreshold DeserializeGenerationTokenStatisticsMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + GenerationTokenStatisticsMetric metric = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new GenerationTokenStatisticsMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new GenerationTokenStatisticsMetricThreshold(metric, threshold.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetricThreshold.cs new file mode 100644 index 000000000000..9488e9cba71e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsMetricThreshold.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Generation token statistics metric threshold definition. + public partial class GenerationTokenStatisticsMetricThreshold + { + /// Initializes a new instance of GenerationTokenStatisticsMetricThreshold. + /// [Required] Gets or sets the feature attribution metric to calculate. + public GenerationTokenStatisticsMetricThreshold(GenerationTokenStatisticsMetric metric) + { + Metric = metric; + } + + /// Initializes a new instance of GenerationTokenStatisticsMetricThreshold. + /// [Required] Gets or sets the feature attribution metric to calculate. + /// + /// Gets or sets the threshold value. + /// If null, a default value will be set depending on the selected metric. + /// + internal GenerationTokenStatisticsMetricThreshold(GenerationTokenStatisticsMetric metric, MonitoringThreshold threshold) + { + Metric = metric; + Threshold = threshold; + } + + /// [Required] Gets or sets the feature attribution metric to calculate. + public GenerationTokenStatisticsMetric Metric { get; set; } + /// + /// Gets or sets the threshold value. + /// If null, a default value will be set depending on the selected metric. + /// + internal MonitoringThreshold Threshold { get; set; } + /// The threshold value. If null, the set default is dependent on the metric type. + public double? ThresholdValue + { + get => Threshold is null ? default : Threshold.Value; + set + { + if (Threshold is null) + Threshold = new MonitoringThreshold(); + Threshold.Value = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsSignal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsSignal.Serialization.cs new file mode 100644 index 000000000000..790f1b2d7cae --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsSignal.Serialization.cs @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class GenerationTokenStatisticsSignal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metricThresholds"u8); + writer.WriteStartArray(); + foreach (var item in MetricThresholds) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + if (Optional.IsDefined(ProductionData)) + { + if (ProductionData != null) + { + writer.WritePropertyName("productionData"u8); + writer.WriteObjectValue(ProductionData); + } + else + { + writer.WriteNull("productionData"); + } + } + writer.WritePropertyName("samplingRate"u8); + writer.WriteNumberValue(SamplingRate); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static GenerationTokenStatisticsSignal DeserializeGenerationTokenStatisticsSignal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList metricThresholds = default; + Optional productionData = default; + double samplingRate = default; + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metricThresholds"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(GenerationTokenStatisticsMetricThreshold.DeserializeGenerationTokenStatisticsMetricThreshold(item)); + } + metricThresholds = array; + continue; + } + if (property.NameEquals("productionData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + productionData = null; + continue; + } + productionData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("samplingRate"u8)) + { + samplingRate = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new GenerationTokenStatisticsSignal(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType, metricThresholds, productionData.Value, samplingRate); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsSignal.cs new file mode 100644 index 000000000000..0ec650209971 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationTokenStatisticsSignal.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Generation token statistics signal definition. + public partial class GenerationTokenStatisticsSignal : MonitoringSignalBase + { + /// Initializes a new instance of GenerationTokenStatisticsSignal. + /// [Required] Gets or sets the metrics to calculate and the corresponding thresholds. + /// [Required] The sample rate of the target data, should be greater than 0 and at most 1. + /// is null. + public GenerationTokenStatisticsSignal(IEnumerable metricThresholds, double samplingRate) + { + Argument.AssertNotNull(metricThresholds, nameof(metricThresholds)); + + MetricThresholds = metricThresholds.ToList(); + SamplingRate = samplingRate; + SignalType = MonitoringSignalType.GenerationTokenStatistics; + } + + /// Initializes a new instance of GenerationTokenStatisticsSignal. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + /// [Required] Gets or sets the metrics to calculate and the corresponding thresholds. + /// + /// Gets or sets the target data for computing metrics. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// [Required] The sample rate of the target data, should be greater than 0 and at most 1. + internal GenerationTokenStatisticsSignal(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType, IList metricThresholds, MonitoringInputDataBase productionData, double samplingRate) : base(mode, properties, signalType) + { + MetricThresholds = metricThresholds; + ProductionData = productionData; + SamplingRate = samplingRate; + SignalType = signalType; + } + + /// [Required] Gets or sets the metrics to calculate and the corresponding thresholds. + public IList MetricThresholds { get; } + /// + /// Gets or sets the target data for computing metrics. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ProductionData { get; set; } + /// [Required] The sample rate of the target data, should be greater than 0 and at most 1. + public double SamplingRate { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/HdfsDatastore.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/HdfsDatastore.Serialization.cs new file mode 100644 index 000000000000..7150d52474d1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/HdfsDatastore.Serialization.cs @@ -0,0 +1,216 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class HdfsDatastore : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(HdfsServerCertificate)) + { + if (HdfsServerCertificate != null) + { + writer.WritePropertyName("hdfsServerCertificate"u8); + writer.WriteStringValue(HdfsServerCertificate); + } + else + { + writer.WriteNull("hdfsServerCertificate"); + } + } + writer.WritePropertyName("nameNodeAddress"u8); + writer.WriteStringValue(NameNodeAddress); + if (Optional.IsDefined(Protocol)) + { + writer.WritePropertyName("protocol"u8); + writer.WriteStringValue(Protocol); + } + writer.WritePropertyName("credentials"u8); + writer.WriteObjectValue(Credentials); + writer.WritePropertyName("datastoreType"u8); + writer.WriteStringValue(DatastoreType.ToString()); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static HdfsDatastore DeserializeHdfsDatastore(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional hdfsServerCertificate = default; + string nameNodeAddress = default; + Optional protocol = default; + MachineLearningDatastoreCredentials credentials = default; + DatastoreType datastoreType = default; + Optional intellectualProperty = default; + Optional isDefault = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("hdfsServerCertificate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + hdfsServerCertificate = null; + continue; + } + hdfsServerCertificate = property.Value.GetString(); + continue; + } + if (property.NameEquals("nameNodeAddress"u8)) + { + nameNodeAddress = property.Value.GetString(); + continue; + } + if (property.NameEquals("protocol"u8)) + { + protocol = property.Value.GetString(); + continue; + } + if (property.NameEquals("credentials"u8)) + { + credentials = MachineLearningDatastoreCredentials.DeserializeMachineLearningDatastoreCredentials(property.Value); + continue; + } + if (property.NameEquals("datastoreType"u8)) + { + datastoreType = new DatastoreType(property.Value.GetString()); + continue; + } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } + if (property.NameEquals("isDefault"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isDefault = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new HdfsDatastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, intellectualProperty.Value, Optional.ToNullable(isDefault), hdfsServerCertificate.Value, nameNodeAddress, protocol.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/HdfsDatastore.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/HdfsDatastore.cs new file mode 100644 index 000000000000..408411a877b2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/HdfsDatastore.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The HdfsDatastore. + public partial class HdfsDatastore : MachineLearningDatastoreProperties + { + /// Initializes a new instance of HdfsDatastore. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// [Required] IP Address or DNS HostName. + /// or is null. + public HdfsDatastore(MachineLearningDatastoreCredentials credentials, string nameNodeAddress) : base(credentials) + { + Argument.AssertNotNull(credentials, nameof(credentials)); + Argument.AssertNotNull(nameNodeAddress, nameof(nameNodeAddress)); + + NameNodeAddress = nameNodeAddress; + DatastoreType = DatastoreType.Hdfs; + } + + /// Initializes a new instance of HdfsDatastore. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// [Required] Storage type backing the datastore. + /// Intellectual Property details. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// The TLS cert of the HDFS server. Needs to be a base64 encoded string. Required if "Https" protocol is selected. + /// [Required] IP Address or DNS HostName. + /// Protocol used to communicate with the storage account (Https/Http). + internal HdfsDatastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, IntellectualProperty intellectualProperty, bool? isDefault, string hdfsServerCertificate, string nameNodeAddress, string protocol) : base(description, properties, tags, credentials, datastoreType, intellectualProperty, isDefault) + { + HdfsServerCertificate = hdfsServerCertificate; + NameNodeAddress = nameNodeAddress; + Protocol = protocol; + DatastoreType = datastoreType; + } + + /// The TLS cert of the HDFS server. Needs to be a base64 encoded string. Required if "Https" protocol is selected. + public string HdfsServerCertificate { get; set; } + /// [Required] IP Address or DNS HostName. + public string NameNodeAddress { get; set; } + /// Protocol used to communicate with the storage account (Https/Http). + public string Protocol { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IdleShutdownSetting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IdleShutdownSetting.Serialization.cs new file mode 100644 index 000000000000..1ceaddfe0c43 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IdleShutdownSetting.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class IdleShutdownSetting : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IdleTimeBeforeShutdown)) + { + writer.WritePropertyName("idleTimeBeforeShutdown"u8); + writer.WriteStringValue(IdleTimeBeforeShutdown); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IdleShutdownSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IdleShutdownSetting.cs new file mode 100644 index 000000000000..e3522d9f85c7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IdleShutdownSetting.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Stops compute instance after user defined period of inactivity. + public partial class IdleShutdownSetting + { + /// Initializes a new instance of IdleShutdownSetting. + public IdleShutdownSetting() + { + } + + /// Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. + public string IdleTimeBeforeShutdown { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.Serialization.cs new file mode 100644 index 000000000000..2715a76b2531 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Image : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ImageType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ImageType.Value.ToString()); + } + if (Optional.IsDefined(Reference)) + { + writer.WritePropertyName("reference"u8); + writer.WriteStringValue(Reference); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement); +#endif + } + writer.WriteEndObject(); + } + + internal static Image DeserializeImage(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional type = default; + Optional reference = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new ImageType(property.Value.GetString()); + continue; + } + if (property.NameEquals("reference"u8)) + { + reference = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new Image(Optional.ToNullable(type), reference.Value, additionalProperties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.cs new file mode 100644 index 000000000000..4e7c198abca7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The Image. + public partial class Image + { + /// Initializes a new instance of Image. + public Image() + { + AdditionalProperties = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of Image. + /// Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images. + /// Image reference URL. + /// Additional Properties. + internal Image(ImageType? imageType, string reference, IDictionary additionalProperties) + { + ImageType = imageType; + Reference = reference; + AdditionalProperties = additionalProperties; + } + + /// Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images. + public ImageType? ImageType { get; set; } + /// Image reference URL. + public string Reference { get; set; } + /// + /// Additional Properties + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public IDictionary AdditionalProperties { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageAnnotationType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageAnnotationType.cs new file mode 100644 index 000000000000..1bb982ea5bdd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageAnnotationType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Annotation type of image data. + public readonly partial struct ImageAnnotationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ImageAnnotationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ClassificationValue = "Classification"; + private const string BoundingBoxValue = "BoundingBox"; + private const string InstanceSegmentationValue = "InstanceSegmentation"; + + /// Classification. + public static ImageAnnotationType Classification { get; } = new ImageAnnotationType(ClassificationValue); + /// BoundingBox. + public static ImageAnnotationType BoundingBox { get; } = new ImageAnnotationType(BoundingBoxValue); + /// InstanceSegmentation. + public static ImageAnnotationType InstanceSegmentation { get; } = new ImageAnnotationType(InstanceSegmentationValue); + /// Determines if two values are the same. + public static bool operator ==(ImageAnnotationType left, ImageAnnotationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ImageAnnotationType left, ImageAnnotationType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ImageAnnotationType(string value) => new ImageAnnotationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ImageAnnotationType other && Equals(other); + /// + public bool Equals(ImageAnnotationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageMetadata.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageMetadata.Serialization.cs new file mode 100644 index 000000000000..295881448094 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageMetadata.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ImageMetadata + { + internal static ImageMetadata DeserializeImageMetadata(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional currentImageVersion = default; + Optional latestImageVersion = default; + Optional isLatestOSImageVersion = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("currentImageVersion"u8)) + { + currentImageVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("latestImageVersion"u8)) + { + latestImageVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("isLatestOsImageVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isLatestOSImageVersion = property.Value.GetBoolean(); + continue; + } + } + return new ImageMetadata(currentImageVersion.Value, latestImageVersion.Value, Optional.ToNullable(isLatestOSImageVersion)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageMetadata.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageMetadata.cs new file mode 100644 index 000000000000..4979cf758985 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageMetadata.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Returns metadata about the operating system image for this compute instance. + public partial class ImageMetadata + { + /// Initializes a new instance of ImageMetadata. + internal ImageMetadata() + { + } + + /// Initializes a new instance of ImageMetadata. + /// Specifies the current operating system image version this compute instance is running on. + /// Specifies the latest available operating system image version. + /// Specifies whether this compute instance is running on the latest operating system image. + internal ImageMetadata(string currentImageVersion, string latestImageVersion, bool? isLatestOSImageVersion) + { + CurrentImageVersion = currentImageVersion; + LatestImageVersion = latestImageVersion; + IsLatestOSImageVersion = isLatestOSImageVersion; + } + + /// Specifies the current operating system image version this compute instance is running on. + public string CurrentImageVersion { get; } + /// Specifies the latest available operating system image version. + public string LatestImageVersion { get; } + /// Specifies whether this compute instance is running on the latest operating system image. + public bool? IsLatestOSImageVersion { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettings.cs index 21d518822ea6..1f2bec553fde 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettings.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.MachineLearning.Models /// Distribution expressions to sweep over values of model settings. /// <example> /// Some examples are: - /// <code> + /// ``` /// ModelName = "choice('seresnext', 'resnest50')"; /// LearningRate = "uniform(0.001, 0.01)"; /// LayersToFreeze = "choice(0, 2)"; - /// </code></example> + /// ```</example> /// 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: diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettingsClassification.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettingsClassification.cs index 118466fbdb89..69c8a2d88bfe 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettingsClassification.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettingsClassification.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.MachineLearning.Models /// Distribution expressions to sweep over values of model settings. /// <example> /// Some examples are: - /// <code> + /// ``` /// ModelName = "choice('seresnext', 'resnest50')"; /// LearningRate = "uniform(0.001, 0.01)"; /// LayersToFreeze = "choice(0, 2)"; - /// </code></example> + /// ```</example> /// 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: diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettingsObjectDetection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettingsObjectDetection.cs index 2ec66edfd1d6..181caac49cac 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettingsObjectDetection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelDistributionSettingsObjectDetection.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.MachineLearning.Models /// Distribution expressions to sweep over values of model settings. /// <example> /// Some examples are: - /// <code> + /// ``` /// ModelName = "choice('seresnext', 'resnest50')"; /// LearningRate = "uniform(0.001, 0.01)"; /// LayersToFreeze = "choice(0, 2)"; - /// </code></example> + /// ```</example> /// 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: diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelSettingsObjectDetection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelSettingsObjectDetection.Serialization.cs index b4f61c600cfa..96ed48df885a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelSettingsObjectDetection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelSettingsObjectDetection.Serialization.cs @@ -51,6 +51,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("imageSize"); } } + if (Optional.IsDefined(LogTrainingMetrics)) + { + writer.WritePropertyName("logTrainingMetrics"u8); + writer.WriteStringValue(LogTrainingMetrics.Value.ToString()); + } + if (Optional.IsDefined(LogValidationLoss)) + { + writer.WritePropertyName("logValidationLoss"u8); + writer.WriteStringValue(LogValidationLoss.Value.ToString()); + } if (Optional.IsDefined(MaxSize)) { if (MaxSize != null) @@ -539,6 +549,8 @@ internal static ImageModelSettingsObjectDetection DeserializeImageModelSettingsO Optional boxDetectionsPerImage = default; Optional boxScoreThreshold = default; Optional imageSize = default; + Optional logTrainingMetrics = default; + Optional logValidationLoss = default; Optional maxSize = default; Optional minSize = default; Optional modelSize = default; @@ -613,6 +625,24 @@ internal static ImageModelSettingsObjectDetection DeserializeImageModelSettingsO imageSize = property.Value.GetInt32(); continue; } + if (property.NameEquals("logTrainingMetrics"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + logTrainingMetrics = new LogTrainingMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("logValidationLoss"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + logValidationLoss = new LogValidationLoss(property.Value.GetString()); + continue; + } if (property.NameEquals("maxSize"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -1030,7 +1060,7 @@ internal static ImageModelSettingsObjectDetection DeserializeImageModelSettingsO continue; } } - return new ImageModelSettingsObjectDetection(advancedSettings.Value, Optional.ToNullable(amsGradient), augmentations.Value, Optional.ToNullable(beta1), Optional.ToNullable(beta2), Optional.ToNullable(checkpointFrequency), checkpointModel.Value, checkpointRunId.Value, Optional.ToNullable(distributed), Optional.ToNullable(earlyStopping), Optional.ToNullable(earlyStoppingDelay), Optional.ToNullable(earlyStoppingPatience), Optional.ToNullable(enableOnnxNormalization), Optional.ToNullable(evaluationFrequency), Optional.ToNullable(gradientAccumulationStep), Optional.ToNullable(layersToFreeze), Optional.ToNullable(learningRate), Optional.ToNullable(learningRateScheduler), modelName.Value, Optional.ToNullable(momentum), Optional.ToNullable(nesterov), Optional.ToNullable(numberOfEpochs), Optional.ToNullable(numberOfWorkers), Optional.ToNullable(optimizer), Optional.ToNullable(randomSeed), Optional.ToNullable(stepLRGamma), Optional.ToNullable(stepLRStepSize), Optional.ToNullable(trainingBatchSize), Optional.ToNullable(validationBatchSize), Optional.ToNullable(warmupCosineLRCycles), Optional.ToNullable(warmupCosineLRWarmupEpochs), Optional.ToNullable(weightDecay), Optional.ToNullable(boxDetectionsPerImage), Optional.ToNullable(boxScoreThreshold), Optional.ToNullable(imageSize), Optional.ToNullable(maxSize), Optional.ToNullable(minSize), Optional.ToNullable(modelSize), Optional.ToNullable(multiScale), Optional.ToNullable(nmsIouThreshold), tileGridSize.Value, Optional.ToNullable(tileOverlapRatio), Optional.ToNullable(tilePredictionsNmsThreshold), Optional.ToNullable(validationIouThreshold), Optional.ToNullable(validationMetricType)); + return new ImageModelSettingsObjectDetection(advancedSettings.Value, Optional.ToNullable(amsGradient), augmentations.Value, Optional.ToNullable(beta1), Optional.ToNullable(beta2), Optional.ToNullable(checkpointFrequency), checkpointModel.Value, checkpointRunId.Value, Optional.ToNullable(distributed), Optional.ToNullable(earlyStopping), Optional.ToNullable(earlyStoppingDelay), Optional.ToNullable(earlyStoppingPatience), Optional.ToNullable(enableOnnxNormalization), Optional.ToNullable(evaluationFrequency), Optional.ToNullable(gradientAccumulationStep), Optional.ToNullable(layersToFreeze), Optional.ToNullable(learningRate), Optional.ToNullable(learningRateScheduler), modelName.Value, Optional.ToNullable(momentum), Optional.ToNullable(nesterov), Optional.ToNullable(numberOfEpochs), Optional.ToNullable(numberOfWorkers), Optional.ToNullable(optimizer), Optional.ToNullable(randomSeed), Optional.ToNullable(stepLRGamma), Optional.ToNullable(stepLRStepSize), Optional.ToNullable(trainingBatchSize), Optional.ToNullable(validationBatchSize), Optional.ToNullable(warmupCosineLRCycles), Optional.ToNullable(warmupCosineLRWarmupEpochs), Optional.ToNullable(weightDecay), Optional.ToNullable(boxDetectionsPerImage), Optional.ToNullable(boxScoreThreshold), Optional.ToNullable(imageSize), Optional.ToNullable(logTrainingMetrics), Optional.ToNullable(logValidationLoss), Optional.ToNullable(maxSize), Optional.ToNullable(minSize), Optional.ToNullable(modelSize), Optional.ToNullable(multiScale), Optional.ToNullable(nmsIouThreshold), tileGridSize.Value, Optional.ToNullable(tileOverlapRatio), Optional.ToNullable(tilePredictionsNmsThreshold), Optional.ToNullable(validationIouThreshold), Optional.ToNullable(validationMetricType)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelSettingsObjectDetection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelSettingsObjectDetection.cs index 34e2314cbff0..50c1944c1456 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelSettingsObjectDetection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageModelSettingsObjectDetection.cs @@ -84,6 +84,8 @@ public ImageModelSettingsObjectDetection() /// 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. /// + /// Enable computing and logging training metrics. + /// Enable computing and logging validation loss. /// /// 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. @@ -121,11 +123,13 @@ public ImageModelSettingsObjectDetection() /// /// IOU threshold to use when computing validation metric. Must be float in the range [0, 1]. /// Metric computation method to use for validation metrics. - internal ImageModelSettingsObjectDetection(string advancedSettings, bool? amsGradient, string augmentations, float? beta1, float? beta2, int? checkpointFrequency, MachineLearningFlowModelJobInput checkpointModel, string checkpointRunId, bool? distributed, bool? earlyStopping, int? earlyStoppingDelay, int? earlyStoppingPatience, bool? enableOnnxNormalization, int? evaluationFrequency, int? gradientAccumulationStep, int? layersToFreeze, float? learningRate, LearningRateScheduler? learningRateScheduler, string modelName, float? momentum, bool? nesterov, int? numberOfEpochs, int? numberOfWorkers, StochasticOptimizer? optimizer, int? randomSeed, float? stepLRGamma, int? stepLRStepSize, int? trainingBatchSize, int? validationBatchSize, float? warmupCosineLRCycles, int? warmupCosineLRWarmupEpochs, float? weightDecay, int? boxDetectionsPerImage, float? boxScoreThreshold, int? imageSize, int? maxSize, int? minSize, MachineLearningModelSize? modelSize, bool? multiScale, float? nmsIouThreshold, string tileGridSize, float? tileOverlapRatio, float? tilePredictionsNmsThreshold, float? validationIouThreshold, ValidationMetricType? validationMetricType) : base(advancedSettings, amsGradient, augmentations, beta1, beta2, checkpointFrequency, checkpointModel, checkpointRunId, distributed, earlyStopping, earlyStoppingDelay, earlyStoppingPatience, enableOnnxNormalization, evaluationFrequency, gradientAccumulationStep, layersToFreeze, learningRate, learningRateScheduler, modelName, momentum, nesterov, numberOfEpochs, numberOfWorkers, optimizer, randomSeed, stepLRGamma, stepLRStepSize, trainingBatchSize, validationBatchSize, warmupCosineLRCycles, warmupCosineLRWarmupEpochs, weightDecay) + internal ImageModelSettingsObjectDetection(string advancedSettings, bool? amsGradient, string augmentations, float? beta1, float? beta2, int? checkpointFrequency, MachineLearningFlowModelJobInput checkpointModel, string checkpointRunId, bool? distributed, bool? earlyStopping, int? earlyStoppingDelay, int? earlyStoppingPatience, bool? enableOnnxNormalization, int? evaluationFrequency, int? gradientAccumulationStep, int? layersToFreeze, float? learningRate, LearningRateScheduler? learningRateScheduler, string modelName, float? momentum, bool? nesterov, int? numberOfEpochs, int? numberOfWorkers, StochasticOptimizer? optimizer, int? randomSeed, float? stepLRGamma, int? stepLRStepSize, int? trainingBatchSize, int? validationBatchSize, float? warmupCosineLRCycles, int? warmupCosineLRWarmupEpochs, float? weightDecay, int? boxDetectionsPerImage, float? boxScoreThreshold, int? imageSize, LogTrainingMetric? logTrainingMetrics, LogValidationLoss? logValidationLoss, int? maxSize, int? minSize, MachineLearningModelSize? modelSize, bool? multiScale, float? nmsIouThreshold, string tileGridSize, float? tileOverlapRatio, float? tilePredictionsNmsThreshold, float? validationIouThreshold, ValidationMetricType? validationMetricType) : base(advancedSettings, amsGradient, augmentations, beta1, beta2, checkpointFrequency, checkpointModel, checkpointRunId, distributed, earlyStopping, earlyStoppingDelay, earlyStoppingPatience, enableOnnxNormalization, evaluationFrequency, gradientAccumulationStep, layersToFreeze, learningRate, learningRateScheduler, modelName, momentum, nesterov, numberOfEpochs, numberOfWorkers, optimizer, randomSeed, stepLRGamma, stepLRStepSize, trainingBatchSize, validationBatchSize, warmupCosineLRCycles, warmupCosineLRWarmupEpochs, weightDecay) { BoxDetectionsPerImage = boxDetectionsPerImage; BoxScoreThreshold = boxScoreThreshold; ImageSize = imageSize; + LogTrainingMetrics = logTrainingMetrics; + LogValidationLoss = logValidationLoss; MaxSize = maxSize; MinSize = minSize; ModelSize = modelSize; @@ -154,6 +158,10 @@ internal ImageModelSettingsObjectDetection(string advancedSettings, bool? amsGra /// Note: This settings is only supported for the 'yolov5' algorithm. /// public int? ImageSize { get; set; } + /// Enable computing and logging training metrics. + public LogTrainingMetric? LogTrainingMetrics { get; set; } + /// Enable computing and logging validation loss. + public LogValidationLoss? LogValidationLoss { get; set; } /// /// 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. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageType.cs new file mode 100644 index 000000000000..cf1eb8c8df72 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images. + public readonly partial struct ImageType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ImageType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DockerValue = "docker"; + private const string AzuremlValue = "azureml"; + + /// docker. + public static ImageType Docker { get; } = new ImageType(DockerValue); + /// azureml. + public static ImageType Azureml { get; } = new ImageType(AzuremlValue); + /// Determines if two values are the same. + public static bool operator ==(ImageType left, ImageType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ImageType left, ImageType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ImageType(string value) => new ImageType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ImageType other && Equals(other); + /// + public bool Equals(ImageType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImportDataAction.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImportDataAction.Serialization.cs new file mode 100644 index 000000000000..bb23738084d4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImportDataAction.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ImportDataAction : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("dataImportDefinition"u8); + writer.WriteObjectValue(DataImportDefinition); + writer.WritePropertyName("actionType"u8); + writer.WriteStringValue(ActionType.ToString()); + writer.WriteEndObject(); + } + + internal static ImportDataAction DeserializeImportDataAction(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + DataImport dataImportDefinition = default; + ScheduleActionType actionType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dataImportDefinition"u8)) + { + dataImportDefinition = DataImport.DeserializeDataImport(property.Value); + continue; + } + if (property.NameEquals("actionType"u8)) + { + actionType = new ScheduleActionType(property.Value.GetString()); + continue; + } + } + return new ImportDataAction(actionType, dataImportDefinition); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImportDataAction.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImportDataAction.cs new file mode 100644 index 000000000000..683ca9b99edb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImportDataAction.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The ImportDataAction. + public partial class ImportDataAction : MachineLearningScheduleAction + { + /// Initializes a new instance of ImportDataAction. + /// [Required] Defines Schedule action definition details. + /// is null. + public ImportDataAction(DataImport dataImportDefinition) + { + Argument.AssertNotNull(dataImportDefinition, nameof(dataImportDefinition)); + + DataImportDefinition = dataImportDefinition; + ActionType = ScheduleActionType.ImportData; + } + + /// Initializes a new instance of ImportDataAction. + /// [Required] Specifies the action type of the schedule. + /// [Required] Defines Schedule action definition details. + internal ImportDataAction(ScheduleActionType actionType, DataImport dataImportDefinition) : base(actionType) + { + DataImportDefinition = dataImportDefinition; + ActionType = actionType; + } + + /// [Required] Defines Schedule action definition details. + public DataImport DataImportDefinition { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IncrementalDataRefresh.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IncrementalDataRefresh.cs new file mode 100644 index 000000000000..77fa2640a64a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IncrementalDataRefresh.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Whether IncrementalDataRefresh is enabled. + public readonly partial struct IncrementalDataRefresh : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IncrementalDataRefresh(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static IncrementalDataRefresh Enabled { get; } = new IncrementalDataRefresh(EnabledValue); + /// Disabled. + public static IncrementalDataRefresh Disabled { get; } = new IncrementalDataRefresh(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(IncrementalDataRefresh left, IncrementalDataRefresh right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IncrementalDataRefresh left, IncrementalDataRefresh right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator IncrementalDataRefresh(string value) => new IncrementalDataRefresh(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IncrementalDataRefresh other && Equals(other); + /// + public bool Equals(IncrementalDataRefresh other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IndexColumn.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IndexColumn.Serialization.cs new file mode 100644 index 000000000000..15ed0fa52e9f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IndexColumn.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class IndexColumn : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ColumnName)) + { + if (ColumnName != null) + { + writer.WritePropertyName("columnName"u8); + writer.WriteStringValue(ColumnName); + } + else + { + writer.WriteNull("columnName"); + } + } + if (Optional.IsDefined(DataType)) + { + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static IndexColumn DeserializeIndexColumn(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional columnName = default; + Optional dataType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("columnName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + columnName = null; + continue; + } + columnName = property.Value.GetString(); + continue; + } + if (property.NameEquals("dataType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dataType = new FeatureDataType(property.Value.GetString()); + continue; + } + } + return new IndexColumn(columnName.Value, Optional.ToNullable(dataType)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IndexColumn.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IndexColumn.cs new file mode 100644 index 000000000000..bacdf9fff6ab --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IndexColumn.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing index column. + public partial class IndexColumn + { + /// Initializes a new instance of IndexColumn. + public IndexColumn() + { + } + + /// Initializes a new instance of IndexColumn. + /// Specifies the column name. + /// Specifies the data type. + internal IndexColumn(string columnName, FeatureDataType? dataType) + { + ColumnName = columnName; + DataType = dataType; + } + + /// Specifies the column name. + public string ColumnName { get; set; } + /// Specifies the data type. + public FeatureDataType? DataType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServer.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServer.Serialization.cs new file mode 100644 index 000000000000..762f49874fe3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServer.Serialization.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class InferencingServer : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("serverType"u8); + writer.WriteStringValue(ServerType.ToString()); + writer.WriteEndObject(); + } + + internal static InferencingServer DeserializeInferencingServer(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("serverType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "AzureMLBatch": return AzureMLBatchInferencingServer.DeserializeAzureMLBatchInferencingServer(element); + case "AzureMLOnline": return AzureMLOnlineInferencingServer.DeserializeAzureMLOnlineInferencingServer(element); + case "Custom": return CustomInferencingServer.DeserializeCustomInferencingServer(element); + case "Triton": return TritonInferencingServer.DeserializeTritonInferencingServer(element); + } + } + return UnknownInferencingServer.DeserializeUnknownInferencingServer(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServer.cs new file mode 100644 index 000000000000..d91982d987b3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServer.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The InferencingServer. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + public abstract partial class InferencingServer + { + /// Initializes a new instance of InferencingServer. + protected InferencingServer() + { + } + + /// Initializes a new instance of InferencingServer. + /// [Required] Inferencing server type for various targets. + internal InferencingServer(InferencingServerType serverType) + { + ServerType = serverType; + } + + /// [Required] Inferencing server type for various targets. + internal InferencingServerType ServerType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServerType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServerType.cs new file mode 100644 index 000000000000..ba137ebc90b9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InferencingServerType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Inferencing server type for various targets. + internal readonly partial struct InferencingServerType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public InferencingServerType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureMLOnlineValue = "AzureMLOnline"; + private const string AzureMLBatchValue = "AzureMLBatch"; + private const string TritonValue = "Triton"; + private const string CustomValue = "Custom"; + + /// AzureMLOnline. + public static InferencingServerType AzureMLOnline { get; } = new InferencingServerType(AzureMLOnlineValue); + /// AzureMLBatch. + public static InferencingServerType AzureMLBatch { get; } = new InferencingServerType(AzureMLBatchValue); + /// Triton. + public static InferencingServerType Triton { get; } = new InferencingServerType(TritonValue); + /// Custom. + public static InferencingServerType Custom { get; } = new InferencingServerType(CustomValue); + /// Determines if two values are the same. + public static bool operator ==(InferencingServerType left, InferencingServerType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(InferencingServerType left, InferencingServerType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator InferencingServerType(string value) => new InferencingServerType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is InferencingServerType other && Equals(other); + /// + public bool Equals(InferencingServerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InputPathType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InputPathType.cs new file mode 100644 index 000000000000..40a19bab205d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/InputPathType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Input path type for package inputs. + internal readonly partial struct InputPathType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public InputPathType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UrlValue = "Url"; + private const string PathIdValue = "PathId"; + private const string PathVersionValue = "PathVersion"; + + /// Url. + public static InputPathType Url { get; } = new InputPathType(UrlValue); + /// PathId. + public static InputPathType PathId { get; } = new InputPathType(PathIdValue); + /// PathVersion. + public static InputPathType PathVersion { get; } = new InputPathType(PathVersionValue); + /// Determines if two values are the same. + public static bool operator ==(InputPathType left, InputPathType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(InputPathType left, InputPathType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator InputPathType(string value) => new InputPathType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is InputPathType other && Equals(other); + /// + public bool Equals(InputPathType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.Serialization.cs new file mode 100644 index 000000000000..e50c192e2844 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class IntellectualProperty : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ProtectionLevel)) + { + writer.WritePropertyName("protectionLevel"u8); + writer.WriteStringValue(ProtectionLevel.Value.ToString()); + } + writer.WritePropertyName("publisher"u8); + writer.WriteStringValue(Publisher); + writer.WriteEndObject(); + } + + internal static IntellectualProperty DeserializeIntellectualProperty(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional protectionLevel = default; + string publisher = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("protectionLevel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + protectionLevel = new ProtectionLevel(property.Value.GetString()); + continue; + } + if (property.NameEquals("publisher"u8)) + { + publisher = property.Value.GetString(); + continue; + } + } + return new IntellectualProperty(Optional.ToNullable(protectionLevel), publisher); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.cs new file mode 100644 index 000000000000..851fdb8019e4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Intellectual Property details for a resource. + public partial class IntellectualProperty + { + /// Initializes a new instance of IntellectualProperty. + /// [Required] Publisher of the Intellectual Property. Must be the same as Registry publisher name. + /// is null. + public IntellectualProperty(string publisher) + { + Argument.AssertNotNull(publisher, nameof(publisher)); + + Publisher = publisher; + } + + /// Initializes a new instance of IntellectualProperty. + /// Protection level of the Intellectual Property. + /// [Required] Publisher of the Intellectual Property. Must be the same as Registry publisher name. + internal IntellectualProperty(ProtectionLevel? protectionLevel, string publisher) + { + ProtectionLevel = protectionLevel; + Publisher = publisher; + } + + /// Protection level of the Intellectual Property. + public ProtectionLevel? ProtectionLevel { get; set; } + /// [Required] Publisher of the Intellectual Property. Must be the same as Registry publisher name. + public string Publisher { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IsolationMode.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IsolationMode.cs new file mode 100644 index 000000000000..7815a3f3eea4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IsolationMode.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Isolation mode for the managed network of a machine learning workspace. + public readonly partial struct IsolationMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IsolationMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DisabledValue = "Disabled"; + private const string AllowInternetOutboundValue = "AllowInternetOutbound"; + private const string AllowOnlyApprovedOutboundValue = "AllowOnlyApprovedOutbound"; + + /// Disabled. + public static IsolationMode Disabled { get; } = new IsolationMode(DisabledValue); + /// AllowInternetOutbound. + public static IsolationMode AllowInternetOutbound { get; } = new IsolationMode(AllowInternetOutboundValue); + /// AllowOnlyApprovedOutbound. + public static IsolationMode AllowOnlyApprovedOutbound { get; } = new IsolationMode(AllowOnlyApprovedOutboundValue); + /// Determines if two values are the same. + public static bool operator ==(IsolationMode left, IsolationMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IsolationMode left, IsolationMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator IsolationMode(string value) => new IsolationMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IsolationMode other && Equals(other); + /// + public bool Equals(IsolationMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobInputType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobInputType.cs index cbe9c2f4d0db..2c6b09e25926 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobInputType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobInputType.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Enum to determine the Job Input Type. - internal readonly partial struct JobInputType : IEquatable + public readonly partial struct JobInputType : IEquatable { private readonly string _value; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobProvisioningState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobProvisioningState.cs new file mode 100644 index 000000000000..fb00a784d105 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobProvisioningState.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the job provisioning state. + public readonly partial struct JobProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public JobProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string InProgressValue = "InProgress"; + + /// Succeeded. + public static JobProvisioningState Succeeded { get; } = new JobProvisioningState(SucceededValue); + /// Failed. + public static JobProvisioningState Failed { get; } = new JobProvisioningState(FailedValue); + /// Canceled. + public static JobProvisioningState Canceled { get; } = new JobProvisioningState(CanceledValue); + /// InProgress. + public static JobProvisioningState InProgress { get; } = new JobProvisioningState(InProgressValue); + /// Determines if two values are the same. + public static bool operator ==(JobProvisioningState left, JobProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(JobProvisioningState left, JobProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator JobProvisioningState(string value) => new JobProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is JobProvisioningState other && Equals(other); + /// + public bool Equals(JobProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobTier.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobTier.cs new file mode 100644 index 000000000000..782b638ceecc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobTier.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the job tier. + public readonly partial struct JobTier : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public JobTier(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NullValue = "Null"; + private const string SpotValue = "Spot"; + private const string BasicValue = "Basic"; + private const string StandardValue = "Standard"; + private const string PremiumValue = "Premium"; + + /// Null. + public static JobTier Null { get; } = new JobTier(NullValue); + /// Spot. + public static JobTier Spot { get; } = new JobTier(SpotValue); + /// Basic. + public static JobTier Basic { get; } = new JobTier(BasicValue); + /// Standard. + public static JobTier Standard { get; } = new JobTier(StandardValue); + /// Premium. + public static JobTier Premium { get; } = new JobTier(PremiumValue); + /// Determines if two values are the same. + public static bool operator ==(JobTier left, JobTier right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(JobTier left, JobTier right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator JobTier(string value) => new JobTier(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is JobTier other && Equals(other); + /// + public bool Equals(JobTier other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobType.cs index 1c2153f63efc..a2b2177f26b7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobType.cs @@ -24,17 +24,23 @@ public JobType(string value) private const string AutoMLValue = "AutoML"; private const string CommandValue = "Command"; + private const string LabelingValue = "Labeling"; private const string SweepValue = "Sweep"; private const string PipelineValue = "Pipeline"; + private const string SparkValue = "Spark"; /// AutoML. public static JobType AutoML { get; } = new JobType(AutoMLValue); /// Command. public static JobType Command { get; } = new JobType(CommandValue); + /// Labeling. + public static JobType Labeling { get; } = new JobType(LabelingValue); /// Sweep. public static JobType Sweep { get; } = new JobType(SweepValue); /// Pipeline. public static JobType Pipeline { get; } = new JobType(PipelineValue); + /// Spark. + public static JobType Spark { get; } = new JobType(SparkValue); /// Determines if two values are the same. public static bool operator ==(JobType left, JobType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabCredentials.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabCredentials.Serialization.cs new file mode 100644 index 000000000000..120aee4aa274 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabCredentials.Serialization.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class KerberosKeytabCredentials : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("secrets"u8); + writer.WriteObjectValue(Secrets); + writer.WritePropertyName("kerberosKdcAddress"u8); + writer.WriteStringValue(KerberosKdcAddress); + writer.WritePropertyName("kerberosPrincipal"u8); + writer.WriteStringValue(KerberosPrincipal); + writer.WritePropertyName("kerberosRealm"u8); + writer.WriteStringValue(KerberosRealm); + writer.WritePropertyName("credentialsType"u8); + writer.WriteStringValue(CredentialsType.ToString()); + writer.WriteEndObject(); + } + + internal static KerberosKeytabCredentials DeserializeKerberosKeytabCredentials(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KerberosKeytabSecrets secrets = default; + string kerberosKdcAddress = default; + string kerberosPrincipal = default; + string kerberosRealm = default; + CredentialsType credentialsType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("secrets"u8)) + { + secrets = KerberosKeytabSecrets.DeserializeKerberosKeytabSecrets(property.Value); + continue; + } + if (property.NameEquals("kerberosKdcAddress"u8)) + { + kerberosKdcAddress = property.Value.GetString(); + continue; + } + if (property.NameEquals("kerberosPrincipal"u8)) + { + kerberosPrincipal = property.Value.GetString(); + continue; + } + if (property.NameEquals("kerberosRealm"u8)) + { + kerberosRealm = property.Value.GetString(); + continue; + } + if (property.NameEquals("credentialsType"u8)) + { + credentialsType = new CredentialsType(property.Value.GetString()); + continue; + } + } + return new KerberosKeytabCredentials(credentialsType, secrets, kerberosKdcAddress, kerberosPrincipal, kerberosRealm); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabCredentials.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabCredentials.cs new file mode 100644 index 000000000000..d7b4db30cec6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabCredentials.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The KerberosKeytabCredentials. + public partial class KerberosKeytabCredentials : MachineLearningDatastoreCredentials + { + /// Initializes a new instance of KerberosKeytabCredentials. + /// [Required] Keytab secrets. + /// [Required] IP Address or DNS HostName. + /// [Required] Kerberos Username. + /// [Required] Domain over which a Kerberos authentication server has the authority to authenticate a user, host or service. + /// , , or is null. + public KerberosKeytabCredentials(KerberosKeytabSecrets secrets, string kerberosKdcAddress, string kerberosPrincipal, string kerberosRealm) + { + Argument.AssertNotNull(secrets, nameof(secrets)); + Argument.AssertNotNull(kerberosKdcAddress, nameof(kerberosKdcAddress)); + Argument.AssertNotNull(kerberosPrincipal, nameof(kerberosPrincipal)); + Argument.AssertNotNull(kerberosRealm, nameof(kerberosRealm)); + + Secrets = secrets; + KerberosKdcAddress = kerberosKdcAddress; + KerberosPrincipal = kerberosPrincipal; + KerberosRealm = kerberosRealm; + CredentialsType = CredentialsType.KerberosKeytab; + } + + /// Initializes a new instance of KerberosKeytabCredentials. + /// [Required] Credential type used to authentication with storage. + /// [Required] Keytab secrets. + /// [Required] IP Address or DNS HostName. + /// [Required] Kerberos Username. + /// [Required] Domain over which a Kerberos authentication server has the authority to authenticate a user, host or service. + internal KerberosKeytabCredentials(CredentialsType credentialsType, KerberosKeytabSecrets secrets, string kerberosKdcAddress, string kerberosPrincipal, string kerberosRealm) : base(credentialsType) + { + Secrets = secrets; + KerberosKdcAddress = kerberosKdcAddress; + KerberosPrincipal = kerberosPrincipal; + KerberosRealm = kerberosRealm; + CredentialsType = credentialsType; + } + + /// [Required] Keytab secrets. + public KerberosKeytabSecrets Secrets { get; set; } + /// [Required] IP Address or DNS HostName. + public string KerberosKdcAddress { get; set; } + /// [Required] Kerberos Username. + public string KerberosPrincipal { get; set; } + /// [Required] Domain over which a Kerberos authentication server has the authority to authenticate a user, host or service. + public string KerberosRealm { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabSecrets.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabSecrets.Serialization.cs new file mode 100644 index 000000000000..f4a29e2281ae --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabSecrets.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class KerberosKeytabSecrets : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(KerberosKeytab)) + { + if (KerberosKeytab != null) + { + writer.WritePropertyName("kerberosKeytab"u8); + writer.WriteStringValue(KerberosKeytab); + } + else + { + writer.WriteNull("kerberosKeytab"); + } + } + writer.WritePropertyName("secretsType"u8); + writer.WriteStringValue(SecretsType.ToString()); + writer.WriteEndObject(); + } + + internal static KerberosKeytabSecrets DeserializeKerberosKeytabSecrets(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional kerberosKeytab = default; + SecretsType secretsType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kerberosKeytab"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + kerberosKeytab = null; + continue; + } + kerberosKeytab = property.Value.GetString(); + continue; + } + if (property.NameEquals("secretsType"u8)) + { + secretsType = new SecretsType(property.Value.GetString()); + continue; + } + } + return new KerberosKeytabSecrets(secretsType, kerberosKeytab.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabSecrets.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabSecrets.cs new file mode 100644 index 000000000000..893108471fef --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosKeytabSecrets.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The KerberosKeytabSecrets. + public partial class KerberosKeytabSecrets : MachineLearningDatastoreSecrets + { + /// Initializes a new instance of KerberosKeytabSecrets. + public KerberosKeytabSecrets() + { + SecretsType = SecretsType.KerberosKeytab; + } + + /// Initializes a new instance of KerberosKeytabSecrets. + /// [Required] Credential type used to authentication with storage. + /// Kerberos keytab secret. + internal KerberosKeytabSecrets(SecretsType secretsType, string kerberosKeytab) : base(secretsType) + { + KerberosKeytab = kerberosKeytab; + SecretsType = secretsType; + } + + /// Kerberos keytab secret. + public string KerberosKeytab { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordCredentials.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordCredentials.Serialization.cs new file mode 100644 index 000000000000..de54e6e8c387 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordCredentials.Serialization.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class KerberosPasswordCredentials : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("secrets"u8); + writer.WriteObjectValue(Secrets); + writer.WritePropertyName("kerberosKdcAddress"u8); + writer.WriteStringValue(KerberosKdcAddress); + writer.WritePropertyName("kerberosPrincipal"u8); + writer.WriteStringValue(KerberosPrincipal); + writer.WritePropertyName("kerberosRealm"u8); + writer.WriteStringValue(KerberosRealm); + writer.WritePropertyName("credentialsType"u8); + writer.WriteStringValue(CredentialsType.ToString()); + writer.WriteEndObject(); + } + + internal static KerberosPasswordCredentials DeserializeKerberosPasswordCredentials(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KerberosPasswordSecrets secrets = default; + string kerberosKdcAddress = default; + string kerberosPrincipal = default; + string kerberosRealm = default; + CredentialsType credentialsType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("secrets"u8)) + { + secrets = KerberosPasswordSecrets.DeserializeKerberosPasswordSecrets(property.Value); + continue; + } + if (property.NameEquals("kerberosKdcAddress"u8)) + { + kerberosKdcAddress = property.Value.GetString(); + continue; + } + if (property.NameEquals("kerberosPrincipal"u8)) + { + kerberosPrincipal = property.Value.GetString(); + continue; + } + if (property.NameEquals("kerberosRealm"u8)) + { + kerberosRealm = property.Value.GetString(); + continue; + } + if (property.NameEquals("credentialsType"u8)) + { + credentialsType = new CredentialsType(property.Value.GetString()); + continue; + } + } + return new KerberosPasswordCredentials(credentialsType, secrets, kerberosKdcAddress, kerberosPrincipal, kerberosRealm); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordCredentials.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordCredentials.cs new file mode 100644 index 000000000000..7884357daf5a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordCredentials.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The KerberosPasswordCredentials. + public partial class KerberosPasswordCredentials : MachineLearningDatastoreCredentials + { + /// Initializes a new instance of KerberosPasswordCredentials. + /// [Required] Kerberos password secrets. + /// [Required] IP Address or DNS HostName. + /// [Required] Kerberos Username. + /// [Required] Domain over which a Kerberos authentication server has the authority to authenticate a user, host or service. + /// , , or is null. + public KerberosPasswordCredentials(KerberosPasswordSecrets secrets, string kerberosKdcAddress, string kerberosPrincipal, string kerberosRealm) + { + Argument.AssertNotNull(secrets, nameof(secrets)); + Argument.AssertNotNull(kerberosKdcAddress, nameof(kerberosKdcAddress)); + Argument.AssertNotNull(kerberosPrincipal, nameof(kerberosPrincipal)); + Argument.AssertNotNull(kerberosRealm, nameof(kerberosRealm)); + + Secrets = secrets; + KerberosKdcAddress = kerberosKdcAddress; + KerberosPrincipal = kerberosPrincipal; + KerberosRealm = kerberosRealm; + CredentialsType = CredentialsType.KerberosPassword; + } + + /// Initializes a new instance of KerberosPasswordCredentials. + /// [Required] Credential type used to authentication with storage. + /// [Required] Kerberos password secrets. + /// [Required] IP Address or DNS HostName. + /// [Required] Kerberos Username. + /// [Required] Domain over which a Kerberos authentication server has the authority to authenticate a user, host or service. + internal KerberosPasswordCredentials(CredentialsType credentialsType, KerberosPasswordSecrets secrets, string kerberosKdcAddress, string kerberosPrincipal, string kerberosRealm) : base(credentialsType) + { + Secrets = secrets; + KerberosKdcAddress = kerberosKdcAddress; + KerberosPrincipal = kerberosPrincipal; + KerberosRealm = kerberosRealm; + CredentialsType = credentialsType; + } + + /// [Required] Kerberos password secrets. + public KerberosPasswordSecrets Secrets { get; set; } + /// [Required] IP Address or DNS HostName. + public string KerberosKdcAddress { get; set; } + /// [Required] Kerberos Username. + public string KerberosPrincipal { get; set; } + /// [Required] Domain over which a Kerberos authentication server has the authority to authenticate a user, host or service. + public string KerberosRealm { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordSecrets.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordSecrets.Serialization.cs new file mode 100644 index 000000000000..36663985e1cc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordSecrets.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class KerberosPasswordSecrets : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(KerberosPassword)) + { + if (KerberosPassword != null) + { + writer.WritePropertyName("kerberosPassword"u8); + writer.WriteStringValue(KerberosPassword); + } + else + { + writer.WriteNull("kerberosPassword"); + } + } + writer.WritePropertyName("secretsType"u8); + writer.WriteStringValue(SecretsType.ToString()); + writer.WriteEndObject(); + } + + internal static KerberosPasswordSecrets DeserializeKerberosPasswordSecrets(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional kerberosPassword = default; + SecretsType secretsType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kerberosPassword"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + kerberosPassword = null; + continue; + } + kerberosPassword = property.Value.GetString(); + continue; + } + if (property.NameEquals("secretsType"u8)) + { + secretsType = new SecretsType(property.Value.GetString()); + continue; + } + } + return new KerberosPasswordSecrets(secretsType, kerberosPassword.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordSecrets.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordSecrets.cs new file mode 100644 index 000000000000..80c45d712ca4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KerberosPasswordSecrets.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The KerberosPasswordSecrets. + public partial class KerberosPasswordSecrets : MachineLearningDatastoreSecrets + { + /// Initializes a new instance of KerberosPasswordSecrets. + public KerberosPasswordSecrets() + { + SecretsType = SecretsType.KerberosPassword; + } + + /// Initializes a new instance of KerberosPasswordSecrets. + /// [Required] Credential type used to authentication with storage. + /// Kerberos password secret. + internal KerberosPasswordSecrets(SecretsType secretsType, string kerberosPassword) : base(secretsType) + { + KerberosPassword = kerberosPassword; + SecretsType = secretsType; + } + + /// Kerberos password secret. + public string KerberosPassword { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.Serialization.cs similarity index 76% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.Serialization.cs index 1d92fa063af0..3ee5e0cb5bed 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.Serialization.cs @@ -10,37 +10,37 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class MachineLearningEncryptionKeyVaultProperties : IUtf8JsonSerializable + public partial class KeyVaultProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("keyVaultArmId"u8); - writer.WriteStringValue(KeyVaultArmId); - writer.WritePropertyName("keyIdentifier"u8); - writer.WriteStringValue(KeyIdentifier); if (Optional.IsDefined(IdentityClientId)) { writer.WritePropertyName("identityClientId"u8); writer.WriteStringValue(IdentityClientId); } + writer.WritePropertyName("keyIdentifier"u8); + writer.WriteStringValue(KeyIdentifier); + writer.WritePropertyName("keyVaultArmId"u8); + writer.WriteStringValue(KeyVaultArmId); writer.WriteEndObject(); } - internal static MachineLearningEncryptionKeyVaultProperties DeserializeMachineLearningEncryptionKeyVaultProperties(JsonElement element) + internal static KeyVaultProperties DeserializeKeyVaultProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - ResourceIdentifier keyVaultArmId = default; - string keyIdentifier = default; Optional identityClientId = default; + string keyIdentifier = default; + string keyVaultArmId = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("keyVaultArmId"u8)) + if (property.NameEquals("identityClientId"u8)) { - keyVaultArmId = new ResourceIdentifier(property.Value.GetString()); + identityClientId = property.Value.GetString(); continue; } if (property.NameEquals("keyIdentifier"u8)) @@ -48,13 +48,13 @@ internal static MachineLearningEncryptionKeyVaultProperties DeserializeMachineLe keyIdentifier = property.Value.GetString(); continue; } - if (property.NameEquals("identityClientId"u8)) + if (property.NameEquals("keyVaultArmId"u8)) { - identityClientId = property.Value.GetString(); + keyVaultArmId = property.Value.GetString(); continue; } } - return new MachineLearningEncryptionKeyVaultProperties(keyVaultArmId, keyIdentifier, identityClientId.Value); + return new KeyVaultProperties(identityClientId.Value, keyIdentifier, keyVaultArmId); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.cs new file mode 100644 index 000000000000..2cc7ed26dc40 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Customer Key vault properties. + public partial class KeyVaultProperties + { + /// Initializes a new instance of KeyVaultProperties. + /// KeyVault key identifier to encrypt the data. + /// KeyVault Arm Id that contains the data encryption key. + /// or is null. + public KeyVaultProperties(string keyIdentifier, string keyVaultArmId) + { + Argument.AssertNotNull(keyIdentifier, nameof(keyIdentifier)); + Argument.AssertNotNull(keyVaultArmId, nameof(keyVaultArmId)); + + KeyIdentifier = keyIdentifier; + KeyVaultArmId = keyVaultArmId; + } + + /// Initializes a new instance of KeyVaultProperties. + /// + /// Currently, we support only SystemAssigned MSI. + /// We need this when we support UserAssignedIdentities + /// + /// KeyVault key identifier to encrypt the data. + /// KeyVault Arm Id that contains the data encryption key. + internal KeyVaultProperties(string identityClientId, string keyIdentifier, string keyVaultArmId) + { + IdentityClientId = identityClientId; + KeyIdentifier = keyIdentifier; + KeyVaultArmId = keyVaultArmId; + } + + /// + /// Currently, we support only SystemAssigned MSI. + /// We need this when we support UserAssignedIdentities + /// + public string IdentityClientId { get; set; } + /// KeyVault key identifier to encrypt the data. + public string KeyIdentifier { get; set; } + /// KeyVault Arm Id that contains the data encryption key. + public string KeyVaultArmId { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.Serialization.cs new file mode 100644 index 000000000000..f984e7591f59 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.Serialization.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class LabelCategory : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Classes)) + { + if (Classes != null) + { + writer.WritePropertyName("classes"u8); + writer.WriteStartObject(); + foreach (var item in Classes) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("classes"); + } + } + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsDefined(MultiSelect)) + { + writer.WritePropertyName("multiSelect"u8); + writer.WriteStringValue(MultiSelect.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static LabelCategory DeserializeLabelCategory(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> classes = default; + Optional displayName = default; + Optional multiSelect = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("classes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + classes = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, LabelClass.DeserializeLabelClass(property0.Value)); + } + classes = dictionary; + continue; + } + if (property.NameEquals("displayName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("multiSelect"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + multiSelect = new MultiSelect(property.Value.GetString()); + continue; + } + } + return new LabelCategory(Optional.ToDictionary(classes), displayName.Value, Optional.ToNullable(multiSelect)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.cs new file mode 100644 index 000000000000..cb88b50b992a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Label category definition. + public partial class LabelCategory + { + /// Initializes a new instance of LabelCategory. + public LabelCategory() + { + Classes = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of LabelCategory. + /// Dictionary of label classes in this category. + /// Display name of the label category. + /// Indicates whether it is allowed to select multiple classes in this category. + internal LabelCategory(IDictionary classes, string displayName, MultiSelect? multiSelect) + { + Classes = classes; + DisplayName = displayName; + MultiSelect = multiSelect; + } + + /// Dictionary of label classes in this category. + public IDictionary Classes { get; set; } + /// Display name of the label category. + public string DisplayName { get; set; } + /// Indicates whether it is allowed to select multiple classes in this category. + public MultiSelect? MultiSelect { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelClass.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelClass.Serialization.cs new file mode 100644 index 000000000000..c826fa157c87 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelClass.Serialization.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class LabelClass : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsCollectionDefined(Subclasses)) + { + if (Subclasses != null) + { + writer.WritePropertyName("subclasses"u8); + writer.WriteStartObject(); + foreach (var item in Subclasses) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("subclasses"); + } + } + writer.WriteEndObject(); + } + + internal static LabelClass DeserializeLabelClass(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional displayName = default; + Optional> subclasses = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("displayName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("subclasses"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subclasses = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, DeserializeLabelClass(property0.Value)); + } + subclasses = dictionary; + continue; + } + } + return new LabelClass(displayName.Value, Optional.ToDictionary(subclasses)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelClass.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelClass.cs new file mode 100644 index 000000000000..9aed17f09698 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelClass.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Label class definition. + public partial class LabelClass + { + /// Initializes a new instance of LabelClass. + public LabelClass() + { + Subclasses = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of LabelClass. + /// Display name of the label class. + /// Dictionary of subclasses of the label class. + internal LabelClass(string displayName, IDictionary subclasses) + { + DisplayName = displayName; + Subclasses = subclasses; + } + + /// Display name of the label class. + public string DisplayName { get; set; } + /// Dictionary of subclasses of the label class. + public IDictionary Subclasses { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingDataConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingDataConfiguration.Serialization.cs new file mode 100644 index 000000000000..c81fd5588db9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingDataConfiguration.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class LabelingDataConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DataId)) + { + if (DataId != null) + { + writer.WritePropertyName("dataId"u8); + writer.WriteStringValue(DataId); + } + else + { + writer.WriteNull("dataId"); + } + } + if (Optional.IsDefined(IncrementalDataRefresh)) + { + writer.WritePropertyName("incrementalDataRefresh"u8); + writer.WriteStringValue(IncrementalDataRefresh.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static LabelingDataConfiguration DeserializeLabelingDataConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional dataId = default; + Optional incrementalDataRefresh = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dataId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataId = null; + continue; + } + dataId = property.Value.GetString(); + continue; + } + if (property.NameEquals("incrementalDataRefresh"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + incrementalDataRefresh = new IncrementalDataRefresh(property.Value.GetString()); + continue; + } + } + return new LabelingDataConfiguration(dataId.Value, Optional.ToNullable(incrementalDataRefresh)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingDataConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingDataConfiguration.cs new file mode 100644 index 000000000000..6e3ed06e2f77 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingDataConfiguration.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Labeling data configuration definition. + public partial class LabelingDataConfiguration + { + /// Initializes a new instance of LabelingDataConfiguration. + public LabelingDataConfiguration() + { + } + + /// Initializes a new instance of LabelingDataConfiguration. + /// Resource Id of the data asset to perform labeling. + /// Indicates whether to enable incremental data refresh. + internal LabelingDataConfiguration(string dataId, IncrementalDataRefresh? incrementalDataRefresh) + { + DataId = dataId; + IncrementalDataRefresh = incrementalDataRefresh; + } + + /// Resource Id of the data asset to perform labeling. + public string DataId { get; set; } + /// Indicates whether to enable incremental data refresh. + public IncrementalDataRefresh? IncrementalDataRefresh { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobData.Serialization.cs new file mode 100644 index 000000000000..9e263065d0fc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobData.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class LabelingJobData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static LabelingJobData DeserializeLabelingJobData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + LabelingJobProperties properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = LabelingJobProperties.DeserializeLabelingJobProperties(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new LabelingJobData(id, name, type, systemData.Value, properties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobImageProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobImageProperties.Serialization.cs new file mode 100644 index 000000000000..24b59d035e96 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobImageProperties.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class LabelingJobImageProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AnnotationType)) + { + writer.WritePropertyName("annotationType"u8); + writer.WriteStringValue(AnnotationType.Value.ToString()); + } + writer.WritePropertyName("mediaType"u8); + writer.WriteStringValue(MediaType.ToString()); + writer.WriteEndObject(); + } + + internal static LabelingJobImageProperties DeserializeLabelingJobImageProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional annotationType = default; + MediaType mediaType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("annotationType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + annotationType = new ImageAnnotationType(property.Value.GetString()); + continue; + } + if (property.NameEquals("mediaType"u8)) + { + mediaType = new MediaType(property.Value.GetString()); + continue; + } + } + return new LabelingJobImageProperties(mediaType, Optional.ToNullable(annotationType)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobImageProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobImageProperties.cs new file mode 100644 index 000000000000..431f7cde32c2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobImageProperties.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Properties of a labeling job for image data. + public partial class LabelingJobImageProperties : LabelingJobMediaProperties + { + /// Initializes a new instance of LabelingJobImageProperties. + public LabelingJobImageProperties() + { + MediaType = MediaType.Image; + } + + /// Initializes a new instance of LabelingJobImageProperties. + /// [Required] Media type of the job. + /// Annotation type of image labeling job. + internal LabelingJobImageProperties(MediaType mediaType, ImageAnnotationType? annotationType) : base(mediaType) + { + AnnotationType = annotationType; + MediaType = mediaType; + } + + /// Annotation type of image labeling job. + public ImageAnnotationType? AnnotationType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobInstructions.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobInstructions.Serialization.cs new file mode 100644 index 000000000000..a3c04501f220 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobInstructions.Serialization.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class LabelingJobInstructions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Uri)) + { + if (Uri != null) + { + writer.WritePropertyName("uri"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + } + else + { + writer.WriteNull("uri"); + } + } + writer.WriteEndObject(); + } + + internal static LabelingJobInstructions DeserializeLabelingJobInstructions(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional uri = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("uri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + uri = null; + continue; + } + uri = new Uri(property.Value.GetString()); + continue; + } + } + return new LabelingJobInstructions(uri.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobInstructions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobInstructions.cs new file mode 100644 index 000000000000..3b707e1ed5f9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobInstructions.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Instructions for labeling job. + internal partial class LabelingJobInstructions + { + /// Initializes a new instance of LabelingJobInstructions. + public LabelingJobInstructions() + { + } + + /// Initializes a new instance of LabelingJobInstructions. + /// The link to a page with detailed labeling instructions for labelers. + internal LabelingJobInstructions(Uri uri) + { + Uri = uri; + } + + /// The link to a page with detailed labeling instructions for labelers. + public Uri Uri { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobMediaProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobMediaProperties.Serialization.cs new file mode 100644 index 000000000000..bd98d8818512 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobMediaProperties.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class LabelingJobMediaProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("mediaType"u8); + writer.WriteStringValue(MediaType.ToString()); + writer.WriteEndObject(); + } + + internal static LabelingJobMediaProperties DeserializeLabelingJobMediaProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("mediaType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Image": return LabelingJobImageProperties.DeserializeLabelingJobImageProperties(element); + case "Text": return LabelingJobTextProperties.DeserializeLabelingJobTextProperties(element); + } + } + return UnknownLabelingJobMediaProperties.DeserializeUnknownLabelingJobMediaProperties(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobMediaProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobMediaProperties.cs new file mode 100644 index 000000000000..5534558be3ed --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobMediaProperties.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Properties of a labeling job + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class LabelingJobMediaProperties + { + /// Initializes a new instance of LabelingJobMediaProperties. + protected LabelingJobMediaProperties() + { + } + + /// Initializes a new instance of LabelingJobMediaProperties. + /// [Required] Media type of the job. + internal LabelingJobMediaProperties(MediaType mediaType) + { + MediaType = mediaType; + } + + /// [Required] Media type of the job. + internal MediaType MediaType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.Serialization.cs new file mode 100644 index 000000000000..9d2fc64341c4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.Serialization.cs @@ -0,0 +1,529 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class LabelingJobProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DataConfiguration)) + { + if (DataConfiguration != null) + { + writer.WritePropertyName("dataConfiguration"u8); + writer.WriteObjectValue(DataConfiguration); + } + else + { + writer.WriteNull("dataConfiguration"); + } + } + if (Optional.IsDefined(JobInstructions)) + { + if (JobInstructions != null) + { + writer.WritePropertyName("jobInstructions"u8); + writer.WriteObjectValue(JobInstructions); + } + else + { + writer.WriteNull("jobInstructions"); + } + } + if (Optional.IsCollectionDefined(LabelCategories)) + { + if (LabelCategories != null) + { + writer.WritePropertyName("labelCategories"u8); + writer.WriteStartObject(); + foreach (var item in LabelCategories) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("labelCategories"); + } + } + if (Optional.IsDefined(LabelingJobMediaProperties)) + { + if (LabelingJobMediaProperties != null) + { + writer.WritePropertyName("labelingJobMediaProperties"u8); + writer.WriteObjectValue(LabelingJobMediaProperties); + } + else + { + writer.WriteNull("labelingJobMediaProperties"); + } + } + if (Optional.IsDefined(MlAssistConfiguration)) + { + writer.WritePropertyName("mlAssistConfiguration"u8); + writer.WriteObjectValue(MlAssistConfiguration); + } + if (Optional.IsDefined(ComponentId)) + { + if (ComponentId != null) + { + writer.WritePropertyName("componentId"u8); + writer.WriteStringValue(ComponentId); + } + else + { + writer.WriteNull("componentId"); + } + } + if (Optional.IsDefined(ComputeId)) + { + if (ComputeId != null) + { + writer.WritePropertyName("computeId"u8); + writer.WriteStringValue(ComputeId); + } + else + { + writer.WriteNull("computeId"); + } + } + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsDefined(ExperimentName)) + { + writer.WritePropertyName("experimentName"u8); + writer.WriteStringValue(ExperimentName); + } + if (Optional.IsDefined(Identity)) + { + if (Identity != null) + { + writer.WritePropertyName("identity"u8); + writer.WriteObjectValue(Identity); + } + else + { + writer.WriteNull("identity"); + } + } + if (Optional.IsDefined(IsArchived)) + { + writer.WritePropertyName("isArchived"u8); + writer.WriteBooleanValue(IsArchived.Value); + } + writer.WritePropertyName("jobType"u8); + writer.WriteStringValue(JobType.ToString()); + if (Optional.IsDefined(NotificationSetting)) + { + if (NotificationSetting != null) + { + writer.WritePropertyName("notificationSetting"u8); + writer.WriteObjectValue(NotificationSetting); + } + else + { + writer.WriteNull("notificationSetting"); + } + } + if (Optional.IsCollectionDefined(SecretsConfiguration)) + { + if (SecretsConfiguration != null) + { + writer.WritePropertyName("secretsConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SecretsConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("secretsConfiguration"); + } + } + if (Optional.IsCollectionDefined(Services)) + { + if (Services != null) + { + writer.WritePropertyName("services"u8); + writer.WriteStartObject(); + foreach (var item in Services) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("services"); + } + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static LabelingJobProperties DeserializeLabelingJobProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional createdDateTime = default; + Optional dataConfiguration = default; + Optional jobInstructions = default; + Optional> labelCategories = default; + Optional labelingJobMediaProperties = default; + Optional mlAssistConfiguration = default; + Optional progressMetrics = default; + Optional projectId = default; + Optional provisioningState = default; + Optional> statusMessages = default; + Optional componentId = default; + Optional computeId = default; + Optional displayName = default; + Optional experimentName = default; + Optional identity = default; + Optional isArchived = default; + JobType jobType = default; + Optional notificationSetting = default; + Optional> secretsConfiguration = default; + Optional> services = default; + Optional status = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("createdDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + createdDateTime = null; + continue; + } + createdDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("dataConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataConfiguration = null; + continue; + } + dataConfiguration = LabelingDataConfiguration.DeserializeLabelingDataConfiguration(property.Value); + continue; + } + if (property.NameEquals("jobInstructions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + jobInstructions = null; + continue; + } + jobInstructions = LabelingJobInstructions.DeserializeLabelingJobInstructions(property.Value); + continue; + } + if (property.NameEquals("labelCategories"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + labelCategories = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, LabelCategory.DeserializeLabelCategory(property0.Value)); + } + labelCategories = dictionary; + continue; + } + if (property.NameEquals("labelingJobMediaProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + labelingJobMediaProperties = null; + continue; + } + labelingJobMediaProperties = LabelingJobMediaProperties.DeserializeLabelingJobMediaProperties(property.Value); + continue; + } + if (property.NameEquals("mlAssistConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mlAssistConfiguration = MLAssistConfiguration.DeserializeMLAssistConfiguration(property.Value); + continue; + } + if (property.NameEquals("progressMetrics"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + progressMetrics = null; + continue; + } + progressMetrics = ProgressMetrics.DeserializeProgressMetrics(property.Value); + continue; + } + if (property.NameEquals("projectId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + projectId = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new JobProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("statusMessages"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + statusMessages = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(StatusMessage.DeserializeStatusMessage(item)); + } + statusMessages = array; + continue; + } + if (property.NameEquals("componentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + componentId = null; + continue; + } + componentId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("computeId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + computeId = null; + continue; + } + computeId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("displayName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("experimentName"u8)) + { + experimentName = property.Value.GetString(); + continue; + } + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + identity = null; + continue; + } + identity = MachineLearningIdentityConfiguration.DeserializeMachineLearningIdentityConfiguration(property.Value); + continue; + } + if (property.NameEquals("isArchived"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isArchived = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("jobType"u8)) + { + jobType = new JobType(property.Value.GetString()); + continue; + } + if (property.NameEquals("notificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + notificationSetting = null; + continue; + } + notificationSetting = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("secretsConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + secretsConfiguration = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, SecretConfiguration.DeserializeSecretConfiguration(property0.Value)); + } + secretsConfiguration = dictionary; + continue; + } + if (property.NameEquals("services"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + services = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, MachineLearningJobService.DeserializeMachineLearningJobService(property0.Value)); + } + services = dictionary; + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new MachineLearningJobStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new LabelingJobProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, notificationSetting.Value, Optional.ToDictionary(secretsConfiguration), Optional.ToDictionary(services), Optional.ToNullable(status), Optional.ToNullable(createdDateTime), dataConfiguration.Value, jobInstructions.Value, Optional.ToDictionary(labelCategories), labelingJobMediaProperties.Value, mlAssistConfiguration.Value, progressMetrics.Value, Optional.ToNullable(projectId), Optional.ToNullable(provisioningState), Optional.ToList(statusMessages)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs new file mode 100644 index 000000000000..0361477bbece --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Labeling job definition. + public partial class LabelingJobProperties : MachineLearningJobProperties + { + /// Initializes a new instance of LabelingJobProperties. + public LabelingJobProperties() + { + LabelCategories = new ChangeTrackingDictionary(); + StatusMessages = new ChangeTrackingList(); + JobType = JobType.Labeling; + } + + /// Initializes a new instance of LabelingJobProperties. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// ARM resource ID of the component resource. + /// ARM resource ID of the compute resource. + /// Display name of job. + /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. + /// + /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + /// Defaults to AmlToken if null. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Is the asset archived?. + /// [Required] Specifies the type of job. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. + /// + /// List of JobEndpoints. + /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + /// + /// Status of the job. + /// Created time of the job in UTC timezone. + /// Configuration of data used in the job. + /// Labeling instructions of the job. + /// Label categories of the job. + /// + /// Media type specific properties in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// Configuration of MLAssist feature in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// Progress metrics of the job. + /// Internal id of the job(Previously called project). + /// Specifies the labeling job provisioning state. + /// Status messages of the job. + internal LabelingJobProperties(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, DateTimeOffset? createdOn, LabelingDataConfiguration dataConfiguration, LabelingJobInstructions jobInstructions, IDictionary labelCategories, LabelingJobMediaProperties labelingJobMediaProperties, MLAssistConfiguration mlAssistConfiguration, ProgressMetrics progressMetrics, Guid? projectId, JobProvisioningState? provisioningState, IReadOnlyList statusMessages) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) + { + CreatedOn = createdOn; + DataConfiguration = dataConfiguration; + JobInstructions = jobInstructions; + LabelCategories = labelCategories; + LabelingJobMediaProperties = labelingJobMediaProperties; + MlAssistConfiguration = mlAssistConfiguration; + ProgressMetrics = progressMetrics; + ProjectId = projectId; + ProvisioningState = provisioningState; + StatusMessages = statusMessages; + JobType = jobType; + } + + /// Created time of the job in UTC timezone. + public DateTimeOffset? CreatedOn { get; } + /// Configuration of data used in the job. + public LabelingDataConfiguration DataConfiguration { get; set; } + /// Labeling instructions of the job. + internal LabelingJobInstructions JobInstructions { get; set; } + /// The link to a page with detailed labeling instructions for labelers. + public Uri JobInstructionsUri + { + get => JobInstructions is null ? default : JobInstructions.Uri; + set + { + if (JobInstructions is null) + JobInstructions = new LabelingJobInstructions(); + JobInstructions.Uri = value; + } + } + + /// Label categories of the job. + public IDictionary LabelCategories { get; set; } + /// + /// Media type specific properties in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public LabelingJobMediaProperties LabelingJobMediaProperties { get; set; } + /// + /// Configuration of MLAssist feature in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public MLAssistConfiguration MlAssistConfiguration { get; set; } + /// Progress metrics of the job. + public ProgressMetrics ProgressMetrics { get; } + /// Internal id of the job(Previously called project). + public Guid? ProjectId { get; } + /// Specifies the labeling job provisioning state. + public JobProvisioningState? ProvisioningState { get; } + /// Status messages of the job. + public IReadOnlyList StatusMessages { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.Serialization.cs new file mode 100644 index 000000000000..a798a436023f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class LabelingJobResourceArmPaginatedResult + { + internal static LabelingJobResourceArmPaginatedResult DeserializeLabelingJobResourceArmPaginatedResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(LabelingJobData.DeserializeLabelingJobData(item)); + } + value = array; + continue; + } + } + return new LabelingJobResourceArmPaginatedResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs new file mode 100644 index 000000000000..dc62ef9556a8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// A paginated list of LabelingJob entities. + internal partial class LabelingJobResourceArmPaginatedResult + { + /// Initializes a new instance of LabelingJobResourceArmPaginatedResult. + internal LabelingJobResourceArmPaginatedResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of LabelingJobResourceArmPaginatedResult. + /// The link to the next page of LabelingJob objects. If null, there are no additional pages. + /// An array of objects of type LabelingJob. + internal LabelingJobResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page of LabelingJob objects. If null, there are no additional pages. + public string NextLink { get; } + /// An array of objects of type LabelingJob. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobTextProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobTextProperties.Serialization.cs new file mode 100644 index 000000000000..61e7d0fa1aaa --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobTextProperties.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class LabelingJobTextProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AnnotationType)) + { + writer.WritePropertyName("annotationType"u8); + writer.WriteStringValue(AnnotationType.Value.ToString()); + } + writer.WritePropertyName("mediaType"u8); + writer.WriteStringValue(MediaType.ToString()); + writer.WriteEndObject(); + } + + internal static LabelingJobTextProperties DeserializeLabelingJobTextProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional annotationType = default; + MediaType mediaType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("annotationType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + annotationType = new TextAnnotationType(property.Value.GetString()); + continue; + } + if (property.NameEquals("mediaType"u8)) + { + mediaType = new MediaType(property.Value.GetString()); + continue; + } + } + return new LabelingJobTextProperties(mediaType, Optional.ToNullable(annotationType)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobTextProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobTextProperties.cs new file mode 100644 index 000000000000..c091c45859a5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobTextProperties.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Properties of a labeling job for text data. + public partial class LabelingJobTextProperties : LabelingJobMediaProperties + { + /// Initializes a new instance of LabelingJobTextProperties. + public LabelingJobTextProperties() + { + MediaType = MediaType.Text; + } + + /// Initializes a new instance of LabelingJobTextProperties. + /// [Required] Media type of the job. + /// Annotation type of text labeling job. + internal LabelingJobTextProperties(MediaType mediaType, TextAnnotationType? annotationType) : base(mediaType) + { + AnnotationType = annotationType; + MediaType = mediaType; + } + + /// Annotation type of text labeling job. + public TextAnnotationType? AnnotationType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LakeHouseArtifact.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LakeHouseArtifact.Serialization.cs new file mode 100644 index 000000000000..4018381b4949 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LakeHouseArtifact.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class LakeHouseArtifact : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("artifactName"u8); + writer.WriteStringValue(ArtifactName); + writer.WritePropertyName("artifactType"u8); + writer.WriteStringValue(ArtifactType.ToString()); + writer.WriteEndObject(); + } + + internal static LakeHouseArtifact DeserializeLakeHouseArtifact(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string artifactName = default; + OneLakeArtifactType artifactType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("artifactName"u8)) + { + artifactName = property.Value.GetString(); + continue; + } + if (property.NameEquals("artifactType"u8)) + { + artifactType = new OneLakeArtifactType(property.Value.GetString()); + continue; + } + } + return new LakeHouseArtifact(artifactName, artifactType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LakeHouseArtifact.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LakeHouseArtifact.cs new file mode 100644 index 000000000000..45f28f2a4bed --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LakeHouseArtifact.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The LakeHouseArtifact. + public partial class LakeHouseArtifact : OneLakeArtifact + { + /// Initializes a new instance of LakeHouseArtifact. + /// [Required] OneLake artifact name. + /// is null. + public LakeHouseArtifact(string artifactName) : base(artifactName) + { + Argument.AssertNotNull(artifactName, nameof(artifactName)); + + ArtifactType = OneLakeArtifactType.LakeHouse; + } + + /// Initializes a new instance of LakeHouseArtifact. + /// [Required] OneLake artifact name. + /// [Required] OneLake artifact type. + internal LakeHouseArtifact(string artifactName, OneLakeArtifactType artifactType) : base(artifactName, artifactType) + { + ArtifactType = artifactType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LogTrainingMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LogTrainingMetric.cs new file mode 100644 index 000000000000..b74ff72db231 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LogTrainingMetric.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The LogTrainingMetric. + public readonly partial struct LogTrainingMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public LogTrainingMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnableValue = "Enable"; + private const string DisableValue = "Disable"; + + /// Enable compute and log training metrics. + public static LogTrainingMetric Enable { get; } = new LogTrainingMetric(EnableValue); + /// Disable compute and log training metrics. + public static LogTrainingMetric Disable { get; } = new LogTrainingMetric(DisableValue); + /// Determines if two values are the same. + public static bool operator ==(LogTrainingMetric left, LogTrainingMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(LogTrainingMetric left, LogTrainingMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator LogTrainingMetric(string value) => new LogTrainingMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is LogTrainingMetric other && Equals(other); + /// + public bool Equals(LogTrainingMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LogValidationLoss.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LogValidationLoss.cs new file mode 100644 index 000000000000..b5e242260ac3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LogValidationLoss.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The LogValidationLoss. + public readonly partial struct LogValidationLoss : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public LogValidationLoss(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnableValue = "Enable"; + private const string DisableValue = "Disable"; + + /// Enable compute and log validation metrics. + public static LogValidationLoss Enable { get; } = new LogValidationLoss(EnableValue); + /// Disable compute and log validation metrics. + public static LogValidationLoss Disable { get; } = new LogValidationLoss(DisableValue); + /// Determines if two values are the same. + public static bool operator ==(LogValidationLoss left, LogValidationLoss right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(LogValidationLoss left, LogValidationLoss right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator LogValidationLoss(string value) => new LogValidationLoss(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is LogValidationLoss other && Equals(other); + /// + public bool Equals(LogValidationLoss other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.Serialization.cs new file mode 100644 index 000000000000..48686dc885fb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MLAssistConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("mlAssist"u8); + writer.WriteStringValue(MlAssist.ToString()); + writer.WriteEndObject(); + } + + internal static MLAssistConfiguration DeserializeMLAssistConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("mlAssist", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Disabled": return MLAssistConfigurationDisabled.DeserializeMLAssistConfigurationDisabled(element); + case "Enabled": return MLAssistConfigurationEnabled.DeserializeMLAssistConfigurationEnabled(element); + } + } + return UnknownMLAssistConfiguration.DeserializeUnknownMLAssistConfiguration(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.cs new file mode 100644 index 000000000000..39fb7c169741 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Labeling MLAssist configuration definition + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class MLAssistConfiguration + { + /// Initializes a new instance of MLAssistConfiguration. + protected MLAssistConfiguration() + { + } + + /// Initializes a new instance of MLAssistConfiguration. + /// [Required] Indicates whether MLAssist feature is enabled. + internal MLAssistConfiguration(MLAssistConfigurationType mlAssist) + { + MlAssist = mlAssist; + } + + /// [Required] Indicates whether MLAssist feature is enabled. + internal MLAssistConfigurationType MlAssist { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.Serialization.cs new file mode 100644 index 000000000000..434c0fb6369c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MLAssistConfigurationDisabled : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("mlAssist"u8); + writer.WriteStringValue(MlAssist.ToString()); + writer.WriteEndObject(); + } + + internal static MLAssistConfigurationDisabled DeserializeMLAssistConfigurationDisabled(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MLAssistConfigurationType mlAssist = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mlAssist"u8)) + { + mlAssist = new MLAssistConfigurationType(property.Value.GetString()); + continue; + } + } + return new MLAssistConfigurationDisabled(mlAssist); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.cs new file mode 100644 index 000000000000..4dbd3126c9b5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Labeling MLAssist configuration definition when MLAssist is disabled. + public partial class MLAssistConfigurationDisabled : MLAssistConfiguration + { + /// Initializes a new instance of MLAssistConfigurationDisabled. + public MLAssistConfigurationDisabled() + { + MlAssist = MLAssistConfigurationType.Disabled; + } + + /// Initializes a new instance of MLAssistConfigurationDisabled. + /// [Required] Indicates whether MLAssist feature is enabled. + internal MLAssistConfigurationDisabled(MLAssistConfigurationType mlAssist) : base(mlAssist) + { + MlAssist = mlAssist; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.Serialization.cs new file mode 100644 index 000000000000..0639ec03fa66 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.Serialization.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MLAssistConfigurationEnabled : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("inferencingComputeBinding"u8); + writer.WriteStringValue(InferencingComputeBinding); + writer.WritePropertyName("trainingComputeBinding"u8); + writer.WriteStringValue(TrainingComputeBinding); + writer.WritePropertyName("mlAssist"u8); + writer.WriteStringValue(MlAssist.ToString()); + writer.WriteEndObject(); + } + + internal static MLAssistConfigurationEnabled DeserializeMLAssistConfigurationEnabled(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string inferencingComputeBinding = default; + string trainingComputeBinding = default; + MLAssistConfigurationType mlAssist = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("inferencingComputeBinding"u8)) + { + inferencingComputeBinding = property.Value.GetString(); + continue; + } + if (property.NameEquals("trainingComputeBinding"u8)) + { + trainingComputeBinding = property.Value.GetString(); + continue; + } + if (property.NameEquals("mlAssist"u8)) + { + mlAssist = new MLAssistConfigurationType(property.Value.GetString()); + continue; + } + } + return new MLAssistConfigurationEnabled(mlAssist, inferencingComputeBinding, trainingComputeBinding); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.cs new file mode 100644 index 000000000000..05aad45b95dd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Labeling MLAssist configuration definition when MLAssist is enabled. + public partial class MLAssistConfigurationEnabled : MLAssistConfiguration + { + /// Initializes a new instance of MLAssistConfigurationEnabled. + /// [Required] AML compute binding used in inferencing. + /// [Required] AML compute binding used in training. + /// or is null. + public MLAssistConfigurationEnabled(string inferencingComputeBinding, string trainingComputeBinding) + { + Argument.AssertNotNull(inferencingComputeBinding, nameof(inferencingComputeBinding)); + Argument.AssertNotNull(trainingComputeBinding, nameof(trainingComputeBinding)); + + InferencingComputeBinding = inferencingComputeBinding; + TrainingComputeBinding = trainingComputeBinding; + MlAssist = MLAssistConfigurationType.Enabled; + } + + /// Initializes a new instance of MLAssistConfigurationEnabled. + /// [Required] Indicates whether MLAssist feature is enabled. + /// [Required] AML compute binding used in inferencing. + /// [Required] AML compute binding used in training. + internal MLAssistConfigurationEnabled(MLAssistConfigurationType mlAssist, string inferencingComputeBinding, string trainingComputeBinding) : base(mlAssist) + { + InferencingComputeBinding = inferencingComputeBinding; + TrainingComputeBinding = trainingComputeBinding; + MlAssist = mlAssist; + } + + /// [Required] AML compute binding used in inferencing. + public string InferencingComputeBinding { get; set; } + /// [Required] AML compute binding used in training. + public string TrainingComputeBinding { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationType.cs new file mode 100644 index 000000000000..734838e18a82 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MLAssistConfigurationType. + internal readonly partial struct MLAssistConfigurationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MLAssistConfigurationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MLAssistConfigurationType Enabled { get; } = new MLAssistConfigurationType(EnabledValue); + /// Disabled. + public static MLAssistConfigurationType Disabled { get; } = new MLAssistConfigurationType(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MLAssistConfigurationType left, MLAssistConfigurationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MLAssistConfigurationType left, MLAssistConfigurationType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MLAssistConfigurationType(string value) => new MLAssistConfigurationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MLAssistConfigurationType other && Equals(other); + /// + public bool Equals(MLAssistConfigurationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLFlowAutologgerState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLFlowAutologgerState.cs new file mode 100644 index 000000000000..30a422b21936 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLFlowAutologgerState.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the state of mlflow autologger. + public readonly partial struct MLFlowAutologgerState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MLFlowAutologgerState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MLFlowAutologgerState Enabled { get; } = new MLFlowAutologgerState(EnabledValue); + /// Disabled. + public static MLFlowAutologgerState Disabled { get; } = new MLFlowAutologgerState(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MLFlowAutologgerState left, MLFlowAutologgerState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MLFlowAutologgerState left, MLFlowAutologgerState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MLFlowAutologgerState(string value) => new MLFlowAutologgerState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MLFlowAutologgerState other && Equals(other); + /// + public bool Equals(MLFlowAutologgerState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetBase.Serialization.cs index a4f35cd8e51c..77cd689707fc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetBase.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetBase.Serialization.cs @@ -16,6 +16,18 @@ public partial class MachineLearningAssetBase : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -83,6 +95,7 @@ internal static MachineLearningAssetBase DeserializeMachineLearningAssetBase(Jso { return null; } + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -90,6 +103,16 @@ internal static MachineLearningAssetBase DeserializeMachineLearningAssetBase(Jso Optional> tags = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -149,7 +172,7 @@ internal static MachineLearningAssetBase DeserializeMachineLearningAssetBase(Jso continue; } } - return new MachineLearningAssetBase(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived)); + return new MachineLearningAssetBase(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetBase.cs index feab03fa0570..dcaff9bcd944 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetBase.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetBase.cs @@ -21,17 +21,21 @@ public MachineLearningAssetBase() /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. - internal MachineLearningAssetBase(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived) : base(description, properties, tags) + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. + internal MachineLearningAssetBase(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived) : base(description, properties, tags) { + AutoDeleteSetting = autoDeleteSetting; IsAnonymous = isAnonymous; IsArchived = isArchived; } - /// If the name version are system generated (anonymous registration). + /// Specifies the lifecycle setting of managed data asset. + public AutoDeleteSetting AutoDeleteSetting { get; set; } + /// 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. public bool? IsAnonymous { get; set; } - /// Is the asset archived?. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. public bool? IsArchived { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetReferenceBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetReferenceBase.Serialization.cs index 0056115ad5d7..c94df13b44c4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetReferenceBase.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetReferenceBase.Serialization.cs @@ -31,8 +31,8 @@ internal static MachineLearningAssetReferenceBase DeserializeMachineLearningAsse switch (discriminator.GetString()) { case "DataPath": return MachineLearningDataPathAssetReference.DeserializeMachineLearningDataPathAssetReference(element); - case "Id": return MachineLearningIdAssetReference.DeserializeMachineLearningIdAssetReference(element); case "OutputPath": return MachineLearningOutputPathAssetReference.DeserializeMachineLearningOutputPathAssetReference(element); + case "Id": return MachineLearningIdAssetReference.DeserializeMachineLearningIdAssetReference(element); } } return UnknownAssetReferenceBase.DeserializeUnknownAssetReferenceBase(element); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetReferenceBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetReferenceBase.cs index 445245c06f43..92104241e521 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetReferenceBase.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssetReferenceBase.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// Base definition for asset references. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , and . /// public abstract partial class MachineLearningAssetReferenceBase { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureBlobDatastore.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureBlobDatastore.Serialization.cs index 80abcdc126f8..067402402ad9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureBlobDatastore.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureBlobDatastore.Serialization.cs @@ -69,10 +69,46 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("serviceDataAccessAuthIdentity"u8); writer.WriteStringValue(ServiceDataAccessAuthIdentity.Value.ToString()); } + if (Optional.IsDefined(ResourceGroup)) + { + if (ResourceGroup != null) + { + writer.WritePropertyName("resourceGroup"u8); + writer.WriteStringValue(ResourceGroup); + } + else + { + writer.WriteNull("resourceGroup"); + } + } + if (Optional.IsDefined(SubscriptionId)) + { + if (SubscriptionId != null) + { + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); + } + else + { + writer.WriteNull("subscriptionId"); + } + } writer.WritePropertyName("credentials"u8); writer.WriteObjectValue(Credentials); writer.WritePropertyName("datastoreType"u8); writer.WriteStringValue(DatastoreType.ToString()); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } if (Optional.IsDefined(Description)) { if (Description != null) @@ -135,8 +171,11 @@ internal static MachineLearningAzureBlobDatastore DeserializeMachineLearningAzur Optional endpoint = default; Optional protocol = default; Optional serviceDataAccessAuthIdentity = default; + Optional resourceGroup = default; + Optional subscriptionId = default; MachineLearningDatastoreCredentials credentials = default; DatastoreType datastoreType = default; + Optional intellectualProperty = default; Optional isDefault = default; Optional description = default; Optional> properties = default; @@ -192,6 +231,26 @@ internal static MachineLearningAzureBlobDatastore DeserializeMachineLearningAzur serviceDataAccessAuthIdentity = new MachineLearningServiceDataAccessAuthIdentity(property.Value.GetString()); continue; } + if (property.NameEquals("resourceGroup"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resourceGroup = null; + continue; + } + resourceGroup = property.Value.GetString(); + continue; + } + if (property.NameEquals("subscriptionId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subscriptionId = null; + continue; + } + subscriptionId = property.Value.GetString(); + continue; + } if (property.NameEquals("credentials"u8)) { credentials = MachineLearningDatastoreCredentials.DeserializeMachineLearningDatastoreCredentials(property.Value); @@ -202,6 +261,16 @@ internal static MachineLearningAzureBlobDatastore DeserializeMachineLearningAzur datastoreType = new DatastoreType(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } if (property.NameEquals("isDefault"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -252,7 +321,7 @@ internal static MachineLearningAzureBlobDatastore DeserializeMachineLearningAzur continue; } } - return new MachineLearningAzureBlobDatastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, Optional.ToNullable(isDefault), accountName.Value, containerName.Value, endpoint.Value, protocol.Value, Optional.ToNullable(serviceDataAccessAuthIdentity)); + return new MachineLearningAzureBlobDatastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, intellectualProperty.Value, Optional.ToNullable(isDefault), accountName.Value, containerName.Value, endpoint.Value, protocol.Value, Optional.ToNullable(serviceDataAccessAuthIdentity), resourceGroup.Value, subscriptionId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureBlobDatastore.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureBlobDatastore.cs index 830fb7a62ded..1564b3f494f9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureBlobDatastore.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureBlobDatastore.cs @@ -18,7 +18,7 @@ public partial class MachineLearningAzureBlobDatastore : MachineLearningDatastor /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// is null. public MachineLearningAzureBlobDatastore(MachineLearningDatastoreCredentials credentials) : base(credentials) @@ -35,22 +35,27 @@ public MachineLearningAzureBlobDatastore(MachineLearningDatastoreCredentials cre /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// [Required] Storage type backing the datastore. + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. /// Storage account name. /// Storage account container name. /// Azure cloud endpoint for the storage account. /// Protocol used to communicate with the storage account. /// Indicates which identity to use to authenticate service data access to customer's storage. - internal MachineLearningAzureBlobDatastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, bool? isDefault, string accountName, string containerName, string endpoint, string protocol, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity) : base(description, properties, tags, credentials, datastoreType, isDefault) + /// Azure Resource Group name. + /// Azure Subscription Id. + internal MachineLearningAzureBlobDatastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, IntellectualProperty intellectualProperty, bool? isDefault, string accountName, string containerName, string endpoint, string protocol, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity, string resourceGroup, string subscriptionId) : base(description, properties, tags, credentials, datastoreType, intellectualProperty, isDefault) { AccountName = accountName; ContainerName = containerName; Endpoint = endpoint; Protocol = protocol; ServiceDataAccessAuthIdentity = serviceDataAccessAuthIdentity; + ResourceGroup = resourceGroup; + SubscriptionId = subscriptionId; DatastoreType = datastoreType; } @@ -64,5 +69,9 @@ internal MachineLearningAzureBlobDatastore(string description, IDictionary Indicates which identity to use to authenticate service data access to customer's storage. public MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get; set; } + /// Azure Resource Group name. + public string ResourceGroup { get; set; } + /// Azure Subscription Id. + public string SubscriptionId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen1Datastore.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen1Datastore.Serialization.cs index fca663cda413..62ef4efea0ec 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen1Datastore.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen1Datastore.Serialization.cs @@ -23,10 +23,46 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("storeName"u8); writer.WriteStringValue(StoreName); + if (Optional.IsDefined(ResourceGroup)) + { + if (ResourceGroup != null) + { + writer.WritePropertyName("resourceGroup"u8); + writer.WriteStringValue(ResourceGroup); + } + else + { + writer.WriteNull("resourceGroup"); + } + } + if (Optional.IsDefined(SubscriptionId)) + { + if (SubscriptionId != null) + { + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); + } + else + { + writer.WriteNull("subscriptionId"); + } + } writer.WritePropertyName("credentials"u8); writer.WriteObjectValue(Credentials); writer.WritePropertyName("datastoreType"u8); writer.WriteStringValue(DatastoreType.ToString()); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } if (Optional.IsDefined(Description)) { if (Description != null) @@ -86,8 +122,11 @@ internal static MachineLearningAzureDataLakeGen1Datastore DeserializeMachineLear } Optional serviceDataAccessAuthIdentity = default; string storeName = default; + Optional resourceGroup = default; + Optional subscriptionId = default; MachineLearningDatastoreCredentials credentials = default; DatastoreType datastoreType = default; + Optional intellectualProperty = default; Optional isDefault = default; Optional description = default; Optional> properties = default; @@ -108,6 +147,26 @@ internal static MachineLearningAzureDataLakeGen1Datastore DeserializeMachineLear storeName = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGroup"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resourceGroup = null; + continue; + } + resourceGroup = property.Value.GetString(); + continue; + } + if (property.NameEquals("subscriptionId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subscriptionId = null; + continue; + } + subscriptionId = property.Value.GetString(); + continue; + } if (property.NameEquals("credentials"u8)) { credentials = MachineLearningDatastoreCredentials.DeserializeMachineLearningDatastoreCredentials(property.Value); @@ -118,6 +177,16 @@ internal static MachineLearningAzureDataLakeGen1Datastore DeserializeMachineLear datastoreType = new DatastoreType(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } if (property.NameEquals("isDefault"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -168,7 +237,7 @@ internal static MachineLearningAzureDataLakeGen1Datastore DeserializeMachineLear continue; } } - return new MachineLearningAzureDataLakeGen1Datastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, Optional.ToNullable(isDefault), Optional.ToNullable(serviceDataAccessAuthIdentity), storeName); + return new MachineLearningAzureDataLakeGen1Datastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, intellectualProperty.Value, Optional.ToNullable(isDefault), Optional.ToNullable(serviceDataAccessAuthIdentity), storeName, resourceGroup.Value, subscriptionId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen1Datastore.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen1Datastore.cs index db33bcff91a9..da03e616c4ea 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen1Datastore.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen1Datastore.cs @@ -18,7 +18,7 @@ public partial class MachineLearningAzureDataLakeGen1Datastore : MachineLearning /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// [Required] Azure Data Lake store name. /// or is null. @@ -38,16 +38,21 @@ public MachineLearningAzureDataLakeGen1Datastore(MachineLearningDatastoreCredent /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// [Required] Storage type backing the datastore. + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. /// Indicates which identity to use to authenticate service data access to customer's storage. /// [Required] Azure Data Lake store name. - internal MachineLearningAzureDataLakeGen1Datastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, bool? isDefault, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity, string storeName) : base(description, properties, tags, credentials, datastoreType, isDefault) + /// Azure Resource Group name. + /// Azure Subscription Id. + internal MachineLearningAzureDataLakeGen1Datastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, IntellectualProperty intellectualProperty, bool? isDefault, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity, string storeName, string resourceGroup, string subscriptionId) : base(description, properties, tags, credentials, datastoreType, intellectualProperty, isDefault) { ServiceDataAccessAuthIdentity = serviceDataAccessAuthIdentity; StoreName = storeName; + ResourceGroup = resourceGroup; + SubscriptionId = subscriptionId; DatastoreType = datastoreType; } @@ -55,5 +60,9 @@ internal MachineLearningAzureDataLakeGen1Datastore(string description, IDictiona public MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get; set; } /// [Required] Azure Data Lake store name. public string StoreName { get; set; } + /// Azure Resource Group name. + public string ResourceGroup { get; set; } + /// Azure Subscription Id. + public string SubscriptionId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen2Datastore.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen2Datastore.Serialization.cs index 98f61b7177f5..a1e977d76baa 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen2Datastore.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen2Datastore.Serialization.cs @@ -49,10 +49,46 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("serviceDataAccessAuthIdentity"u8); writer.WriteStringValue(ServiceDataAccessAuthIdentity.Value.ToString()); } + if (Optional.IsDefined(ResourceGroup)) + { + if (ResourceGroup != null) + { + writer.WritePropertyName("resourceGroup"u8); + writer.WriteStringValue(ResourceGroup); + } + else + { + writer.WriteNull("resourceGroup"); + } + } + if (Optional.IsDefined(SubscriptionId)) + { + if (SubscriptionId != null) + { + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); + } + else + { + writer.WriteNull("subscriptionId"); + } + } writer.WritePropertyName("credentials"u8); writer.WriteObjectValue(Credentials); writer.WritePropertyName("datastoreType"u8); writer.WriteStringValue(DatastoreType.ToString()); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } if (Optional.IsDefined(Description)) { if (Description != null) @@ -115,8 +151,11 @@ internal static MachineLearningAzureDataLakeGen2Datastore DeserializeMachineLear string filesystem = default; Optional protocol = default; Optional serviceDataAccessAuthIdentity = default; + Optional resourceGroup = default; + Optional subscriptionId = default; MachineLearningDatastoreCredentials credentials = default; DatastoreType datastoreType = default; + Optional intellectualProperty = default; Optional isDefault = default; Optional description = default; Optional> properties = default; @@ -162,6 +201,26 @@ internal static MachineLearningAzureDataLakeGen2Datastore DeserializeMachineLear serviceDataAccessAuthIdentity = new MachineLearningServiceDataAccessAuthIdentity(property.Value.GetString()); continue; } + if (property.NameEquals("resourceGroup"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resourceGroup = null; + continue; + } + resourceGroup = property.Value.GetString(); + continue; + } + if (property.NameEquals("subscriptionId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subscriptionId = null; + continue; + } + subscriptionId = property.Value.GetString(); + continue; + } if (property.NameEquals("credentials"u8)) { credentials = MachineLearningDatastoreCredentials.DeserializeMachineLearningDatastoreCredentials(property.Value); @@ -172,6 +231,16 @@ internal static MachineLearningAzureDataLakeGen2Datastore DeserializeMachineLear datastoreType = new DatastoreType(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } if (property.NameEquals("isDefault"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -222,7 +291,7 @@ internal static MachineLearningAzureDataLakeGen2Datastore DeserializeMachineLear continue; } } - return new MachineLearningAzureDataLakeGen2Datastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, Optional.ToNullable(isDefault), accountName, endpoint.Value, filesystem, protocol.Value, Optional.ToNullable(serviceDataAccessAuthIdentity)); + return new MachineLearningAzureDataLakeGen2Datastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, intellectualProperty.Value, Optional.ToNullable(isDefault), accountName, endpoint.Value, filesystem, protocol.Value, Optional.ToNullable(serviceDataAccessAuthIdentity), resourceGroup.Value, subscriptionId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen2Datastore.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen2Datastore.cs index 9c789f339940..e631ff8eb319 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen2Datastore.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureDataLakeGen2Datastore.cs @@ -18,7 +18,7 @@ public partial class MachineLearningAzureDataLakeGen2Datastore : MachineLearning /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// [Required] Storage account name. /// [Required] The name of the Data Lake Gen2 filesystem. @@ -41,22 +41,27 @@ public MachineLearningAzureDataLakeGen2Datastore(MachineLearningDatastoreCredent /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// [Required] Storage type backing the datastore. + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. /// [Required] Storage account name. /// Azure cloud endpoint for the storage account. /// [Required] The name of the Data Lake Gen2 filesystem. /// Protocol used to communicate with the storage account. /// Indicates which identity to use to authenticate service data access to customer's storage. - internal MachineLearningAzureDataLakeGen2Datastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, bool? isDefault, string accountName, string endpoint, string filesystem, string protocol, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity) : base(description, properties, tags, credentials, datastoreType, isDefault) + /// Azure Resource Group name. + /// Azure Subscription Id. + internal MachineLearningAzureDataLakeGen2Datastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, IntellectualProperty intellectualProperty, bool? isDefault, string accountName, string endpoint, string filesystem, string protocol, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity, string resourceGroup, string subscriptionId) : base(description, properties, tags, credentials, datastoreType, intellectualProperty, isDefault) { AccountName = accountName; Endpoint = endpoint; Filesystem = filesystem; Protocol = protocol; ServiceDataAccessAuthIdentity = serviceDataAccessAuthIdentity; + ResourceGroup = resourceGroup; + SubscriptionId = subscriptionId; DatastoreType = datastoreType; } @@ -70,5 +75,9 @@ internal MachineLearningAzureDataLakeGen2Datastore(string description, IDictiona public string Protocol { get; set; } /// Indicates which identity to use to authenticate service data access to customer's storage. public MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get; set; } + /// Azure Resource Group name. + public string ResourceGroup { get; set; } + /// Azure Subscription Id. + public string SubscriptionId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureFileDatastore.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureFileDatastore.Serialization.cs index a1a822b32eca..411903f8035c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureFileDatastore.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureFileDatastore.Serialization.cs @@ -49,10 +49,46 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("serviceDataAccessAuthIdentity"u8); writer.WriteStringValue(ServiceDataAccessAuthIdentity.Value.ToString()); } + if (Optional.IsDefined(ResourceGroup)) + { + if (ResourceGroup != null) + { + writer.WritePropertyName("resourceGroup"u8); + writer.WriteStringValue(ResourceGroup); + } + else + { + writer.WriteNull("resourceGroup"); + } + } + if (Optional.IsDefined(SubscriptionId)) + { + if (SubscriptionId != null) + { + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); + } + else + { + writer.WriteNull("subscriptionId"); + } + } writer.WritePropertyName("credentials"u8); writer.WriteObjectValue(Credentials); writer.WritePropertyName("datastoreType"u8); writer.WriteStringValue(DatastoreType.ToString()); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } if (Optional.IsDefined(Description)) { if (Description != null) @@ -115,8 +151,11 @@ internal static MachineLearningAzureFileDatastore DeserializeMachineLearningAzur string fileShareName = default; Optional protocol = default; Optional serviceDataAccessAuthIdentity = default; + Optional resourceGroup = default; + Optional subscriptionId = default; MachineLearningDatastoreCredentials credentials = default; DatastoreType datastoreType = default; + Optional intellectualProperty = default; Optional isDefault = default; Optional description = default; Optional> properties = default; @@ -162,6 +201,26 @@ internal static MachineLearningAzureFileDatastore DeserializeMachineLearningAzur serviceDataAccessAuthIdentity = new MachineLearningServiceDataAccessAuthIdentity(property.Value.GetString()); continue; } + if (property.NameEquals("resourceGroup"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resourceGroup = null; + continue; + } + resourceGroup = property.Value.GetString(); + continue; + } + if (property.NameEquals("subscriptionId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subscriptionId = null; + continue; + } + subscriptionId = property.Value.GetString(); + continue; + } if (property.NameEquals("credentials"u8)) { credentials = MachineLearningDatastoreCredentials.DeserializeMachineLearningDatastoreCredentials(property.Value); @@ -172,6 +231,16 @@ internal static MachineLearningAzureFileDatastore DeserializeMachineLearningAzur datastoreType = new DatastoreType(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } if (property.NameEquals("isDefault"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -222,7 +291,7 @@ internal static MachineLearningAzureFileDatastore DeserializeMachineLearningAzur continue; } } - return new MachineLearningAzureFileDatastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, Optional.ToNullable(isDefault), accountName, endpoint.Value, fileShareName, protocol.Value, Optional.ToNullable(serviceDataAccessAuthIdentity)); + return new MachineLearningAzureFileDatastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, intellectualProperty.Value, Optional.ToNullable(isDefault), accountName, endpoint.Value, fileShareName, protocol.Value, Optional.ToNullable(serviceDataAccessAuthIdentity), resourceGroup.Value, subscriptionId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureFileDatastore.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureFileDatastore.cs index 521e4d9029e5..3b4abbcaae78 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureFileDatastore.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAzureFileDatastore.cs @@ -18,7 +18,7 @@ public partial class MachineLearningAzureFileDatastore : MachineLearningDatastor /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// [Required] Storage account name. /// [Required] The name of the Azure file share that the datastore points to. @@ -41,22 +41,27 @@ public MachineLearningAzureFileDatastore(MachineLearningDatastoreCredentials cre /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// [Required] Storage type backing the datastore. + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. /// [Required] Storage account name. /// Azure cloud endpoint for the storage account. /// [Required] The name of the Azure file share that the datastore points to. /// Protocol used to communicate with the storage account. /// Indicates which identity to use to authenticate service data access to customer's storage. - internal MachineLearningAzureFileDatastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, bool? isDefault, string accountName, string endpoint, string fileShareName, string protocol, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity) : base(description, properties, tags, credentials, datastoreType, isDefault) + /// Azure Resource Group name. + /// Azure Subscription Id. + internal MachineLearningAzureFileDatastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, IntellectualProperty intellectualProperty, bool? isDefault, string accountName, string endpoint, string fileShareName, string protocol, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity, string resourceGroup, string subscriptionId) : base(description, properties, tags, credentials, datastoreType, intellectualProperty, isDefault) { AccountName = accountName; Endpoint = endpoint; FileShareName = fileShareName; Protocol = protocol; ServiceDataAccessAuthIdentity = serviceDataAccessAuthIdentity; + ResourceGroup = resourceGroup; + SubscriptionId = subscriptionId; DatastoreType = datastoreType; } @@ -70,5 +75,9 @@ internal MachineLearningAzureFileDatastore(string description, IDictionary Indicates which identity to use to authenticate service data access to customer's storage. public MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get; set; } + /// Azure Resource Group name. + public string ResourceGroup { get; set; } + /// Azure Subscription Id. + public string SubscriptionId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentProperties.Serialization.cs index f3317275723a..d54ac22d5dc1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentProperties.Serialization.cs @@ -28,6 +28,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("compute"); } } + if (Optional.IsDefined(DeploymentConfiguration)) + { + if (DeploymentConfiguration != null) + { + writer.WritePropertyName("deploymentConfiguration"u8); + writer.WriteObjectValue(DeploymentConfiguration); + } + else + { + writer.WriteNull("deploymentConfiguration"); + } + } if (Optional.IsDefined(ErrorThreshold)) { writer.WritePropertyName("errorThreshold"u8); @@ -176,6 +188,7 @@ internal static MachineLearningBatchDeploymentProperties DeserializeMachineLearn return null; } Optional compute = default; + Optional deploymentConfiguration = default; Optional errorThreshold = default; Optional loggingLevel = default; Optional maxConcurrencyPerInstance = default; @@ -203,6 +216,16 @@ internal static MachineLearningBatchDeploymentProperties DeserializeMachineLearn compute = property.Value.GetString(); continue; } + if (property.NameEquals("deploymentConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + deploymentConfiguration = null; + continue; + } + deploymentConfiguration = BatchDeploymentConfiguration.DeserializeBatchDeploymentConfiguration(property.Value); + continue; + } if (property.NameEquals("errorThreshold"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -353,7 +376,7 @@ internal static MachineLearningBatchDeploymentProperties DeserializeMachineLearn continue; } } - return new MachineLearningBatchDeploymentProperties(codeConfiguration.Value, description.Value, environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(properties), compute.Value, Optional.ToNullable(errorThreshold), Optional.ToNullable(loggingLevel), Optional.ToNullable(maxConcurrencyPerInstance), Optional.ToNullable(miniBatchSize), model.Value, Optional.ToNullable(outputAction), outputFileName.Value, Optional.ToNullable(provisioningState), resources.Value, retrySettings.Value); + return new MachineLearningBatchDeploymentProperties(codeConfiguration.Value, description.Value, environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(properties), compute.Value, deploymentConfiguration.Value, Optional.ToNullable(errorThreshold), Optional.ToNullable(loggingLevel), Optional.ToNullable(maxConcurrencyPerInstance), Optional.ToNullable(miniBatchSize), model.Value, Optional.ToNullable(outputAction), outputFileName.Value, Optional.ToNullable(provisioningState), resources.Value, retrySettings.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentProperties.cs index 4bbba9bb0ca1..e0b2b8366320 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentProperties.cs @@ -20,10 +20,15 @@ public MachineLearningBatchDeploymentProperties() /// Initializes a new instance of MachineLearningBatchDeploymentProperties. /// Code configuration for the endpoint deployment. /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. /// Environment variables configuration for the deployment. /// Property dictionary. Properties can be added, but not removed or altered. /// Compute target for batch inference operation. + /// + /// Properties relevant to different deployment types. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// /// /// 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]. @@ -41,7 +46,7 @@ public MachineLearningBatchDeploymentProperties() /// /// Reference to the model asset for the endpoint deployment. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , and . /// /// Indicates how the output will be organized. /// Customized output file name for append_row output action. @@ -54,9 +59,10 @@ public MachineLearningBatchDeploymentProperties() /// Retry Settings for the batch inference operation. /// If not provided, will default to the defaults defined in BatchRetrySettings. /// - internal MachineLearningBatchDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties, string compute, int? errorThreshold, MachineLearningBatchLoggingLevel? loggingLevel, int? maxConcurrencyPerInstance, long? miniBatchSize, MachineLearningAssetReferenceBase model, MachineLearningBatchOutputAction? outputAction, string outputFileName, MachineLearningDeploymentProvisioningState? provisioningState, MachineLearningDeploymentResourceConfiguration resources, MachineLearningBatchRetrySettings retrySettings) : base(codeConfiguration, description, environmentId, environmentVariables, properties) + internal MachineLearningBatchDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties, string compute, BatchDeploymentConfiguration deploymentConfiguration, int? errorThreshold, MachineLearningBatchLoggingLevel? loggingLevel, int? maxConcurrencyPerInstance, long? miniBatchSize, MachineLearningAssetReferenceBase model, MachineLearningBatchOutputAction? outputAction, string outputFileName, MachineLearningDeploymentProvisioningState? provisioningState, MachineLearningDeploymentResourceConfiguration resources, MachineLearningBatchRetrySettings retrySettings) : base(codeConfiguration, description, environmentId, environmentVariables, properties) { Compute = compute; + DeploymentConfiguration = deploymentConfiguration; ErrorThreshold = errorThreshold; LoggingLevel = loggingLevel; MaxConcurrencyPerInstance = maxConcurrencyPerInstance; @@ -72,6 +78,12 @@ internal MachineLearningBatchDeploymentProperties(MachineLearningCodeConfigurati /// Compute target for batch inference operation. public string Compute { get; set; } /// + /// Properties relevant to different deployment types. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public BatchDeploymentConfiguration DeploymentConfiguration { get; set; } + /// /// 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. @@ -92,7 +104,7 @@ internal MachineLearningBatchDeploymentProperties(MachineLearningCodeConfigurati /// /// Reference to the model asset for the endpoint deployment. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , and . /// public MachineLearningAssetReferenceBase Model { get; set; } /// Indicates how the output will be organized. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCmkIdentity.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCmkIdentity.cs index 7fe636cacccd..8d5de22f6d4f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCmkIdentity.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCmkIdentity.cs @@ -9,7 +9,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// Identity that will be used to access key vault for encryption at rest. + /// Identity object used for encryption. internal partial class MachineLearningCmkIdentity { /// Initializes a new instance of MachineLearningCmkIdentity. @@ -18,13 +18,13 @@ public MachineLearningCmkIdentity() } /// Initializes a new instance of MachineLearningCmkIdentity. - /// The ArmId of the user assigned identity that will be used to access the customer managed key vault. + /// UserAssignedIdentity to be used to fetch the encryption key from keyVault. internal MachineLearningCmkIdentity(ResourceIdentifier userAssignedIdentity) { UserAssignedIdentity = userAssignedIdentity; } - /// The ArmId of the user assigned identity that will be used to access the customer managed key vault. + /// UserAssignedIdentity to be used to fetch the encryption key from keyVault. public ResourceIdentifier UserAssignedIdentity { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.Serialization.cs index db05bc4253b8..20dd4ed5dd15 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.Serialization.cs @@ -78,6 +78,7 @@ internal static MachineLearningCodeContainerProperties DeserializeMachineLearnin { return null; } + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -86,6 +87,15 @@ internal static MachineLearningCodeContainerProperties DeserializeMachineLearnin Optional> tags = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } if (property.NameEquals("isArchived"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -156,7 +166,7 @@ internal static MachineLearningCodeContainerProperties DeserializeMachineLearnin continue; } } - return new MachineLearningCodeContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value); + return new MachineLearningCodeContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.cs index 10afbcfc9311..640732df1f07 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.cs @@ -24,8 +24,13 @@ public MachineLearningCodeContainerProperties() /// Is the asset archived?. /// The latest version inside this container. /// The next auto incremental version. - internal MachineLearningCodeContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + /// Provisioning state for the code container. + internal MachineLearningCodeContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { + ProvisioningState = provisioningState; } + + /// Provisioning state for the code container. + public AssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.Serialization.cs index 5aaee6f3a93c..95e756664838 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.Serialization.cs @@ -29,6 +29,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("codeUri"); } } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -97,6 +109,8 @@ internal static MachineLearningCodeVersionProperties DeserializeMachineLearningC return null; } Optional codeUri = default; + Optional provisioningState = default; + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -114,6 +128,25 @@ internal static MachineLearningCodeVersionProperties DeserializeMachineLearningC codeUri = new Uri(property.Value.GetString()); continue; } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -173,7 +206,7 @@ internal static MachineLearningCodeVersionProperties DeserializeMachineLearningC continue; } } - return new MachineLearningCodeVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), codeUri.Value); + return new MachineLearningCodeVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), codeUri.Value, Optional.ToNullable(provisioningState)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.cs index e741f46a018d..81bc1886f3eb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.cs @@ -22,15 +22,20 @@ public MachineLearningCodeVersionProperties() /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// Uri where code is located. - internal MachineLearningCodeVersionProperties(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived, Uri codeUri) : base(description, properties, tags, isAnonymous, isArchived) + /// Provisioning state for the code version. + internal MachineLearningCodeVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, Uri codeUri, AssetProvisioningState? provisioningState) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { CodeUri = codeUri; + ProvisioningState = provisioningState; } /// Uri where code is located. public Uri CodeUri { get; set; } + /// Provisioning state for the code version. + public AssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs index 002e0d7a4703..f7d1928119ed 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs @@ -17,6 +17,18 @@ public partial class MachineLearningCommandJob : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(AutologgerSettings)) + { + if (AutologgerSettings != null) + { + writer.WritePropertyName("autologgerSettings"u8); + writer.WriteObjectValue(AutologgerSettings); + } + else + { + writer.WriteNull("autologgerSettings"); + } + } if (Optional.IsDefined(CodeId)) { if (CodeId != null) @@ -111,6 +123,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("outputs"); } } + if (Optional.IsDefined(QueueSettings)) + { + if (QueueSettings != null) + { + writer.WritePropertyName("queueSettings"u8); + writer.WriteObjectValue(QueueSettings); + } + else + { + writer.WriteNull("queueSettings"); + } + } if (Optional.IsDefined(Resources)) { writer.WritePropertyName("resources"u8); @@ -176,6 +200,36 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("jobType"u8); writer.WriteStringValue(JobType.ToString()); + if (Optional.IsDefined(NotificationSetting)) + { + if (NotificationSetting != null) + { + writer.WritePropertyName("notificationSetting"u8); + writer.WriteObjectValue(NotificationSetting); + } + else + { + writer.WriteNull("notificationSetting"); + } + } + if (Optional.IsCollectionDefined(SecretsConfiguration)) + { + if (SecretsConfiguration != null) + { + writer.WritePropertyName("secretsConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SecretsConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("secretsConfiguration"); + } + } if (Optional.IsCollectionDefined(Services)) { if (Services != null) @@ -251,6 +305,7 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J { return null; } + Optional autologgerSettings = default; Optional codeId = default; string command = default; Optional distribution = default; @@ -260,6 +315,7 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J Optional limits = default; Optional> outputs = default; Optional parameters = default; + Optional queueSettings = default; Optional resources = default; Optional componentId = default; Optional computeId = default; @@ -268,6 +324,8 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J Optional identity = default; Optional isArchived = default; JobType jobType = default; + Optional notificationSetting = default; + Optional> secretsConfiguration = default; Optional> services = default; Optional status = default; Optional description = default; @@ -275,6 +333,16 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J Optional> tags = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("autologgerSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autologgerSettings = null; + continue; + } + autologgerSettings = AutologgerSettings.DeserializeAutologgerSettings(property.Value); + continue; + } if (property.NameEquals("codeId"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -370,6 +438,16 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J parameters = BinaryData.FromString(property.Value.GetRawText()); continue; } + if (property.NameEquals("queueSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + queueSettings = null; + continue; + } + queueSettings = QueueSettings.DeserializeQueueSettings(property.Value); + continue; + } if (property.NameEquals("resources"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -438,6 +516,31 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J jobType = new JobType(property.Value.GetString()); continue; } + if (property.NameEquals("notificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + notificationSetting = null; + continue; + } + notificationSetting = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("secretsConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + secretsConfiguration = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, SecretConfiguration.DeserializeSecretConfiguration(property0.Value)); + } + secretsConfiguration = dictionary; + continue; + } if (property.NameEquals("services"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -503,7 +606,7 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J continue; } } - return new MachineLearningCommandJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, Optional.ToDictionary(services), Optional.ToNullable(status), codeId.Value, command, distribution.Value, environmentId, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(inputs), limits.Value, Optional.ToDictionary(outputs), parameters.Value, resources.Value); + return new MachineLearningCommandJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, notificationSetting.Value, Optional.ToDictionary(secretsConfiguration), Optional.ToDictionary(services), Optional.ToNullable(status), autologgerSettings.Value, codeId.Value, command, distribution.Value, environmentId, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(inputs), limits.Value, Optional.ToDictionary(outputs), parameters.Value, queueSettings.Value, resources.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs index 511f4651d193..78ec4b44273f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs @@ -47,17 +47,20 @@ public MachineLearningCommandJob(string command, ResourceIdentifier environmentI /// /// Is the asset archived?. /// [Required] Specifies the type of job. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. /// /// Status of the job. + /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. /// ARM resource ID of the code asset. /// [Required] The command to execute on startup of the job. eg. "python train.py". /// - /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. + /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, Ray, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , , and . /// /// [Required] The ARM resource ID of the Environment specification for the job. /// Environment variables included in the job. @@ -73,9 +76,11 @@ public MachineLearningCommandJob(string command, ResourceIdentifier environmentI /// The available derived classes include , , , , and . /// /// Input parameters. + /// Queue settings for the job. /// Compute Resource configuration for the job. - internal MachineLearningCommandJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, IDictionary services, MachineLearningJobStatus? status, ResourceIdentifier codeId, string command, MachineLearningDistributionConfiguration distribution, ResourceIdentifier environmentId, IDictionary environmentVariables, IDictionary inputs, MachineLearningCommandJobLimits limits, IDictionary outputs, BinaryData parameters, MachineLearningJobResourceConfiguration resources) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, services, status) + internal MachineLearningCommandJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, AutologgerSettings autologgerSettings, ResourceIdentifier codeId, string command, MachineLearningDistributionConfiguration distribution, ResourceIdentifier environmentId, IDictionary environmentVariables, IDictionary inputs, MachineLearningCommandJobLimits limits, IDictionary outputs, BinaryData parameters, QueueSettings queueSettings, MachineLearningJobResourceConfiguration resources) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { + AutologgerSettings = autologgerSettings; CodeId = codeId; Command = command; Distribution = distribution; @@ -85,18 +90,31 @@ internal MachineLearningCommandJob(string description, IDictionary Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. + internal AutologgerSettings AutologgerSettings { get; set; } + /// [Required] Indicates whether mlflow autologger is enabled. + public MLFlowAutologgerState? MlflowAutologger + { + get => AutologgerSettings is null ? default(MLFlowAutologgerState?) : AutologgerSettings.MlflowAutologger; + set + { + AutologgerSettings = value.HasValue ? new AutologgerSettings(value.Value) : null; + } + } + /// ARM resource ID of the code asset. public ResourceIdentifier CodeId { get; set; } /// [Required] The command to execute on startup of the job. eg. "python train.py". public string Command { get; set; } /// - /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. + /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, Ray, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , , and . /// public MachineLearningDistributionConfiguration Distribution { get; set; } /// [Required] The ARM resource ID of the Environment specification for the job. @@ -148,6 +166,8 @@ internal MachineLearningCommandJob(string description, IDictionary /// public BinaryData Parameters { get; } + /// Queue settings for the job. + public QueueSettings QueueSettings { get; set; } /// Compute Resource configuration for the job. public MachineLearningJobResourceConfiguration Resources { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.Serialization.cs index 40823706bc1a..68dacfc6826f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.Serialization.cs @@ -78,6 +78,7 @@ internal static MachineLearningComponentContainerProperties DeserializeMachineLe { return null; } + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -86,6 +87,15 @@ internal static MachineLearningComponentContainerProperties DeserializeMachineLe Optional> tags = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } if (property.NameEquals("isArchived"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -156,7 +166,7 @@ internal static MachineLearningComponentContainerProperties DeserializeMachineLe continue; } } - return new MachineLearningComponentContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value); + return new MachineLearningComponentContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.cs index ed5162f96bae..e1ad6c2db8c1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.cs @@ -27,8 +27,13 @@ public MachineLearningComponentContainerProperties() /// Is the asset archived?. /// The latest version inside this container. /// The next auto incremental version. - internal MachineLearningComponentContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + /// Provisioning state for the component container. + internal MachineLearningComponentContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { + ProvisioningState = provisioningState; } + + /// Provisioning state for the component container. + public AssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs index 6112ed10543e..59898ff1c37f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs @@ -33,6 +33,30 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("componentSpec"); } } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -101,6 +125,9 @@ internal static MachineLearningComponentVersionProperties DeserializeMachineLear return null; } Optional componentSpec = default; + Optional provisioningState = default; + Optional stage = default; + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -118,6 +145,35 @@ internal static MachineLearningComponentVersionProperties DeserializeMachineLear componentSpec = BinaryData.FromString(property.Value.GetRawText()); continue; } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -177,7 +233,7 @@ internal static MachineLearningComponentVersionProperties DeserializeMachineLear continue; } } - return new MachineLearningComponentVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), componentSpec.Value); + return new MachineLearningComponentVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), componentSpec.Value, Optional.ToNullable(provisioningState), stage.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.cs index a5e28beb91d8..b6008f30c7c6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.cs @@ -22,15 +22,20 @@ public MachineLearningComponentVersionProperties() /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// /// Defines Component definition details. /// <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" /> /// - internal MachineLearningComponentVersionProperties(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived, BinaryData componentSpec) : base(description, properties, tags, isAnonymous, isArchived) + /// Provisioning state for the component version. + /// Stage in the component lifecycle. + internal MachineLearningComponentVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, BinaryData componentSpec, AssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { ComponentSpec = componentSpec; + ProvisioningState = provisioningState; + Stage = stage; } /// @@ -65,5 +70,9 @@ internal MachineLearningComponentVersionProperties(string description, IDictiona /// /// public BinaryData ComponentSpec { get; set; } + /// Provisioning state for the component version. + public AssetProvisioningState? ProvisioningState { get; } + /// Stage in the component lifecycle. + public string Stage { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.Serialization.cs index 69c914d767ed..06c902750e54 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.Serialization.cs @@ -38,6 +38,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("applicationSharingPolicy"u8); writer.WriteStringValue(ApplicationSharingPolicy.Value.ToString()); } + if (Optional.IsDefined(AutologgerSettings)) + { + if (AutologgerSettings != null) + { + writer.WritePropertyName("autologgerSettings"u8); + writer.WriteObjectValue(AutologgerSettings); + } + else + { + writer.WriteNull("autologgerSettings"); + } + } if (Optional.IsDefined(SshSettings)) { if (SshSettings != null) @@ -50,6 +62,23 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("sshSettings"); } } + if (Optional.IsCollectionDefined(CustomServices)) + { + if (CustomServices != null) + { + writer.WritePropertyName("customServices"u8); + writer.WriteStartArray(); + foreach (var item in CustomServices) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("customServices"); + } + } if (Optional.IsDefined(ComputeInstanceAuthorizationType)) { if (ComputeInstanceAuthorizationType != null) @@ -86,10 +115,34 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("setupScripts"); } } + if (Optional.IsDefined(Schedules)) + { + if (Schedules != null) + { + writer.WritePropertyName("schedules"u8); + writer.WriteObjectValue(Schedules); + } + else + { + writer.WriteNull("schedules"); + } + } + if (Optional.IsDefined(IdleTimeBeforeShutdown)) + { + writer.WritePropertyName("idleTimeBeforeShutdown"u8); + writer.WriteStringValue(IdleTimeBeforeShutdown); + } if (Optional.IsDefined(EnableNodePublicIP)) { - writer.WritePropertyName("enableNodePublicIp"u8); - writer.WriteBooleanValue(EnableNodePublicIP.Value); + if (EnableNodePublicIP != null) + { + writer.WritePropertyName("enableNodePublicIp"u8); + writer.WriteBooleanValue(EnableNodePublicIP.Value); + } + else + { + writer.WriteNull("enableNodePublicIp"); + } } writer.WriteEndObject(); } @@ -103,7 +156,10 @@ internal static MachineLearningComputeInstanceProperties DeserializeMachineLearn Optional vmSize = default; Optional subnet = default; Optional applicationSharingPolicy = default; + Optional autologgerSettings = default; Optional sshSettings = default; + Optional> customServices = default; + Optional osImageMetadata = default; Optional connectivityEndpoints = default; Optional> applications = default; Optional createdBy = default; @@ -114,7 +170,8 @@ internal static MachineLearningComputeInstanceProperties DeserializeMachineLearn Optional setupScripts = default; Optional lastOperation = default; Optional schedules = default; - Optional enableNodePublicIP = default; + Optional idleTimeBeforeShutdown = default; + Optional enableNodePublicIP = default; Optional> containers = default; Optional> dataDisks = default; Optional> dataMounts = default; @@ -145,6 +202,16 @@ internal static MachineLearningComputeInstanceProperties DeserializeMachineLearn applicationSharingPolicy = new MachineLearningApplicationSharingPolicy(property.Value.GetString()); continue; } + if (property.NameEquals("autologgerSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autologgerSettings = null; + continue; + } + autologgerSettings = ComputeInstanceAutologgerSettings.DeserializeComputeInstanceAutologgerSettings(property.Value); + continue; + } if (property.NameEquals("sshSettings"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -155,6 +222,30 @@ internal static MachineLearningComputeInstanceProperties DeserializeMachineLearn sshSettings = MachineLearningComputeInstanceSshSettings.DeserializeMachineLearningComputeInstanceSshSettings(property.Value); continue; } + if (property.NameEquals("customServices"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + customServices = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CustomService.DeserializeCustomService(item)); + } + customServices = array; + continue; + } + if (property.NameEquals("osImageMetadata"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + osImageMetadata = ImageMetadata.DeserializeImageMetadata(property.Value); + continue; + } if (property.NameEquals("connectivityEndpoints"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -260,10 +351,16 @@ internal static MachineLearningComputeInstanceProperties DeserializeMachineLearn schedules = ComputeSchedules.DeserializeComputeSchedules(property.Value); continue; } + if (property.NameEquals("idleTimeBeforeShutdown"u8)) + { + idleTimeBeforeShutdown = property.Value.GetString(); + continue; + } if (property.NameEquals("enableNodePublicIp"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { + enableNodePublicIP = null; continue; } enableNodePublicIP = property.Value.GetBoolean(); @@ -324,7 +421,7 @@ internal static MachineLearningComputeInstanceProperties DeserializeMachineLearn continue; } } - return new MachineLearningComputeInstanceProperties(vmSize.Value, subnet.Value, Optional.ToNullable(applicationSharingPolicy), sshSettings.Value, connectivityEndpoints.Value, Optional.ToList(applications), createdBy.Value, Optional.ToList(errors), Optional.ToNullable(state), Optional.ToNullable(computeInstanceAuthorizationType), personalComputeInstanceSettings.Value, setupScripts.Value, lastOperation.Value, schedules.Value, Optional.ToNullable(enableNodePublicIP), Optional.ToList(containers), Optional.ToList(dataDisks), Optional.ToList(dataMounts), versions.Value); + return new MachineLearningComputeInstanceProperties(vmSize.Value, subnet.Value, Optional.ToNullable(applicationSharingPolicy), autologgerSettings.Value, sshSettings.Value, Optional.ToList(customServices), osImageMetadata.Value, connectivityEndpoints.Value, Optional.ToList(applications), createdBy.Value, Optional.ToList(errors), Optional.ToNullable(state), Optional.ToNullable(computeInstanceAuthorizationType), personalComputeInstanceSettings.Value, setupScripts.Value, lastOperation.Value, schedules.Value, idleTimeBeforeShutdown.Value, Optional.ToNullable(enableNodePublicIP), Optional.ToList(containers), Optional.ToList(dataDisks), Optional.ToList(dataMounts), versions.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs index 82b39f22822c..4bd2a9b07110 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs @@ -16,6 +16,7 @@ public partial class MachineLearningComputeInstanceProperties /// Initializes a new instance of MachineLearningComputeInstanceProperties. public MachineLearningComputeInstanceProperties() { + CustomServices = new ChangeTrackingList(); Applications = new ChangeTrackingList(); Errors = new ChangeTrackingList(); Containers = new ChangeTrackingList(); @@ -27,7 +28,10 @@ public MachineLearningComputeInstanceProperties() /// Virtual Machine Size. /// Virtual network subnet resource ID the compute nodes belong to. /// 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. + /// Specifies settings for autologger. /// Specifies policy and settings for SSH access. + /// List of Custom Services added to the compute. + /// Returns metadata about the operating system image for this compute instance. /// Describes all connectivity endpoints available for this ComputeInstance. /// Describes available applications and their endpoints on this ComputeInstance. /// Describes information on user who created this ComputeInstance. @@ -38,17 +42,21 @@ public MachineLearningComputeInstanceProperties() /// Details of customized scripts to execute for setting up the cluster. /// The last operation on ComputeInstance. /// The list of schedules to be applied on the computes. + /// Stops compute instance after user defined period of inactivity. Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. /// 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. /// Describes informations of containers on this ComputeInstance. /// Describes informations of dataDisks on this ComputeInstance. /// Describes informations of dataMounts on this ComputeInstance. /// ComputeInstance version. - internal MachineLearningComputeInstanceProperties(string vmSize, ResourceId subnet, MachineLearningApplicationSharingPolicy? applicationSharingPolicy, MachineLearningComputeInstanceSshSettings sshSettings, MachineLearningComputeInstanceConnectivityEndpoints connectivityEndpoints, IReadOnlyList applications, MachineLearningComputeInstanceCreatedBy createdBy, IReadOnlyList errors, MachineLearningComputeInstanceState? state, MachineLearningComputeInstanceAuthorizationType? computeInstanceAuthorizationType, PersonalComputeInstanceSettings personalComputeInstanceSettings, SetupScripts setupScriptsSettings, MachineLearningComputeInstanceLastOperation lastOperation, ComputeSchedules schedules, bool? enableNodePublicIP, IReadOnlyList containers, IReadOnlyList dataDisks, IReadOnlyList dataMounts, ComputeInstanceVersion versions) + internal MachineLearningComputeInstanceProperties(string vmSize, ResourceId subnet, MachineLearningApplicationSharingPolicy? applicationSharingPolicy, ComputeInstanceAutologgerSettings autologgerSettings, MachineLearningComputeInstanceSshSettings sshSettings, IList customServices, ImageMetadata osImageMetadata, MachineLearningComputeInstanceConnectivityEndpoints connectivityEndpoints, IReadOnlyList applications, MachineLearningComputeInstanceCreatedBy createdBy, IReadOnlyList errors, MachineLearningComputeInstanceState? state, MachineLearningComputeInstanceAuthorizationType? computeInstanceAuthorizationType, PersonalComputeInstanceSettings personalComputeInstanceSettings, SetupScripts setupScriptsSettings, MachineLearningComputeInstanceLastOperation lastOperation, ComputeSchedules schedules, string idleTimeBeforeShutdown, bool? enableNodePublicIP, IReadOnlyList containers, IReadOnlyList dataDisks, IReadOnlyList dataMounts, ComputeInstanceVersion versions) { VmSize = vmSize; Subnet = subnet; ApplicationSharingPolicy = applicationSharingPolicy; + AutologgerSettings = autologgerSettings; SshSettings = sshSettings; + CustomServices = customServices; + OSImageMetadata = osImageMetadata; ConnectivityEndpoints = connectivityEndpoints; Applications = applications; CreatedBy = createdBy; @@ -59,6 +67,7 @@ internal MachineLearningComputeInstanceProperties(string vmSize, ResourceId subn SetupScriptsSettings = setupScriptsSettings; LastOperation = lastOperation; Schedules = schedules; + IdleTimeBeforeShutdown = idleTimeBeforeShutdown; EnableNodePublicIP = enableNodePublicIP; Containers = containers; DataDisks = dataDisks; @@ -79,8 +88,26 @@ public ResourceIdentifier SubnetId /// 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. public MachineLearningApplicationSharingPolicy? ApplicationSharingPolicy { get; set; } + /// Specifies settings for autologger. + internal ComputeInstanceAutologgerSettings AutologgerSettings { get; set; } + /// Indicates whether mlflow autologger is enabled for notebooks. + public MlflowAutologger? MlflowAutologger + { + get => AutologgerSettings is null ? default : AutologgerSettings.MlflowAutologger; + set + { + if (AutologgerSettings is null) + AutologgerSettings = new ComputeInstanceAutologgerSettings(); + AutologgerSettings.MlflowAutologger = value; + } + } + /// Specifies policy and settings for SSH access. public MachineLearningComputeInstanceSshSettings SshSettings { get; set; } + /// List of Custom Services added to the compute. + public IList CustomServices { get; set; } + /// Returns metadata about the operating system image for this compute instance. + public ImageMetadata OSImageMetadata { get; } /// Describes all connectivity endpoints available for this ComputeInstance. public MachineLearningComputeInstanceConnectivityEndpoints ConnectivityEndpoints { get; } /// Describes available applications and their endpoints on this ComputeInstance. @@ -124,13 +151,20 @@ public MachineLearningScriptsToExecute Scripts /// The last operation on ComputeInstance. public MachineLearningComputeInstanceLastOperation LastOperation { get; } /// The list of schedules to be applied on the computes. - internal ComputeSchedules Schedules { get; } + internal ComputeSchedules Schedules { get; set; } /// The list of compute start stop schedules to be applied. - public IReadOnlyList SchedulesComputeStartStop + public IList SchedulesComputeStartStop { - get => Schedules?.ComputeStartStop; + get + { + if (Schedules is null) + Schedules = new ComputeSchedules(); + return Schedules.ComputeStartStop; + } } + /// Stops compute instance after user defined period of inactivity. Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. + public string IdleTimeBeforeShutdown { get; set; } /// 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. public bool? EnableNodePublicIP { get; set; } /// Describes informations of containers on this ComputeInstance. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputePowerAction.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputePowerAction.cs index d64c980c2646..9cad099e8feb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputePowerAction.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputePowerAction.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The compute power action. + /// [Required] The compute power action. public readonly partial struct MachineLearningComputePowerAction : IEquatable { private readonly string _value; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.Serialization.cs index ee56468c0c01..0a9acc683e73 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.Serialization.cs @@ -10,8 +10,44 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class MachineLearningComputeStartStopSchedule + public partial class MachineLearningComputeStartStopSchedule : IUtf8JsonSerializable { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Optional.IsDefined(Action)) + { + writer.WritePropertyName("action"u8); + writer.WriteStringValue(Action.Value.ToString()); + } + if (Optional.IsDefined(TriggerType)) + { + writer.WritePropertyName("triggerType"u8); + writer.WriteStringValue(TriggerType.Value.ToString()); + } + if (Optional.IsDefined(Recurrence)) + { + writer.WritePropertyName("recurrence"u8); + writer.WriteObjectValue(Recurrence); + } + if (Optional.IsDefined(Cron)) + { + writer.WritePropertyName("cron"u8); + writer.WriteObjectValue(Cron); + } + if (Optional.IsDefined(Schedule)) + { + writer.WritePropertyName("schedule"u8); + writer.WriteObjectValue(Schedule); + } + writer.WriteEndObject(); + } + internal static MachineLearningComputeStartStopSchedule DeserializeMachineLearningComputeStartStopSchedule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) @@ -23,8 +59,8 @@ internal static MachineLearningComputeStartStopSchedule DeserializeMachineLearni Optional status = default; Optional action = default; Optional triggerType = default; - Optional recurrence = default; - Optional cron = default; + Optional recurrence = default; + Optional cron = default; Optional schedule = default; foreach (var property in element.EnumerateObject()) { @@ -80,7 +116,7 @@ internal static MachineLearningComputeStartStopSchedule DeserializeMachineLearni { continue; } - recurrence = MachineLearningRecurrenceTrigger.DeserializeMachineLearningRecurrenceTrigger(property.Value); + recurrence = Recurrence.DeserializeRecurrence(property.Value); continue; } if (property.NameEquals("cron"u8)) @@ -89,7 +125,7 @@ internal static MachineLearningComputeStartStopSchedule DeserializeMachineLearni { continue; } - cron = CronTrigger.DeserializeCronTrigger(property.Value); + cron = Cron.DeserializeCron(property.Value); continue; } if (property.NameEquals("schedule"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.cs index 565f9dcf50fa..5537d47b700e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.MachineLearning.Models public partial class MachineLearningComputeStartStopSchedule { /// Initializes a new instance of MachineLearningComputeStartStopSchedule. - internal MachineLearningComputeStartStopSchedule() + public MachineLearningComputeStartStopSchedule() { } @@ -24,7 +24,7 @@ internal MachineLearningComputeStartStopSchedule() /// Required if triggerType is Recurrence. /// Required if triggerType is Cron. /// [Deprecated] Not used any more. - internal MachineLearningComputeStartStopSchedule(string id, MachineLearningComputeProvisioningStatus? provisioningStatus, MachineLearningScheduleStatus? status, MachineLearningComputePowerAction? action, MachineLearningTriggerType? triggerType, MachineLearningRecurrenceTrigger recurrence, CronTrigger cron, MachineLearningScheduleBase schedule) + internal MachineLearningComputeStartStopSchedule(string id, MachineLearningComputeProvisioningStatus? provisioningStatus, MachineLearningScheduleStatus? status, MachineLearningComputePowerAction? action, MachineLearningTriggerType? triggerType, Recurrence recurrence, Cron cron, MachineLearningScheduleBase schedule) { Id = id; ProvisioningStatus = provisioningStatus; @@ -41,16 +41,16 @@ internal MachineLearningComputeStartStopSchedule(string id, MachineLearningCompu /// The current deployment state of schedule. public MachineLearningComputeProvisioningStatus? ProvisioningStatus { get; } /// Is the schedule enabled or disabled?. - public MachineLearningScheduleStatus? Status { get; } + public MachineLearningScheduleStatus? Status { get; set; } /// [Required] The compute power action. - public MachineLearningComputePowerAction? Action { get; } + public MachineLearningComputePowerAction? Action { get; set; } /// [Required] The schedule trigger type. - public MachineLearningTriggerType? TriggerType { get; } + public MachineLearningTriggerType? TriggerType { get; set; } /// Required if triggerType is Recurrence. - public MachineLearningRecurrenceTrigger Recurrence { get; } + public Recurrence Recurrence { get; set; } /// Required if triggerType is Cron. - public CronTrigger Cron { get; } + public Cron Cron { get; set; } /// [Deprecated] Not used any more. - public MachineLearningScheduleBase Schedule { get; } + public MachineLearningScheduleBase Schedule { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionAuthType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionAuthType.cs index 7872c059157a..f4064f14a598 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionAuthType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionAuthType.cs @@ -27,6 +27,10 @@ public MachineLearningConnectionAuthType(string value) private const string UsernamePasswordValue = "UsernamePassword"; private const string NoneValue = "None"; private const string SasValue = "SAS"; + private const string ServicePrincipalValue = "ServicePrincipal"; + private const string AccessKeyValue = "AccessKey"; + private const string ApiKeyValue = "ApiKey"; + private const string CustomKeysValue = "CustomKeys"; /// PAT. public static MachineLearningConnectionAuthType Pat { get; } = new MachineLearningConnectionAuthType(PatValue); @@ -38,6 +42,14 @@ public MachineLearningConnectionAuthType(string value) public static MachineLearningConnectionAuthType None { get; } = new MachineLearningConnectionAuthType(NoneValue); /// SAS. public static MachineLearningConnectionAuthType Sas { get; } = new MachineLearningConnectionAuthType(SasValue); + /// ServicePrincipal. + public static MachineLearningConnectionAuthType ServicePrincipal { get; } = new MachineLearningConnectionAuthType(ServicePrincipalValue); + /// AccessKey. + public static MachineLearningConnectionAuthType AccessKey { get; } = new MachineLearningConnectionAuthType(AccessKeyValue); + /// ApiKey. + public static MachineLearningConnectionAuthType ApiKey { get; } = new MachineLearningConnectionAuthType(ApiKeyValue); + /// CustomKeys. + public static MachineLearningConnectionAuthType CustomKeys { get; } = new MachineLearningConnectionAuthType(CustomKeysValue); /// Determines if two values are the same. public static bool operator ==(MachineLearningConnectionAuthType left, MachineLearningConnectionAuthType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionCategory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionCategory.cs index 9827e23a6791..67057f569911 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionCategory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionCategory.cs @@ -25,6 +25,19 @@ public MachineLearningConnectionCategory(string value) private const string PythonFeedValue = "PythonFeed"; private const string ContainerRegistryValue = "ContainerRegistry"; private const string GitValue = "Git"; + private const string S3Value = "S3"; + private const string SnowflakeValue = "Snowflake"; + private const string AzureSqlDbValue = "AzureSqlDb"; + private const string AzureSynapseAnalyticsValue = "AzureSynapseAnalytics"; + private const string AzureMySqlDbValue = "AzureMySqlDb"; + private const string AzurePostgresDbValue = "AzurePostgresDb"; + private const string AdlsGen2Value = "ADLSGen2"; + private const string RedisValue = "Redis"; + private const string ApiKeyValue = "ApiKey"; + private const string AzureOpenAIValue = "AzureOpenAI"; + private const string CognitiveSearchValue = "CognitiveSearch"; + private const string CognitiveServiceValue = "CognitiveService"; + private const string CustomKeysValue = "CustomKeys"; /// PythonFeed. public static MachineLearningConnectionCategory PythonFeed { get; } = new MachineLearningConnectionCategory(PythonFeedValue); @@ -32,6 +45,32 @@ public MachineLearningConnectionCategory(string value) public static MachineLearningConnectionCategory ContainerRegistry { get; } = new MachineLearningConnectionCategory(ContainerRegistryValue); /// Git. public static MachineLearningConnectionCategory Git { get; } = new MachineLearningConnectionCategory(GitValue); + /// S3. + public static MachineLearningConnectionCategory S3 { get; } = new MachineLearningConnectionCategory(S3Value); + /// Snowflake. + public static MachineLearningConnectionCategory Snowflake { get; } = new MachineLearningConnectionCategory(SnowflakeValue); + /// AzureSqlDb. + public static MachineLearningConnectionCategory AzureSqlDb { get; } = new MachineLearningConnectionCategory(AzureSqlDbValue); + /// AzureSynapseAnalytics. + public static MachineLearningConnectionCategory AzureSynapseAnalytics { get; } = new MachineLearningConnectionCategory(AzureSynapseAnalyticsValue); + /// AzureMySqlDb. + public static MachineLearningConnectionCategory AzureMySqlDb { get; } = new MachineLearningConnectionCategory(AzureMySqlDbValue); + /// AzurePostgresDb. + public static MachineLearningConnectionCategory AzurePostgresDb { get; } = new MachineLearningConnectionCategory(AzurePostgresDbValue); + /// ADLSGen2. + public static MachineLearningConnectionCategory AdlsGen2 { get; } = new MachineLearningConnectionCategory(AdlsGen2Value); + /// Redis. + public static MachineLearningConnectionCategory Redis { get; } = new MachineLearningConnectionCategory(RedisValue); + /// ApiKey. + public static MachineLearningConnectionCategory ApiKey { get; } = new MachineLearningConnectionCategory(ApiKeyValue); + /// AzureOpenAI. + public static MachineLearningConnectionCategory AzureOpenAI { get; } = new MachineLearningConnectionCategory(AzureOpenAIValue); + /// CognitiveSearch. + public static MachineLearningConnectionCategory CognitiveSearch { get; } = new MachineLearningConnectionCategory(CognitiveSearchValue); + /// CognitiveService. + public static MachineLearningConnectionCategory CognitiveService { get; } = new MachineLearningConnectionCategory(CognitiveServiceValue); + /// CustomKeys. + public static MachineLearningConnectionCategory CustomKeys { get; } = new MachineLearningConnectionCategory(CustomKeysValue); /// Determines if two values are the same. public static bool operator ==(MachineLearningConnectionCategory left, MachineLearningConnectionCategory right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.Serialization.cs index 65c30bfd86d0..8cf93d4a2de8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.Serialization.cs @@ -20,8 +20,8 @@ internal static MachineLearningContainerRegistryCredentials DeserializeMachineLe return null; } Optional location = default; - Optional username = default; Optional> passwords = default; + Optional username = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location"u8)) @@ -33,11 +33,6 @@ internal static MachineLearningContainerRegistryCredentials DeserializeMachineLe location = new AzureLocation(property.Value.GetString()); continue; } - if (property.NameEquals("username"u8)) - { - username = property.Value.GetString(); - continue; - } if (property.NameEquals("passwords"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -52,8 +47,13 @@ internal static MachineLearningContainerRegistryCredentials DeserializeMachineLe passwords = array; continue; } + if (property.NameEquals("username"u8)) + { + username = property.Value.GetString(); + continue; + } } - return new MachineLearningContainerRegistryCredentials(Optional.ToNullable(location), username.Value, Optional.ToList(passwords)); + return new MachineLearningContainerRegistryCredentials(Optional.ToNullable(location), Optional.ToList(passwords), username.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.cs index 8f874b35a34b..29e369f3cec4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.cs @@ -20,21 +20,21 @@ internal MachineLearningContainerRegistryCredentials() } /// Initializes a new instance of MachineLearningContainerRegistryCredentials. - /// - /// + /// The location of the workspace ACR. /// - internal MachineLearningContainerRegistryCredentials(AzureLocation? location, string username, IReadOnlyList passwords) + /// The username of the workspace ACR. + internal MachineLearningContainerRegistryCredentials(AzureLocation? location, IReadOnlyList passwords, string username) { Location = location; - Username = username; Passwords = passwords; + Username = username; } - /// Gets the location. + /// The location of the workspace ACR. public AzureLocation? Location { get; } - /// Gets the username. - public string Username { get; } /// Gets the passwords. public IReadOnlyList Passwords { get; } + /// The username of the workspace ACR. + public string Username { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerType.cs index 68f6d35260d4..0ab00b7d8fd5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The MachineLearningContainerType. + /// The type of container to retrieve logs from. public readonly partial struct MachineLearningContainerType : IEquatable { private readonly string _value; @@ -24,11 +24,14 @@ public MachineLearningContainerType(string value) private const string StorageInitializerValue = "StorageInitializer"; private const string InferenceServerValue = "InferenceServer"; + private const string ModelDataCollectorValue = "ModelDataCollector"; - /// StorageInitializer. + /// The container used to download models and score script. public static MachineLearningContainerType StorageInitializer { get; } = new MachineLearningContainerType(StorageInitializerValue); - /// InferenceServer. + /// The container used to serve user's request. public static MachineLearningContainerType InferenceServer { get; } = new MachineLearningContainerType(InferenceServerValue); + /// The container used to collect payload and custom logging when mdc is enabled. + public static MachineLearningContainerType ModelDataCollector { get; } = new MachineLearningContainerType(ModelDataCollectorValue); /// Determines if two values are the same. public static bool operator ==(MachineLearningContainerType left, MachineLearningContainerType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCustomModelJobOutput.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCustomModelJobOutput.Serialization.cs index 0913c4fc3ce0..796f750591ac 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCustomModelJobOutput.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCustomModelJobOutput.Serialization.cs @@ -16,6 +16,42 @@ public partial class MachineLearningCustomModelJobOutput : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(AssetName)) + { + if (AssetName != null) + { + writer.WritePropertyName("assetName"u8); + writer.WriteStringValue(AssetName); + } + else + { + writer.WriteNull("assetName"); + } + } + if (Optional.IsDefined(AssetVersion)) + { + if (AssetVersion != null) + { + writer.WritePropertyName("assetVersion"u8); + writer.WriteStringValue(AssetVersion); + } + else + { + writer.WriteNull("assetVersion"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(Mode)) { writer.WritePropertyName("mode"u8); @@ -56,12 +92,45 @@ internal static MachineLearningCustomModelJobOutput DeserializeMachineLearningCu { return null; } + Optional assetName = default; + Optional assetVersion = default; + Optional autoDeleteSetting = default; Optional mode = default; Optional uri = default; Optional description = default; JobOutputType jobOutputType = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("assetName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetName = null; + continue; + } + assetName = property.Value.GetString(); + continue; + } + if (property.NameEquals("assetVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetVersion = null; + continue; + } + assetVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("mode"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -97,7 +166,7 @@ internal static MachineLearningCustomModelJobOutput DeserializeMachineLearningCu continue; } } - return new MachineLearningCustomModelJobOutput(description.Value, jobOutputType, Optional.ToNullable(mode), uri.Value); + return new MachineLearningCustomModelJobOutput(description.Value, jobOutputType, assetName.Value, assetVersion.Value, autoDeleteSetting.Value, Optional.ToNullable(mode), uri.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCustomModelJobOutput.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCustomModelJobOutput.cs index e07690434e86..62792e60b3ce 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCustomModelJobOutput.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCustomModelJobOutput.cs @@ -21,15 +21,27 @@ public MachineLearningCustomModelJobOutput() /// Initializes a new instance of MachineLearningCustomModelJobOutput. /// Description for the output. /// [Required] Specifies the type of job. + /// Output Asset Name. + /// Output Asset Version. + /// Auto delete setting of output data asset. /// Output Asset Delivery Mode. /// Output Asset URI. - internal MachineLearningCustomModelJobOutput(string description, JobOutputType jobOutputType, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) + internal MachineLearningCustomModelJobOutput(string description, JobOutputType jobOutputType, string assetName, string assetVersion, AutoDeleteSetting autoDeleteSetting, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) { + AssetName = assetName; + AssetVersion = assetVersion; + AutoDeleteSetting = autoDeleteSetting; Mode = mode; Uri = uri; JobOutputType = jobOutputType; } + /// Output Asset Name. + public string AssetName { get; set; } + /// Output Asset Version. + public string AssetVersion { get; set; } + /// Auto delete setting of output data asset. + public AutoDeleteSetting AutoDeleteSetting { get; set; } /// Output Asset Delivery Mode. public MachineLearningOutputDeliveryMode? Mode { get; set; } /// Output Asset URI. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionProperties.Serialization.cs index a0dc5e5833e6..61034e61f92c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionProperties.Serialization.cs @@ -21,6 +21,42 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(DataType.ToString()); writer.WritePropertyName("dataUri"u8); writer.WriteStringValue(DataUri.AbsoluteUri); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -99,6 +135,9 @@ internal static MachineLearningDataVersionProperties DeserializeMachineLearningD } MachineLearningDataType dataType = default; Uri dataUri = default; + Optional intellectualProperty = default; + Optional stage = default; + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -116,6 +155,36 @@ internal static MachineLearningDataVersionProperties DeserializeMachineLearningD dataUri = new Uri(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -175,7 +244,7 @@ internal static MachineLearningDataVersionProperties DeserializeMachineLearningD continue; } } - return new MachineLearningDataVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri); + return new MachineLearningDataVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri, intellectualProperty.Value, stage.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionProperties.cs index 82566a1c7079..748aeb62ff70 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionProperties.cs @@ -19,7 +19,7 @@ namespace Azure.ResourceManager.MachineLearning.Models public partial class MachineLearningDataVersionProperties : MachineLearningAssetBase { /// Initializes a new instance of MachineLearningDataVersionProperties. - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. /// is null. public MachineLearningDataVersionProperties(Uri dataUri) { @@ -32,19 +32,28 @@ public MachineLearningDataVersionProperties(Uri dataUri) /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// [Required] Specifies the type of data. - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. - internal MachineLearningDataVersionProperties(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri) : base(description, properties, tags, isAnonymous, isArchived) + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. + /// Intellectual Property details. Used if data is an Intellectual Property. + /// Stage in the data lifecycle assigned to this data asset. + internal MachineLearningDataVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri, IntellectualProperty intellectualProperty, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { DataType = dataType; DataUri = dataUri; + IntellectualProperty = intellectualProperty; + Stage = stage; } /// [Required] Specifies the type of data. internal MachineLearningDataType DataType { get; set; } - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. public Uri DataUri { get; set; } + /// Intellectual Property details. Used if data is an Intellectual Property. + public IntellectualProperty IntellectualProperty { get; set; } + /// Stage in the data lifecycle assigned to this data asset. + public string Stage { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCredentials.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCredentials.Serialization.cs index 5e8c1c28d2fa..856ca1bc54ec 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCredentials.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCredentials.Serialization.cs @@ -32,6 +32,8 @@ internal static MachineLearningDatastoreCredentials DeserializeMachineLearningDa { case "AccountKey": return MachineLearningAccountKeyDatastoreCredentials.DeserializeMachineLearningAccountKeyDatastoreCredentials(element); case "Certificate": return MachineLearningCertificateDatastoreCredentials.DeserializeMachineLearningCertificateDatastoreCredentials(element); + case "KerberosKeytab": return KerberosKeytabCredentials.DeserializeKerberosKeytabCredentials(element); + case "KerberosPassword": return KerberosPasswordCredentials.DeserializeKerberosPasswordCredentials(element); case "None": return MachineLearningNoneDatastoreCredentials.DeserializeMachineLearningNoneDatastoreCredentials(element); case "Sas": return MachineLearningSasDatastoreCredentials.DeserializeMachineLearningSasDatastoreCredentials(element); case "ServicePrincipal": return MachineLearningServicePrincipalDatastoreCredentials.DeserializeMachineLearningServicePrincipalDatastoreCredentials(element); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCredentials.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCredentials.cs index b8a26ceaebc6..7bf7293f65a4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCredentials.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCredentials.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// Base definition for datastore credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// public abstract partial class MachineLearningDatastoreCredentials { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreProperties.Serialization.cs index b8fceda0ec70..c3b52adb8e20 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreProperties.Serialization.cs @@ -20,6 +20,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Credentials); writer.WritePropertyName("datastoreType"u8); writer.WriteStringValue(DatastoreType.ToString()); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } if (Optional.IsDefined(Description)) { if (Description != null) @@ -85,10 +97,13 @@ internal static MachineLearningDatastoreProperties DeserializeMachineLearningDat case "AzureDataLakeGen1": return MachineLearningAzureDataLakeGen1Datastore.DeserializeMachineLearningAzureDataLakeGen1Datastore(element); case "AzureDataLakeGen2": return MachineLearningAzureDataLakeGen2Datastore.DeserializeMachineLearningAzureDataLakeGen2Datastore(element); case "AzureFile": return MachineLearningAzureFileDatastore.DeserializeMachineLearningAzureFileDatastore(element); + case "Hdfs": return HdfsDatastore.DeserializeHdfsDatastore(element); + case "OneLake": return OneLakeDatastore.DeserializeOneLakeDatastore(element); } } MachineLearningDatastoreCredentials credentials = default; DatastoreType datastoreType = default; + Optional intellectualProperty = default; Optional isDefault = default; Optional description = default; Optional> properties = default; @@ -105,6 +120,16 @@ internal static MachineLearningDatastoreProperties DeserializeMachineLearningDat datastoreType = new DatastoreType(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } if (property.NameEquals("isDefault"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -155,7 +180,7 @@ internal static MachineLearningDatastoreProperties DeserializeMachineLearningDat continue; } } - return new MachineLearningDatastoreProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, Optional.ToNullable(isDefault)); + return new MachineLearningDatastoreProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, intellectualProperty.Value, Optional.ToNullable(isDefault)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreProperties.cs index e8cf39ae306a..da8203dd9891 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreProperties.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// Base definition for datastore contents configuration. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public partial class MachineLearningDatastoreProperties : MachineLearningResourceBase { @@ -22,7 +22,7 @@ public partial class MachineLearningDatastoreProperties : MachineLearningResourc /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// is null. public MachineLearningDatastoreProperties(MachineLearningDatastoreCredentials credentials) @@ -39,25 +39,29 @@ public MachineLearningDatastoreProperties(MachineLearningDatastoreCredentials cr /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// /// [Required] Storage type backing the datastore. + /// Intellectual Property details. /// Readonly property to indicate if datastore is the workspace default datastore. - internal MachineLearningDatastoreProperties(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, bool? isDefault) : base(description, properties, tags) + internal MachineLearningDatastoreProperties(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, IntellectualProperty intellectualProperty, bool? isDefault) : base(description, properties, tags) { Credentials = credentials; DatastoreType = datastoreType; + IntellectualProperty = intellectualProperty; IsDefault = isDefault; } /// /// [Required] Account credentials. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , and . /// public MachineLearningDatastoreCredentials Credentials { get; set; } /// [Required] Storage type backing the datastore. internal DatastoreType DatastoreType { get; set; } + /// Intellectual Property details. + public IntellectualProperty IntellectualProperty { get; set; } /// Readonly property to indicate if datastore is the workspace default datastore. public bool? IsDefault { get; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreSecrets.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreSecrets.Serialization.cs index 168497b880c2..28439e7cb6ec 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreSecrets.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreSecrets.Serialization.cs @@ -31,6 +31,8 @@ internal static MachineLearningDatastoreSecrets DeserializeMachineLearningDatast switch (discriminator.GetString()) { case "Certificate": return MachineLearningCertificateDatastoreSecrets.DeserializeMachineLearningCertificateDatastoreSecrets(element); + case "KerberosKeytab": return KerberosKeytabSecrets.DeserializeKerberosKeytabSecrets(element); + case "KerberosPassword": return KerberosPasswordSecrets.DeserializeKerberosPasswordSecrets(element); case "Sas": return MachineLearningSasDatastoreSecrets.DeserializeMachineLearningSasDatastoreSecrets(element); case "ServicePrincipal": return MachineLearningServicePrincipalDatastoreSecrets.DeserializeMachineLearningServicePrincipalDatastoreSecrets(element); case "AccountKey": return MachineLearningAccountKeyDatastoreSecrets.DeserializeMachineLearningAccountKeyDatastoreSecrets(element); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreSecrets.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreSecrets.cs index 10b9d278059d..45ec39f64c70 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreSecrets.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreSecrets.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// Base definition for datastore secrets. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public abstract partial class MachineLearningDatastoreSecrets { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDeploymentResourceConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDeploymentResourceConfiguration.Serialization.cs index 370dcabf4be5..7ee4f96850cc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDeploymentResourceConfiguration.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDeploymentResourceConfiguration.Serialization.cs @@ -34,6 +34,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("instanceType"); } } + if (Optional.IsCollectionDefined(Locations)) + { + if (Locations != null) + { + writer.WritePropertyName("locations"u8); + writer.WriteStartArray(); + foreach (var item in Locations) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("locations"); + } + } + if (Optional.IsDefined(MaxInstanceCount)) + { + if (MaxInstanceCount != null) + { + writer.WritePropertyName("maxInstanceCount"u8); + writer.WriteNumberValue(MaxInstanceCount.Value); + } + else + { + writer.WriteNull("maxInstanceCount"); + } + } if (Optional.IsCollectionDefined(Properties)) { if (Properties != null) @@ -72,6 +101,8 @@ internal static MachineLearningDeploymentResourceConfiguration DeserializeMachin } Optional instanceCount = default; Optional instanceType = default; + Optional> locations = default; + Optional maxInstanceCount = default; Optional> properties = default; foreach (var property in element.EnumerateObject()) { @@ -94,6 +125,31 @@ internal static MachineLearningDeploymentResourceConfiguration DeserializeMachin instanceType = property.Value.GetString(); continue; } + if (property.NameEquals("locations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + locations = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + locations = array; + continue; + } + if (property.NameEquals("maxInstanceCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxInstanceCount = null; + continue; + } + maxInstanceCount = property.Value.GetInt32(); + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -117,7 +173,7 @@ internal static MachineLearningDeploymentResourceConfiguration DeserializeMachin continue; } } - return new MachineLearningDeploymentResourceConfiguration(Optional.ToNullable(instanceCount), instanceType.Value, Optional.ToDictionary(properties)); + return new MachineLearningDeploymentResourceConfiguration(Optional.ToNullable(instanceCount), instanceType.Value, Optional.ToList(locations), Optional.ToNullable(maxInstanceCount), Optional.ToDictionary(properties)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDeploymentResourceConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDeploymentResourceConfiguration.cs index d1a61242d57a..cc423af8e7e1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDeploymentResourceConfiguration.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDeploymentResourceConfiguration.cs @@ -21,8 +21,13 @@ public MachineLearningDeploymentResourceConfiguration() /// Initializes a new instance of MachineLearningDeploymentResourceConfiguration. /// Optional number of instances or nodes used by the compute target. /// Optional type of VM used as supported by the compute target. + /// Locations where the job can run. + /// + /// 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. + /// /// Additional properties bag. - internal MachineLearningDeploymentResourceConfiguration(int? instanceCount, string instanceType, IDictionary properties) : base(instanceCount, instanceType, properties) + internal MachineLearningDeploymentResourceConfiguration(int? instanceCount, string instanceType, IList locations, int? maxInstanceCount, IDictionary properties) : base(instanceCount, instanceType, locations, maxInstanceCount, properties) { } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.Serialization.cs index 3027af20c448..25983fb5f30b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.Serialization.cs @@ -32,6 +32,7 @@ internal static MachineLearningDistributionConfiguration DeserializeMachineLearn { case "Mpi": return MpiDistributionConfiguration.DeserializeMpiDistributionConfiguration(element); case "PyTorch": return PyTorchDistributionConfiguration.DeserializePyTorchDistributionConfiguration(element); + case "Ray": return Ray.DeserializeRay(element); case "TensorFlow": return TensorFlowDistributionConfiguration.DeserializeTensorFlowDistributionConfiguration(element); } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.cs index a06080b1ff9a..fe06b7fd1062 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// Base definition for job distribution configuration. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , , and . /// public abstract partial class MachineLearningDistributionConfiguration { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.cs deleted file mode 100644 index 7b844700c6ef..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure.Core; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The MachineLearningEncryptionKeyVaultProperties. - public partial class MachineLearningEncryptionKeyVaultProperties - { - /// Initializes a new instance of MachineLearningEncryptionKeyVaultProperties. - /// The ArmId of the keyVault where the customer owned encryption key is present. - /// Key vault uri to access the encryption key. - /// or is null. - public MachineLearningEncryptionKeyVaultProperties(ResourceIdentifier keyVaultArmId, string keyIdentifier) - { - Argument.AssertNotNull(keyVaultArmId, nameof(keyVaultArmId)); - Argument.AssertNotNull(keyIdentifier, nameof(keyIdentifier)); - - KeyVaultArmId = keyVaultArmId; - KeyIdentifier = keyIdentifier; - } - - /// Initializes a new instance of MachineLearningEncryptionKeyVaultProperties. - /// The ArmId of the keyVault where the customer owned encryption key is present. - /// Key vault uri to access the encryption key. - /// For future use - The client id of the identity which will be used to access key vault. - internal MachineLearningEncryptionKeyVaultProperties(ResourceIdentifier keyVaultArmId, string keyIdentifier, string identityClientId) - { - KeyVaultArmId = keyVaultArmId; - KeyIdentifier = keyIdentifier; - IdentityClientId = identityClientId; - } - - /// The ArmId of the keyVault where the customer owned encryption key is present. - public ResourceIdentifier KeyVaultArmId { get; set; } - /// Key vault uri to access the encryption key. - public string KeyIdentifier { get; set; } - /// For future use - The client id of the identity which will be used to access key vault. - public string IdentityClientId { get; set; } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs index 70a5980716e3..1c39aea9f305 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs @@ -15,8 +15,11 @@ public partial class MachineLearningEncryptionSetting : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.ToString()); + if (Optional.IsDefined(CosmosDbResourceId)) + { + writer.WritePropertyName("cosmosDbResourceId"u8); + writer.WriteStringValue(CosmosDbResourceId); + } if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"u8); @@ -24,6 +27,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("keyVaultProperties"u8); writer.WriteObjectValue(KeyVaultProperties); + if (Optional.IsDefined(SearchAccountResourceId)) + { + writer.WritePropertyName("searchAccountResourceId"u8); + writer.WriteStringValue(SearchAccountResourceId); + } + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.ToString()); + if (Optional.IsDefined(StorageAccountResourceId)) + { + writer.WritePropertyName("storageAccountResourceId"u8); + writer.WriteStringValue(StorageAccountResourceId); + } writer.WriteEndObject(); } @@ -33,14 +48,17 @@ internal static MachineLearningEncryptionSetting DeserializeMachineLearningEncry { return null; } - MachineLearningEncryptionStatus status = default; + Optional cosmosDbResourceId = default; Optional identity = default; - MachineLearningEncryptionKeyVaultProperties keyVaultProperties = default; + KeyVaultProperties keyVaultProperties = default; + Optional searchAccountResourceId = default; + MachineLearningEncryptionStatus status = default; + Optional storageAccountResourceId = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("status"u8)) + if (property.NameEquals("cosmosDbResourceId"u8)) { - status = new MachineLearningEncryptionStatus(property.Value.GetString()); + cosmosDbResourceId = property.Value.GetString(); continue; } if (property.NameEquals("identity"u8)) @@ -54,11 +72,26 @@ internal static MachineLearningEncryptionSetting DeserializeMachineLearningEncry } if (property.NameEquals("keyVaultProperties"u8)) { - keyVaultProperties = MachineLearningEncryptionKeyVaultProperties.DeserializeMachineLearningEncryptionKeyVaultProperties(property.Value); + keyVaultProperties = KeyVaultProperties.DeserializeKeyVaultProperties(property.Value); + continue; + } + if (property.NameEquals("searchAccountResourceId"u8)) + { + searchAccountResourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + status = new MachineLearningEncryptionStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("storageAccountResourceId"u8)) + { + storageAccountResourceId = property.Value.GetString(); continue; } } - return new MachineLearningEncryptionSetting(status, identity.Value, keyVaultProperties); + return new MachineLearningEncryptionSetting(cosmosDbResourceId.Value, identity.Value, keyVaultProperties, searchAccountResourceId.Value, status, storageAccountResourceId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs index dd5144ea614c..7a00e620ea07 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs @@ -14,33 +14,51 @@ namespace Azure.ResourceManager.MachineLearning.Models public partial class MachineLearningEncryptionSetting { /// Initializes a new instance of MachineLearningEncryptionSetting. + /// KeyVault details to do the encryption. /// Indicates whether or not the encryption is enabled for the workspace. - /// Customer Key vault properties. /// is null. - public MachineLearningEncryptionSetting(MachineLearningEncryptionStatus status, MachineLearningEncryptionKeyVaultProperties keyVaultProperties) + public MachineLearningEncryptionSetting(KeyVaultProperties keyVaultProperties, MachineLearningEncryptionStatus status) { Argument.AssertNotNull(keyVaultProperties, nameof(keyVaultProperties)); - Status = status; KeyVaultProperties = keyVaultProperties; + Status = status; } /// Initializes a new instance of MachineLearningEncryptionSetting. + /// + /// The byok cosmosdb account that customer brings to store customer's data + /// with encryption + /// + /// Identity to be used with the keyVault. + /// KeyVault details to do the encryption. + /// + /// The byok search account that customer brings to store customer's data + /// with encryption + /// /// Indicates whether or not the encryption is enabled for the workspace. - /// The identity that will be used to access the key vault for encryption at rest. - /// Customer Key vault properties. - internal MachineLearningEncryptionSetting(MachineLearningEncryptionStatus status, MachineLearningCmkIdentity identity, MachineLearningEncryptionKeyVaultProperties keyVaultProperties) + /// + /// The byok storage account that customer brings to store customer's data + /// with encryption + /// + internal MachineLearningEncryptionSetting(string cosmosDbResourceId, MachineLearningCmkIdentity identity, KeyVaultProperties keyVaultProperties, string searchAccountResourceId, MachineLearningEncryptionStatus status, string storageAccountResourceId) { - Status = status; + CosmosDbResourceId = cosmosDbResourceId; Identity = identity; KeyVaultProperties = keyVaultProperties; + SearchAccountResourceId = searchAccountResourceId; + Status = status; + StorageAccountResourceId = storageAccountResourceId; } - /// Indicates whether or not the encryption is enabled for the workspace. - public MachineLearningEncryptionStatus Status { get; set; } - /// The identity that will be used to access the key vault for encryption at rest. + /// + /// The byok cosmosdb account that customer brings to store customer's data + /// with encryption + /// + public string CosmosDbResourceId { get; set; } + /// Identity to be used with the keyVault. internal MachineLearningCmkIdentity Identity { get; set; } - /// The ArmId of the user assigned identity that will be used to access the customer managed key vault. + /// UserAssignedIdentity to be used to fetch the encryption key from keyVault. public ResourceIdentifier UserAssignedIdentity { get => Identity is null ? default : Identity.UserAssignedIdentity; @@ -52,7 +70,19 @@ public ResourceIdentifier UserAssignedIdentity } } - /// Customer Key vault properties. - public MachineLearningEncryptionKeyVaultProperties KeyVaultProperties { get; set; } + /// KeyVault details to do the encryption. + public KeyVaultProperties KeyVaultProperties { get; set; } + /// + /// The byok search account that customer brings to store customer's data + /// with encryption + /// + public string SearchAccountResourceId { get; set; } + /// Indicates whether or not the encryption is enabled for the workspace. + public MachineLearningEncryptionStatus Status { get; set; } + /// + /// The byok storage account that customer brings to store customer's data + /// with encryption + /// + public string StorageAccountResourceId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEndpointDeploymentProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEndpointDeploymentProperties.cs index 0abfb0e86f0c..5eda68fafe8f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEndpointDeploymentProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEndpointDeploymentProperties.cs @@ -23,7 +23,7 @@ public MachineLearningEndpointDeploymentProperties() /// Initializes a new instance of MachineLearningEndpointDeploymentProperties. /// Code configuration for the endpoint deployment. /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. /// Environment variables configuration for the deployment. /// Property dictionary. Properties can be added, but not removed or altered. internal MachineLearningEndpointDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties) @@ -39,7 +39,7 @@ internal MachineLearningEndpointDeploymentProperties(MachineLearningCodeConfigur public MachineLearningCodeConfiguration CodeConfiguration { get; set; } /// Description of the endpoint deployment. public string Description { get; set; } - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. public string EnvironmentId { get; set; } /// Environment variables configuration for the deployment. public IDictionary EnvironmentVariables { get; set; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.Serialization.cs index 7842c3476590..168d896bedbe 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.Serialization.cs @@ -78,6 +78,7 @@ internal static MachineLearningEnvironmentContainerProperties DeserializeMachine { return null; } + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -86,6 +87,15 @@ internal static MachineLearningEnvironmentContainerProperties DeserializeMachine Optional> tags = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } if (property.NameEquals("isArchived"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -156,7 +166,7 @@ internal static MachineLearningEnvironmentContainerProperties DeserializeMachine continue; } } - return new MachineLearningEnvironmentContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value); + return new MachineLearningEnvironmentContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.cs index 715e6a475798..0f883e6735cf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.cs @@ -24,8 +24,13 @@ public MachineLearningEnvironmentContainerProperties() /// Is the asset archived?. /// The latest version inside this container. /// The next auto incremental version. - internal MachineLearningEnvironmentContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + /// Provisioning state for the environment container. + internal MachineLearningEnvironmentContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { + ProvisioningState = provisioningState; } + + /// Provisioning state for the environment container. + public AssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.Serialization.cs index 510d928d3c42..fc3344c239a0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.Serialization.cs @@ -41,11 +41,47 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("inferenceConfig"u8); writer.WriteObjectValue(InferenceConfig); } + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } if (Optional.IsDefined(OSType)) { writer.WritePropertyName("osType"u8); writer.WriteStringValue(OSType.Value.ToString()); } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -119,7 +155,11 @@ internal static MachineLearningEnvironmentVersionProperties DeserializeMachineLe Optional environmentType = default; Optional image = default; Optional inferenceConfig = default; + Optional intellectualProperty = default; Optional osType = default; + Optional provisioningState = default; + Optional stage = default; + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -173,6 +213,16 @@ internal static MachineLearningEnvironmentVersionProperties DeserializeMachineLe inferenceConfig = MachineLearningInferenceContainerProperties.DeserializeMachineLearningInferenceContainerProperties(property.Value); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } if (property.NameEquals("osType"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -182,6 +232,35 @@ internal static MachineLearningEnvironmentVersionProperties DeserializeMachineLe osType = new MachineLearningOperatingSystemType(property.Value.GetString()); continue; } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -241,7 +320,7 @@ internal static MachineLearningEnvironmentVersionProperties DeserializeMachineLe continue; } } - return new MachineLearningEnvironmentVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToNullable(autoRebuild), build.Value, condaFile.Value, Optional.ToNullable(environmentType), image.Value, inferenceConfig.Value, Optional.ToNullable(osType)); + return new MachineLearningEnvironmentVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToNullable(autoRebuild), build.Value, condaFile.Value, Optional.ToNullable(environmentType), image.Value, inferenceConfig.Value, intellectualProperty.Value, Optional.ToNullable(osType), Optional.ToNullable(provisioningState), stage.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.cs index d5fd90eee278..66bc03c9026b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.cs @@ -21,8 +21,9 @@ public MachineLearningEnvironmentVersionProperties() /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// Defines if image needs to be rebuilt based on base image changes. /// Configuration settings for Docker build context. /// @@ -38,8 +39,11 @@ public MachineLearningEnvironmentVersionProperties() /// <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" /> /// /// Defines configuration specific to inference. + /// Intellectual Property details. Used if environment is an Intellectual Property. /// The OS type of the environment. - internal MachineLearningEnvironmentVersionProperties(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived, AutoRebuildSetting? autoRebuild, MachineLearningBuildContext build, string condaFile, MachineLearningEnvironmentType? environmentType, string image, MachineLearningInferenceContainerProperties inferenceConfig, MachineLearningOperatingSystemType? osType) : base(description, properties, tags, isAnonymous, isArchived) + /// Provisioning state for the environment version. + /// Stage in the environment lifecycle assigned to this environment. + internal MachineLearningEnvironmentVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, AutoRebuildSetting? autoRebuild, MachineLearningBuildContext build, string condaFile, MachineLearningEnvironmentType? environmentType, string image, MachineLearningInferenceContainerProperties inferenceConfig, IntellectualProperty intellectualProperty, MachineLearningOperatingSystemType? osType, AssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { AutoRebuild = autoRebuild; Build = build; @@ -47,7 +51,10 @@ internal MachineLearningEnvironmentVersionProperties(string description, IDictio EnvironmentType = environmentType; Image = image; InferenceConfig = inferenceConfig; + IntellectualProperty = intellectualProperty; OSType = osType; + ProvisioningState = provisioningState; + Stage = stage; } /// Defines if image needs to be rebuilt based on base image changes. @@ -71,7 +78,13 @@ internal MachineLearningEnvironmentVersionProperties(string description, IDictio public string Image { get; set; } /// Defines configuration specific to inference. public MachineLearningInferenceContainerProperties InferenceConfig { get; set; } + /// Intellectual Property details. Used if environment is an Intellectual Property. + public IntellectualProperty IntellectualProperty { get; set; } /// The OS type of the environment. public MachineLearningOperatingSystemType? OSType { get; set; } + /// Provisioning state for the environment version. + public AssetProvisioningState? ProvisioningState { get; } + /// Stage in the environment lifecycle assigned to this environment. + public string Stage { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowModelJobOutput.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowModelJobOutput.Serialization.cs index 1f6b3240896e..09fab28c585f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowModelJobOutput.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowModelJobOutput.Serialization.cs @@ -16,6 +16,42 @@ public partial class MachineLearningFlowModelJobOutput : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(AssetName)) + { + if (AssetName != null) + { + writer.WritePropertyName("assetName"u8); + writer.WriteStringValue(AssetName); + } + else + { + writer.WriteNull("assetName"); + } + } + if (Optional.IsDefined(AssetVersion)) + { + if (AssetVersion != null) + { + writer.WritePropertyName("assetVersion"u8); + writer.WriteStringValue(AssetVersion); + } + else + { + writer.WriteNull("assetVersion"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(Mode)) { writer.WritePropertyName("mode"u8); @@ -56,12 +92,45 @@ internal static MachineLearningFlowModelJobOutput DeserializeMachineLearningFlow { return null; } + Optional assetName = default; + Optional assetVersion = default; + Optional autoDeleteSetting = default; Optional mode = default; Optional uri = default; Optional description = default; JobOutputType jobOutputType = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("assetName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetName = null; + continue; + } + assetName = property.Value.GetString(); + continue; + } + if (property.NameEquals("assetVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetVersion = null; + continue; + } + assetVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("mode"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -97,7 +166,7 @@ internal static MachineLearningFlowModelJobOutput DeserializeMachineLearningFlow continue; } } - return new MachineLearningFlowModelJobOutput(description.Value, jobOutputType, Optional.ToNullable(mode), uri.Value); + return new MachineLearningFlowModelJobOutput(description.Value, jobOutputType, assetName.Value, assetVersion.Value, autoDeleteSetting.Value, Optional.ToNullable(mode), uri.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowModelJobOutput.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowModelJobOutput.cs index 3a3b0adc7e38..41c2c82578d2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowModelJobOutput.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowModelJobOutput.cs @@ -21,15 +21,27 @@ public MachineLearningFlowModelJobOutput() /// Initializes a new instance of MachineLearningFlowModelJobOutput. /// Description for the output. /// [Required] Specifies the type of job. + /// Output Asset Name. + /// Output Asset Version. + /// Auto delete setting of output data asset. /// Output Asset Delivery Mode. /// Output Asset URI. - internal MachineLearningFlowModelJobOutput(string description, JobOutputType jobOutputType, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) + internal MachineLearningFlowModelJobOutput(string description, JobOutputType jobOutputType, string assetName, string assetVersion, AutoDeleteSetting autoDeleteSetting, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) { + AssetName = assetName; + AssetVersion = assetVersion; + AutoDeleteSetting = autoDeleteSetting; Mode = mode; Uri = uri; JobOutputType = jobOutputType; } + /// Output Asset Name. + public string AssetName { get; set; } + /// Output Asset Version. + public string AssetVersion { get; set; } + /// Auto delete setting of output data asset. + public AutoDeleteSetting AutoDeleteSetting { get; set; } /// Output Asset Delivery Mode. public MachineLearningOutputDeliveryMode? Mode { get; set; } /// Output Asset URI. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.Serialization.cs index 709c0b80d866..ad427f3f901e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.Serialization.cs @@ -74,6 +74,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("featurizationSettings"); } } + if (Optional.IsDefined(FixedParameters)) + { + if (FixedParameters != null) + { + writer.WritePropertyName("fixedParameters"u8); + writer.WriteObjectValue(FixedParameters); + } + else + { + writer.WriteNull("fixedParameters"); + } + } if (Optional.IsDefined(LimitSettings)) { if (LimitSettings != null) @@ -98,6 +110,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("nCrossValidations"); } } + if (Optional.IsCollectionDefined(SearchSpace)) + { + if (SearchSpace != null) + { + writer.WritePropertyName("searchSpace"u8); + writer.WriteStartArray(); + foreach (var item in SearchSpace) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("searchSpace"); + } + } + if (Optional.IsDefined(SweepSettings)) + { + if (SweepSettings != null) + { + writer.WritePropertyName("sweepSettings"u8); + writer.WriteObjectValue(SweepSettings); + } + else + { + writer.WriteNull("sweepSettings"); + } + } if (Optional.IsDefined(TestData)) { if (TestData != null) @@ -193,8 +234,11 @@ internal static MachineLearningForecasting DeserializeMachineLearningForecasting Optional trainingSettings = default; Optional> cvSplitColumnNames = default; Optional featurizationSettings = default; + Optional fixedParameters = default; Optional limitSettings = default; Optional nCrossValidations = default; + Optional> searchSpace = default; + Optional sweepSettings = default; Optional testData = default; Optional testDataSize = default; Optional validationData = default; @@ -260,6 +304,16 @@ internal static MachineLearningForecasting DeserializeMachineLearningForecasting featurizationSettings = TableVerticalFeaturizationSettings.DeserializeTableVerticalFeaturizationSettings(property.Value); continue; } + if (property.NameEquals("fixedParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + fixedParameters = null; + continue; + } + fixedParameters = TableFixedParameters.DeserializeTableFixedParameters(property.Value); + continue; + } if (property.NameEquals("limitSettings"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -280,6 +334,31 @@ internal static MachineLearningForecasting DeserializeMachineLearningForecasting nCrossValidations = NCrossValidations.DeserializeNCrossValidations(property.Value); continue; } + if (property.NameEquals("searchSpace"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + searchSpace = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(TableParameterSubspace.DeserializeTableParameterSubspace(item)); + } + searchSpace = array; + continue; + } + if (property.NameEquals("sweepSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sweepSettings = null; + continue; + } + sweepSettings = TableSweepSettings.DeserializeTableSweepSettings(property.Value); + continue; + } if (property.NameEquals("testData"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -360,7 +439,7 @@ internal static MachineLearningForecasting DeserializeMachineLearningForecasting continue; } } - return new MachineLearningForecasting(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, forecastingSettings.Value, Optional.ToNullable(primaryMetric), trainingSettings.Value, Optional.ToList(cvSplitColumnNames), featurizationSettings.Value, limitSettings.Value, nCrossValidations.Value, testData.Value, Optional.ToNullable(testDataSize), validationData.Value, Optional.ToNullable(validationDataSize), weightColumnName.Value); + return new MachineLearningForecasting(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, forecastingSettings.Value, Optional.ToNullable(primaryMetric), trainingSettings.Value, Optional.ToList(cvSplitColumnNames), featurizationSettings.Value, fixedParameters.Value, limitSettings.Value, nCrossValidations.Value, Optional.ToList(searchSpace), sweepSettings.Value, testData.Value, Optional.ToNullable(testDataSize), validationData.Value, Optional.ToNullable(validationDataSize), weightColumnName.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.cs index 86261d3aac3f..d0f18f787da6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.cs @@ -22,6 +22,7 @@ public MachineLearningForecasting(MachineLearningTableJobInput trainingData) : b Argument.AssertNotNull(trainingData, nameof(trainingData)); CvSplitColumnNames = new ChangeTrackingList(); + SearchSpace = new ChangeTrackingList(); TaskType = TaskType.Forecasting; } @@ -38,6 +39,7 @@ public MachineLearningForecasting(MachineLearningTableJobInput trainingData) : b /// Inputs for training phase for an AutoML Job. /// Columns to use for CVSplit data. /// Featurization inputs needed for AutoML job. + /// Model/training parameters that will remain constant throughout training. /// Execution constraints for AutoMLJob. /// /// Number of cross validation folds to be applied on training dataset @@ -45,6 +47,8 @@ public MachineLearningForecasting(MachineLearningTableJobInput trainingData) : b /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// + /// Search space for sampling different combinations of models and their hyperparameters. + /// Settings for model sweeping and hyperparameter tuning. /// Test data input. /// /// The fraction of test dataset that needs to be set aside for validation purpose. @@ -58,15 +62,18 @@ public MachineLearningForecasting(MachineLearningTableJobInput trainingData) : b /// Applied when validation dataset is not provided. /// /// 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. - internal MachineLearningForecasting(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, ForecastingSettings forecastingSettings, ForecastingPrimaryMetric? primaryMetric, ForecastingTrainingSettings trainingSettings, IList cvSplitColumnNames, TableVerticalFeaturizationSettings featurizationSettings, TableVerticalLimitSettings limitSettings, NCrossValidations nCrossValidations, MachineLearningTableJobInput testData, double? testDataSize, MachineLearningTableJobInput validationData, double? validationDataSize, string weightColumnName) : base(logVerbosity, targetColumnName, taskType, trainingData) + internal MachineLearningForecasting(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, ForecastingSettings forecastingSettings, ForecastingPrimaryMetric? primaryMetric, ForecastingTrainingSettings trainingSettings, IList cvSplitColumnNames, TableVerticalFeaturizationSettings featurizationSettings, TableFixedParameters fixedParameters, TableVerticalLimitSettings limitSettings, NCrossValidations nCrossValidations, IList searchSpace, TableSweepSettings sweepSettings, MachineLearningTableJobInput testData, double? testDataSize, MachineLearningTableJobInput validationData, double? validationDataSize, string weightColumnName) : base(logVerbosity, targetColumnName, taskType, trainingData) { ForecastingSettings = forecastingSettings; PrimaryMetric = primaryMetric; TrainingSettings = trainingSettings; CvSplitColumnNames = cvSplitColumnNames; FeaturizationSettings = featurizationSettings; + FixedParameters = fixedParameters; LimitSettings = limitSettings; NCrossValidations = nCrossValidations; + SearchSpace = searchSpace; + SweepSettings = sweepSettings; TestData = testData; TestDataSize = testDataSize; ValidationData = validationData; @@ -85,6 +92,8 @@ internal MachineLearningForecasting(MachineLearningLogVerbosity? logVerbosity, s public IList CvSplitColumnNames { get; set; } /// Featurization inputs needed for AutoML job. public TableVerticalFeaturizationSettings FeaturizationSettings { get; set; } + /// Model/training parameters that will remain constant throughout training. + public TableFixedParameters FixedParameters { get; set; } /// Execution constraints for AutoMLJob. public TableVerticalLimitSettings LimitSettings { get; set; } /// @@ -94,6 +103,10 @@ internal MachineLearningForecasting(MachineLearningLogVerbosity? logVerbosity, s /// The available derived classes include and . /// public NCrossValidations NCrossValidations { get; set; } + /// Search space for sampling different combinations of models and their hyperparameters. + public IList SearchSpace { get; set; } + /// Settings for model sweeping and hyperparameter tuning. + public TableSweepSettings SweepSettings { get; set; } /// Test data input. public MachineLearningTableJobInput TestData { get; set; } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.Serialization.cs index 4516693bc7ea..ab51bdd40445 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -18,20 +19,31 @@ internal static MachineLearningFqdnEndpoints DeserializeMachineLearningFqdnEndpo { return null; } - Optional properties = default; + Optional category = default; + Optional> endpoints = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("properties"u8)) + if (property.NameEquals("category"u8)) + { + category = property.Value.GetString(); + continue; + } + if (property.NameEquals("endpoints"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - properties = MachineLearningFqdnEndpointsProperties.DeserializeMachineLearningFqdnEndpointsProperties(property.Value); + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MachineLearningFqdnEndpoint.DeserializeMachineLearningFqdnEndpoint(item)); + } + endpoints = array; continue; } } - return new MachineLearningFqdnEndpoints(properties.Value); + return new MachineLearningFqdnEndpoints(category.Value, Optional.ToList(endpoints)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.cs index c673d3692560..03489cb624db 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.cs @@ -5,6 +5,9 @@ #nullable disable +using System.Collections.Generic; +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// The MachineLearningFqdnEndpoints. @@ -13,16 +16,21 @@ public partial class MachineLearningFqdnEndpoints /// Initializes a new instance of MachineLearningFqdnEndpoints. internal MachineLearningFqdnEndpoints() { + Endpoints = new ChangeTrackingList(); } /// Initializes a new instance of MachineLearningFqdnEndpoints. - /// - internal MachineLearningFqdnEndpoints(MachineLearningFqdnEndpointsProperties properties) + /// + /// + internal MachineLearningFqdnEndpoints(string category, IReadOnlyList endpoints) { - Properties = properties; + Category = category; + Endpoints = endpoints; } - /// Gets the properties. - public MachineLearningFqdnEndpointsProperties Properties { get; } + /// Gets the category. + public string Category { get; } + /// Gets the endpoints. + public IReadOnlyList Endpoints { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs deleted file mode 100644 index 05fcd406404c..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The MachineLearningFqdnEndpointsProperties. - public partial class MachineLearningFqdnEndpointsProperties - { - /// Initializes a new instance of MachineLearningFqdnEndpointsProperties. - internal MachineLearningFqdnEndpointsProperties() - { - Endpoints = new ChangeTrackingList(); - } - - /// Initializes a new instance of MachineLearningFqdnEndpointsProperties. - /// - /// - internal MachineLearningFqdnEndpointsProperties(string category, IReadOnlyList endpoints) - { - Category = category; - Endpoints = endpoints; - } - - /// Gets the category. - public string Category { get; } - /// Gets the endpoints. - public IReadOnlyList Endpoints { get; } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobCollectionGetAllOptions.cs new file mode 100644 index 000000000000..3f55c92c4dcb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobCollectionGetAllOptions.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MachineLearningJobCollectionGetAllOptions. + public partial class MachineLearningJobCollectionGetAllOptions + { + /// Initializes a new instance of MachineLearningJobCollectionGetAllOptions. + public MachineLearningJobCollectionGetAllOptions() + { + } + + /// Continuation token for pagination. + public string Skip { get; set; } + /// Type of job to be returned. + public string JobType { get; set; } + /// Jobs returned will have this tag key. + public string Tag { get; set; } + /// View type for including/excluding (for example) archived entities. + public MachineLearningListViewType? ListViewType { get; set; } + /// Asset name the job's named output is registered with. + public string AssetName { get; set; } + /// Indicator whether the job is scheduled job. + public bool? Scheduled { get; set; } + /// The scheduled id for listing the job triggered from. + public string ScheduleId { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.Serialization.cs new file mode 100644 index 000000000000..f21297992c96 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MachineLearningJobPatch : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.cs new file mode 100644 index 000000000000..8b7eb989f69c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Azure Resource Manager resource envelope strictly used in update requests. + public partial class MachineLearningJobPatch + { + /// Initializes a new instance of MachineLearningJobPatch. + public MachineLearningJobPatch() + { + } + + /// Additional attributes of the entity. + internal PartialJobBase Properties { get; set; } + /// + /// Send webhook callback to a service. Key is a user-provided name for the webhook. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public IDictionary NotificationSettingWebhooks + { + get => Properties is null ? default : Properties.NotificationSettingWebhooks; + set + { + if (Properties is null) + Properties = new PartialJobBase(); + Properties.NotificationSettingWebhooks = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobProperties.Serialization.cs index d2ce2b47a218..c6bf9abfb1eb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobProperties.Serialization.cs @@ -76,6 +76,36 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("jobType"u8); writer.WriteStringValue(JobType.ToString()); + if (Optional.IsDefined(NotificationSetting)) + { + if (NotificationSetting != null) + { + writer.WritePropertyName("notificationSetting"u8); + writer.WriteObjectValue(NotificationSetting); + } + else + { + writer.WriteNull("notificationSetting"); + } + } + if (Optional.IsCollectionDefined(SecretsConfiguration)) + { + if (SecretsConfiguration != null) + { + writer.WritePropertyName("secretsConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SecretsConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("secretsConfiguration"); + } + } if (Optional.IsCollectionDefined(Services)) { if (Services != null) @@ -157,7 +187,9 @@ internal static MachineLearningJobProperties DeserializeMachineLearningJobProper { case "AutoML": return AutoMLJob.DeserializeAutoMLJob(element); case "Command": return MachineLearningCommandJob.DeserializeMachineLearningCommandJob(element); + case "Labeling": return LabelingJobProperties.DeserializeLabelingJobProperties(element); case "Pipeline": return MachineLearningPipelineJob.DeserializeMachineLearningPipelineJob(element); + case "Spark": return SparkJob.DeserializeSparkJob(element); case "Sweep": return MachineLearningSweepJob.DeserializeMachineLearningSweepJob(element); } } @@ -168,6 +200,8 @@ internal static MachineLearningJobProperties DeserializeMachineLearningJobProper Optional identity = default; Optional isArchived = default; JobType jobType = default; + Optional notificationSetting = default; + Optional> secretsConfiguration = default; Optional> services = default; Optional status = default; Optional description = default; @@ -234,6 +268,31 @@ internal static MachineLearningJobProperties DeserializeMachineLearningJobProper jobType = new JobType(property.Value.GetString()); continue; } + if (property.NameEquals("notificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + notificationSetting = null; + continue; + } + notificationSetting = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("secretsConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + secretsConfiguration = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, SecretConfiguration.DeserializeSecretConfiguration(property0.Value)); + } + secretsConfiguration = dictionary; + continue; + } if (property.NameEquals("services"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -299,7 +358,7 @@ internal static MachineLearningJobProperties DeserializeMachineLearningJobProper continue; } } - return new MachineLearningJobProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, Optional.ToDictionary(services), Optional.ToNullable(status)); + return new MachineLearningJobProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, notificationSetting.Value, Optional.ToDictionary(secretsConfiguration), Optional.ToDictionary(services), Optional.ToNullable(status)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobProperties.cs index b6ba241ac902..cf1f98845039 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobProperties.cs @@ -13,13 +13,14 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// Base definition for a job. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public partial class MachineLearningJobProperties : MachineLearningResourceBase { /// Initializes a new instance of MachineLearningJobProperties. public MachineLearningJobProperties() { + SecretsConfiguration = new ChangeTrackingDictionary(); Services = new ChangeTrackingDictionary(); } @@ -39,12 +40,14 @@ public MachineLearningJobProperties() /// /// Is the asset archived?. /// [Required] Specifies the type of job. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. /// /// Status of the job. - internal MachineLearningJobProperties(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, IDictionary services, MachineLearningJobStatus? status) : base(description, properties, tags) + internal MachineLearningJobProperties(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status) : base(description, properties, tags) { ComponentId = componentId; ComputeId = computeId; @@ -53,6 +56,8 @@ internal MachineLearningJobProperties(string description, IDictionary [Required] Specifies the type of job. internal JobType JobType { get; set; } + /// Notification setting for the job. + public NotificationSetting NotificationSetting { get; set; } + /// Configuration for secrets to be made available during runtime. + public IDictionary SecretsConfiguration { get; set; } /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResourceConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResourceConfiguration.Serialization.cs index 49897f105a48..d3a96fb568b0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResourceConfiguration.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResourceConfiguration.Serialization.cs @@ -51,6 +51,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("instanceType"); } } + if (Optional.IsCollectionDefined(Locations)) + { + if (Locations != null) + { + writer.WritePropertyName("locations"u8); + writer.WriteStartArray(); + foreach (var item in Locations) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("locations"); + } + } + if (Optional.IsDefined(MaxInstanceCount)) + { + if (MaxInstanceCount != null) + { + writer.WritePropertyName("maxInstanceCount"u8); + writer.WriteNumberValue(MaxInstanceCount.Value); + } + else + { + writer.WriteNull("maxInstanceCount"); + } + } if (Optional.IsCollectionDefined(Properties)) { if (Properties != null) @@ -91,6 +120,8 @@ internal static MachineLearningJobResourceConfiguration DeserializeMachineLearni Optional shmSize = default; Optional instanceCount = default; Optional instanceType = default; + Optional> locations = default; + Optional maxInstanceCount = default; Optional> properties = default; foreach (var property in element.EnumerateObject()) { @@ -128,6 +159,31 @@ internal static MachineLearningJobResourceConfiguration DeserializeMachineLearni instanceType = property.Value.GetString(); continue; } + if (property.NameEquals("locations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + locations = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + locations = array; + continue; + } + if (property.NameEquals("maxInstanceCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxInstanceCount = null; + continue; + } + maxInstanceCount = property.Value.GetInt32(); + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -151,7 +207,7 @@ internal static MachineLearningJobResourceConfiguration DeserializeMachineLearni continue; } } - return new MachineLearningJobResourceConfiguration(Optional.ToNullable(instanceCount), instanceType.Value, Optional.ToDictionary(properties), dockerArgs.Value, shmSize.Value); + return new MachineLearningJobResourceConfiguration(Optional.ToNullable(instanceCount), instanceType.Value, Optional.ToList(locations), Optional.ToNullable(maxInstanceCount), Optional.ToDictionary(properties), dockerArgs.Value, shmSize.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResourceConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResourceConfiguration.cs index c9dcfead3c98..261a4fa7ea3d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResourceConfiguration.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResourceConfiguration.cs @@ -21,10 +21,15 @@ public MachineLearningJobResourceConfiguration() /// Initializes a new instance of MachineLearningJobResourceConfiguration. /// Optional number of instances or nodes used by the compute target. /// Optional type of VM used as supported by the compute target. + /// Locations where the job can run. + /// + /// 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. + /// /// Additional properties bag. /// 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. /// 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). - internal MachineLearningJobResourceConfiguration(int? instanceCount, string instanceType, IDictionary properties, string dockerArgs, string shmSize) : base(instanceCount, instanceType, properties) + internal MachineLearningJobResourceConfiguration(int? instanceCount, string instanceType, IList locations, int? maxInstanceCount, IDictionary properties, string dockerArgs, string shmSize) : base(instanceCount, instanceType, locations, maxInstanceCount, properties) { DockerArgs = dockerArgs; ShmSize = shmSize; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobScheduleAction.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobScheduleAction.cs index ea38b9d5eb7a..9977df40ac38 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobScheduleAction.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobScheduleAction.cs @@ -17,7 +17,7 @@ public partial class MachineLearningJobScheduleAction : MachineLearningScheduleA /// /// [Required] Defines Schedule action definition details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// /// is null. public MachineLearningJobScheduleAction(MachineLearningJobProperties jobDefinition) @@ -33,7 +33,7 @@ public MachineLearningJobScheduleAction(MachineLearningJobProperties jobDefiniti /// /// [Required] Defines Schedule action definition details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// internal MachineLearningJobScheduleAction(ScheduleActionType actionType, MachineLearningJobProperties jobDefinition) : base(actionType) { @@ -44,7 +44,7 @@ internal MachineLearningJobScheduleAction(ScheduleActionType actionType, Machine /// /// [Required] Defines Schedule action definition details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public MachineLearningJobProperties JobDefinition { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.Serialization.cs index 07074e211627..27b81213831e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.Serialization.cs @@ -40,6 +40,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("jobServiceType"); } } + if (Optional.IsDefined(Nodes)) + { + if (Nodes != null) + { + writer.WritePropertyName("nodes"u8); + writer.WriteObjectValue(Nodes); + } + else + { + writer.WriteNull("nodes"); + } + } if (Optional.IsDefined(Port)) { if (Port != null) @@ -82,6 +94,7 @@ internal static MachineLearningJobService DeserializeMachineLearningJobService(J Optional endpoint = default; Optional errorMessage = default; Optional jobServiceType = default; + Optional nodes = default; Optional port = default; Optional> properties = default; Optional status = default; @@ -117,6 +130,16 @@ internal static MachineLearningJobService DeserializeMachineLearningJobService(J jobServiceType = property.Value.GetString(); continue; } + if (property.NameEquals("nodes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + nodes = null; + continue; + } + nodes = Nodes.DeserializeNodes(property.Value); + continue; + } if (property.NameEquals("port"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -153,7 +176,7 @@ internal static MachineLearningJobService DeserializeMachineLearningJobService(J continue; } } - return new MachineLearningJobService(endpoint.Value, errorMessage.Value, jobServiceType.Value, Optional.ToNullable(port), Optional.ToDictionary(properties), status.Value); + return new MachineLearningJobService(endpoint.Value, errorMessage.Value, jobServiceType.Value, nodes.Value, Optional.ToNullable(port), Optional.ToDictionary(properties), status.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs index 5dc2a7d80c27..997b384be6c0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs @@ -23,14 +23,21 @@ public MachineLearningJobService() /// Url for endpoint. /// Any error in the service. /// Endpoint type. - /// 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. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// Port for endpoint set by user. /// Additional properties to set on the endpoint. /// Status of endpoint. - internal MachineLearningJobService(string endpoint, string errorMessage, string jobServiceType, int? port, IDictionary properties, string status) + internal MachineLearningJobService(string endpoint, string errorMessage, string jobServiceType, Nodes nodes, int? port, IDictionary properties, string status) { Endpoint = endpoint; ErrorMessage = errorMessage; JobServiceType = jobServiceType; + Nodes = nodes; Port = port; Properties = properties; Status = status; @@ -42,7 +49,14 @@ internal MachineLearningJobService(string endpoint, string errorMessage, string public string ErrorMessage { get; } /// Endpoint type. public string JobServiceType { get; set; } - /// 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. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public Nodes Nodes { get; set; } + /// Port for endpoint set by user. public int? Port { get; set; } /// Additional properties to set on the endpoint. public IDictionary Properties { get; set; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobStatus.cs index ec74f58e8345..7771e3773332 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobStatus.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobStatus.cs @@ -36,6 +36,7 @@ public MachineLearningJobStatus(string value) private const string NotRespondingValue = "NotResponding"; private const string PausedValue = "Paused"; private const string UnknownValue = "Unknown"; + private const string ScheduledValue = "Scheduled"; /// Run hasn't started yet. public static MachineLearningJobStatus NotStarted { get; } = new MachineLearningJobStatus(NotStartedValue); @@ -68,6 +69,8 @@ public MachineLearningJobStatus(string value) public static MachineLearningJobStatus Paused { get; } = new MachineLearningJobStatus(PausedValue); /// Default job status if not mapped to all other statuses. public static MachineLearningJobStatus Unknown { get; } = new MachineLearningJobStatus(UnknownValue); + /// The job is in a scheduled state. Job is not in any active state. + public static MachineLearningJobStatus Scheduled { get; } = new MachineLearningJobStatus(ScheduledValue); /// Determines if two values are the same. public static bool operator ==(MachineLearningJobStatus left, MachineLearningJobStatus right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningKubernetesOnlineDeployment.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningKubernetesOnlineDeployment.Serialization.cs index 59306779e1dd..3177fa0b143c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningKubernetesOnlineDeployment.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningKubernetesOnlineDeployment.Serialization.cs @@ -33,6 +33,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("appInsightsEnabled"u8); writer.WriteBooleanValue(AppInsightsEnabled.Value); } + if (Optional.IsDefined(DataCollector)) + { + if (DataCollector != null) + { + writer.WritePropertyName("dataCollector"u8); + writer.WriteObjectValue(DataCollector); + } + else + { + writer.WriteNull("dataCollector"); + } + } if (Optional.IsDefined(EgressPublicNetworkAccess)) { writer.WritePropertyName("egressPublicNetworkAccess"u8); @@ -207,6 +219,7 @@ internal static MachineLearningKubernetesOnlineDeployment DeserializeMachineLear } Optional containerResourceRequirements = default; Optional appInsightsEnabled = default; + Optional dataCollector = default; Optional egressPublicNetworkAccess = default; MachineLearningEndpointComputeType endpointComputeType = default; Optional instanceType = default; @@ -243,6 +256,16 @@ internal static MachineLearningKubernetesOnlineDeployment DeserializeMachineLear appInsightsEnabled = property.Value.GetBoolean(); continue; } + if (property.NameEquals("dataCollector"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataCollector = null; + continue; + } + dataCollector = DataCollector.DeserializeDataCollector(property.Value); + continue; + } if (property.NameEquals("egressPublicNetworkAccess"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -397,7 +420,7 @@ internal static MachineLearningKubernetesOnlineDeployment DeserializeMachineLear continue; } } - return new MachineLearningKubernetesOnlineDeployment(codeConfiguration.Value, description.Value, environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(properties), Optional.ToNullable(appInsightsEnabled), Optional.ToNullable(egressPublicNetworkAccess), endpointComputeType, instanceType.Value, livenessProbe.Value, model.Value, modelMountPath.Value, Optional.ToNullable(provisioningState), readinessProbe.Value, requestSettings.Value, scaleSettings.Value, containerResourceRequirements.Value); + return new MachineLearningKubernetesOnlineDeployment(codeConfiguration.Value, description.Value, environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(properties), Optional.ToNullable(appInsightsEnabled), dataCollector.Value, Optional.ToNullable(egressPublicNetworkAccess), endpointComputeType, instanceType.Value, livenessProbe.Value, model.Value, modelMountPath.Value, Optional.ToNullable(provisioningState), readinessProbe.Value, requestSettings.Value, scaleSettings.Value, containerResourceRequirements.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningKubernetesOnlineDeployment.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningKubernetesOnlineDeployment.cs index 83a817377d3e..22bce712a51f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningKubernetesOnlineDeployment.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningKubernetesOnlineDeployment.cs @@ -21,10 +21,11 @@ public MachineLearningKubernetesOnlineDeployment() /// Initializes a new instance of MachineLearningKubernetesOnlineDeployment. /// Code configuration for the endpoint deployment. /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. /// Environment variables configuration for the deployment. /// Property dictionary. Properties can be added, but not removed or altered. /// If true, enables Application Insights logging. + /// The mdc configuration, we disable mdc when it's null. /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. /// [Required] The compute type of the endpoint. /// Compute instance type. @@ -43,7 +44,7 @@ public MachineLearningKubernetesOnlineDeployment() /// The available derived classes include and . /// /// The resource requirements for the container (cpu and memory). - internal MachineLearningKubernetesOnlineDeployment(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties, bool? appInsightsEnabled, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess, MachineLearningEndpointComputeType endpointComputeType, string instanceType, MachineLearningProbeSettings livenessProbe, string model, string modelMountPath, MachineLearningDeploymentProvisioningState? provisioningState, MachineLearningProbeSettings readinessProbe, MachineLearningOnlineRequestSettings requestSettings, MachineLearningOnlineScaleSettings scaleSettings, MachineLearningContainerResourceRequirements containerResourceRequirements) : base(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, egressPublicNetworkAccess, endpointComputeType, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings) + internal MachineLearningKubernetesOnlineDeployment(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties, bool? appInsightsEnabled, DataCollector dataCollector, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess, MachineLearningEndpointComputeType endpointComputeType, string instanceType, MachineLearningProbeSettings livenessProbe, string model, string modelMountPath, MachineLearningDeploymentProvisioningState? provisioningState, MachineLearningProbeSettings readinessProbe, MachineLearningOnlineRequestSettings requestSettings, MachineLearningOnlineScaleSettings scaleSettings, MachineLearningContainerResourceRequirements containerResourceRequirements) : base(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, dataCollector, egressPublicNetworkAccess, endpointComputeType, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings) { ContainerResourceRequirements = containerResourceRequirements; EndpointComputeType = endpointComputeType; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedIdentityAuthTypeWorkspaceConnection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedIdentityAuthTypeWorkspaceConnection.Serialization.cs index d7a6e054346f..4be7350285f3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedIdentityAuthTypeWorkspaceConnection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedIdentityAuthTypeWorkspaceConnection.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -27,20 +28,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("category"u8); writer.WriteStringValue(Category.Value.ToString()); } - if (Optional.IsDefined(Target)) + if (Optional.IsDefined(ExpiryOn)) { - writer.WritePropertyName("target"u8); - writer.WriteStringValue(Target); + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); } - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(Metadata)) { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif } - if (Optional.IsDefined(ValueFormat)) + if (Optional.IsDefined(Target)) { - writer.WritePropertyName("valueFormat"u8); - writer.WriteStringValue(ValueFormat.Value.ToString()); + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); } writer.WriteEndObject(); } @@ -54,9 +59,9 @@ internal static MachineLearningManagedIdentityAuthTypeWorkspaceConnection Deseri Optional credentials = default; MachineLearningConnectionAuthType authType = default; Optional category = default; + Optional expiryTime = default; + Optional metadata = default; Optional target = default; - Optional value = default; - Optional valueFormat = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("credentials"u8)) @@ -82,27 +87,31 @@ internal static MachineLearningManagedIdentityAuthTypeWorkspaceConnection Deseri category = new MachineLearningConnectionCategory(property.Value.GetString()); continue; } - if (property.NameEquals("target"u8)) - { - target = property.Value.GetString(); - continue; - } - if (property.NameEquals("value"u8)) + if (property.NameEquals("expiryTime"u8)) { - value = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("valueFormat"u8)) + if (property.NameEquals("metadata"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - valueFormat = new MachineLearningValueFormat(property.Value.GetString()); + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); continue; } } - return new MachineLearningManagedIdentityAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), target.Value, value.Value, Optional.ToNullable(valueFormat), credentials.Value); + return new MachineLearningManagedIdentityAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value, credentials.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedIdentityAuthTypeWorkspaceConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedIdentityAuthTypeWorkspaceConnection.cs index c48526aa578c..9afa5edb6d3e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedIdentityAuthTypeWorkspaceConnection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedIdentityAuthTypeWorkspaceConnection.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.MachineLearning.Models { /// The MachineLearningManagedIdentityAuthTypeWorkspaceConnection. @@ -19,11 +21,11 @@ public MachineLearningManagedIdentityAuthTypeWorkspaceConnection() /// Initializes a new instance of MachineLearningManagedIdentityAuthTypeWorkspaceConnection. /// Authentication type of the connection target. /// Category of the connection. + /// + /// Any object. /// - /// Value details of the workspace connection. - /// format for the workspace connection value. /// - internal MachineLearningManagedIdentityAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, string target, string value, MachineLearningValueFormat? valueFormat, MachineLearningWorkspaceConnectionManagedIdentity credentials) : base(authType, category, target, value, valueFormat) + internal MachineLearningManagedIdentityAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, MachineLearningWorkspaceConnectionManagedIdentity credentials) : base(authType, category, expiryOn, metadata, target) { Credentials = credentials; AuthType = authType; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedOnlineDeployment.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedOnlineDeployment.Serialization.cs index 6f3561ef37f0..959e776f2df0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedOnlineDeployment.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedOnlineDeployment.Serialization.cs @@ -21,6 +21,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("appInsightsEnabled"u8); writer.WriteBooleanValue(AppInsightsEnabled.Value); } + if (Optional.IsDefined(DataCollector)) + { + if (DataCollector != null) + { + writer.WritePropertyName("dataCollector"u8); + writer.WriteObjectValue(DataCollector); + } + else + { + writer.WriteNull("dataCollector"); + } + } if (Optional.IsDefined(EgressPublicNetworkAccess)) { writer.WritePropertyName("egressPublicNetworkAccess"u8); @@ -194,6 +206,7 @@ internal static MachineLearningManagedOnlineDeployment DeserializeMachineLearnin return null; } Optional appInsightsEnabled = default; + Optional dataCollector = default; Optional egressPublicNetworkAccess = default; MachineLearningEndpointComputeType endpointComputeType = default; Optional instanceType = default; @@ -220,6 +233,16 @@ internal static MachineLearningManagedOnlineDeployment DeserializeMachineLearnin appInsightsEnabled = property.Value.GetBoolean(); continue; } + if (property.NameEquals("dataCollector"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataCollector = null; + continue; + } + dataCollector = DataCollector.DeserializeDataCollector(property.Value); + continue; + } if (property.NameEquals("egressPublicNetworkAccess"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -374,7 +397,7 @@ internal static MachineLearningManagedOnlineDeployment DeserializeMachineLearnin continue; } } - return new MachineLearningManagedOnlineDeployment(codeConfiguration.Value, description.Value, environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(properties), Optional.ToNullable(appInsightsEnabled), Optional.ToNullable(egressPublicNetworkAccess), endpointComputeType, instanceType.Value, livenessProbe.Value, model.Value, modelMountPath.Value, Optional.ToNullable(provisioningState), readinessProbe.Value, requestSettings.Value, scaleSettings.Value); + return new MachineLearningManagedOnlineDeployment(codeConfiguration.Value, description.Value, environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(properties), Optional.ToNullable(appInsightsEnabled), dataCollector.Value, Optional.ToNullable(egressPublicNetworkAccess), endpointComputeType, instanceType.Value, livenessProbe.Value, model.Value, modelMountPath.Value, Optional.ToNullable(provisioningState), readinessProbe.Value, requestSettings.Value, scaleSettings.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedOnlineDeployment.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedOnlineDeployment.cs index 7c1f9321f839..d735190f5c87 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedOnlineDeployment.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningManagedOnlineDeployment.cs @@ -21,10 +21,11 @@ public MachineLearningManagedOnlineDeployment() /// Initializes a new instance of MachineLearningManagedOnlineDeployment. /// Code configuration for the endpoint deployment. /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. /// Environment variables configuration for the deployment. /// Property dictionary. Properties can be added, but not removed or altered. /// If true, enables Application Insights logging. + /// The mdc configuration, we disable mdc when it's null. /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. /// [Required] The compute type of the endpoint. /// Compute instance type. @@ -42,7 +43,7 @@ public MachineLearningManagedOnlineDeployment() /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - internal MachineLearningManagedOnlineDeployment(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties, bool? appInsightsEnabled, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess, MachineLearningEndpointComputeType endpointComputeType, string instanceType, MachineLearningProbeSettings livenessProbe, string model, string modelMountPath, MachineLearningDeploymentProvisioningState? provisioningState, MachineLearningProbeSettings readinessProbe, MachineLearningOnlineRequestSettings requestSettings, MachineLearningOnlineScaleSettings scaleSettings) : base(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, egressPublicNetworkAccess, endpointComputeType, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings) + internal MachineLearningManagedOnlineDeployment(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties, bool? appInsightsEnabled, DataCollector dataCollector, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess, MachineLearningEndpointComputeType endpointComputeType, string instanceType, MachineLearningProbeSettings livenessProbe, string model, string modelMountPath, MachineLearningDeploymentProvisioningState? provisioningState, MachineLearningProbeSettings readinessProbe, MachineLearningOnlineRequestSettings requestSettings, MachineLearningOnlineScaleSettings scaleSettings) : base(codeConfiguration, description, environmentId, environmentVariables, properties, appInsightsEnabled, dataCollector, egressPublicNetworkAccess, endpointComputeType, instanceType, livenessProbe, model, modelMountPath, provisioningState, readinessProbe, requestSettings, scaleSettings) { EndpointComputeType = endpointComputeType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.Serialization.cs index 9a9f5afda4c5..45f9a133e5eb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.Serialization.cs @@ -78,6 +78,7 @@ internal static MachineLearningModelContainerProperties DeserializeMachineLearni { return null; } + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -86,6 +87,15 @@ internal static MachineLearningModelContainerProperties DeserializeMachineLearni Optional> tags = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } if (property.NameEquals("isArchived"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -156,7 +166,7 @@ internal static MachineLearningModelContainerProperties DeserializeMachineLearni continue; } } - return new MachineLearningModelContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value); + return new MachineLearningModelContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.cs index b5a9ead74a69..4fa0b239b620 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.cs @@ -24,8 +24,13 @@ public MachineLearningModelContainerProperties() /// Is the asset archived?. /// The latest version inside this container. /// The next auto incremental version. - internal MachineLearningModelContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + /// Provisioning state for the model container. + internal MachineLearningModelContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { + ProvisioningState = provisioningState; } + + /// Provisioning state for the model container. + public AssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.Serialization.cs index 69d05dc63d29..0a28fcb83b24 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.Serialization.cs @@ -35,6 +35,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("flavors"); } } + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } if (Optional.IsDefined(JobName)) { if (JobName != null) @@ -71,6 +83,30 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("modelUri"); } } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -139,9 +175,13 @@ internal static MachineLearningModelVersionProperties DeserializeMachineLearning return null; } Optional> flavors = default; + Optional intellectualProperty = default; Optional jobName = default; Optional modelType = default; Optional modelUri = default; + Optional provisioningState = default; + Optional stage = default; + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -164,6 +204,16 @@ internal static MachineLearningModelVersionProperties DeserializeMachineLearning flavors = dictionary; continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } if (property.NameEquals("jobName"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -194,6 +244,35 @@ internal static MachineLearningModelVersionProperties DeserializeMachineLearning modelUri = new Uri(property.Value.GetString()); continue; } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AssetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -253,7 +332,7 @@ internal static MachineLearningModelVersionProperties DeserializeMachineLearning continue; } } - return new MachineLearningModelVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToDictionary(flavors), jobName.Value, modelType.Value, modelUri.Value); + return new MachineLearningModelVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToDictionary(flavors), intellectualProperty.Value, jobName.Value, modelType.Value, modelUri.Value, Optional.ToNullable(provisioningState), stage.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.cs index ab7fd2f270e8..1028507ed797 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.cs @@ -24,27 +24,40 @@ public MachineLearningModelVersionProperties() /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// Mapping of model flavors to their properties. + /// Intellectual Property details. Used if model is an Intellectual Property. /// Name of the training job which produced this model. /// The storage format for this entity. Used for NCD. /// The URI path to the model contents. - internal MachineLearningModelVersionProperties(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived, IDictionary flavors, string jobName, string modelType, Uri modelUri) : base(description, properties, tags, isAnonymous, isArchived) + /// Provisioning state for the model version. + /// Stage in the model lifecycle assigned to this model. + internal MachineLearningModelVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IDictionary flavors, IntellectualProperty intellectualProperty, string jobName, string modelType, Uri modelUri, AssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { Flavors = flavors; + IntellectualProperty = intellectualProperty; JobName = jobName; ModelType = modelType; ModelUri = modelUri; + ProvisioningState = provisioningState; + Stage = stage; } /// Mapping of model flavors to their properties. public IDictionary Flavors { get; set; } + /// Intellectual Property details. Used if model is an Intellectual Property. + public IntellectualProperty IntellectualProperty { get; set; } /// Name of the training job which produced this model. public string JobName { get; set; } /// The storage format for this entity. Used for NCD. public string ModelType { get; set; } /// The URI path to the model contents. public Uri ModelUri { get; set; } + /// Provisioning state for the model version. + public AssetProvisioningState? ProvisioningState { get; } + /// Stage in the model lifecycle assigned to this model. + public string Stage { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNoneAuthTypeWorkspaceConnection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNoneAuthTypeWorkspaceConnection.Serialization.cs index c3da6a22b91d..fc5a56e41d6f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNoneAuthTypeWorkspaceConnection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNoneAuthTypeWorkspaceConnection.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -22,20 +23,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("category"u8); writer.WriteStringValue(Category.Value.ToString()); } - if (Optional.IsDefined(Target)) + if (Optional.IsDefined(ExpiryOn)) { - writer.WritePropertyName("target"u8); - writer.WriteStringValue(Target); + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); } - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(Metadata)) { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif } - if (Optional.IsDefined(ValueFormat)) + if (Optional.IsDefined(Target)) { - writer.WritePropertyName("valueFormat"u8); - writer.WriteStringValue(ValueFormat.Value.ToString()); + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); } writer.WriteEndObject(); } @@ -48,9 +53,9 @@ internal static MachineLearningNoneAuthTypeWorkspaceConnection DeserializeMachin } MachineLearningConnectionAuthType authType = default; Optional category = default; + Optional expiryTime = default; + Optional metadata = default; Optional target = default; - Optional value = default; - Optional valueFormat = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("authType"u8)) @@ -67,27 +72,31 @@ internal static MachineLearningNoneAuthTypeWorkspaceConnection DeserializeMachin category = new MachineLearningConnectionCategory(property.Value.GetString()); continue; } - if (property.NameEquals("target"u8)) - { - target = property.Value.GetString(); - continue; - } - if (property.NameEquals("value"u8)) + if (property.NameEquals("expiryTime"u8)) { - value = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("valueFormat"u8)) + if (property.NameEquals("metadata"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - valueFormat = new MachineLearningValueFormat(property.Value.GetString()); + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); continue; } } - return new MachineLearningNoneAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), target.Value, value.Value, Optional.ToNullable(valueFormat)); + return new MachineLearningNoneAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNoneAuthTypeWorkspaceConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNoneAuthTypeWorkspaceConnection.cs index d08054d689cc..a9fdfea99789 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNoneAuthTypeWorkspaceConnection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNoneAuthTypeWorkspaceConnection.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.MachineLearning.Models { /// The MachineLearningNoneAuthTypeWorkspaceConnection. @@ -19,10 +21,10 @@ public MachineLearningNoneAuthTypeWorkspaceConnection() /// Initializes a new instance of MachineLearningNoneAuthTypeWorkspaceConnection. /// Authentication type of the connection target. /// Category of the connection. + /// + /// Any object. /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - internal MachineLearningNoneAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, string target, string value, MachineLearningValueFormat? valueFormat) : base(authType, category, target, value, valueFormat) + internal MachineLearningNoneAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target) : base(authType, category, expiryOn, metadata, target) { AuthType = authType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNotebookResourceInfo.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNotebookResourceInfo.Serialization.cs index 9aeff56d5680..0731c89794b2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNotebookResourceInfo.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNotebookResourceInfo.Serialization.cs @@ -19,8 +19,9 @@ internal static MachineLearningNotebookResourceInfo DeserializeMachineLearningNo return null; } Optional fqdn = default; - Optional resourceId = default; + Optional isPrivateLinkEnabled = default; Optional notebookPreparationError = default; + Optional resourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("fqdn"u8)) @@ -28,23 +29,31 @@ internal static MachineLearningNotebookResourceInfo DeserializeMachineLearningNo fqdn = property.Value.GetString(); continue; } - if (property.NameEquals("resourceId"u8)) + if (property.NameEquals("isPrivateLinkEnabled"u8)) { - resourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isPrivateLinkEnabled = property.Value.GetBoolean(); continue; } if (property.NameEquals("notebookPreparationError"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { - notebookPreparationError = null; continue; } notebookPreparationError = MachineLearningNotebookPreparationError.DeserializeMachineLearningNotebookPreparationError(property.Value); continue; } + if (property.NameEquals("resourceId"u8)) + { + resourceId = property.Value.GetString(); + continue; + } } - return new MachineLearningNotebookResourceInfo(fqdn.Value, resourceId.Value, notebookPreparationError.Value); + return new MachineLearningNotebookResourceInfo(fqdn.Value, Optional.ToNullable(isPrivateLinkEnabled), notebookPreparationError.Value, resourceId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNotebookResourceInfo.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNotebookResourceInfo.cs index 8143cef032a4..572799304eaa 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNotebookResourceInfo.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningNotebookResourceInfo.cs @@ -17,20 +17,24 @@ internal MachineLearningNotebookResourceInfo() /// Initializes a new instance of MachineLearningNotebookResourceInfo. /// - /// the data plane resourceId that used to initialize notebook component. + /// /// The error that occurs when preparing notebook. - internal MachineLearningNotebookResourceInfo(string fqdn, string resourceId, MachineLearningNotebookPreparationError notebookPreparationError) + /// the data plane resourceId that used to initialize notebook component. + internal MachineLearningNotebookResourceInfo(string fqdn, bool? isPrivateLinkEnabled, MachineLearningNotebookPreparationError notebookPreparationError, string resourceId) { Fqdn = fqdn; - ResourceId = resourceId; + IsPrivateLinkEnabled = isPrivateLinkEnabled; NotebookPreparationError = notebookPreparationError; + ResourceId = resourceId; } /// Gets the fqdn. public string Fqdn { get; } - /// the data plane resourceId that used to initialize notebook component. - public string ResourceId { get; } + /// Gets the is private link enabled. + public bool? IsPrivateLinkEnabled { get; } /// The error that occurs when preparing notebook. public MachineLearningNotebookPreparationError NotebookPreparationError { get; } + /// the data plane resourceId that used to initialize notebook component. + public string ResourceId { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentProperties.Serialization.cs index 51612fc90014..e1a343cecb2a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentProperties.Serialization.cs @@ -21,6 +21,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("appInsightsEnabled"u8); writer.WriteBooleanValue(AppInsightsEnabled.Value); } + if (Optional.IsDefined(DataCollector)) + { + if (DataCollector != null) + { + writer.WritePropertyName("dataCollector"u8); + writer.WriteObjectValue(DataCollector); + } + else + { + writer.WriteNull("dataCollector"); + } + } if (Optional.IsDefined(EgressPublicNetworkAccess)) { writer.WritePropertyName("egressPublicNetworkAccess"u8); @@ -202,6 +214,7 @@ internal static MachineLearningOnlineDeploymentProperties DeserializeMachineLear } } Optional appInsightsEnabled = default; + Optional dataCollector = default; Optional egressPublicNetworkAccess = default; MachineLearningEndpointComputeType endpointComputeType = default; Optional instanceType = default; @@ -228,6 +241,16 @@ internal static MachineLearningOnlineDeploymentProperties DeserializeMachineLear appInsightsEnabled = property.Value.GetBoolean(); continue; } + if (property.NameEquals("dataCollector"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataCollector = null; + continue; + } + dataCollector = DataCollector.DeserializeDataCollector(property.Value); + continue; + } if (property.NameEquals("egressPublicNetworkAccess"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -382,7 +405,7 @@ internal static MachineLearningOnlineDeploymentProperties DeserializeMachineLear continue; } } - return new MachineLearningOnlineDeploymentProperties(codeConfiguration.Value, description.Value, environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(properties), Optional.ToNullable(appInsightsEnabled), Optional.ToNullable(egressPublicNetworkAccess), endpointComputeType, instanceType.Value, livenessProbe.Value, model.Value, modelMountPath.Value, Optional.ToNullable(provisioningState), readinessProbe.Value, requestSettings.Value, scaleSettings.Value); + return new MachineLearningOnlineDeploymentProperties(codeConfiguration.Value, description.Value, environmentId.Value, Optional.ToDictionary(environmentVariables), Optional.ToDictionary(properties), Optional.ToNullable(appInsightsEnabled), dataCollector.Value, Optional.ToNullable(egressPublicNetworkAccess), endpointComputeType, instanceType.Value, livenessProbe.Value, model.Value, modelMountPath.Value, Optional.ToNullable(provisioningState), readinessProbe.Value, requestSettings.Value, scaleSettings.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentProperties.cs index edc878b62b9c..d0ab8c543e67 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentProperties.cs @@ -24,10 +24,11 @@ public MachineLearningOnlineDeploymentProperties() /// Initializes a new instance of MachineLearningOnlineDeploymentProperties. /// Code configuration for the endpoint deployment. /// Description of the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// ARM resource ID of the environment specification for the endpoint deployment. /// Environment variables configuration for the deployment. /// Property dictionary. Properties can be added, but not removed or altered. /// If true, enables Application Insights logging. + /// The mdc configuration, we disable mdc when it's null. /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. /// [Required] The compute type of the endpoint. /// Compute instance type. @@ -45,9 +46,10 @@ public MachineLearningOnlineDeploymentProperties() /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - internal MachineLearningOnlineDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties, bool? appInsightsEnabled, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess, MachineLearningEndpointComputeType endpointComputeType, string instanceType, MachineLearningProbeSettings livenessProbe, string model, string modelMountPath, MachineLearningDeploymentProvisioningState? provisioningState, MachineLearningProbeSettings readinessProbe, MachineLearningOnlineRequestSettings requestSettings, MachineLearningOnlineScaleSettings scaleSettings) : base(codeConfiguration, description, environmentId, environmentVariables, properties) + internal MachineLearningOnlineDeploymentProperties(MachineLearningCodeConfiguration codeConfiguration, string description, string environmentId, IDictionary environmentVariables, IDictionary properties, bool? appInsightsEnabled, DataCollector dataCollector, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess, MachineLearningEndpointComputeType endpointComputeType, string instanceType, MachineLearningProbeSettings livenessProbe, string model, string modelMountPath, MachineLearningDeploymentProvisioningState? provisioningState, MachineLearningProbeSettings readinessProbe, MachineLearningOnlineRequestSettings requestSettings, MachineLearningOnlineScaleSettings scaleSettings) : base(codeConfiguration, description, environmentId, environmentVariables, properties) { AppInsightsEnabled = appInsightsEnabled; + DataCollector = dataCollector; EgressPublicNetworkAccess = egressPublicNetworkAccess; EndpointComputeType = endpointComputeType; InstanceType = instanceType; @@ -62,6 +64,8 @@ internal MachineLearningOnlineDeploymentProperties(MachineLearningCodeConfigurat /// If true, enables Application Insights logging. public bool? AppInsightsEnabled { get; set; } + /// The mdc configuration, we disable mdc when it's null. + public DataCollector DataCollector { get; set; } /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. public MachineLearningEgressPublicNetworkAccessType? EgressPublicNetworkAccess { get; set; } /// [Required] The compute type of the endpoint. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointProperties.Serialization.cs index 044cd52cb1c0..2dae5704ba38 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointProperties.Serialization.cs @@ -29,6 +29,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("compute"); } } + if (Optional.IsCollectionDefined(MirrorTraffic)) + { + if (MirrorTraffic != null) + { + writer.WritePropertyName("mirrorTraffic"u8); + writer.WriteStartObject(); + foreach (var item in MirrorTraffic) + { + writer.WritePropertyName(item.Key); + writer.WriteNumberValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("mirrorTraffic"); + } + } if (Optional.IsDefined(PublicNetworkAccess)) { writer.WritePropertyName("publicNetworkAccess"u8); @@ -106,6 +124,7 @@ internal static MachineLearningOnlineEndpointProperties DeserializeMachineLearni return null; } Optional compute = default; + Optional> mirrorTraffic = default; Optional provisioningState = default; Optional publicNetworkAccess = default; Optional> traffic = default; @@ -127,6 +146,21 @@ internal static MachineLearningOnlineEndpointProperties DeserializeMachineLearni compute = property.Value.GetString(); continue; } + if (property.NameEquals("mirrorTraffic"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + mirrorTraffic = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetInt32()); + } + mirrorTraffic = dictionary; + continue; + } if (property.NameEquals("provisioningState"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -221,7 +255,7 @@ internal static MachineLearningOnlineEndpointProperties DeserializeMachineLearni continue; } } - return new MachineLearningOnlineEndpointProperties(authMode, description.Value, keys.Value, Optional.ToDictionary(properties), scoringUri.Value, swaggerUri.Value, compute.Value, Optional.ToNullable(provisioningState), Optional.ToNullable(publicNetworkAccess), Optional.ToDictionary(traffic)); + return new MachineLearningOnlineEndpointProperties(authMode, description.Value, keys.Value, Optional.ToDictionary(properties), scoringUri.Value, swaggerUri.Value, compute.Value, Optional.ToDictionary(mirrorTraffic), Optional.ToNullable(provisioningState), Optional.ToNullable(publicNetworkAccess), Optional.ToDictionary(traffic)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointProperties.cs index ffba97e79f50..569984a80033 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointProperties.cs @@ -18,6 +18,7 @@ public partial class MachineLearningOnlineEndpointProperties : MachineLearningEn /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. public MachineLearningOnlineEndpointProperties(MachineLearningEndpointAuthMode authMode) : base(authMode) { + MirrorTraffic = new ChangeTrackingDictionary(); Traffic = new ChangeTrackingDictionary(); } @@ -35,12 +36,14 @@ public MachineLearningOnlineEndpointProperties(MachineLearningEndpointAuthMode a /// ARM resource ID of the compute if it exists. /// optional /// + /// Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50. /// Provisioning state for the endpoint. /// Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. /// Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. - internal MachineLearningOnlineEndpointProperties(MachineLearningEndpointAuthMode authMode, string description, MachineLearningEndpointAuthKeys keys, IDictionary properties, Uri scoringUri, Uri swaggerUri, string compute, MachineLearningEndpointProvisioningState? provisioningState, MachineLearningPublicNetworkAccessType? publicNetworkAccess, IDictionary traffic) : base(authMode, description, keys, properties, scoringUri, swaggerUri) + internal MachineLearningOnlineEndpointProperties(MachineLearningEndpointAuthMode authMode, string description, MachineLearningEndpointAuthKeys keys, IDictionary properties, Uri scoringUri, Uri swaggerUri, string compute, IDictionary mirrorTraffic, MachineLearningEndpointProvisioningState? provisioningState, MachineLearningPublicNetworkAccessType? publicNetworkAccess, IDictionary traffic) : base(authMode, description, keys, properties, scoringUri, swaggerUri) { Compute = compute; + MirrorTraffic = mirrorTraffic; ProvisioningState = provisioningState; PublicNetworkAccess = publicNetworkAccess; Traffic = traffic; @@ -51,6 +54,8 @@ internal MachineLearningOnlineEndpointProperties(MachineLearningEndpointAuthMode /// optional /// public string Compute { get; set; } + /// Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50. + public IDictionary MirrorTraffic { get; set; } /// Provisioning state for the endpoint. public MachineLearningEndpointProvisioningState? ProvisioningState { get; } /// Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutputDeliveryMode.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutputDeliveryMode.cs index 22607b35e028..7aa4c99a6e2a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutputDeliveryMode.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutputDeliveryMode.cs @@ -24,11 +24,14 @@ public MachineLearningOutputDeliveryMode(string value) private const string ReadWriteMountValue = "ReadWriteMount"; private const string UploadValue = "Upload"; + private const string DirectValue = "Direct"; /// ReadWriteMount. public static MachineLearningOutputDeliveryMode ReadWriteMount { get; } = new MachineLearningOutputDeliveryMode(ReadWriteMountValue); /// Upload. public static MachineLearningOutputDeliveryMode Upload { get; } = new MachineLearningOutputDeliveryMode(UploadValue); + /// Direct. + public static MachineLearningOutputDeliveryMode Direct { get; } = new MachineLearningOutputDeliveryMode(DirectValue); /// Determines if two values are the same. public static bool operator ==(MachineLearningOutputDeliveryMode left, MachineLearningOutputDeliveryMode right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPatAuthTypeWorkspaceConnection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPatAuthTypeWorkspaceConnection.Serialization.cs index 957fcbde25dd..f45ecbc28d1b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPatAuthTypeWorkspaceConnection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPatAuthTypeWorkspaceConnection.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -27,20 +28,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("category"u8); writer.WriteStringValue(Category.Value.ToString()); } - if (Optional.IsDefined(Target)) + if (Optional.IsDefined(ExpiryOn)) { - writer.WritePropertyName("target"u8); - writer.WriteStringValue(Target); + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); } - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(Metadata)) { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif } - if (Optional.IsDefined(ValueFormat)) + if (Optional.IsDefined(Target)) { - writer.WritePropertyName("valueFormat"u8); - writer.WriteStringValue(ValueFormat.Value.ToString()); + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); } writer.WriteEndObject(); } @@ -54,9 +59,9 @@ internal static MachineLearningPatAuthTypeWorkspaceConnection DeserializeMachine Optional credentials = default; MachineLearningConnectionAuthType authType = default; Optional category = default; + Optional expiryTime = default; + Optional metadata = default; Optional target = default; - Optional value = default; - Optional valueFormat = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("credentials"u8)) @@ -82,27 +87,31 @@ internal static MachineLearningPatAuthTypeWorkspaceConnection DeserializeMachine category = new MachineLearningConnectionCategory(property.Value.GetString()); continue; } - if (property.NameEquals("target"u8)) - { - target = property.Value.GetString(); - continue; - } - if (property.NameEquals("value"u8)) + if (property.NameEquals("expiryTime"u8)) { - value = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("valueFormat"u8)) + if (property.NameEquals("metadata"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - valueFormat = new MachineLearningValueFormat(property.Value.GetString()); + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); continue; } } - return new MachineLearningPatAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), target.Value, value.Value, Optional.ToNullable(valueFormat), credentials.Value); + return new MachineLearningPatAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value, credentials.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPatAuthTypeWorkspaceConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPatAuthTypeWorkspaceConnection.cs index 8cf685a23f3b..d2f4024f1a25 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPatAuthTypeWorkspaceConnection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPatAuthTypeWorkspaceConnection.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.MachineLearning.Models { /// The MachineLearningPatAuthTypeWorkspaceConnection. @@ -19,11 +21,11 @@ public MachineLearningPatAuthTypeWorkspaceConnection() /// Initializes a new instance of MachineLearningPatAuthTypeWorkspaceConnection. /// Authentication type of the connection target. /// Category of the connection. + /// + /// Any object. /// - /// Value details of the workspace connection. - /// format for the workspace connection value. /// - internal MachineLearningPatAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, string target, string value, MachineLearningValueFormat? valueFormat, WorkspaceConnectionPersonalAccessToken credentials) : base(authType, category, target, value, valueFormat) + internal MachineLearningPatAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, WorkspaceConnectionPersonalAccessToken credentials) : base(authType, category, expiryOn, metadata, target) { Credentials = credentials; AuthType = authType; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.Serialization.cs index 7a1ad994abd8..ed834069581b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.Serialization.cs @@ -168,6 +168,36 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("jobType"u8); writer.WriteStringValue(JobType.ToString()); + if (Optional.IsDefined(NotificationSetting)) + { + if (NotificationSetting != null) + { + writer.WritePropertyName("notificationSetting"u8); + writer.WriteObjectValue(NotificationSetting); + } + else + { + writer.WriteNull("notificationSetting"); + } + } + if (Optional.IsCollectionDefined(SecretsConfiguration)) + { + if (SecretsConfiguration != null) + { + writer.WritePropertyName("secretsConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SecretsConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("secretsConfiguration"); + } + } if (Optional.IsCollectionDefined(Services)) { if (Services != null) @@ -255,6 +285,8 @@ internal static MachineLearningPipelineJob DeserializeMachineLearningPipelineJob Optional identity = default; Optional isArchived = default; JobType jobType = default; + Optional notificationSetting = default; + Optional> secretsConfiguration = default; Optional> services = default; Optional status = default; Optional description = default; @@ -393,6 +425,31 @@ internal static MachineLearningPipelineJob DeserializeMachineLearningPipelineJob jobType = new JobType(property.Value.GetString()); continue; } + if (property.NameEquals("notificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + notificationSetting = null; + continue; + } + notificationSetting = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("secretsConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + secretsConfiguration = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, SecretConfiguration.DeserializeSecretConfiguration(property0.Value)); + } + secretsConfiguration = dictionary; + continue; + } if (property.NameEquals("services"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -458,7 +515,7 @@ internal static MachineLearningPipelineJob DeserializeMachineLearningPipelineJob continue; } } - return new MachineLearningPipelineJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, Optional.ToDictionary(services), Optional.ToNullable(status), Optional.ToDictionary(inputs), Optional.ToDictionary(jobs), Optional.ToDictionary(outputs), settings.Value, sourceJobId.Value); + return new MachineLearningPipelineJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, notificationSetting.Value, Optional.ToDictionary(secretsConfiguration), Optional.ToDictionary(services), Optional.ToNullable(status), Optional.ToDictionary(inputs), Optional.ToDictionary(jobs), Optional.ToDictionary(outputs), settings.Value, sourceJobId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.cs index 78878b10339c..cafb509ee14c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.cs @@ -39,6 +39,8 @@ public MachineLearningPipelineJob() /// /// Is the asset archived?. /// [Required] Specifies the type of job. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. @@ -57,7 +59,7 @@ public MachineLearningPipelineJob() /// /// Pipeline settings, for things like ContinueRunOnStepFailure etc. /// ARM resource ID of source job. - internal MachineLearningPipelineJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, IDictionary services, MachineLearningJobStatus? status, IDictionary inputs, IDictionary jobs, IDictionary outputs, BinaryData settings, ResourceIdentifier sourceJobId) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, services, status) + internal MachineLearningPipelineJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, IDictionary inputs, IDictionary jobs, IDictionary outputs, BinaryData settings, ResourceIdentifier sourceJobId) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { Inputs = inputs; Jobs = jobs; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.Serialization.cs index 51e6dbd4e28f..0700c5164dc2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.Serialization.cs @@ -25,7 +25,6 @@ internal static MachineLearningPrivateEndpoint DeserializeMachineLearningPrivate return null; } Optional id = default; - Optional subnetArmId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -37,17 +36,8 @@ internal static MachineLearningPrivateEndpoint DeserializeMachineLearningPrivate id = new ResourceIdentifier(property.Value.GetString()); continue; } - if (property.NameEquals("subnetArmId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - subnetArmId = new ResourceIdentifier(property.Value.GetString()); - continue; - } } - return new MachineLearningPrivateEndpoint(id.Value, subnetArmId.Value); + return new MachineLearningPrivateEndpoint(id.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.cs index 99a475bd9b41..949ea0467b3f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.cs @@ -19,16 +19,12 @@ public MachineLearningPrivateEndpoint() /// Initializes a new instance of MachineLearningPrivateEndpoint. /// The ARM identifier for Private Endpoint. - /// The ARM identifier for Subnet resource that private endpoint links to. - internal MachineLearningPrivateEndpoint(ResourceIdentifier id, ResourceIdentifier subnetArmId) + internal MachineLearningPrivateEndpoint(ResourceIdentifier id) { Id = id; - SubnetArmId = subnetArmId; } /// The ARM identifier for Private Endpoint. public ResourceIdentifier Id { get; } - /// The ARM identifier for Subnet resource that private endpoint links to. - public ResourceIdentifier SubnetArmId { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionData.Serialization.cs index 4356aa5e8785..912bcb4caad7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionData.Serialization.cs @@ -72,7 +72,7 @@ internal static MachineLearningPrivateEndpointConnectionData DeserializeMachineL string name = default; ResourceType type = default; Optional systemData = default; - Optional privateEndpoint = default; + Optional privateEndpoint = default; Optional privateLinkServiceConnectionState = default; Optional provisioningState = default; foreach (var property in element.EnumerateObject()) @@ -154,7 +154,7 @@ internal static MachineLearningPrivateEndpointConnectionData DeserializeMachineL { continue; } - privateEndpoint = MachineLearningPrivateEndpoint.DeserializeMachineLearningPrivateEndpoint(property0.Value); + privateEndpoint = WorkspacePrivateEndpointResource.DeserializeWorkspacePrivateEndpointResource(property0.Value); continue; } if (property0.NameEquals("privateLinkServiceConnectionState"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointServiceConnectionStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointServiceConnectionStatus.cs deleted file mode 100644 index cef5a601f541..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointServiceConnectionStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The private endpoint connection status. - public readonly partial struct MachineLearningPrivateEndpointServiceConnectionStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MachineLearningPrivateEndpointServiceConnectionStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string PendingValue = "Pending"; - private const string ApprovedValue = "Approved"; - private const string RejectedValue = "Rejected"; - private const string DisconnectedValue = "Disconnected"; - private const string TimeoutValue = "Timeout"; - - /// Pending. - public static MachineLearningPrivateEndpointServiceConnectionStatus Pending { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(PendingValue); - /// Approved. - public static MachineLearningPrivateEndpointServiceConnectionStatus Approved { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(ApprovedValue); - /// Rejected. - public static MachineLearningPrivateEndpointServiceConnectionStatus Rejected { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(RejectedValue); - /// Disconnected. - public static MachineLearningPrivateEndpointServiceConnectionStatus Disconnected { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(DisconnectedValue); - /// Timeout. - public static MachineLearningPrivateEndpointServiceConnectionStatus Timeout { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(TimeoutValue); - /// Determines if two values are the same. - public static bool operator ==(MachineLearningPrivateEndpointServiceConnectionStatus left, MachineLearningPrivateEndpointServiceConnectionStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MachineLearningPrivateEndpointServiceConnectionStatus left, MachineLearningPrivateEndpointServiceConnectionStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MachineLearningPrivateEndpointServiceConnectionStatus(string value) => new MachineLearningPrivateEndpointServiceConnectionStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MachineLearningPrivateEndpointServiceConnectionStatus other && Equals(other); - /// - public bool Equals(MachineLearningPrivateEndpointServiceConnectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.Serialization.cs index f6e7244e0d66..38dd7b968def 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.Serialization.cs @@ -43,6 +43,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Location); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (Optional.IsDefined(GroupId)) + { + writer.WritePropertyName("groupId"u8); + writer.WriteStringValue(GroupId); + } + if (Optional.IsCollectionDefined(RequiredMembers)) + { + writer.WritePropertyName("requiredMembers"u8); + writer.WriteStartArray(); + foreach (var item in RequiredMembers) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsCollectionDefined(RequiredZoneNames)) { writer.WritePropertyName("requiredZoneNames"u8); @@ -72,7 +87,7 @@ internal static MachineLearningPrivateLinkResource DeserializeMachineLearningPri ResourceType type = default; Optional systemData = default; Optional groupId = default; - Optional> requiredMembers = default; + Optional> requiredMembers = default; Optional> requiredZoneNames = default; foreach (var property in element.EnumerateObject()) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs index 244ca6e2ff07..44c0bd90f55a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs @@ -29,12 +29,12 @@ public MachineLearningPrivateLinkResource(AzureLocation location) : base(locatio /// The systemData. /// The tags. /// The location. - /// The identity of the resource. - /// The sku of the workspace. + /// Managed service identity (system assigned and/or user assigned identities). + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. /// The private link resource group id. /// The private link resource required member names. /// The private link resource Private link DNS zone name. - internal MachineLearningPrivateLinkResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, string groupId, IReadOnlyList requiredMembers, IList requiredZoneNames) : base(id, name, resourceType, systemData, tags, location) + internal MachineLearningPrivateLinkResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, string groupId, IList requiredMembers, IList requiredZoneNames) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Sku = sku; @@ -43,14 +43,14 @@ internal MachineLearningPrivateLinkResource(ResourceIdentifier id, string name, RequiredZoneNames = requiredZoneNames; } - /// The identity of the resource. + /// Managed service identity (system assigned and/or user assigned identities). public ManagedServiceIdentity Identity { get; set; } - /// The sku of the workspace. + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. public MachineLearningSku Sku { get; set; } /// The private link resource group id. - public string GroupId { get; } + public string GroupId { get; set; } /// The private link resource required member names. - public IReadOnlyList RequiredMembers { get; } + public IList RequiredMembers { get; } /// The private link resource Private link DNS zone name. public IList RequiredZoneNames { get; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResourceListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResourceListResult.cs index 92d821de5a90..3d20337e1e1b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResourceListResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResourceListResult.cs @@ -20,13 +20,13 @@ internal MachineLearningPrivateLinkResourceListResult() } /// Initializes a new instance of MachineLearningPrivateLinkResourceListResult. - /// Array of private link resources. + /// internal MachineLearningPrivateLinkResourceListResult(IReadOnlyList value) { Value = value; } - /// Array of private link resources. + /// Gets the value. public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.Serialization.cs index f601f69175aa..67e8d3a756ac 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.Serialization.cs @@ -15,20 +15,20 @@ public partial class MachineLearningPrivateLinkServiceConnectionState : IUtf8Jso void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(Status)) + if (Optional.IsDefined(ActionsRequired)) { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToString()); + writer.WritePropertyName("actionsRequired"u8); + writer.WriteStringValue(ActionsRequired); } if (Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } - if (Optional.IsDefined(ActionsRequired)) + if (Optional.IsDefined(Status)) { - writer.WritePropertyName("actionsRequired"u8); - writer.WriteStringValue(ActionsRequired); + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); } writer.WriteEndObject(); } @@ -39,18 +39,14 @@ internal static MachineLearningPrivateLinkServiceConnectionState DeserializeMach { return null; } - Optional status = default; - Optional description = default; Optional actionsRequired = default; + Optional description = default; + Optional status = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("status"u8)) + if (property.NameEquals("actionsRequired"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = new MachineLearningPrivateEndpointServiceConnectionStatus(property.Value.GetString()); + actionsRequired = property.Value.GetString(); continue; } if (property.NameEquals("description"u8)) @@ -58,13 +54,17 @@ internal static MachineLearningPrivateLinkServiceConnectionState DeserializeMach description = property.Value.GetString(); continue; } - if (property.NameEquals("actionsRequired"u8)) + if (property.NameEquals("status"u8)) { - actionsRequired = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new EndpointServiceConnectionStatus(property.Value.GetString()); continue; } } - return new MachineLearningPrivateLinkServiceConnectionState(Optional.ToNullable(status), description.Value, actionsRequired.Value); + return new MachineLearningPrivateLinkServiceConnectionState(actionsRequired.Value, description.Value, Optional.ToNullable(status)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.cs index 9d1c6a219c0f..51a49476f6fc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.cs @@ -16,21 +16,21 @@ public MachineLearningPrivateLinkServiceConnectionState() } /// Initializes a new instance of MachineLearningPrivateLinkServiceConnectionState. - /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - /// The reason for approval/rejection of the connection. - /// A message indicating if changes on the service provider require any updates on the consumer. - internal MachineLearningPrivateLinkServiceConnectionState(MachineLearningPrivateEndpointServiceConnectionStatus? status, string description, string actionsRequired) + /// Some RP chose "None". Other RPs use this for region expansion. + /// User-defined message that, per NRP doc, may be used for approval-related message. + /// Connection status of the service consumer with the service provider. + internal MachineLearningPrivateLinkServiceConnectionState(string actionsRequired, string description, EndpointServiceConnectionStatus? status) { - Status = status; - Description = description; ActionsRequired = actionsRequired; + Description = description; + Status = status; } - /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - public MachineLearningPrivateEndpointServiceConnectionStatus? Status { get; set; } - /// The reason for approval/rejection of the connection. - public string Description { get; set; } - /// A message indicating if changes on the service provider require any updates on the consumer. + /// Some RP chose "None". Other RPs use this for region expansion. public string ActionsRequired { get; set; } + /// User-defined message that, per NRP doc, may be used for approval-related message. + public string Description { get; set; } + /// Connection status of the service consumer with the service provider. + public EndpointServiceConnectionStatus? Status { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningProvisioningState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningProvisioningState.cs index eb8b4f0438bb..811fe941e016 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningProvisioningState.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + /// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. public readonly partial struct MachineLearningProvisioningState : IEquatable { private readonly string _value; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPublicNetworkAccess.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPublicNetworkAccess.cs deleted file mode 100644 index f5bbf9a2dd77..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPublicNetworkAccess.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Whether requests from Public Network are allowed. - public readonly partial struct MachineLearningPublicNetworkAccess : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MachineLearningPublicNetworkAccess(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static MachineLearningPublicNetworkAccess Enabled { get; } = new MachineLearningPublicNetworkAccess(EnabledValue); - /// Disabled. - public static MachineLearningPublicNetworkAccess Disabled { get; } = new MachineLearningPublicNetworkAccess(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(MachineLearningPublicNetworkAccess left, MachineLearningPublicNetworkAccess right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MachineLearningPublicNetworkAccess left, MachineLearningPublicNetworkAccess right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MachineLearningPublicNetworkAccess(string value) => new MachineLearningPublicNetworkAccess(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MachineLearningPublicNetworkAccess other && Equals(other); - /// - public bool Equals(MachineLearningPublicNetworkAccess other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.Serialization.cs index 55e830835469..6fe972312605 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.Serialization.cs @@ -34,6 +34,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("instanceType"); } } + if (Optional.IsCollectionDefined(Locations)) + { + if (Locations != null) + { + writer.WritePropertyName("locations"u8); + writer.WriteStartArray(); + foreach (var item in Locations) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("locations"); + } + } + if (Optional.IsDefined(MaxInstanceCount)) + { + if (MaxInstanceCount != null) + { + writer.WritePropertyName("maxInstanceCount"u8); + writer.WriteNumberValue(MaxInstanceCount.Value); + } + else + { + writer.WriteNull("maxInstanceCount"); + } + } if (Optional.IsCollectionDefined(Properties)) { if (Properties != null) @@ -72,6 +101,8 @@ internal static MachineLearningResourceConfiguration DeserializeMachineLearningR } Optional instanceCount = default; Optional instanceType = default; + Optional> locations = default; + Optional maxInstanceCount = default; Optional> properties = default; foreach (var property in element.EnumerateObject()) { @@ -94,6 +125,31 @@ internal static MachineLearningResourceConfiguration DeserializeMachineLearningR instanceType = property.Value.GetString(); continue; } + if (property.NameEquals("locations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + locations = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + locations = array; + continue; + } + if (property.NameEquals("maxInstanceCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxInstanceCount = null; + continue; + } + maxInstanceCount = property.Value.GetInt32(); + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -117,7 +173,7 @@ internal static MachineLearningResourceConfiguration DeserializeMachineLearningR continue; } } - return new MachineLearningResourceConfiguration(Optional.ToNullable(instanceCount), instanceType.Value, Optional.ToDictionary(properties)); + return new MachineLearningResourceConfiguration(Optional.ToNullable(instanceCount), instanceType.Value, Optional.ToList(locations), Optional.ToNullable(maxInstanceCount), Optional.ToDictionary(properties)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.cs index 7c932254c727..e2727df298e1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.cs @@ -17,17 +17,25 @@ public partial class MachineLearningResourceConfiguration /// Initializes a new instance of MachineLearningResourceConfiguration. public MachineLearningResourceConfiguration() { + Locations = new ChangeTrackingList(); Properties = new ChangeTrackingDictionary(); } /// Initializes a new instance of MachineLearningResourceConfiguration. /// Optional number of instances or nodes used by the compute target. /// Optional type of VM used as supported by the compute target. + /// Locations where the job can run. + /// + /// 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. + /// /// Additional properties bag. - internal MachineLearningResourceConfiguration(int? instanceCount, string instanceType, IDictionary properties) + internal MachineLearningResourceConfiguration(int? instanceCount, string instanceType, IList locations, int? maxInstanceCount, IDictionary properties) { InstanceCount = instanceCount; InstanceType = instanceType; + Locations = locations; + MaxInstanceCount = maxInstanceCount; Properties = properties; } @@ -35,6 +43,13 @@ internal MachineLearningResourceConfiguration(int? instanceCount, string instanc public int? InstanceCount { get; set; } /// Optional type of VM used as supported by the compute target. public string InstanceType { get; set; } + /// Locations where the job can run. + public IList Locations { get; set; } + /// + /// 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. + /// + public int? MaxInstanceCount { get; set; } /// /// Additional properties bag. /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSasAuthTypeWorkspaceConnection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSasAuthTypeWorkspaceConnection.Serialization.cs index eb446189002f..21e130638a7c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSasAuthTypeWorkspaceConnection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSasAuthTypeWorkspaceConnection.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -27,20 +28,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("category"u8); writer.WriteStringValue(Category.Value.ToString()); } - if (Optional.IsDefined(Target)) + if (Optional.IsDefined(ExpiryOn)) { - writer.WritePropertyName("target"u8); - writer.WriteStringValue(Target); + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); } - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(Metadata)) { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif } - if (Optional.IsDefined(ValueFormat)) + if (Optional.IsDefined(Target)) { - writer.WritePropertyName("valueFormat"u8); - writer.WriteStringValue(ValueFormat.Value.ToString()); + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); } writer.WriteEndObject(); } @@ -54,9 +59,9 @@ internal static MachineLearningSasAuthTypeWorkspaceConnection DeserializeMachine Optional credentials = default; MachineLearningConnectionAuthType authType = default; Optional category = default; + Optional expiryTime = default; + Optional metadata = default; Optional target = default; - Optional value = default; - Optional valueFormat = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("credentials"u8)) @@ -82,27 +87,31 @@ internal static MachineLearningSasAuthTypeWorkspaceConnection DeserializeMachine category = new MachineLearningConnectionCategory(property.Value.GetString()); continue; } - if (property.NameEquals("target"u8)) - { - target = property.Value.GetString(); - continue; - } - if (property.NameEquals("value"u8)) + if (property.NameEquals("expiryTime"u8)) { - value = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("valueFormat"u8)) + if (property.NameEquals("metadata"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - valueFormat = new MachineLearningValueFormat(property.Value.GetString()); + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); continue; } } - return new MachineLearningSasAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), target.Value, value.Value, Optional.ToNullable(valueFormat), credentials.Value); + return new MachineLearningSasAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value, credentials.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSasAuthTypeWorkspaceConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSasAuthTypeWorkspaceConnection.cs index 4ed319c4e4c5..74b5195a37bd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSasAuthTypeWorkspaceConnection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSasAuthTypeWorkspaceConnection.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.MachineLearning.Models { /// The MachineLearningSasAuthTypeWorkspaceConnection. @@ -19,11 +21,11 @@ public MachineLearningSasAuthTypeWorkspaceConnection() /// Initializes a new instance of MachineLearningSasAuthTypeWorkspaceConnection. /// Authentication type of the connection target. /// Category of the connection. + /// + /// Any object. /// - /// Value details of the workspace connection. - /// format for the workspace connection value. /// - internal MachineLearningSasAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, string target, string value, MachineLearningValueFormat? valueFormat, WorkspaceConnectionSharedAccessSignature credentials) : base(authType, category, target, value, valueFormat) + internal MachineLearningSasAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, WorkspaceConnectionSharedAccessSignature credentials) : base(authType, category, expiryOn, metadata, target) { Credentials = credentials; AuthType = authType; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleAction.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleAction.Serialization.cs index 3b1df27faed9..ec12bb25a92f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleAction.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleAction.Serialization.cs @@ -31,6 +31,8 @@ internal static MachineLearningScheduleAction DeserializeMachineLearningSchedule switch (discriminator.GetString()) { case "CreateJob": return MachineLearningJobScheduleAction.DeserializeMachineLearningJobScheduleAction(element); + case "CreateMonitor": return CreateMonitorAction.DeserializeCreateMonitorAction(element); + case "ImportData": return ImportDataAction.DeserializeImportDataAction(element); case "InvokeBatchEndpoint": return MachineLearningEndpointScheduleAction.DeserializeMachineLearningEndpointScheduleAction(element); } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleAction.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleAction.cs index d2c9588f841f..559685ff54b8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleAction.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleAction.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// The MachineLearningScheduleAction. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// public abstract partial class MachineLearningScheduleAction { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleBase.Serialization.cs index ab5736eb7863..0dc708e8c586 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleBase.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleBase.Serialization.cs @@ -10,8 +10,36 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class MachineLearningScheduleBase + public partial class MachineLearningScheduleBase : IUtf8JsonSerializable { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + if (Id != null) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + else + { + writer.WriteNull("id"); + } + } + if (Optional.IsDefined(ProvisioningStatus)) + { + writer.WritePropertyName("provisioningStatus"u8); + writer.WriteStringValue(ProvisioningStatus.Value.ToString()); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + writer.WriteEndObject(); + } + internal static MachineLearningScheduleBase DeserializeMachineLearningScheduleBase(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleBase.cs index 1a325d01907b..c252dda1ec53 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleBase.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleBase.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.MachineLearning.Models public partial class MachineLearningScheduleBase { /// Initializes a new instance of MachineLearningScheduleBase. - internal MachineLearningScheduleBase() + public MachineLearningScheduleBase() { } @@ -27,10 +27,10 @@ internal MachineLearningScheduleBase(string id, MachineLearningScheduleProvision } /// A system assigned id for the schedule. - public string Id { get; } + public string Id { get; set; } /// The current deployment state of schedule. - public MachineLearningScheduleProvisioningState? ProvisioningStatus { get; } + public MachineLearningScheduleProvisioningState? ProvisioningStatus { get; set; } /// Is the schedule enabled or disabled?. - public MachineLearningScheduleStatus? Status { get; } + public MachineLearningScheduleStatus? Status { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleProperties.cs index 84357d3c17e5..4e1308af3bfb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleProperties.cs @@ -18,7 +18,7 @@ public partial class MachineLearningScheduleProperties : MachineLearningResource /// /// [Required] Specifies the action of the schedule /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// /// /// [Required] Specifies the trigger details @@ -42,7 +42,7 @@ public MachineLearningScheduleProperties(MachineLearningScheduleAction action, M /// /// [Required] Specifies the action of the schedule /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// /// Display name of schedule. /// Is the schedule enabled?. @@ -64,7 +64,7 @@ internal MachineLearningScheduleProperties(string description, IDictionary /// [Required] Specifies the action of the schedule /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// public MachineLearningScheduleAction Action { get; set; } /// Display name of schedule. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScriptReference.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScriptReference.cs index a5aa3091b0a1..76beeae265cf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScriptReference.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScriptReference.cs @@ -16,7 +16,7 @@ public MachineLearningScriptReference() } /// Initializes a new instance of MachineLearningScriptReference. - /// The storage source of the script: workspace. + /// The storage source of the script: inline, workspace. /// The location of scripts in the mounted volume. /// Optional command line arguments passed to the script to run. /// Optional time period passed to timeout command. @@ -28,7 +28,7 @@ internal MachineLearningScriptReference(string scriptSource, string scriptData, Timeout = timeout; } - /// The storage source of the script: workspace. + /// The storage source of the script: inline, workspace. public string ScriptSource { get; set; } /// The location of scripts in the mounted volume. public string ScriptData { get; set; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.Serialization.cs index 3fb2c44b9199..062e829eb803 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.Serialization.cs @@ -22,16 +22,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); - if (Optional.IsDefined(PrivateLinkResourceId)) - { - writer.WritePropertyName("privateLinkResourceId"u8); - writer.WriteStringValue(PrivateLinkResourceId); - } if (Optional.IsDefined(GroupId)) { writer.WritePropertyName("groupId"u8); writer.WriteStringValue(GroupId); } + if (Optional.IsDefined(PrivateLinkResourceId)) + { + writer.WritePropertyName("privateLinkResourceId"u8); + writer.WriteStringValue(PrivateLinkResourceId); + } if (Optional.IsDefined(RequestMessage)) { writer.WritePropertyName("requestMessage"u8); @@ -53,10 +53,10 @@ internal static MachineLearningSharedPrivateLinkResource DeserializeMachineLearn return null; } Optional name = default; - Optional privateLinkResourceId = default; Optional groupId = default; + Optional privateLinkResourceId = default; Optional requestMessage = default; - Optional status = default; + Optional status = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -73,6 +73,11 @@ internal static MachineLearningSharedPrivateLinkResource DeserializeMachineLearn } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("groupId"u8)) + { + groupId = property0.Value.GetString(); + continue; + } if (property0.NameEquals("privateLinkResourceId"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -82,11 +87,6 @@ internal static MachineLearningSharedPrivateLinkResource DeserializeMachineLearn privateLinkResourceId = new ResourceIdentifier(property0.Value.GetString()); continue; } - if (property0.NameEquals("groupId"u8)) - { - groupId = property0.Value.GetString(); - continue; - } if (property0.NameEquals("requestMessage"u8)) { requestMessage = property0.Value.GetString(); @@ -98,14 +98,14 @@ internal static MachineLearningSharedPrivateLinkResource DeserializeMachineLearn { continue; } - status = new MachineLearningPrivateEndpointServiceConnectionStatus(property0.Value.GetString()); + status = new EndpointServiceConnectionStatus(property0.Value.GetString()); continue; } } continue; } } - return new MachineLearningSharedPrivateLinkResource(name.Value, privateLinkResourceId.Value, groupId.Value, requestMessage.Value, Optional.ToNullable(status)); + return new MachineLearningSharedPrivateLinkResource(name.Value, groupId.Value, privateLinkResourceId.Value, requestMessage.Value, Optional.ToNullable(status)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.cs index db98c3fab6fa..7729cfbcde04 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.cs @@ -19,28 +19,28 @@ public MachineLearningSharedPrivateLinkResource() /// Initializes a new instance of MachineLearningSharedPrivateLinkResource. /// Unique name of the private link. - /// The resource id that private link links to. - /// The private link resource group id. + /// group id of the private link. + /// the resource id that private link links to. /// Request message. - /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - internal MachineLearningSharedPrivateLinkResource(string name, ResourceIdentifier privateLinkResourceId, string groupId, string requestMessage, MachineLearningPrivateEndpointServiceConnectionStatus? status) + /// Connection status of the service consumer with the service provider. + internal MachineLearningSharedPrivateLinkResource(string name, string groupId, ResourceIdentifier privateLinkResourceId, string requestMessage, EndpointServiceConnectionStatus? status) { Name = name; - PrivateLinkResourceId = privateLinkResourceId; GroupId = groupId; + PrivateLinkResourceId = privateLinkResourceId; RequestMessage = requestMessage; Status = status; } /// Unique name of the private link. public string Name { get; set; } - /// The resource id that private link links to. - public ResourceIdentifier PrivateLinkResourceId { get; set; } - /// The private link resource group id. + /// group id of the private link. public string GroupId { get; set; } + /// the resource id that private link links to. + public ResourceIdentifier PrivateLinkResourceId { get; set; } /// Request message. public string RequestMessage { get; set; } - /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - public MachineLearningPrivateEndpointServiceConnectionStatus? Status { get; set; } + /// Connection status of the service consumer with the service provider. + public EndpointServiceConnectionStatus? Status { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.Serialization.cs index 8b4c8928a234..93298b72ae5a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.Serialization.cs @@ -72,6 +72,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("outputs"); } } + if (Optional.IsDefined(QueueSettings)) + { + if (QueueSettings != null) + { + writer.WritePropertyName("queueSettings"u8); + writer.WriteObjectValue(QueueSettings); + } + else + { + writer.WriteNull("queueSettings"); + } + } writer.WritePropertyName("samplingAlgorithm"u8); writer.WriteObjectValue(SamplingAlgorithm); writer.WritePropertyName("searchSpace"u8); @@ -142,6 +154,36 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("jobType"u8); writer.WriteStringValue(JobType.ToString()); + if (Optional.IsDefined(NotificationSetting)) + { + if (NotificationSetting != null) + { + writer.WritePropertyName("notificationSetting"u8); + writer.WriteObjectValue(NotificationSetting); + } + else + { + writer.WriteNull("notificationSetting"); + } + } + if (Optional.IsCollectionDefined(SecretsConfiguration)) + { + if (SecretsConfiguration != null) + { + writer.WritePropertyName("secretsConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SecretsConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("secretsConfiguration"); + } + } if (Optional.IsCollectionDefined(Services)) { if (Services != null) @@ -222,6 +264,7 @@ internal static MachineLearningSweepJob DeserializeMachineLearningSweepJob(JsonE Optional limits = default; MachineLearningObjective objective = default; Optional> outputs = default; + Optional queueSettings = default; SamplingAlgorithm samplingAlgorithm = default; BinaryData searchSpace = default; MachineLearningTrialComponent trial = default; @@ -232,6 +275,8 @@ internal static MachineLearningSweepJob DeserializeMachineLearningSweepJob(JsonE Optional identity = default; Optional isArchived = default; JobType jobType = default; + Optional notificationSetting = default; + Optional> secretsConfiguration = default; Optional> services = default; Optional status = default; Optional description = default; @@ -293,6 +338,16 @@ internal static MachineLearningSweepJob DeserializeMachineLearningSweepJob(JsonE outputs = dictionary; continue; } + if (property.NameEquals("queueSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + queueSettings = null; + continue; + } + queueSettings = QueueSettings.DeserializeQueueSettings(property.Value); + continue; + } if (property.NameEquals("samplingAlgorithm"u8)) { samplingAlgorithm = SamplingAlgorithm.DeserializeSamplingAlgorithm(property.Value); @@ -367,6 +422,31 @@ internal static MachineLearningSweepJob DeserializeMachineLearningSweepJob(JsonE jobType = new JobType(property.Value.GetString()); continue; } + if (property.NameEquals("notificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + notificationSetting = null; + continue; + } + notificationSetting = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("secretsConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + secretsConfiguration = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, SecretConfiguration.DeserializeSecretConfiguration(property0.Value)); + } + secretsConfiguration = dictionary; + continue; + } if (property.NameEquals("services"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -432,7 +512,7 @@ internal static MachineLearningSweepJob DeserializeMachineLearningSweepJob(JsonE continue; } } - return new MachineLearningSweepJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, Optional.ToDictionary(services), Optional.ToNullable(status), earlyTermination.Value, Optional.ToDictionary(inputs), limits.Value, objective, Optional.ToDictionary(outputs), samplingAlgorithm, searchSpace, trial); + return new MachineLearningSweepJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, notificationSetting.Value, Optional.ToDictionary(secretsConfiguration), Optional.ToDictionary(services), Optional.ToNullable(status), earlyTermination.Value, Optional.ToDictionary(inputs), limits.Value, objective, Optional.ToDictionary(outputs), queueSettings.Value, samplingAlgorithm, searchSpace, trial); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.cs index 4df13e9c10b0..59c3d7fd98a9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.cs @@ -56,6 +56,8 @@ public MachineLearningSweepJob(MachineLearningObjective objective, SamplingAlgor /// /// Is the asset archived?. /// [Required] Specifies the type of job. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. /// /// List of JobEndpoints. /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. @@ -78,6 +80,7 @@ public MachineLearningSweepJob(MachineLearningObjective objective, SamplingAlgor /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , and . /// + /// Queue settings for the job. /// /// [Required] The hyperparameter sampling algorithm /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -85,13 +88,14 @@ public MachineLearningSweepJob(MachineLearningObjective objective, SamplingAlgor /// /// [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter. /// [Required] Trial component definition. - internal MachineLearningSweepJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, IDictionary services, MachineLearningJobStatus? status, MachineLearningEarlyTerminationPolicy earlyTermination, IDictionary inputs, MachineLearningSweepJobLimits limits, MachineLearningObjective objective, IDictionary outputs, SamplingAlgorithm samplingAlgorithm, BinaryData searchSpace, MachineLearningTrialComponent trial) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, services, status) + internal MachineLearningSweepJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, MachineLearningEarlyTerminationPolicy earlyTermination, IDictionary inputs, MachineLearningSweepJobLimits limits, MachineLearningObjective objective, IDictionary outputs, QueueSettings queueSettings, SamplingAlgorithm samplingAlgorithm, BinaryData searchSpace, MachineLearningTrialComponent trial) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { EarlyTermination = earlyTermination; Inputs = inputs; Limits = limits; Objective = objective; Outputs = outputs; + QueueSettings = queueSettings; SamplingAlgorithm = samplingAlgorithm; SearchSpace = searchSpace; Trial = trial; @@ -120,6 +124,8 @@ internal MachineLearningSweepJob(string description, IDictionary /// The available derived classes include , , , , and . /// public IDictionary Outputs { get; set; } + /// Queue settings for the job. + public QueueSettings QueueSettings { get; set; } /// /// [Required] The hyperparameter sampling algorithm /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.Serialization.cs index 6e331903ccad..90969968c5f9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.Serialization.cs @@ -43,6 +43,42 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(DataType.ToString()); writer.WritePropertyName("dataUri"u8); writer.WriteStringValue(DataUri.AbsoluteUri); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -113,6 +149,9 @@ internal static MachineLearningTable DeserializeMachineLearningTable(JsonElement Optional> referencedUris = default; MachineLearningDataType dataType = default; Uri dataUri = default; + Optional intellectualProperty = default; + Optional stage = default; + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -152,6 +191,36 @@ internal static MachineLearningTable DeserializeMachineLearningTable(JsonElement dataUri = new Uri(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -211,7 +280,7 @@ internal static MachineLearningTable DeserializeMachineLearningTable(JsonElement continue; } } - return new MachineLearningTable(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri, Optional.ToList(referencedUris)); + return new MachineLearningTable(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri, intellectualProperty.Value, stage.Value, Optional.ToList(referencedUris)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.cs index ee0bbc6ac701..edb9bfe0a969 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.MachineLearning.Models public partial class MachineLearningTable : MachineLearningDataVersionProperties { /// Initializes a new instance of MachineLearningTable. - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. /// is null. public MachineLearningTable(Uri dataUri) : base(dataUri) { @@ -29,12 +29,15 @@ public MachineLearningTable(Uri dataUri) : base(dataUri) /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// [Required] Specifies the type of data. - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. + /// Intellectual Property details. Used if data is an Intellectual Property. + /// Stage in the data lifecycle assigned to this data asset. /// Uris referenced in the MLTable definition (required for lineage). - internal MachineLearningTable(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri, IList referencedUris) : base(description, properties, tags, isAnonymous, isArchived, dataType, dataUri) + internal MachineLearningTable(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri, IntellectualProperty intellectualProperty, string stage, IList referencedUris) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, dataType, dataUri, intellectualProperty, stage) { ReferencedUris = referencedUris; DataType = dataType; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTableJobOutput.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTableJobOutput.Serialization.cs index bff8bbf6df04..0b1babbe49ec 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTableJobOutput.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTableJobOutput.Serialization.cs @@ -16,6 +16,42 @@ public partial class MachineLearningTableJobOutput : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(AssetName)) + { + if (AssetName != null) + { + writer.WritePropertyName("assetName"u8); + writer.WriteStringValue(AssetName); + } + else + { + writer.WriteNull("assetName"); + } + } + if (Optional.IsDefined(AssetVersion)) + { + if (AssetVersion != null) + { + writer.WritePropertyName("assetVersion"u8); + writer.WriteStringValue(AssetVersion); + } + else + { + writer.WriteNull("assetVersion"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(Mode)) { writer.WritePropertyName("mode"u8); @@ -56,12 +92,45 @@ internal static MachineLearningTableJobOutput DeserializeMachineLearningTableJob { return null; } + Optional assetName = default; + Optional assetVersion = default; + Optional autoDeleteSetting = default; Optional mode = default; Optional uri = default; Optional description = default; JobOutputType jobOutputType = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("assetName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetName = null; + continue; + } + assetName = property.Value.GetString(); + continue; + } + if (property.NameEquals("assetVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetVersion = null; + continue; + } + assetVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("mode"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -97,7 +166,7 @@ internal static MachineLearningTableJobOutput DeserializeMachineLearningTableJob continue; } } - return new MachineLearningTableJobOutput(description.Value, jobOutputType, Optional.ToNullable(mode), uri.Value); + return new MachineLearningTableJobOutput(description.Value, jobOutputType, assetName.Value, assetVersion.Value, autoDeleteSetting.Value, Optional.ToNullable(mode), uri.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTableJobOutput.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTableJobOutput.cs index c14fc0ef8b89..df75da985678 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTableJobOutput.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTableJobOutput.cs @@ -21,15 +21,27 @@ public MachineLearningTableJobOutput() /// Initializes a new instance of MachineLearningTableJobOutput. /// Description for the output. /// [Required] Specifies the type of job. + /// Output Asset Name. + /// Output Asset Version. + /// Auto delete setting of output data asset. /// Output Asset Delivery Mode. /// Output Asset URI. - internal MachineLearningTableJobOutput(string description, JobOutputType jobOutputType, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) + internal MachineLearningTableJobOutput(string description, JobOutputType jobOutputType, string assetName, string assetVersion, AutoDeleteSetting autoDeleteSetting, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) { + AssetName = assetName; + AssetVersion = assetVersion; + AutoDeleteSetting = autoDeleteSetting; Mode = mode; Uri = uri; JobOutputType = jobOutputType; } + /// Output Asset Name. + public string AssetName { get; set; } + /// Output Asset Version. + public string AssetVersion { get; set; } + /// Auto delete setting of output data asset. + public AutoDeleteSetting AutoDeleteSetting { get; set; } /// Output Asset Delivery Mode. public MachineLearningOutputDeliveryMode? Mode { get; set; } /// Output Asset URI. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrainingSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrainingSettings.Serialization.cs index 3cf2490c2a48..766e7e02d4fa 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrainingSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrainingSettings.Serialization.cs @@ -58,6 +58,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("stackEnsembleSettings"); } } + if (Optional.IsDefined(TrainingMode)) + { + writer.WritePropertyName("trainingMode"u8); + writer.WriteStringValue(TrainingMode.Value.ToString()); + } writer.WriteEndObject(); } @@ -74,6 +79,7 @@ internal static MachineLearningTrainingSettings DeserializeMachineLearningTraini Optional enableVoteEnsemble = default; Optional ensembleModelDownloadTimeout = default; Optional stackEnsembleSettings = default; + Optional trainingMode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("enableDnnTraining"u8)) @@ -140,8 +146,17 @@ internal static MachineLearningTrainingSettings DeserializeMachineLearningTraini stackEnsembleSettings = MachineLearningStackEnsembleSettings.DeserializeMachineLearningStackEnsembleSettings(property.Value); continue; } + if (property.NameEquals("trainingMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + trainingMode = new TrainingMode(property.Value.GetString()); + continue; + } } - return new MachineLearningTrainingSettings(Optional.ToNullable(enableDnnTraining), Optional.ToNullable(enableModelExplainability), Optional.ToNullable(enableOnnxCompatibleModels), Optional.ToNullable(enableStackEnsemble), Optional.ToNullable(enableVoteEnsemble), Optional.ToNullable(ensembleModelDownloadTimeout), stackEnsembleSettings.Value); + return new MachineLearningTrainingSettings(Optional.ToNullable(enableDnnTraining), Optional.ToNullable(enableModelExplainability), Optional.ToNullable(enableOnnxCompatibleModels), Optional.ToNullable(enableStackEnsemble), Optional.ToNullable(enableVoteEnsemble), Optional.ToNullable(ensembleModelDownloadTimeout), stackEnsembleSettings.Value, Optional.ToNullable(trainingMode)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrainingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrainingSettings.cs index ca9debca59b9..e70a3100142d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrainingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrainingSettings.cs @@ -28,7 +28,12 @@ public MachineLearningTrainingSettings() /// Configure this parameter with a higher value than 300 secs, if more time is needed. /// /// Stack ensemble settings for stack ensemble run. - internal MachineLearningTrainingSettings(bool? isDnnTrainingEnabled, bool? isModelExplainabilityEnabled, bool? isOnnxCompatibleModelsEnabled, bool? isStackEnsembleEnabled, bool? isVoteEnsembleEnabled, TimeSpan? ensembleModelDownloadTimeout, MachineLearningStackEnsembleSettings 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. + /// + internal MachineLearningTrainingSettings(bool? isDnnTrainingEnabled, bool? isModelExplainabilityEnabled, bool? isOnnxCompatibleModelsEnabled, bool? isStackEnsembleEnabled, bool? isVoteEnsembleEnabled, TimeSpan? ensembleModelDownloadTimeout, MachineLearningStackEnsembleSettings stackEnsembleSettings, TrainingMode? trainingMode) { IsDnnTrainingEnabled = isDnnTrainingEnabled; IsModelExplainabilityEnabled = isModelExplainabilityEnabled; @@ -37,6 +42,7 @@ internal MachineLearningTrainingSettings(bool? isDnnTrainingEnabled, bool? isMod IsVoteEnsembleEnabled = isVoteEnsembleEnabled; EnsembleModelDownloadTimeout = ensembleModelDownloadTimeout; StackEnsembleSettings = stackEnsembleSettings; + TrainingMode = trainingMode; } /// Enable recommendation of DNN models. @@ -56,5 +62,11 @@ internal MachineLearningTrainingSettings(bool? isDnnTrainingEnabled, bool? isMod public TimeSpan? EnsembleModelDownloadTimeout { get; set; } /// Stack ensemble settings for stack ensemble run. public MachineLearningStackEnsembleSettings StackEnsembleSettings { get; set; } + /// + /// 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. + /// + public TrainingMode? TrainingMode { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrialComponent.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrialComponent.cs index 85223584c8d2..257496cc30ed 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrialComponent.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrialComponent.cs @@ -34,7 +34,7 @@ public MachineLearningTrialComponent(string command, ResourceIdentifier environm /// /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , , and . /// /// [Required] The ARM resource ID of the Environment specification for the job. /// Environment variables included in the job. @@ -56,7 +56,7 @@ internal MachineLearningTrialComponent(ResourceIdentifier codeId, string command /// /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , , and . /// public MachineLearningDistributionConfiguration Distribution { get; set; } /// [Required] The ARM resource ID of the Environment specification for the job. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTritonModelJobOutput.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTritonModelJobOutput.Serialization.cs index 224fe86fd8a5..8d285dd6b6cb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTritonModelJobOutput.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTritonModelJobOutput.Serialization.cs @@ -16,6 +16,42 @@ public partial class MachineLearningTritonModelJobOutput : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(AssetName)) + { + if (AssetName != null) + { + writer.WritePropertyName("assetName"u8); + writer.WriteStringValue(AssetName); + } + else + { + writer.WriteNull("assetName"); + } + } + if (Optional.IsDefined(AssetVersion)) + { + if (AssetVersion != null) + { + writer.WritePropertyName("assetVersion"u8); + writer.WriteStringValue(AssetVersion); + } + else + { + writer.WriteNull("assetVersion"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(Mode)) { writer.WritePropertyName("mode"u8); @@ -56,12 +92,45 @@ internal static MachineLearningTritonModelJobOutput DeserializeMachineLearningTr { return null; } + Optional assetName = default; + Optional assetVersion = default; + Optional autoDeleteSetting = default; Optional mode = default; Optional uri = default; Optional description = default; JobOutputType jobOutputType = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("assetName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetName = null; + continue; + } + assetName = property.Value.GetString(); + continue; + } + if (property.NameEquals("assetVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetVersion = null; + continue; + } + assetVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("mode"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -97,7 +166,7 @@ internal static MachineLearningTritonModelJobOutput DeserializeMachineLearningTr continue; } } - return new MachineLearningTritonModelJobOutput(description.Value, jobOutputType, Optional.ToNullable(mode), uri.Value); + return new MachineLearningTritonModelJobOutput(description.Value, jobOutputType, assetName.Value, assetVersion.Value, autoDeleteSetting.Value, Optional.ToNullable(mode), uri.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTritonModelJobOutput.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTritonModelJobOutput.cs index bfa417f3839b..390e5526232f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTritonModelJobOutput.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTritonModelJobOutput.cs @@ -21,15 +21,27 @@ public MachineLearningTritonModelJobOutput() /// Initializes a new instance of MachineLearningTritonModelJobOutput. /// Description for the output. /// [Required] Specifies the type of job. + /// Output Asset Name. + /// Output Asset Version. + /// Auto delete setting of output data asset. /// Output Asset Delivery Mode. /// Output Asset URI. - internal MachineLearningTritonModelJobOutput(string description, JobOutputType jobOutputType, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) + internal MachineLearningTritonModelJobOutput(string description, JobOutputType jobOutputType, string assetName, string assetVersion, AutoDeleteSetting autoDeleteSetting, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) { + AssetName = assetName; + AssetVersion = assetVersion; + AutoDeleteSetting = autoDeleteSetting; Mode = mode; Uri = uri; JobOutputType = jobOutputType; } + /// Output Asset Name. + public string AssetName { get; set; } + /// Output Asset Version. + public string AssetVersion { get; set; } + /// Auto delete setting of output data asset. + public AutoDeleteSetting AutoDeleteSetting { get; set; } /// Output Asset Delivery Mode. public MachineLearningOutputDeliveryMode? Mode { get; set; } /// Output Asset URI. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileDataVersion.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileDataVersion.Serialization.cs index 6a30fe4cebf3..3d0f56a70a3a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileDataVersion.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileDataVersion.Serialization.cs @@ -21,6 +21,42 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(DataType.ToString()); writer.WritePropertyName("dataUri"u8); writer.WriteStringValue(DataUri.AbsoluteUri); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -90,6 +126,9 @@ internal static MachineLearningUriFileDataVersion DeserializeMachineLearningUriF } MachineLearningDataType dataType = default; Uri dataUri = default; + Optional intellectualProperty = default; + Optional stage = default; + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -107,6 +146,36 @@ internal static MachineLearningUriFileDataVersion DeserializeMachineLearningUriF dataUri = new Uri(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -166,7 +235,7 @@ internal static MachineLearningUriFileDataVersion DeserializeMachineLearningUriF continue; } } - return new MachineLearningUriFileDataVersion(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri); + return new MachineLearningUriFileDataVersion(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri, intellectualProperty.Value, stage.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileDataVersion.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileDataVersion.cs index 7bcd4512e1bf..2b6a2abd921d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileDataVersion.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileDataVersion.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.MachineLearning.Models public partial class MachineLearningUriFileDataVersion : MachineLearningDataVersionProperties { /// Initializes a new instance of MachineLearningUriFileDataVersion. - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. /// is null. public MachineLearningUriFileDataVersion(Uri dataUri) : base(dataUri) { @@ -28,11 +28,14 @@ public MachineLearningUriFileDataVersion(Uri dataUri) : base(dataUri) /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// [Required] Specifies the type of data. - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. - internal MachineLearningUriFileDataVersion(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri) : base(description, properties, tags, isAnonymous, isArchived, dataType, dataUri) + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. + /// Intellectual Property details. Used if data is an Intellectual Property. + /// Stage in the data lifecycle assigned to this data asset. + internal MachineLearningUriFileDataVersion(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri, IntellectualProperty intellectualProperty, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, dataType, dataUri, intellectualProperty, stage) { DataType = dataType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileJobOutput.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileJobOutput.Serialization.cs index f2cf5cdcdd0f..682055ce178e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileJobOutput.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileJobOutput.Serialization.cs @@ -16,6 +16,42 @@ public partial class MachineLearningUriFileJobOutput : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(AssetName)) + { + if (AssetName != null) + { + writer.WritePropertyName("assetName"u8); + writer.WriteStringValue(AssetName); + } + else + { + writer.WriteNull("assetName"); + } + } + if (Optional.IsDefined(AssetVersion)) + { + if (AssetVersion != null) + { + writer.WritePropertyName("assetVersion"u8); + writer.WriteStringValue(AssetVersion); + } + else + { + writer.WriteNull("assetVersion"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(Mode)) { writer.WritePropertyName("mode"u8); @@ -56,12 +92,45 @@ internal static MachineLearningUriFileJobOutput DeserializeMachineLearningUriFil { return null; } + Optional assetName = default; + Optional assetVersion = default; + Optional autoDeleteSetting = default; Optional mode = default; Optional uri = default; Optional description = default; JobOutputType jobOutputType = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("assetName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetName = null; + continue; + } + assetName = property.Value.GetString(); + continue; + } + if (property.NameEquals("assetVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetVersion = null; + continue; + } + assetVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("mode"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -97,7 +166,7 @@ internal static MachineLearningUriFileJobOutput DeserializeMachineLearningUriFil continue; } } - return new MachineLearningUriFileJobOutput(description.Value, jobOutputType, Optional.ToNullable(mode), uri.Value); + return new MachineLearningUriFileJobOutput(description.Value, jobOutputType, assetName.Value, assetVersion.Value, autoDeleteSetting.Value, Optional.ToNullable(mode), uri.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileJobOutput.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileJobOutput.cs index 5100d90a09e4..08d58a3d8870 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileJobOutput.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFileJobOutput.cs @@ -21,15 +21,27 @@ public MachineLearningUriFileJobOutput() /// Initializes a new instance of MachineLearningUriFileJobOutput. /// Description for the output. /// [Required] Specifies the type of job. + /// Output Asset Name. + /// Output Asset Version. + /// Auto delete setting of output data asset. /// Output Asset Delivery Mode. /// Output Asset URI. - internal MachineLearningUriFileJobOutput(string description, JobOutputType jobOutputType, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) + internal MachineLearningUriFileJobOutput(string description, JobOutputType jobOutputType, string assetName, string assetVersion, AutoDeleteSetting autoDeleteSetting, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) { + AssetName = assetName; + AssetVersion = assetVersion; + AutoDeleteSetting = autoDeleteSetting; Mode = mode; Uri = uri; JobOutputType = jobOutputType; } + /// Output Asset Name. + public string AssetName { get; set; } + /// Output Asset Version. + public string AssetVersion { get; set; } + /// Auto delete setting of output data asset. + public AutoDeleteSetting AutoDeleteSetting { get; set; } /// Output Asset Delivery Mode. public MachineLearningOutputDeliveryMode? Mode { get; set; } /// Output Asset URI. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderDataVersion.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderDataVersion.Serialization.cs index 82f701862d9c..edb36e134cb4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderDataVersion.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderDataVersion.Serialization.cs @@ -21,6 +21,42 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(DataType.ToString()); writer.WritePropertyName("dataUri"u8); writer.WriteStringValue(DataUri.AbsoluteUri); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } + if (Optional.IsDefined(Stage)) + { + if (Stage != null) + { + writer.WritePropertyName("stage"u8); + writer.WriteStringValue(Stage); + } + else + { + writer.WriteNull("stage"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(IsAnonymous)) { writer.WritePropertyName("isAnonymous"u8); @@ -90,6 +126,9 @@ internal static MachineLearningUriFolderDataVersion DeserializeMachineLearningUr } MachineLearningDataType dataType = default; Uri dataUri = default; + Optional intellectualProperty = default; + Optional stage = default; + Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; Optional description = default; @@ -107,6 +146,36 @@ internal static MachineLearningUriFolderDataVersion DeserializeMachineLearningUr dataUri = new Uri(property.Value.GetString()); continue; } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + stage = null; + continue; + } + stage = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("isAnonymous"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -166,7 +235,7 @@ internal static MachineLearningUriFolderDataVersion DeserializeMachineLearningUr continue; } } - return new MachineLearningUriFolderDataVersion(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri); + return new MachineLearningUriFolderDataVersion(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), dataType, dataUri, intellectualProperty.Value, stage.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderDataVersion.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderDataVersion.cs index f2f252cfad95..8dd579eadf99 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderDataVersion.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderDataVersion.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.MachineLearning.Models public partial class MachineLearningUriFolderDataVersion : MachineLearningDataVersionProperties { /// Initializes a new instance of MachineLearningUriFolderDataVersion. - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. /// is null. public MachineLearningUriFolderDataVersion(Uri dataUri) : base(dataUri) { @@ -28,11 +28,14 @@ public MachineLearningUriFolderDataVersion(Uri dataUri) : base(dataUri) /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. - /// If the name version are system generated (anonymous registration). - /// Is the asset archived?. + /// Specifies the lifecycle setting of managed data asset. + /// 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. + /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// [Required] Specifies the type of data. - /// [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType. - internal MachineLearningUriFolderDataVersion(string description, IDictionary properties, IDictionary tags, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri) : base(description, properties, tags, isAnonymous, isArchived, dataType, dataUri) + /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330. + /// Intellectual Property details. Used if data is an Intellectual Property. + /// Stage in the data lifecycle assigned to this data asset. + internal MachineLearningUriFolderDataVersion(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, MachineLearningDataType dataType, Uri dataUri, IntellectualProperty intellectualProperty, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, dataType, dataUri, intellectualProperty, stage) { DataType = dataType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderJobOutput.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderJobOutput.Serialization.cs index 26577085073a..268794cc98da 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderJobOutput.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderJobOutput.Serialization.cs @@ -16,6 +16,42 @@ public partial class MachineLearningUriFolderJobOutput : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(AssetName)) + { + if (AssetName != null) + { + writer.WritePropertyName("assetName"u8); + writer.WriteStringValue(AssetName); + } + else + { + writer.WriteNull("assetName"); + } + } + if (Optional.IsDefined(AssetVersion)) + { + if (AssetVersion != null) + { + writer.WritePropertyName("assetVersion"u8); + writer.WriteStringValue(AssetVersion); + } + else + { + writer.WriteNull("assetVersion"); + } + } + if (Optional.IsDefined(AutoDeleteSetting)) + { + if (AutoDeleteSetting != null) + { + writer.WritePropertyName("autoDeleteSetting"u8); + writer.WriteObjectValue(AutoDeleteSetting); + } + else + { + writer.WriteNull("autoDeleteSetting"); + } + } if (Optional.IsDefined(Mode)) { writer.WritePropertyName("mode"u8); @@ -56,12 +92,45 @@ internal static MachineLearningUriFolderJobOutput DeserializeMachineLearningUriF { return null; } + Optional assetName = default; + Optional assetVersion = default; + Optional autoDeleteSetting = default; Optional mode = default; Optional uri = default; Optional description = default; JobOutputType jobOutputType = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("assetName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetName = null; + continue; + } + assetName = property.Value.GetString(); + continue; + } + if (property.NameEquals("assetVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + assetVersion = null; + continue; + } + assetVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoDeleteSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + autoDeleteSetting = null; + continue; + } + autoDeleteSetting = AutoDeleteSetting.DeserializeAutoDeleteSetting(property.Value); + continue; + } if (property.NameEquals("mode"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -97,7 +166,7 @@ internal static MachineLearningUriFolderJobOutput DeserializeMachineLearningUriF continue; } } - return new MachineLearningUriFolderJobOutput(description.Value, jobOutputType, Optional.ToNullable(mode), uri.Value); + return new MachineLearningUriFolderJobOutput(description.Value, jobOutputType, assetName.Value, assetVersion.Value, autoDeleteSetting.Value, Optional.ToNullable(mode), uri.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderJobOutput.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderJobOutput.cs index c071c23b9044..6aaacd422fe4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderJobOutput.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUriFolderJobOutput.cs @@ -21,15 +21,27 @@ public MachineLearningUriFolderJobOutput() /// Initializes a new instance of MachineLearningUriFolderJobOutput. /// Description for the output. /// [Required] Specifies the type of job. + /// Output Asset Name. + /// Output Asset Version. + /// Auto delete setting of output data asset. /// Output Asset Delivery Mode. /// Output Asset URI. - internal MachineLearningUriFolderJobOutput(string description, JobOutputType jobOutputType, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) + internal MachineLearningUriFolderJobOutput(string description, JobOutputType jobOutputType, string assetName, string assetVersion, AutoDeleteSetting autoDeleteSetting, MachineLearningOutputDeliveryMode? mode, Uri uri) : base(description, jobOutputType) { + AssetName = assetName; + AssetVersion = assetVersion; + AutoDeleteSetting = autoDeleteSetting; Mode = mode; Uri = uri; JobOutputType = jobOutputType; } + /// Output Asset Name. + public string AssetName { get; set; } + /// Output Asset Version. + public string AssetVersion { get; set; } + /// Auto delete setting of output data asset. + public AutoDeleteSetting AutoDeleteSetting { get; set; } /// Output Asset Delivery Mode. public MachineLearningOutputDeliveryMode? Mode { get; set; } /// Output Asset URI. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.Serialization.cs index bb9c8c452eef..6b063b6965a3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -27,20 +28,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("category"u8); writer.WriteStringValue(Category.Value.ToString()); } - if (Optional.IsDefined(Target)) + if (Optional.IsDefined(ExpiryOn)) { - writer.WritePropertyName("target"u8); - writer.WriteStringValue(Target); + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); } - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(Metadata)) { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif } - if (Optional.IsDefined(ValueFormat)) + if (Optional.IsDefined(Target)) { - writer.WritePropertyName("valueFormat"u8); - writer.WriteStringValue(ValueFormat.Value.ToString()); + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); } writer.WriteEndObject(); } @@ -54,9 +59,9 @@ internal static MachineLearningUsernamePasswordAuthTypeWorkspaceConnection Deser Optional credentials = default; MachineLearningConnectionAuthType authType = default; Optional category = default; + Optional expiryTime = default; + Optional metadata = default; Optional target = default; - Optional value = default; - Optional valueFormat = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("credentials"u8)) @@ -82,27 +87,31 @@ internal static MachineLearningUsernamePasswordAuthTypeWorkspaceConnection Deser category = new MachineLearningConnectionCategory(property.Value.GetString()); continue; } - if (property.NameEquals("target"u8)) - { - target = property.Value.GetString(); - continue; - } - if (property.NameEquals("value"u8)) + if (property.NameEquals("expiryTime"u8)) { - value = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("valueFormat"u8)) + if (property.NameEquals("metadata"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - valueFormat = new MachineLearningValueFormat(property.Value.GetString()); + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); continue; } } - return new MachineLearningUsernamePasswordAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), target.Value, value.Value, Optional.ToNullable(valueFormat), credentials.Value); + return new MachineLearningUsernamePasswordAuthTypeWorkspaceConnection(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value, credentials.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.cs index c2fa44ac5aa6..62f50c976bfb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.MachineLearning.Models { /// The MachineLearningUsernamePasswordAuthTypeWorkspaceConnection. @@ -19,11 +21,11 @@ public MachineLearningUsernamePasswordAuthTypeWorkspaceConnection() /// Initializes a new instance of MachineLearningUsernamePasswordAuthTypeWorkspaceConnection. /// Authentication type of the connection target. /// Category of the connection. + /// + /// Any object. /// - /// Value details of the workspace connection. - /// format for the workspace connection value. /// - internal MachineLearningUsernamePasswordAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, string target, string value, MachineLearningValueFormat? valueFormat, MachineLearningWorkspaceConnectionUsernamePassword credentials) : base(authType, category, target, value, valueFormat) + internal MachineLearningUsernamePasswordAuthTypeWorkspaceConnection(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, MachineLearningWorkspaceConnectionUsernamePassword credentials) : base(authType, category, expiryOn, metadata, target) { Credentials = credentials; AuthType = authType; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningValueFormat.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningValueFormat.cs deleted file mode 100644 index 2c9bccea26a6..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningValueFormat.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// format for the workspace connection value. - public readonly partial struct MachineLearningValueFormat : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MachineLearningValueFormat(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string JsonValue = "JSON"; - - /// JSON. - public static MachineLearningValueFormat Json { get; } = new MachineLearningValueFormat(JsonValue); - /// Determines if two values are the same. - public static bool operator ==(MachineLearningValueFormat left, MachineLearningValueFormat right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MachineLearningValueFormat left, MachineLearningValueFormat right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MachineLearningValueFormat(string value) => new MachineLearningValueFormat(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MachineLearningValueFormat other && Equals(other); - /// - public bool Equals(MachineLearningValueFormat other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionManagedIdentity.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionManagedIdentity.Serialization.cs index 487825cccc5f..c0452eade5e3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionManagedIdentity.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionManagedIdentity.Serialization.cs @@ -15,16 +15,16 @@ public partial class MachineLearningWorkspaceConnectionManagedIdentity : IUtf8Js void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(ResourceId)) - { - writer.WritePropertyName("resourceId"u8); - writer.WriteStringValue(ResourceId); - } if (Optional.IsDefined(ClientId)) { writer.WritePropertyName("clientId"u8); writer.WriteStringValue(ClientId); } + if (Optional.IsDefined(ResourceId)) + { + writer.WritePropertyName("resourceId"u8); + writer.WriteStringValue(ResourceId); + } writer.WriteEndObject(); } @@ -34,10 +34,15 @@ internal static MachineLearningWorkspaceConnectionManagedIdentity DeserializeMac { return null; } - Optional resourceId = default; Optional clientId = default; + Optional resourceId = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("clientId"u8)) + { + clientId = property.Value.GetString(); + continue; + } if (property.NameEquals("resourceId"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -47,13 +52,8 @@ internal static MachineLearningWorkspaceConnectionManagedIdentity DeserializeMac resourceId = new ResourceIdentifier(property.Value.GetString()); continue; } - if (property.NameEquals("clientId"u8)) - { - clientId = property.Value.GetString(); - continue; - } } - return new MachineLearningWorkspaceConnectionManagedIdentity(resourceId.Value, clientId.Value); + return new MachineLearningWorkspaceConnectionManagedIdentity(clientId.Value, resourceId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionManagedIdentity.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionManagedIdentity.cs index 7df7012e8871..a8826bd299bf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionManagedIdentity.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionManagedIdentity.cs @@ -18,17 +18,17 @@ public MachineLearningWorkspaceConnectionManagedIdentity() } /// Initializes a new instance of MachineLearningWorkspaceConnectionManagedIdentity. - /// /// - internal MachineLearningWorkspaceConnectionManagedIdentity(ResourceIdentifier resourceId, string clientId) + /// + internal MachineLearningWorkspaceConnectionManagedIdentity(string clientId, ResourceIdentifier resourceId) { - ResourceId = resourceId; ClientId = clientId; + ResourceId = resourceId; } - /// Gets or sets the resource id. - public ResourceIdentifier ResourceId { get; set; } /// Gets or sets the client id. public string ClientId { get; set; } + /// Gets or sets the resource id. + public ResourceIdentifier ResourceId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionPatch.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionPatch.Serialization.cs new file mode 100644 index 000000000000..901eb4cc5d61 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionPatch.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MachineLearningWorkspaceConnectionPatch : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionPatch.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionPatch.cs new file mode 100644 index 000000000000..fde4e47b61fc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionPatch.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The properties that the machine learning workspace connection will be updated with. + public partial class MachineLearningWorkspaceConnectionPatch + { + /// Initializes a new instance of MachineLearningWorkspaceConnectionPatch. + public MachineLearningWorkspaceConnectionPatch() + { + } + + /// + /// The properties that the machine learning workspace connection will be updated with. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , and . + /// + public MachineLearningWorkspaceConnectionProperties Properties { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionProperties.Serialization.cs index c6e706ae0f6c..9f8112df1265 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionProperties.Serialization.cs @@ -22,20 +22,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("category"u8); writer.WriteStringValue(Category.Value.ToString()); } - if (Optional.IsDefined(Target)) + if (Optional.IsDefined(ExpiryOn)) { - writer.WritePropertyName("target"u8); - writer.WriteStringValue(Target); + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); } - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(Metadata)) { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif } - if (Optional.IsDefined(ValueFormat)) + if (Optional.IsDefined(Target)) { - writer.WritePropertyName("valueFormat"u8); - writer.WriteStringValue(ValueFormat.Value.ToString()); + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); } writer.WriteEndObject(); } @@ -50,10 +54,14 @@ internal static MachineLearningWorkspaceConnectionProperties DeserializeMachineL { switch (discriminator.GetString()) { + case "AccessKey": return AccessKeyAuthTypeWorkspaceConnectionProperties.DeserializeAccessKeyAuthTypeWorkspaceConnectionProperties(element); + case "ApiKey": return ApiKeyAuthWorkspaceConnectionProperties.DeserializeApiKeyAuthWorkspaceConnectionProperties(element); + case "CustomKeys": return CustomKeysWorkspaceConnectionProperties.DeserializeCustomKeysWorkspaceConnectionProperties(element); case "ManagedIdentity": return MachineLearningManagedIdentityAuthTypeWorkspaceConnection.DeserializeMachineLearningManagedIdentityAuthTypeWorkspaceConnection(element); case "None": return MachineLearningNoneAuthTypeWorkspaceConnection.DeserializeMachineLearningNoneAuthTypeWorkspaceConnection(element); case "PAT": return MachineLearningPatAuthTypeWorkspaceConnection.DeserializeMachineLearningPatAuthTypeWorkspaceConnection(element); case "SAS": return MachineLearningSasAuthTypeWorkspaceConnection.DeserializeMachineLearningSasAuthTypeWorkspaceConnection(element); + case "ServicePrincipal": return ServicePrincipalAuthTypeWorkspaceConnectionProperties.DeserializeServicePrincipalAuthTypeWorkspaceConnectionProperties(element); case "UsernamePassword": return MachineLearningUsernamePasswordAuthTypeWorkspaceConnection.DeserializeMachineLearningUsernamePasswordAuthTypeWorkspaceConnection(element); } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionProperties.cs index 7c91af0ee7cd..af8e0fd100ec 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionProperties.cs @@ -5,12 +5,14 @@ #nullable disable +using System; + namespace Azure.ResourceManager.MachineLearning.Models { /// /// The MachineLearningWorkspaceConnectionProperties. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// The available derived classes include , , , , , , , and . /// public abstract partial class MachineLearningWorkspaceConnectionProperties { @@ -22,27 +24,56 @@ protected MachineLearningWorkspaceConnectionProperties() /// Initializes a new instance of MachineLearningWorkspaceConnectionProperties. /// Authentication type of the connection target. /// Category of the connection. + /// + /// Any object. /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - internal MachineLearningWorkspaceConnectionProperties(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, string target, string value, MachineLearningValueFormat? valueFormat) + internal MachineLearningWorkspaceConnectionProperties(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target) { AuthType = authType; Category = category; + ExpiryOn = expiryOn; + Metadata = metadata; Target = target; - Value = value; - ValueFormat = valueFormat; } /// Authentication type of the connection target. internal MachineLearningConnectionAuthType AuthType { get; set; } /// Category of the connection. public MachineLearningConnectionCategory? Category { get; set; } + /// Gets or sets the expiry on. + public DateTimeOffset? ExpiryOn { get; set; } + /// + /// Any object + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Metadata { get; set; } /// Gets or sets the target. public string Target { get; set; } - /// Value details of the workspace connection. - public string Value { get; set; } - /// format for the workspace connection value. - public MachineLearningValueFormat? ValueFormat { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionUsernamePassword.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionUsernamePassword.Serialization.cs index 2d3311eabc68..20d7fb52e1ec 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionUsernamePassword.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionUsernamePassword.Serialization.cs @@ -15,16 +15,16 @@ public partial class MachineLearningWorkspaceConnectionUsernamePassword : IUtf8J void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(Username)) - { - writer.WritePropertyName("username"u8); - writer.WriteStringValue(Username); - } if (Optional.IsDefined(Password)) { writer.WritePropertyName("password"u8); writer.WriteStringValue(Password); } + if (Optional.IsDefined(Username)) + { + writer.WritePropertyName("username"u8); + writer.WriteStringValue(Username); + } writer.WriteEndObject(); } @@ -34,22 +34,22 @@ internal static MachineLearningWorkspaceConnectionUsernamePassword DeserializeMa { return null; } - Optional username = default; Optional password = default; + Optional username = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("username"u8)) + if (property.NameEquals("password"u8)) { - username = property.Value.GetString(); + password = property.Value.GetString(); continue; } - if (property.NameEquals("password"u8)) + if (property.NameEquals("username"u8)) { - password = property.Value.GetString(); + username = property.Value.GetString(); continue; } } - return new MachineLearningWorkspaceConnectionUsernamePassword(username.Value, password.Value); + return new MachineLearningWorkspaceConnectionUsernamePassword(password.Value, username.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionUsernamePassword.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionUsernamePassword.cs index a6cea4dbc5e7..5ac8330423c4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionUsernamePassword.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionUsernamePassword.cs @@ -16,17 +16,17 @@ public MachineLearningWorkspaceConnectionUsernamePassword() } /// Initializes a new instance of MachineLearningWorkspaceConnectionUsernamePassword. - /// /// - internal MachineLearningWorkspaceConnectionUsernamePassword(string username, string password) + /// + internal MachineLearningWorkspaceConnectionUsernamePassword(string password, string username) { - Username = username; Password = password; + Username = username; } - /// Gets or sets the username. - public string Username { get; set; } /// Gets or sets the password. public string Password { get; set; } + /// Gets or sets the username. + public string Username { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs index ddfe2bab9932..4be2ed1167cc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs @@ -25,6 +25,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; JsonSerializer.Serialize(writer, Identity, serializeOptions); } + if (Optional.IsDefined(Kind)) + { + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind); + } if (Optional.IsDefined(Sku)) { writer.WritePropertyName("sku"u8); @@ -45,73 +50,131 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Location); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsDefined(FriendlyName)) - { - writer.WritePropertyName("friendlyName"u8); - writer.WriteStringValue(FriendlyName); - } - if (Optional.IsDefined(KeyVault)) + if (Optional.IsDefined(AllowPublicAccessWhenBehindVnet)) { - writer.WritePropertyName("keyVault"u8); - writer.WriteStringValue(KeyVault); + writer.WritePropertyName("allowPublicAccessWhenBehindVnet"u8); + writer.WriteBooleanValue(AllowPublicAccessWhenBehindVnet.Value); } if (Optional.IsDefined(ApplicationInsights)) { writer.WritePropertyName("applicationInsights"u8); writer.WriteStringValue(ApplicationInsights); } - if (Optional.IsDefined(ContainerRegistry)) + if (Optional.IsCollectionDefined(AssociatedWorkspaces)) { - if (ContainerRegistry != null) + writer.WritePropertyName("associatedWorkspaces"u8); + writer.WriteStartArray(); + foreach (var item in AssociatedWorkspaces) { - writer.WritePropertyName("containerRegistry"u8); - writer.WriteStringValue(ContainerRegistry); + writer.WriteStringValue(item); } - else + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(ContainerRegistries)) + { + writer.WritePropertyName("containerRegistries"u8); + writer.WriteStartArray(); + foreach (var item in ContainerRegistries) { - writer.WriteNull("containerRegistry"); + writer.WriteStringValue(item); } + writer.WriteEndArray(); } - if (Optional.IsDefined(StorageAccount)) + if (Optional.IsDefined(ContainerRegistry)) { - writer.WritePropertyName("storageAccount"u8); - writer.WriteStringValue(StorageAccount); + writer.WritePropertyName("containerRegistry"u8); + writer.WriteStringValue(ContainerRegistry); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); } if (Optional.IsDefined(DiscoveryUri)) { writer.WritePropertyName("discoveryUrl"u8); writer.WriteStringValue(DiscoveryUri.AbsoluteUri); } + if (Optional.IsDefined(EnableDataIsolation)) + { + writer.WritePropertyName("enableDataIsolation"u8); + writer.WriteBooleanValue(EnableDataIsolation.Value); + } if (Optional.IsDefined(Encryption)) { writer.WritePropertyName("encryption"u8); writer.WriteObjectValue(Encryption); } + if (Optional.IsCollectionDefined(ExistingWorkspaces)) + { + writer.WritePropertyName("existingWorkspaces"u8); + writer.WriteStartArray(); + foreach (var item in ExistingWorkspaces) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(FeatureStoreSettings)) + { + writer.WritePropertyName("featureStoreSettings"u8); + writer.WriteObjectValue(FeatureStoreSettings); + } + if (Optional.IsDefined(FriendlyName)) + { + writer.WritePropertyName("friendlyName"u8); + writer.WriteStringValue(FriendlyName); + } if (Optional.IsDefined(IsHbiWorkspace)) { writer.WritePropertyName("hbiWorkspace"u8); writer.WriteBooleanValue(IsHbiWorkspace.Value); } + if (Optional.IsDefined(HubResourceId)) + { + writer.WritePropertyName("hubResourceId"u8); + writer.WriteStringValue(HubResourceId); + } if (Optional.IsDefined(ImageBuildCompute)) { writer.WritePropertyName("imageBuildCompute"u8); writer.WriteStringValue(ImageBuildCompute); } - if (Optional.IsDefined(AllowPublicAccessWhenBehindVnet)) + if (Optional.IsDefined(KeyVault)) { - writer.WritePropertyName("allowPublicAccessWhenBehindVnet"u8); - writer.WriteBooleanValue(AllowPublicAccessWhenBehindVnet.Value); + writer.WritePropertyName("keyVault"u8); + writer.WriteStringValue(KeyVault); + } + if (Optional.IsCollectionDefined(KeyVaults)) + { + writer.WritePropertyName("keyVaults"u8); + writer.WriteStartArray(); + foreach (var item in KeyVaults) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ManagedNetwork)) + { + writer.WritePropertyName("managedNetwork"u8); + writer.WriteObjectValue(ManagedNetwork); + } + if (Optional.IsDefined(PrimaryUserAssignedIdentity)) + { + writer.WritePropertyName("primaryUserAssignedIdentity"u8); + writer.WriteStringValue(PrimaryUserAssignedIdentity); } if (Optional.IsDefined(PublicNetworkAccess)) { writer.WritePropertyName("publicNetworkAccess"u8); writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); } + if (Optional.IsDefined(ServiceManagedResourcesSettings)) + { + writer.WritePropertyName("serviceManagedResourcesSettings"u8); + writer.WriteObjectValue(ServiceManagedResourcesSettings); + } if (Optional.IsCollectionDefined(SharedPrivateLinkResources)) { writer.WritePropertyName("sharedPrivateLinkResources"u8); @@ -122,21 +185,41 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(ServiceManagedResourcesSettings)) + if (Optional.IsDefined(SoftDeleteRetentionInDays)) { - writer.WritePropertyName("serviceManagedResourcesSettings"u8); - writer.WriteObjectValue(ServiceManagedResourcesSettings); + writer.WritePropertyName("softDeleteRetentionInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionInDays.Value); } - if (Optional.IsDefined(PrimaryUserAssignedIdentity)) + if (Optional.IsDefined(StorageAccount)) { - writer.WritePropertyName("primaryUserAssignedIdentity"u8); - writer.WriteStringValue(PrimaryUserAssignedIdentity); + writer.WritePropertyName("storageAccount"u8); + writer.WriteStringValue(StorageAccount); + } + if (Optional.IsCollectionDefined(StorageAccounts)) + { + writer.WritePropertyName("storageAccounts"u8); + writer.WriteStartArray(); + foreach (var item in StorageAccounts) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(SystemDatastoresAuthMode)) + { + writer.WritePropertyName("systemDatastoresAuthMode"u8); + writer.WriteStringValue(SystemDatastoresAuthMode); } if (Optional.IsDefined(IsV1LegacyMode)) { writer.WritePropertyName("v1LegacyMode"u8); writer.WriteBooleanValue(IsV1LegacyMode.Value); } + if (Optional.IsDefined(WorkspaceHubConfig)) + { + writer.WritePropertyName("workspaceHubConfig"u8); + writer.WriteObjectValue(WorkspaceHubConfig); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -148,6 +231,7 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace return null; } Optional identity = default; + Optional kind = default; Optional sku = default; Optional> tags = default; AzureLocation location = default; @@ -155,31 +239,43 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace string name = default; ResourceType type = default; Optional systemData = default; - Optional workspaceId = default; - Optional description = default; - Optional friendlyName = default; - Optional keyVault = default; + Optional allowPublicAccessWhenBehindVnet = default; Optional applicationInsights = default; + Optional> associatedWorkspaces = default; + Optional> containerRegistries = default; Optional containerRegistry = default; - Optional storageAccount = default; + Optional description = default; Optional discoveryUrl = default; - Optional provisioningState = default; + Optional enableDataIsolation = default; Optional encryption = default; + Optional> existingWorkspaces = default; + Optional featureStoreSettings = default; + Optional friendlyName = default; Optional hbiWorkspace = default; - Optional serviceProvisionedResourceGroup = default; - Optional privateLinkCount = default; + Optional hubResourceId = default; Optional imageBuildCompute = default; - Optional allowPublicAccessWhenBehindVnet = default; - Optional publicNetworkAccess = default; - Optional> privateEndpointConnections = default; - Optional> sharedPrivateLinkResources = default; + Optional keyVault = default; + Optional> keyVaults = default; + Optional managedNetwork = default; + Optional mlFlowTrackingUri = default; Optional notebookInfo = default; - Optional serviceManagedResourcesSettings = default; Optional primaryUserAssignedIdentity = default; - Optional tenantId = default; + Optional> privateEndpointConnections = default; + Optional privateLinkCount = default; + Optional provisioningState = default; + Optional publicNetworkAccess = default; + Optional serviceManagedResourcesSettings = default; + Optional serviceProvisionedResourceGroup = default; + Optional> sharedPrivateLinkResources = default; + Optional softDeleteRetentionInDays = default; + Optional storageAccount = default; + Optional> storageAccounts = default; Optional storageHnsEnabled = default; - Optional mlFlowTrackingUri = default; + Optional systemDatastoresAuthMode = default; + Optional tenantId = default; Optional v1LegacyMode = default; + Optional workspaceHubConfig = default; + Optional workspaceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("identity"u8)) @@ -192,6 +288,11 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace identity = JsonSerializer.Deserialize(property.Value.GetRawText(), serializeOptions); continue; } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } if (property.NameEquals("sku"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -253,71 +354,111 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace } foreach (var property0 in property.Value.EnumerateObject()) { - if (property0.NameEquals("workspaceId"u8)) + if (property0.NameEquals("allowPublicAccessWhenBehindVnet"u8)) { - workspaceId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allowPublicAccessWhenBehindVnet = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("description"u8)) + if (property0.NameEquals("applicationInsights"u8)) { - description = property0.Value.GetString(); + applicationInsights = property0.Value.GetString(); continue; } - if (property0.NameEquals("friendlyName"u8)) + if (property0.NameEquals("associatedWorkspaces"u8)) { - friendlyName = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + associatedWorkspaces = array; continue; } - if (property0.NameEquals("keyVault"u8)) + if (property0.NameEquals("containerRegistries"u8)) { - keyVault = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + containerRegistries = array; continue; } - if (property0.NameEquals("applicationInsights"u8)) + if (property0.NameEquals("containerRegistry"u8)) { - applicationInsights = property0.Value.GetString(); + containerRegistry = property0.Value.GetString(); continue; } - if (property0.NameEquals("containerRegistry"u8)) + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("discoveryUrl"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { - containerRegistry = null; continue; } - containerRegistry = property0.Value.GetString(); + discoveryUrl = new Uri(property0.Value.GetString()); continue; } - if (property0.NameEquals("storageAccount"u8)) + if (property0.NameEquals("enableDataIsolation"u8)) { - storageAccount = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableDataIsolation = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("discoveryUrl"u8)) + if (property0.NameEquals("encryption"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - discoveryUrl = new Uri(property0.Value.GetString()); + encryption = MachineLearningEncryptionSetting.DeserializeMachineLearningEncryptionSetting(property0.Value); continue; } - if (property0.NameEquals("provisioningState"u8)) + if (property0.NameEquals("existingWorkspaces"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - provisioningState = new MachineLearningProvisioningState(property0.Value.GetString()); + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + existingWorkspaces = array; continue; } - if (property0.NameEquals("encryption"u8)) + if (property0.NameEquals("featureStoreSettings"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - encryption = MachineLearningEncryptionSetting.DeserializeMachineLearningEncryptionSetting(property0.Value); + featureStoreSettings = FeatureStoreSettings.DeserializeFeatureStoreSettings(property0.Value); + continue; + } + if (property0.NameEquals("friendlyName"u8)) + { + friendlyName = property0.Value.GetString(); continue; } if (property0.NameEquals("hbiWorkspace"u8)) @@ -329,41 +470,65 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace hbiWorkspace = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("serviceProvisionedResourceGroup"u8)) + if (property0.NameEquals("hubResourceId"u8)) { - serviceProvisionedResourceGroup = property0.Value.GetString(); + hubResourceId = property0.Value.GetString(); continue; } - if (property0.NameEquals("privateLinkCount"u8)) + if (property0.NameEquals("imageBuildCompute"u8)) + { + imageBuildCompute = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("keyVault"u8)) + { + keyVault = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("keyVaults"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - privateLinkCount = property0.Value.GetInt32(); + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + keyVaults = array; continue; } - if (property0.NameEquals("imageBuildCompute"u8)) + if (property0.NameEquals("managedNetwork"u8)) { - imageBuildCompute = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + managedNetwork = ManagedNetworkSettings.DeserializeManagedNetworkSettings(property0.Value); continue; } - if (property0.NameEquals("allowPublicAccessWhenBehindVnet"u8)) + if (property0.NameEquals("mlFlowTrackingUri"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - allowPublicAccessWhenBehindVnet = property0.Value.GetBoolean(); + mlFlowTrackingUri = new Uri(property0.Value.GetString()); continue; } - if (property0.NameEquals("publicNetworkAccess"u8)) + if (property0.NameEquals("notebookInfo"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - publicNetworkAccess = new MachineLearningPublicNetworkAccess(property0.Value.GetString()); + notebookInfo = MachineLearningNotebookResourceInfo.DeserializeMachineLearningNotebookResourceInfo(property0.Value); + continue; + } + if (property0.NameEquals("primaryUserAssignedIdentity"u8)) + { + primaryUserAssignedIdentity = property0.Value.GetString(); continue; } if (property0.NameEquals("privateEndpointConnections"u8)) @@ -380,27 +545,31 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace privateEndpointConnections = array; continue; } - if (property0.NameEquals("sharedPrivateLinkResources"u8)) + if (property0.NameEquals("privateLinkCount"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) + privateLinkCount = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) { - array.Add(MachineLearningSharedPrivateLinkResource.DeserializeMachineLearningSharedPrivateLinkResource(item)); + continue; } - sharedPrivateLinkResources = array; + provisioningState = new MachineLearningProvisioningState(property0.Value.GetString()); continue; } - if (property0.NameEquals("notebookInfo"u8)) + if (property0.NameEquals("publicNetworkAccess"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - notebookInfo = MachineLearningNotebookResourceInfo.DeserializeMachineLearningNotebookResourceInfo(property0.Value); + publicNetworkAccess = new MachineLearningPublicNetworkAccessType(property0.Value.GetString()); continue; } if (property0.NameEquals("serviceManagedResourcesSettings"u8)) @@ -412,18 +581,51 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace serviceManagedResourcesSettings = ServiceManagedResourcesSettings.DeserializeServiceManagedResourcesSettings(property0.Value); continue; } - if (property0.NameEquals("primaryUserAssignedIdentity"u8)) + if (property0.NameEquals("serviceProvisionedResourceGroup"u8)) { - primaryUserAssignedIdentity = property0.Value.GetString(); + serviceProvisionedResourceGroup = property0.Value.GetString(); continue; } - if (property0.NameEquals("tenantId"u8)) + if (property0.NameEquals("sharedPrivateLinkResources"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - tenantId = property0.Value.GetGuid(); + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(MachineLearningSharedPrivateLinkResource.DeserializeMachineLearningSharedPrivateLinkResource(item)); + } + sharedPrivateLinkResources = array; + continue; + } + if (property0.NameEquals("softDeleteRetentionInDays"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + softDeleteRetentionInDays = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("storageAccount"u8)) + { + storageAccount = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("storageAccounts"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + storageAccounts = array; continue; } if (property0.NameEquals("storageHnsEnabled"u8)) @@ -435,13 +637,18 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace storageHnsEnabled = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("mlFlowTrackingUri"u8)) + if (property0.NameEquals("systemDatastoresAuthMode"u8)) + { + systemDatastoresAuthMode = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("tenantId"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - mlFlowTrackingUri = new Uri(property0.Value.GetString()); + tenantId = property0.Value.GetGuid(); continue; } if (property0.NameEquals("v1LegacyMode"u8)) @@ -453,11 +660,25 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace v1LegacyMode = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("workspaceHubConfig"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + workspaceHubConfig = WorkspaceHubConfig.DeserializeWorkspaceHubConfig(property0.Value); + continue; + } + if (property0.NameEquals("workspaceId"u8)) + { + workspaceId = property0.Value.GetString(); + continue; + } } continue; } } - return new MachineLearningWorkspaceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, sku.Value, workspaceId.Value, description.Value, friendlyName.Value, keyVault.Value, applicationInsights.Value, containerRegistry.Value, storageAccount.Value, discoveryUrl.Value, Optional.ToNullable(provisioningState), encryption.Value, Optional.ToNullable(hbiWorkspace), serviceProvisionedResourceGroup.Value, Optional.ToNullable(privateLinkCount), imageBuildCompute.Value, Optional.ToNullable(allowPublicAccessWhenBehindVnet), Optional.ToNullable(publicNetworkAccess), Optional.ToList(privateEndpointConnections), Optional.ToList(sharedPrivateLinkResources), notebookInfo.Value, serviceManagedResourcesSettings.Value, primaryUserAssignedIdentity.Value, Optional.ToNullable(tenantId), Optional.ToNullable(storageHnsEnabled), mlFlowTrackingUri.Value, Optional.ToNullable(v1LegacyMode)); + return new MachineLearningWorkspaceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, kind.Value, sku.Value, Optional.ToNullable(allowPublicAccessWhenBehindVnet), applicationInsights.Value, Optional.ToList(associatedWorkspaces), Optional.ToList(containerRegistries), containerRegistry.Value, description.Value, discoveryUrl.Value, Optional.ToNullable(enableDataIsolation), encryption.Value, Optional.ToList(existingWorkspaces), featureStoreSettings.Value, friendlyName.Value, Optional.ToNullable(hbiWorkspace), hubResourceId.Value, imageBuildCompute.Value, keyVault.Value, Optional.ToList(keyVaults), managedNetwork.Value, mlFlowTrackingUri.Value, notebookInfo.Value, primaryUserAssignedIdentity.Value, Optional.ToList(privateEndpointConnections), Optional.ToNullable(privateLinkCount), Optional.ToNullable(provisioningState), Optional.ToNullable(publicNetworkAccess), serviceManagedResourcesSettings.Value, serviceProvisionedResourceGroup.Value, Optional.ToList(sharedPrivateLinkResources), Optional.ToNullable(softDeleteRetentionInDays), storageAccount.Value, Optional.ToList(storageAccounts), Optional.ToNullable(storageHnsEnabled), systemDatastoresAuthMode.Value, Optional.ToNullable(tenantId), Optional.ToNullable(v1LegacyMode), workspaceHubConfig.Value, workspaceId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseContent.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseContent.cs index 8b184dd60ff3..70cc611de69e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseContent.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseContent.cs @@ -15,7 +15,7 @@ public MachineLearningWorkspaceDiagnoseContent() { } - /// Value of Parameters. + /// Gets or sets the value. public MachineLearningWorkspaceDiagnoseProperties Value { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseProperties.Serialization.cs index 7d042fc72dce..0b750b4ba488 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseProperties.Serialization.cs @@ -15,11 +15,11 @@ public partial class MachineLearningWorkspaceDiagnoseProperties : IUtf8JsonSeria void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsCollectionDefined(Udr)) + if (Optional.IsCollectionDefined(ApplicationInsights)) { - writer.WritePropertyName("udr"u8); + writer.WritePropertyName("applicationInsights"u8); writer.WriteStartObject(); - foreach (var item in Udr) + foreach (var item in ApplicationInsights) { writer.WritePropertyName(item.Key); if (item.Value == null) @@ -35,11 +35,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsCollectionDefined(Nsg)) + if (Optional.IsCollectionDefined(ContainerRegistry)) { - writer.WritePropertyName("nsg"u8); + writer.WritePropertyName("containerRegistry"u8); writer.WriteStartObject(); - foreach (var item in Nsg) + foreach (var item in ContainerRegistry) { writer.WritePropertyName(item.Key); if (item.Value == null) @@ -55,11 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsCollectionDefined(ResourceLock)) + if (Optional.IsCollectionDefined(DnsResolution)) { - writer.WritePropertyName("resourceLock"u8); + writer.WritePropertyName("dnsResolution"u8); writer.WriteStartObject(); - foreach (var item in ResourceLock) + foreach (var item in DnsResolution) { writer.WritePropertyName(item.Key); if (item.Value == null) @@ -75,11 +75,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsCollectionDefined(DnsResolution)) + if (Optional.IsCollectionDefined(KeyVault)) { - writer.WritePropertyName("dnsResolution"u8); + writer.WritePropertyName("keyVault"u8); writer.WriteStartObject(); - foreach (var item in DnsResolution) + foreach (var item in KeyVault) { writer.WritePropertyName(item.Key); if (item.Value == null) @@ -95,11 +95,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsCollectionDefined(StorageAccount)) + if (Optional.IsCollectionDefined(Nsg)) { - writer.WritePropertyName("storageAccount"u8); + writer.WritePropertyName("nsg"u8); writer.WriteStartObject(); - foreach (var item in StorageAccount) + foreach (var item in Nsg) { writer.WritePropertyName(item.Key); if (item.Value == null) @@ -115,11 +115,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsCollectionDefined(KeyVault)) + if (Optional.IsCollectionDefined(Others)) { - writer.WritePropertyName("keyVault"u8); + writer.WritePropertyName("others"u8); writer.WriteStartObject(); - foreach (var item in KeyVault) + foreach (var item in Others) { writer.WritePropertyName(item.Key); if (item.Value == null) @@ -135,11 +135,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsCollectionDefined(ContainerRegistry)) + if (Optional.IsCollectionDefined(ResourceLock)) { - writer.WritePropertyName("containerRegistry"u8); + writer.WritePropertyName("resourceLock"u8); writer.WriteStartObject(); - foreach (var item in ContainerRegistry) + foreach (var item in ResourceLock) { writer.WritePropertyName(item.Key); if (item.Value == null) @@ -155,11 +155,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsCollectionDefined(ApplicationInsights)) + if (Optional.IsCollectionDefined(StorageAccount)) { - writer.WritePropertyName("applicationInsights"u8); + writer.WritePropertyName("storageAccount"u8); writer.WriteStartObject(); - foreach (var item in ApplicationInsights) + foreach (var item in StorageAccount) { writer.WritePropertyName(item.Key); if (item.Value == null) @@ -175,11 +175,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsCollectionDefined(Others)) + if (Optional.IsCollectionDefined(Udr)) { - writer.WritePropertyName("others"u8); + writer.WritePropertyName("udr"u8); writer.WriteStartObject(); - foreach (var item in Others) + foreach (var item in Udr) { writer.WritePropertyName(item.Key); if (item.Value == null) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseProperties.cs index ce2c9bc66abe..5efec1886d33 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceDiagnoseProperties.cs @@ -17,19 +17,19 @@ public partial class MachineLearningWorkspaceDiagnoseProperties /// Initializes a new instance of MachineLearningWorkspaceDiagnoseProperties. public MachineLearningWorkspaceDiagnoseProperties() { - Udr = new ChangeTrackingDictionary(); - Nsg = new ChangeTrackingDictionary(); - ResourceLock = new ChangeTrackingDictionary(); + ApplicationInsights = new ChangeTrackingDictionary(); + ContainerRegistry = new ChangeTrackingDictionary(); DnsResolution = new ChangeTrackingDictionary(); - StorageAccount = new ChangeTrackingDictionary(); KeyVault = new ChangeTrackingDictionary(); - ContainerRegistry = new ChangeTrackingDictionary(); - ApplicationInsights = new ChangeTrackingDictionary(); + Nsg = new ChangeTrackingDictionary(); Others = new ChangeTrackingDictionary(); + ResourceLock = new ChangeTrackingDictionary(); + StorageAccount = new ChangeTrackingDictionary(); + Udr = new ChangeTrackingDictionary(); } /// - /// Setting for diagnosing user defined routing + /// Setting for diagnosing dependent application insights /// /// To assign an object to the value of this property use . /// @@ -58,9 +58,9 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary Udr { get; } + public IDictionary ApplicationInsights { get; } /// - /// Setting for diagnosing network security group + /// Setting for diagnosing dependent container registry /// /// To assign an object to the value of this property use . /// @@ -89,9 +89,9 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary Nsg { get; } + public IDictionary ContainerRegistry { get; } /// - /// Setting for diagnosing resource lock + /// Setting for diagnosing dns resolution /// /// To assign an object to the value of this property use . /// @@ -120,9 +120,9 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary ResourceLock { get; } + public IDictionary DnsResolution { get; } /// - /// Setting for diagnosing dns resolution + /// Setting for diagnosing dependent key vault /// /// To assign an object to the value of this property use . /// @@ -151,9 +151,9 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary DnsResolution { get; } + public IDictionary KeyVault { get; } /// - /// Setting for diagnosing dependent storage account + /// Setting for diagnosing network security group /// /// To assign an object to the value of this property use . /// @@ -182,9 +182,9 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary StorageAccount { get; } + public IDictionary Nsg { get; } /// - /// Setting for diagnosing dependent key vault + /// Setting for diagnosing unclassified category of problems /// /// To assign an object to the value of this property use . /// @@ -213,9 +213,9 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary KeyVault { get; } + public IDictionary Others { get; } /// - /// Setting for diagnosing dependent container registry + /// Setting for diagnosing resource lock /// /// To assign an object to the value of this property use . /// @@ -244,9 +244,9 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary ContainerRegistry { get; } + public IDictionary ResourceLock { get; } /// - /// Setting for diagnosing dependent application insights + /// Setting for diagnosing dependent storage account /// /// To assign an object to the value of this property use . /// @@ -275,9 +275,9 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary ApplicationInsights { get; } + public IDictionary StorageAccount { get; } /// - /// Setting for diagnosing unclassified category of problems + /// Setting for diagnosing user defined routing /// /// To assign an object to the value of this property use . /// @@ -306,6 +306,6 @@ public MachineLearningWorkspaceDiagnoseProperties() /// /// /// - public IDictionary Others { get; } + public IDictionary Udr { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.Serialization.cs index 1a2856907a50..0505f63e8df2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.Serialization.cs @@ -18,23 +18,13 @@ internal static MachineLearningWorkspaceGetKeysResult DeserializeMachineLearning { return null; } - Optional userStorageKey = default; - Optional userStorageResourceId = default; Optional appInsightsInstrumentationKey = default; Optional containerRegistryCredentials = default; Optional notebookAccessKeys = default; + Optional userStorageArmId = default; + Optional userStorageKey = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("userStorageKey"u8)) - { - userStorageKey = property.Value.GetString(); - continue; - } - if (property.NameEquals("userStorageResourceId"u8)) - { - userStorageResourceId = property.Value.GetString(); - continue; - } if (property.NameEquals("appInsightsInstrumentationKey"u8)) { appInsightsInstrumentationKey = property.Value.GetString(); @@ -58,8 +48,18 @@ internal static MachineLearningWorkspaceGetKeysResult DeserializeMachineLearning notebookAccessKeys = MachineLearningWorkspaceGetNotebookKeysResult.DeserializeMachineLearningWorkspaceGetNotebookKeysResult(property.Value); continue; } + if (property.NameEquals("userStorageArmId"u8)) + { + userStorageArmId = property.Value.GetString(); + continue; + } + if (property.NameEquals("userStorageKey"u8)) + { + userStorageKey = property.Value.GetString(); + continue; + } } - return new MachineLearningWorkspaceGetKeysResult(userStorageKey.Value, userStorageResourceId.Value, appInsightsInstrumentationKey.Value, containerRegistryCredentials.Value, notebookAccessKeys.Value); + return new MachineLearningWorkspaceGetKeysResult(appInsightsInstrumentationKey.Value, containerRegistryCredentials.Value, notebookAccessKeys.Value, userStorageArmId.Value, userStorageKey.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.cs index ac771dcad1dc..6a4526c864a2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.cs @@ -16,29 +16,29 @@ internal MachineLearningWorkspaceGetKeysResult() } /// Initializes a new instance of MachineLearningWorkspaceGetKeysResult. - /// - /// - /// + /// The access key of the workspace app insights. /// /// - internal MachineLearningWorkspaceGetKeysResult(string userStorageKey, string userStorageResourceId, string appInsightsInstrumentationKey, MachineLearningContainerRegistryCredentials containerRegistryCredentials, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys) + /// The arm Id key of the workspace storage. + /// The access key of the workspace storage. + internal MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey, MachineLearningContainerRegistryCredentials containerRegistryCredentials, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys, string userStorageArmId, string userStorageKey) { - UserStorageKey = userStorageKey; - UserStorageResourceId = userStorageResourceId; AppInsightsInstrumentationKey = appInsightsInstrumentationKey; ContainerRegistryCredentials = containerRegistryCredentials; NotebookAccessKeys = notebookAccessKeys; + UserStorageArmId = userStorageArmId; + UserStorageKey = userStorageKey; } - /// Gets the user storage key. - public string UserStorageKey { get; } - /// Gets the user storage resource id. - public string UserStorageResourceId { get; } - /// Gets the app insights instrumentation key. + /// The access key of the workspace app insights. public string AppInsightsInstrumentationKey { get; } /// Gets the container registry credentials. public MachineLearningContainerRegistryCredentials ContainerRegistryCredentials { get; } /// Gets the notebook access keys. public MachineLearningWorkspaceGetNotebookKeysResult NotebookAccessKeys { get; } + /// The arm Id key of the workspace storage. + public string UserStorageArmId { get; } + /// The access key of the workspace storage. + public string UserStorageKey { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetNotebookKeysResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetNotebookKeysResult.cs index 97637b3ab29e..4743f37b83dc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetNotebookKeysResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetNotebookKeysResult.cs @@ -16,17 +16,17 @@ internal MachineLearningWorkspaceGetNotebookKeysResult() } /// Initializes a new instance of MachineLearningWorkspaceGetNotebookKeysResult. - /// - /// + /// The primary access key of the Notebook. + /// The secondary access key of the Notebook. internal MachineLearningWorkspaceGetNotebookKeysResult(string primaryAccessKey, string secondaryAccessKey) { PrimaryAccessKey = primaryAccessKey; SecondaryAccessKey = secondaryAccessKey; } - /// Gets the primary access key. + /// The primary access key of the Notebook. public string PrimaryAccessKey { get; } - /// Gets the secondary access key. + /// The secondary access key of the Notebook. public string SecondaryAccessKey { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetStorageAccountKeysResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetStorageAccountKeysResult.cs index bdea0928ba8f..62686f352542 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetStorageAccountKeysResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetStorageAccountKeysResult.cs @@ -16,13 +16,13 @@ internal MachineLearningWorkspaceGetStorageAccountKeysResult() } /// Initializes a new instance of MachineLearningWorkspaceGetStorageAccountKeysResult. - /// + /// The access key of the storage. internal MachineLearningWorkspaceGetStorageAccountKeysResult(string userStorageKey) { UserStorageKey = userStorageKey; } - /// Gets the user storage key. + /// The access key of the storage. public string UserStorageKey { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceNotebookAccessTokenResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceNotebookAccessTokenResult.Serialization.cs index e8bb183e7c0d..0f5697d64c19 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceNotebookAccessTokenResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceNotebookAccessTokenResult.Serialization.cs @@ -18,48 +18,43 @@ internal static MachineLearningWorkspaceNotebookAccessTokenResult DeserializeMac { return null; } - Optional notebookResourceId = default; - Optional hostName = default; - Optional publicDns = default; Optional accessToken = default; - Optional tokenType = default; Optional expiresIn = default; + Optional hostName = default; + Optional notebookResourceId = default; + Optional publicDns = default; Optional refreshToken = default; Optional scope = default; + Optional tokenType = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("notebookResourceId"u8)) - { - notebookResourceId = property.Value.GetString(); - continue; - } - if (property.NameEquals("hostName"u8)) + if (property.NameEquals("accessToken"u8)) { - hostName = property.Value.GetString(); + accessToken = property.Value.GetString(); continue; } - if (property.NameEquals("publicDns"u8)) + if (property.NameEquals("expiresIn"u8)) { - publicDns = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiresIn = property.Value.GetInt32(); continue; } - if (property.NameEquals("accessToken"u8)) + if (property.NameEquals("hostName"u8)) { - accessToken = property.Value.GetString(); + hostName = property.Value.GetString(); continue; } - if (property.NameEquals("tokenType"u8)) + if (property.NameEquals("notebookResourceId"u8)) { - tokenType = property.Value.GetString(); + notebookResourceId = property.Value.GetString(); continue; } - if (property.NameEquals("expiresIn"u8)) + if (property.NameEquals("publicDns"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - expiresIn = property.Value.GetInt32(); + publicDns = property.Value.GetString(); continue; } if (property.NameEquals("refreshToken"u8)) @@ -72,8 +67,13 @@ internal static MachineLearningWorkspaceNotebookAccessTokenResult DeserializeMac scope = property.Value.GetString(); continue; } + if (property.NameEquals("tokenType"u8)) + { + tokenType = property.Value.GetString(); + continue; + } } - return new MachineLearningWorkspaceNotebookAccessTokenResult(notebookResourceId.Value, hostName.Value, publicDns.Value, accessToken.Value, tokenType.Value, Optional.ToNullable(expiresIn), refreshToken.Value, scope.Value); + return new MachineLearningWorkspaceNotebookAccessTokenResult(accessToken.Value, Optional.ToNullable(expiresIn), hostName.Value, notebookResourceId.Value, publicDns.Value, refreshToken.Value, scope.Value, tokenType.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceNotebookAccessTokenResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceNotebookAccessTokenResult.cs index 5f3c95cb6098..3d4134bf9174 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceNotebookAccessTokenResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceNotebookAccessTokenResult.cs @@ -16,41 +16,41 @@ internal MachineLearningWorkspaceNotebookAccessTokenResult() } /// Initializes a new instance of MachineLearningWorkspaceNotebookAccessTokenResult. - /// - /// - /// /// - /// /// + /// + /// + /// /// /// - internal MachineLearningWorkspaceNotebookAccessTokenResult(string notebookResourceId, string hostName, string publicDns, string accessToken, string tokenType, int? expiresIn, string refreshToken, string scope) + /// + internal MachineLearningWorkspaceNotebookAccessTokenResult(string accessToken, int? expiresIn, string hostName, string notebookResourceId, string publicDns, string refreshToken, string scope, string tokenType) { - NotebookResourceId = notebookResourceId; - HostName = hostName; - PublicDns = publicDns; AccessToken = accessToken; - TokenType = tokenType; ExpiresIn = expiresIn; + HostName = hostName; + NotebookResourceId = notebookResourceId; + PublicDns = publicDns; RefreshToken = refreshToken; Scope = scope; + TokenType = tokenType; } - /// Gets the notebook resource id. - public string NotebookResourceId { get; } - /// Gets the host name. - public string HostName { get; } - /// Gets the public dns. - public string PublicDns { get; } /// Gets the access token. public string AccessToken { get; } - /// Gets the token type. - public string TokenType { get; } /// Gets the expires in. public int? ExpiresIn { get; } + /// Gets the host name. + public string HostName { get; } + /// Gets the notebook resource id. + public string NotebookResourceId { get; } + /// Gets the public dns. + public string PublicDns { get; } /// Gets the refresh token. public string RefreshToken { get; } /// Gets the scope. public string Scope { get; } + /// Gets the token type. + public string TokenType { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.Serialization.cs index 308d53e2bc91..8892575b9c10 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.Serialization.cs @@ -16,6 +16,17 @@ public partial class MachineLearningWorkspacePatch : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); + } + if (Optional.IsDefined(Sku)) + { + writer.WritePropertyName("sku"u8); + writer.WriteObjectValue(Sku); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); @@ -27,24 +38,38 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsDefined(Sku)) + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(ApplicationInsights)) { - writer.WritePropertyName("sku"u8); - writer.WriteObjectValue(Sku); + writer.WritePropertyName("applicationInsights"u8); + writer.WriteStringValue(ApplicationInsights); } - if (Optional.IsDefined(Identity)) + if (Optional.IsDefined(ContainerRegistry)) { - writer.WritePropertyName("identity"u8); - var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; - JsonSerializer.Serialize(writer, Identity, serializeOptions); + writer.WritePropertyName("containerRegistry"u8); + writer.WriteStringValue(ContainerRegistry); } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); if (Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } + if (Optional.IsDefined(EnableDataIsolation)) + { + writer.WritePropertyName("enableDataIsolation"u8); + writer.WriteBooleanValue(EnableDataIsolation.Value); + } + if (Optional.IsDefined(Encryption)) + { + writer.WritePropertyName("encryption"u8); + writer.WriteObjectValue(Encryption); + } + if (Optional.IsDefined(FeatureStoreSettings)) + { + writer.WritePropertyName("featureStoreSettings"u8); + writer.WriteObjectValue(FeatureStoreSettings); + } if (Optional.IsDefined(FriendlyName)) { writer.WritePropertyName("friendlyName"u8); @@ -55,10 +80,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("imageBuildCompute"u8); writer.WriteStringValue(ImageBuildCompute); } - if (Optional.IsDefined(ServiceManagedResourcesSettings)) + if (Optional.IsDefined(ManagedNetwork)) { - writer.WritePropertyName("serviceManagedResourcesSettings"u8); - writer.WriteObjectValue(ServiceManagedResourcesSettings); + writer.WritePropertyName("managedNetwork"u8); + writer.WriteObjectValue(ManagedNetwork); } if (Optional.IsDefined(PrimaryUserAssignedIdentity)) { @@ -70,15 +95,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("publicNetworkAccess"u8); writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); } - if (Optional.IsDefined(ApplicationInsights)) + if (Optional.IsDefined(ServiceManagedResourcesSettings)) { - writer.WritePropertyName("applicationInsights"u8); - writer.WriteStringValue(ApplicationInsights); + writer.WritePropertyName("serviceManagedResourcesSettings"u8); + writer.WriteObjectValue(ServiceManagedResourcesSettings); } - if (Optional.IsDefined(ContainerRegistry)) + if (Optional.IsDefined(SoftDeleteRetentionInDays)) { - writer.WritePropertyName("containerRegistry"u8); - writer.WriteStringValue(ContainerRegistry); + writer.WritePropertyName("softDeleteRetentionInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionInDays.Value); + } + if (Optional.IsDefined(V1LegacyMode)) + { + writer.WritePropertyName("v1LegacyMode"u8); + writer.WriteBooleanValue(V1LegacyMode.Value); } writer.WriteEndObject(); writer.WriteEndObject(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.cs index 23edc0aff4a1..a92f861c5cb3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.cs @@ -20,21 +20,44 @@ public MachineLearningWorkspacePatch() Tags = new ChangeTrackingDictionary(); } + /// Managed service identity (system assigned and/or user assigned identities). + public ManagedServiceIdentity Identity { get; set; } + /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. + public MachineLearningSku Sku { get; set; } /// The resource tags for the machine learning workspace. public IDictionary Tags { get; } - /// The sku of the workspace. - public MachineLearningSku Sku { get; set; } - /// The identity of the resource. - public ManagedServiceIdentity Identity { get; set; } + /// ARM id of the application insights associated with this workspace. + public string ApplicationInsights { get; set; } + /// ARM id of the container registry associated with this workspace. + public string ContainerRegistry { get; set; } /// The description of this workspace. public string Description { get; set; } - /// The friendly name for this workspace. + /// Gets or sets the enable data isolation. + public bool? EnableDataIsolation { get; set; } + /// Gets or sets the encryption. + internal EncryptionUpdateProperties Encryption { get; set; } + /// Gets or sets the key identifier. + public string KeyIdentifier + { + get => Encryption is null ? default : Encryption.KeyIdentifier; + set => Encryption = new EncryptionUpdateProperties(value); + } + + /// Settings for feature store type workspace. + public FeatureStoreSettings FeatureStoreSettings { get; set; } + /// The friendly name for this workspace. This name in mutable. public string FriendlyName { get; set; } /// The compute name for image build. public string ImageBuildCompute { get; set; } + /// Managed Network settings for a machine learning workspace. + public ManagedNetworkSettings ManagedNetwork { get; set; } + /// The user assigned identity resource id that represents the workspace identity. + public string PrimaryUserAssignedIdentity { get; set; } + /// Whether requests from Public Network are allowed. + public MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get; set; } /// The service managed resource settings. internal ServiceManagedResourcesSettings ServiceManagedResourcesSettings { get; set; } - /// The throughput of the collections in cosmosdb database. + /// Gets or sets the cosmos db collections throughput. public int? CosmosDbCollectionsThroughput { get => ServiceManagedResourcesSettings is null ? default : ServiceManagedResourcesSettings.CosmosDbCollectionsThroughput; @@ -46,13 +69,9 @@ public int? CosmosDbCollectionsThroughput } } - /// The user assigned identity resource id that represents the workspace identity. - public string PrimaryUserAssignedIdentity { get; set; } - /// Whether requests from Public Network are allowed. - public MachineLearningPublicNetworkAccess? PublicNetworkAccess { get; set; } - /// ARM id of the application insights associated with this workspace. - public string ApplicationInsights { get; set; } - /// ARM id of the container registry associated with this workspace. - public string ContainerRegistry { get; set; } + /// Retention time in days after workspace get soft deleted. + public int? SoftDeleteRetentionInDays { get; set; } + /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. + public bool? V1LegacyMode { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedComputeIdentity.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedComputeIdentity.Serialization.cs new file mode 100644 index 000000000000..11c4df887425 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedComputeIdentity.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ManagedComputeIdentity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); + } + writer.WritePropertyName("computeIdentityType"u8); + writer.WriteStringValue(ComputeIdentityType.ToString()); + writer.WriteEndObject(); + } + + internal static ManagedComputeIdentity DeserializeManagedComputeIdentity(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional identity = default; + MonitorComputeIdentityType computeIdentityType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + identity = JsonSerializer.Deserialize(property.Value.GetRawText(), serializeOptions); + continue; + } + if (property.NameEquals("computeIdentityType"u8)) + { + computeIdentityType = new MonitorComputeIdentityType(property.Value.GetString()); + continue; + } + } + return new ManagedComputeIdentity(computeIdentityType, identity); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedComputeIdentity.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedComputeIdentity.cs new file mode 100644 index 000000000000..1cb4caba91c2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedComputeIdentity.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Managed compute identity definition. + public partial class ManagedComputeIdentity : MonitorComputeIdentityBase + { + /// Initializes a new instance of ManagedComputeIdentity. + public ManagedComputeIdentity() + { + ComputeIdentityType = MonitorComputeIdentityType.ManagedIdentity; + } + + /// Initializes a new instance of ManagedComputeIdentity. + /// [Required] Monitor compute identity type enum. + /// Managed service identity (system assigned and/or user assigned identities). + internal ManagedComputeIdentity(MonitorComputeIdentityType computeIdentityType, ManagedServiceIdentity identity) : base(computeIdentityType) + { + Identity = identity; + ComputeIdentityType = computeIdentityType; + } + + /// Managed service identity (system assigned and/or user assigned identities). + public ManagedServiceIdentity Identity { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionContent.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionContent.Serialization.cs new file mode 100644 index 000000000000..e75a26dabfbb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionContent.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ManagedNetworkProvisionContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IncludeSpark)) + { + writer.WritePropertyName("includeSpark"u8); + writer.WriteBooleanValue(IncludeSpark.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionContent.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionContent.cs new file mode 100644 index 000000000000..80dd87279418 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionContent.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Managed Network Provisioning options for managed network of a machine learning workspace. + public partial class ManagedNetworkProvisionContent + { + /// Initializes a new instance of ManagedNetworkProvisionContent. + public ManagedNetworkProvisionContent() + { + } + + /// Gets or sets the include spark. + public bool? IncludeSpark { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionStatus.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionStatus.Serialization.cs new file mode 100644 index 000000000000..fba4c4402aa0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionStatus.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ManagedNetworkProvisionStatus : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(SparkReady)) + { + writer.WritePropertyName("sparkReady"u8); + writer.WriteBooleanValue(SparkReady.Value); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static ManagedNetworkProvisionStatus DeserializeManagedNetworkProvisionStatus(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional sparkReady = default; + Optional status = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sparkReady"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sparkReady = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new ManagedNetworkStatus(property.Value.GetString()); + continue; + } + } + return new ManagedNetworkProvisionStatus(Optional.ToNullable(sparkReady), Optional.ToNullable(status)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionStatus.cs new file mode 100644 index 000000000000..4eb73c776dea --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkProvisionStatus.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Status of the Provisioning for the managed network of a machine learning workspace. + public partial class ManagedNetworkProvisionStatus + { + /// Initializes a new instance of ManagedNetworkProvisionStatus. + public ManagedNetworkProvisionStatus() + { + } + + /// Initializes a new instance of ManagedNetworkProvisionStatus. + /// + /// Status for the managed network of a machine learning workspace. + internal ManagedNetworkProvisionStatus(bool? sparkReady, ManagedNetworkStatus? status) + { + SparkReady = sparkReady; + Status = status; + } + + /// Gets or sets the spark ready. + public bool? SparkReady { get; set; } + /// Status for the managed network of a machine learning workspace. + public ManagedNetworkStatus? Status { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.Serialization.cs new file mode 100644 index 000000000000..c81a69b38164 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.Serialization.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ManagedNetworkSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsolationMode)) + { + writer.WritePropertyName("isolationMode"u8); + writer.WriteStringValue(IsolationMode.Value.ToString()); + } + if (Optional.IsCollectionDefined(OutboundRules)) + { + if (OutboundRules != null) + { + writer.WritePropertyName("outboundRules"u8); + writer.WriteStartObject(); + foreach (var item in OutboundRules) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("outboundRules"); + } + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteObjectValue(Status); + } + writer.WriteEndObject(); + } + + internal static ManagedNetworkSettings DeserializeManagedNetworkSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional isolationMode = default; + Optional networkId = default; + Optional> outboundRules = default; + Optional status = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("isolationMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isolationMode = new IsolationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("networkId"u8)) + { + networkId = property.Value.GetString(); + continue; + } + if (property.NameEquals("outboundRules"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + outboundRules = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, OutboundRule.DeserializeOutboundRule(property0.Value)); + } + outboundRules = dictionary; + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = ManagedNetworkProvisionStatus.DeserializeManagedNetworkProvisionStatus(property.Value); + continue; + } + } + return new ManagedNetworkSettings(Optional.ToNullable(isolationMode), networkId.Value, Optional.ToDictionary(outboundRules), status.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.cs new file mode 100644 index 000000000000..2646aacfce37 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Managed Network settings for a machine learning workspace. + public partial class ManagedNetworkSettings + { + /// Initializes a new instance of ManagedNetworkSettings. + public ManagedNetworkSettings() + { + OutboundRules = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of ManagedNetworkSettings. + /// Isolation mode for the managed network of a machine learning workspace. + /// + /// + /// Dictionary of <OutboundRule> + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Status of the Provisioning for the managed network of a machine learning workspace. + internal ManagedNetworkSettings(IsolationMode? isolationMode, string networkId, IDictionary outboundRules, ManagedNetworkProvisionStatus status) + { + IsolationMode = isolationMode; + NetworkId = networkId; + OutboundRules = outboundRules; + Status = status; + } + + /// Isolation mode for the managed network of a machine learning workspace. + public IsolationMode? IsolationMode { get; set; } + /// Gets the network id. + public string NetworkId { get; } + /// + /// Dictionary of <OutboundRule> + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public IDictionary OutboundRules { get; set; } + /// Status of the Provisioning for the managed network of a machine learning workspace. + public ManagedNetworkProvisionStatus Status { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkStatus.cs new file mode 100644 index 000000000000..0ddfa482a044 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkStatus.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Status for the managed network of a machine learning workspace. + public readonly partial struct ManagedNetworkStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedNetworkStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InactiveValue = "Inactive"; + private const string ActiveValue = "Active"; + + /// Inactive. + public static ManagedNetworkStatus Inactive { get; } = new ManagedNetworkStatus(InactiveValue); + /// Active. + public static ManagedNetworkStatus Active { get; } = new ManagedNetworkStatus(ActiveValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedNetworkStatus left, ManagedNetworkStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedNetworkStatus left, ManagedNetworkStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagedNetworkStatus(string value) => new ManagedNetworkStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedNetworkStatus other && Equals(other); + /// + public bool Equals(ManagedNetworkStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationComputeResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationComputeResource.Serialization.cs new file mode 100644 index 000000000000..6d0e6940ff5a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationComputeResource.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class MaterializationComputeResource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(InstanceType)) + { + if (InstanceType != null) + { + writer.WritePropertyName("instanceType"u8); + writer.WriteStringValue(InstanceType); + } + else + { + writer.WriteNull("instanceType"); + } + } + writer.WriteEndObject(); + } + + internal static MaterializationComputeResource DeserializeMaterializationComputeResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional instanceType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("instanceType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + instanceType = null; + continue; + } + instanceType = property.Value.GetString(); + continue; + } + } + return new MaterializationComputeResource(instanceType.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationComputeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationComputeResource.cs new file mode 100644 index 000000000000..73f5a582742e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationComputeResource.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Dto object representing compute resource. + internal partial class MaterializationComputeResource + { + /// Initializes a new instance of MaterializationComputeResource. + public MaterializationComputeResource() + { + } + + /// Initializes a new instance of MaterializationComputeResource. + /// Specifies the instance type. + internal MaterializationComputeResource(string instanceType) + { + InstanceType = instanceType; + } + + /// Specifies the instance type. + public string InstanceType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationSettings.Serialization.cs new file mode 100644 index 000000000000..d8139b398c3c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationSettings.Serialization.cs @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MaterializationSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Notification)) + { + if (Notification != null) + { + writer.WritePropertyName("notification"u8); + writer.WriteObjectValue(Notification); + } + else + { + writer.WriteNull("notification"); + } + } + if (Optional.IsDefined(Resource)) + { + if (Resource != null) + { + writer.WritePropertyName("resource"u8); + writer.WriteObjectValue(Resource); + } + else + { + writer.WriteNull("resource"); + } + } + if (Optional.IsDefined(Schedule)) + { + if (Schedule != null) + { + writer.WritePropertyName("schedule"u8); + writer.WriteObjectValue(Schedule); + } + else + { + writer.WriteNull("schedule"); + } + } + if (Optional.IsCollectionDefined(SparkConfiguration)) + { + if (SparkConfiguration != null) + { + writer.WritePropertyName("sparkConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SparkConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("sparkConfiguration"); + } + } + if (Optional.IsDefined(StoreType)) + { + writer.WritePropertyName("storeType"u8); + writer.WriteStringValue(StoreType.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static MaterializationSettings DeserializeMaterializationSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional notification = default; + Optional resource = default; + Optional schedule = default; + Optional> sparkConfiguration = default; + Optional storeType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("notification"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + notification = null; + continue; + } + notification = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("resource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resource = null; + continue; + } + resource = MaterializationComputeResource.DeserializeMaterializationComputeResource(property.Value); + continue; + } + if (property.NameEquals("schedule"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + schedule = null; + continue; + } + schedule = MachineLearningRecurrenceTrigger.DeserializeMachineLearningRecurrenceTrigger(property.Value); + continue; + } + if (property.NameEquals("sparkConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sparkConfiguration = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + sparkConfiguration = dictionary; + continue; + } + if (property.NameEquals("storeType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storeType = new MaterializationStoreType(property.Value.GetString()); + continue; + } + } + return new MaterializationSettings(notification.Value, resource.Value, schedule.Value, Optional.ToDictionary(sparkConfiguration), Optional.ToNullable(storeType)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationSettings.cs new file mode 100644 index 000000000000..da07f37563df --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationSettings.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MaterializationSettings. + public partial class MaterializationSettings + { + /// Initializes a new instance of MaterializationSettings. + public MaterializationSettings() + { + SparkConfiguration = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of MaterializationSettings. + /// Specifies the notification details. + /// Specifies the compute resource settings. + /// Specifies the schedule details. + /// Specifies the spark compute settings. + /// Specifies the stores to which materialization should happen. + internal MaterializationSettings(NotificationSetting notification, MaterializationComputeResource resource, MachineLearningRecurrenceTrigger schedule, IDictionary sparkConfiguration, MaterializationStoreType? storeType) + { + Notification = notification; + Resource = resource; + Schedule = schedule; + SparkConfiguration = sparkConfiguration; + StoreType = storeType; + } + + /// Specifies the notification details. + public NotificationSetting Notification { get; set; } + /// Specifies the compute resource settings. + internal MaterializationComputeResource Resource { get; set; } + /// Specifies the instance type. + public string ResourceInstanceType + { + get => Resource is null ? default : Resource.InstanceType; + set + { + if (Resource is null) + Resource = new MaterializationComputeResource(); + Resource.InstanceType = value; + } + } + + /// Specifies the schedule details. + public MachineLearningRecurrenceTrigger Schedule { get; set; } + /// Specifies the spark compute settings. + public IDictionary SparkConfiguration { get; set; } + /// Specifies the stores to which materialization should happen. + public MaterializationStoreType? StoreType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationStoreType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationStoreType.cs new file mode 100644 index 000000000000..d2b2e2734f22 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MaterializationStoreType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MaterializationStoreType. + public readonly partial struct MaterializationStoreType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MaterializationStoreType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string OnlineValue = "Online"; + private const string OfflineValue = "Offline"; + private const string OnlineAndOfflineValue = "OnlineAndOffline"; + + /// None. + public static MaterializationStoreType None { get; } = new MaterializationStoreType(NoneValue); + /// Online. + public static MaterializationStoreType Online { get; } = new MaterializationStoreType(OnlineValue); + /// Offline. + public static MaterializationStoreType Offline { get; } = new MaterializationStoreType(OfflineValue); + /// OnlineAndOffline. + public static MaterializationStoreType OnlineAndOffline { get; } = new MaterializationStoreType(OnlineAndOfflineValue); + /// Determines if two values are the same. + public static bool operator ==(MaterializationStoreType left, MaterializationStoreType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MaterializationStoreType left, MaterializationStoreType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MaterializationStoreType(string value) => new MaterializationStoreType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MaterializationStoreType other && Equals(other); + /// + public bool Equals(MaterializationStoreType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MediaType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MediaType.cs new file mode 100644 index 000000000000..f7345938615c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MediaType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Media type of data asset. + internal readonly partial struct MediaType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MediaType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ImageValue = "Image"; + private const string TextValue = "Text"; + + /// Image. + public static MediaType Image { get; } = new MediaType(ImageValue); + /// Text. + public static MediaType Text { get; } = new MediaType(TextValue); + /// Determines if two values are the same. + public static bool operator ==(MediaType left, MediaType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MediaType left, MediaType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MediaType(string value) => new MediaType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MediaType other && Equals(other); + /// + public bool Equals(MediaType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MlflowAutologger.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MlflowAutologger.cs new file mode 100644 index 000000000000..d612008a14fe --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MlflowAutologger.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Indicates whether mlflow autologger is enabled for notebooks. + public readonly partial struct MlflowAutologger : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MlflowAutologger(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MlflowAutologger Enabled { get; } = new MlflowAutologger(EnabledValue); + /// Disabled. + public static MlflowAutologger Disabled { get; } = new MlflowAutologger(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MlflowAutologger left, MlflowAutologger right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MlflowAutologger left, MlflowAutologger right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MlflowAutologger(string value) => new MlflowAutologger(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MlflowAutologger other && Equals(other); + /// + public bool Equals(MlflowAutologger other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelConfiguration.Serialization.cs new file mode 100644 index 000000000000..9fca632b4825 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelConfiguration.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ModelConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsDefined(MountPath)) + { + if (MountPath != null) + { + writer.WritePropertyName("mountPath"u8); + writer.WriteStringValue(MountPath); + } + else + { + writer.WriteNull("mountPath"); + } + } + writer.WriteEndObject(); + } + + internal static ModelConfiguration DeserializeModelConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional mode = default; + Optional mountPath = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new PackageInputDeliveryMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("mountPath"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + mountPath = null; + continue; + } + mountPath = property.Value.GetString(); + continue; + } + } + return new ModelConfiguration(Optional.ToNullable(mode), mountPath.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelConfiguration.cs new file mode 100644 index 000000000000..1d33bd9537e6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelConfiguration.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Model configuration options. + public partial class ModelConfiguration + { + /// Initializes a new instance of ModelConfiguration. + public ModelConfiguration() + { + } + + /// Initializes a new instance of ModelConfiguration. + /// Input delivery mode for the model. + /// Relative mounting path of the model in the target image. + internal ModelConfiguration(PackageInputDeliveryMode? mode, string mountPath) + { + Mode = mode; + MountPath = mountPath; + } + + /// Input delivery mode for the model. + public PackageInputDeliveryMode? Mode { get; set; } + /// Relative mounting path of the model in the target image. + public string MountPath { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageInput.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageInput.Serialization.cs new file mode 100644 index 000000000000..2ce1b9141cef --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageInput.Serialization.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ModelPackageInput : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("inputType"u8); + writer.WriteStringValue(InputType.ToString()); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsDefined(MountPath)) + { + if (MountPath != null) + { + writer.WritePropertyName("mountPath"u8); + writer.WriteStringValue(MountPath); + } + else + { + writer.WriteNull("mountPath"); + } + } + writer.WritePropertyName("path"u8); + writer.WriteObjectValue(Path); + writer.WriteEndObject(); + } + + internal static ModelPackageInput DeserializeModelPackageInput(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + PackageInputType inputType = default; + Optional mode = default; + Optional mountPath = default; + PackageInputPathBase path = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("inputType"u8)) + { + inputType = new PackageInputType(property.Value.GetString()); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new PackageInputDeliveryMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("mountPath"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + mountPath = null; + continue; + } + mountPath = property.Value.GetString(); + continue; + } + if (property.NameEquals("path"u8)) + { + path = PackageInputPathBase.DeserializePackageInputPathBase(property.Value); + continue; + } + } + return new ModelPackageInput(inputType, Optional.ToNullable(mode), mountPath.Value, path); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageInput.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageInput.cs new file mode 100644 index 000000000000..52c9ae847ec3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageInput.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Model package input options. + public partial class ModelPackageInput + { + /// Initializes a new instance of ModelPackageInput. + /// [Required] Type of the input included in the target image. + /// + /// [Required] Location of the input. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// is null. + public ModelPackageInput(PackageInputType inputType, PackageInputPathBase path) + { + Argument.AssertNotNull(path, nameof(path)); + + InputType = inputType; + Path = path; + } + + /// Initializes a new instance of ModelPackageInput. + /// [Required] Type of the input included in the target image. + /// Input delivery mode of the input. + /// Relative mount path of the input in the target image. + /// + /// [Required] Location of the input. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + internal ModelPackageInput(PackageInputType inputType, PackageInputDeliveryMode? mode, string mountPath, PackageInputPathBase path) + { + InputType = inputType; + Mode = mode; + MountPath = mountPath; + Path = path; + } + + /// [Required] Type of the input included in the target image. + public PackageInputType InputType { get; set; } + /// Input delivery mode of the input. + public PackageInputDeliveryMode? Mode { get; set; } + /// Relative mount path of the input in the target image. + public string MountPath { get; set; } + /// + /// [Required] Location of the input. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public PackageInputPathBase Path { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceMetricThresholdBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceMetricThresholdBase.Serialization.cs new file mode 100644 index 000000000000..c68b1504d3b3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceMetricThresholdBase.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ModelPerformanceMetricThresholdBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("modelType"u8); + writer.WriteStringValue(ModelType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static ModelPerformanceMetricThresholdBase DeserializeModelPerformanceMetricThresholdBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("modelType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Classification": return ClassificationModelPerformanceMetricThreshold.DeserializeClassificationModelPerformanceMetricThreshold(element); + case "Regression": return RegressionModelPerformanceMetricThreshold.DeserializeRegressionModelPerformanceMetricThreshold(element); + } + } + return UnknownModelPerformanceMetricThresholdBase.DeserializeUnknownModelPerformanceMetricThresholdBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceMetricThresholdBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceMetricThresholdBase.cs new file mode 100644 index 000000000000..39ec2a4a1766 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceMetricThresholdBase.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The ModelPerformanceMetricThresholdBase. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class ModelPerformanceMetricThresholdBase + { + /// Initializes a new instance of ModelPerformanceMetricThresholdBase. + protected ModelPerformanceMetricThresholdBase() + { + } + + /// Initializes a new instance of ModelPerformanceMetricThresholdBase. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal ModelPerformanceMetricThresholdBase(MonitoringModelType modelType, MonitoringThreshold threshold) + { + ModelType = modelType; + Threshold = threshold; + } + + /// [Required] Specifies the data type of the metric threshold. + internal MonitoringModelType ModelType { get; set; } + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal MonitoringThreshold Threshold { get; set; } + /// The threshold value. If null, the set default is dependent on the metric type. + public double? ThresholdValue + { + get => Threshold is null ? default : Threshold.Value; + set + { + if (Threshold is null) + Threshold = new MonitoringThreshold(); + Threshold.Value = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceSignal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceSignal.Serialization.cs new file mode 100644 index 000000000000..61f060ae0850 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceSignal.Serialization.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ModelPerformanceSignal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DataSegment)) + { + if (DataSegment != null) + { + writer.WritePropertyName("dataSegment"u8); + writer.WriteObjectValue(DataSegment); + } + else + { + writer.WriteNull("dataSegment"); + } + } + writer.WritePropertyName("metricThreshold"u8); + writer.WriteObjectValue(MetricThreshold); + writer.WritePropertyName("productionData"u8); + writer.WriteStartArray(); + foreach (var item in ProductionData) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("referenceData"u8); + writer.WriteObjectValue(ReferenceData); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static ModelPerformanceSignal DeserializeModelPerformanceSignal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional dataSegment = default; + ModelPerformanceMetricThresholdBase metricThreshold = default; + IList productionData = default; + MonitoringInputDataBase referenceData = default; + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dataSegment"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataSegment = null; + continue; + } + dataSegment = MonitoringDataSegment.DeserializeMonitoringDataSegment(property.Value); + continue; + } + if (property.NameEquals("metricThreshold"u8)) + { + metricThreshold = ModelPerformanceMetricThresholdBase.DeserializeModelPerformanceMetricThresholdBase(property.Value); + continue; + } + if (property.NameEquals("productionData"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MonitoringInputDataBase.DeserializeMonitoringInputDataBase(item)); + } + productionData = array; + continue; + } + if (property.NameEquals("referenceData"u8)) + { + referenceData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new ModelPerformanceSignal(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType, dataSegment.Value, metricThreshold, productionData, referenceData); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceSignal.cs new file mode 100644 index 000000000000..1a5a04d041e7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPerformanceSignal.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Model performance signal definition. + public partial class ModelPerformanceSignal : MonitoringSignalBase + { + /// Initializes a new instance of ModelPerformanceSignal. + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// [Required] The data produced by the production service which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// , or is null. + public ModelPerformanceSignal(ModelPerformanceMetricThresholdBase metricThreshold, IEnumerable productionData, MonitoringInputDataBase referenceData) + { + Argument.AssertNotNull(metricThreshold, nameof(metricThreshold)); + Argument.AssertNotNull(productionData, nameof(productionData)); + Argument.AssertNotNull(referenceData, nameof(referenceData)); + + MetricThreshold = metricThreshold; + ProductionData = productionData.ToList(); + ReferenceData = referenceData; + SignalType = MonitoringSignalType.ModelPerformance; + } + + /// Initializes a new instance of ModelPerformanceSignal. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + /// The data segment. + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// [Required] The data produced by the production service which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + internal ModelPerformanceSignal(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType, MonitoringDataSegment dataSegment, ModelPerformanceMetricThresholdBase metricThreshold, IList productionData, MonitoringInputDataBase referenceData) : base(mode, properties, signalType) + { + DataSegment = dataSegment; + MetricThreshold = metricThreshold; + ProductionData = productionData; + ReferenceData = referenceData; + SignalType = signalType; + } + + /// The data segment. + public MonitoringDataSegment DataSegment { get; set; } + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public ModelPerformanceMetricThresholdBase MetricThreshold { get; set; } + /// + /// [Required] The data produced by the production service which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public IList ProductionData { get; } + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ReferenceData { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelTaskType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelTaskType.cs new file mode 100644 index 000000000000..35825c050882 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelTaskType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Model task type enum. + public readonly partial struct ModelTaskType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ModelTaskType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ClassificationValue = "Classification"; + private const string RegressionValue = "Regression"; + private const string QuestionAnsweringValue = "QuestionAnswering"; + + /// Classification. + public static ModelTaskType Classification { get; } = new ModelTaskType(ClassificationValue); + /// Regression. + public static ModelTaskType Regression { get; } = new ModelTaskType(RegressionValue); + /// QuestionAnswering. + public static ModelTaskType QuestionAnswering { get; } = new ModelTaskType(QuestionAnsweringValue); + /// Determines if two values are the same. + public static bool operator ==(ModelTaskType left, ModelTaskType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ModelTaskType left, ModelTaskType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ModelTaskType(string value) => new ModelTaskType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ModelTaskType other && Equals(other); + /// + public bool Equals(ModelTaskType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeConfigurationBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeConfigurationBase.Serialization.cs new file mode 100644 index 000000000000..c15bbff07d1c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeConfigurationBase.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitorComputeConfigurationBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("computeType"u8); + writer.WriteStringValue(ComputeType.ToString()); + writer.WriteEndObject(); + } + + internal static MonitorComputeConfigurationBase DeserializeMonitorComputeConfigurationBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("computeType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "ServerlessSpark": return MonitorServerlessSparkCompute.DeserializeMonitorServerlessSparkCompute(element); + } + } + return UnknownMonitorComputeConfigurationBase.DeserializeUnknownMonitorComputeConfigurationBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeConfigurationBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeConfigurationBase.cs new file mode 100644 index 000000000000..6bb735dd1faa --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeConfigurationBase.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Monitor compute configuration base definition. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class MonitorComputeConfigurationBase + { + /// Initializes a new instance of MonitorComputeConfigurationBase. + protected MonitorComputeConfigurationBase() + { + } + + /// Initializes a new instance of MonitorComputeConfigurationBase. + /// [Required] Specifies the type of signal to monitor. + internal MonitorComputeConfigurationBase(MonitorComputeType computeType) + { + ComputeType = computeType; + } + + /// [Required] Specifies the type of signal to monitor. + internal MonitorComputeType ComputeType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityBase.Serialization.cs new file mode 100644 index 000000000000..35c0adfa5364 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityBase.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitorComputeIdentityBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("computeIdentityType"u8); + writer.WriteStringValue(ComputeIdentityType.ToString()); + writer.WriteEndObject(); + } + + internal static MonitorComputeIdentityBase DeserializeMonitorComputeIdentityBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("computeIdentityType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "AmlToken": return AmlTokenComputeIdentity.DeserializeAmlTokenComputeIdentity(element); + case "ManagedIdentity": return ManagedComputeIdentity.DeserializeManagedComputeIdentity(element); + } + } + return UnknownMonitorComputeIdentityBase.DeserializeUnknownMonitorComputeIdentityBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityBase.cs new file mode 100644 index 000000000000..d4b306ac1845 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityBase.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Monitor compute identity base definition. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class MonitorComputeIdentityBase + { + /// Initializes a new instance of MonitorComputeIdentityBase. + protected MonitorComputeIdentityBase() + { + } + + /// Initializes a new instance of MonitorComputeIdentityBase. + /// [Required] Monitor compute identity type enum. + internal MonitorComputeIdentityBase(MonitorComputeIdentityType computeIdentityType) + { + ComputeIdentityType = computeIdentityType; + } + + /// [Required] Monitor compute identity type enum. + internal MonitorComputeIdentityType ComputeIdentityType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityType.cs new file mode 100644 index 000000000000..288ce3179b88 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeIdentityType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Monitor compute identity type enum. + internal readonly partial struct MonitorComputeIdentityType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitorComputeIdentityType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AmlTokenValue = "AmlToken"; + private const string ManagedIdentityValue = "ManagedIdentity"; + + /// Authenticates through user's AML token. + public static MonitorComputeIdentityType AmlToken { get; } = new MonitorComputeIdentityType(AmlTokenValue); + /// Authenticates through a user-provided managed identity. + public static MonitorComputeIdentityType ManagedIdentity { get; } = new MonitorComputeIdentityType(ManagedIdentityValue); + /// Determines if two values are the same. + public static bool operator ==(MonitorComputeIdentityType left, MonitorComputeIdentityType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitorComputeIdentityType left, MonitorComputeIdentityType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitorComputeIdentityType(string value) => new MonitorComputeIdentityType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitorComputeIdentityType other && Equals(other); + /// + public bool Equals(MonitorComputeIdentityType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeType.cs new file mode 100644 index 000000000000..9f34c8ddef24 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorComputeType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Monitor compute type enum. + internal readonly partial struct MonitorComputeType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitorComputeType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ServerlessSparkValue = "ServerlessSpark"; + + /// Serverless Spark compute. + public static MonitorComputeType ServerlessSpark { get; } = new MonitorComputeType(ServerlessSparkValue); + /// Determines if two values are the same. + public static bool operator ==(MonitorComputeType left, MonitorComputeType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitorComputeType left, MonitorComputeType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitorComputeType(string value) => new MonitorComputeType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitorComputeType other && Equals(other); + /// + public bool Equals(MonitorComputeType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorDefinition.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorDefinition.Serialization.cs new file mode 100644 index 000000000000..fa6540ee622c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorDefinition.Serialization.cs @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitorDefinition : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AlertNotificationSetting)) + { + if (AlertNotificationSetting != null) + { + writer.WritePropertyName("alertNotificationSetting"u8); + writer.WriteObjectValue(AlertNotificationSetting); + } + else + { + writer.WriteNull("alertNotificationSetting"); + } + } + writer.WritePropertyName("computeConfiguration"u8); + writer.WriteObjectValue(ComputeConfiguration); + if (Optional.IsDefined(MonitoringTarget)) + { + if (MonitoringTarget != null) + { + writer.WritePropertyName("monitoringTarget"u8); + writer.WriteObjectValue(MonitoringTarget); + } + else + { + writer.WriteNull("monitoringTarget"); + } + } + writer.WritePropertyName("signals"u8); + writer.WriteStartObject(); + foreach (var item in Signals) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static MonitorDefinition DeserializeMonitorDefinition(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional alertNotificationSetting = default; + MonitorComputeConfigurationBase computeConfiguration = default; + Optional monitoringTarget = default; + IDictionary signals = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("alertNotificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + alertNotificationSetting = null; + continue; + } + alertNotificationSetting = MonitoringAlertNotificationSettingsBase.DeserializeMonitoringAlertNotificationSettingsBase(property.Value); + continue; + } + if (property.NameEquals("computeConfiguration"u8)) + { + computeConfiguration = MonitorComputeConfigurationBase.DeserializeMonitorComputeConfigurationBase(property.Value); + continue; + } + if (property.NameEquals("monitoringTarget"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + monitoringTarget = null; + continue; + } + monitoringTarget = MonitoringTarget.DeserializeMonitoringTarget(property.Value); + continue; + } + if (property.NameEquals("signals"u8)) + { + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, MonitoringSignalBase.DeserializeMonitoringSignalBase(property0.Value)); + } + signals = dictionary; + continue; + } + } + return new MonitorDefinition(alertNotificationSetting.Value, computeConfiguration, monitoringTarget.Value, signals); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorDefinition.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorDefinition.cs new file mode 100644 index 000000000000..4a06dc73dffd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorDefinition.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitorDefinition. + public partial class MonitorDefinition + { + /// Initializes a new instance of MonitorDefinition. + /// + /// [Required] The ARM resource ID of the compute resource to run the monitoring job on. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// + /// [Required] The signals to monitor. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . + /// + /// or is null. + public MonitorDefinition(MonitorComputeConfigurationBase computeConfiguration, IDictionary signals) + { + Argument.AssertNotNull(computeConfiguration, nameof(computeConfiguration)); + Argument.AssertNotNull(signals, nameof(signals)); + + ComputeConfiguration = computeConfiguration; + Signals = signals; + } + + /// Initializes a new instance of MonitorDefinition. + /// + /// The monitor's notification settings. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// [Required] The ARM resource ID of the compute resource to run the monitoring job on. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// The ARM resource ID of either the model or deployment targeted by this monitor. + /// + /// [Required] The signals to monitor. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . + /// + internal MonitorDefinition(MonitoringAlertNotificationSettingsBase alertNotificationSetting, MonitorComputeConfigurationBase computeConfiguration, MonitoringTarget monitoringTarget, IDictionary signals) + { + AlertNotificationSetting = alertNotificationSetting; + ComputeConfiguration = computeConfiguration; + MonitoringTarget = monitoringTarget; + Signals = signals; + } + + /// + /// The monitor's notification settings. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public MonitoringAlertNotificationSettingsBase AlertNotificationSetting { get; set; } + /// + /// [Required] The ARM resource ID of the compute resource to run the monitoring job on. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public MonitorComputeConfigurationBase ComputeConfiguration { get; set; } + /// The ARM resource ID of either the model or deployment targeted by this monitor. + public MonitoringTarget MonitoringTarget { get; set; } + /// + /// [Required] The signals to monitor. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . + /// + public IDictionary Signals { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorServerlessSparkCompute.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorServerlessSparkCompute.Serialization.cs new file mode 100644 index 000000000000..27c6dbc90bbf --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorServerlessSparkCompute.Serialization.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitorServerlessSparkCompute : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("computeIdentity"u8); + writer.WriteObjectValue(ComputeIdentity); + writer.WritePropertyName("instanceType"u8); + writer.WriteStringValue(InstanceType); + writer.WritePropertyName("runtimeVersion"u8); + writer.WriteStringValue(RuntimeVersion); + writer.WritePropertyName("computeType"u8); + writer.WriteStringValue(ComputeType.ToString()); + writer.WriteEndObject(); + } + + internal static MonitorServerlessSparkCompute DeserializeMonitorServerlessSparkCompute(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitorComputeIdentityBase computeIdentity = default; + string instanceType = default; + string runtimeVersion = default; + MonitorComputeType computeType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("computeIdentity"u8)) + { + computeIdentity = MonitorComputeIdentityBase.DeserializeMonitorComputeIdentityBase(property.Value); + continue; + } + if (property.NameEquals("instanceType"u8)) + { + instanceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("runtimeVersion"u8)) + { + runtimeVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("computeType"u8)) + { + computeType = new MonitorComputeType(property.Value.GetString()); + continue; + } + } + return new MonitorServerlessSparkCompute(computeType, computeIdentity, instanceType, runtimeVersion); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorServerlessSparkCompute.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorServerlessSparkCompute.cs new file mode 100644 index 000000000000..a96796bd8fcb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitorServerlessSparkCompute.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Monitor serverless spark compute definition. + public partial class MonitorServerlessSparkCompute : MonitorComputeConfigurationBase + { + /// Initializes a new instance of MonitorServerlessSparkCompute. + /// + /// [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// [Required] The instance type running the Spark job. + /// [Required] The Spark runtime version. + /// , or is null. + public MonitorServerlessSparkCompute(MonitorComputeIdentityBase computeIdentity, string instanceType, string runtimeVersion) + { + Argument.AssertNotNull(computeIdentity, nameof(computeIdentity)); + Argument.AssertNotNull(instanceType, nameof(instanceType)); + Argument.AssertNotNull(runtimeVersion, nameof(runtimeVersion)); + + ComputeIdentity = computeIdentity; + InstanceType = instanceType; + RuntimeVersion = runtimeVersion; + ComputeType = MonitorComputeType.ServerlessSpark; + } + + /// Initializes a new instance of MonitorServerlessSparkCompute. + /// [Required] Specifies the type of signal to monitor. + /// + /// [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// [Required] The instance type running the Spark job. + /// [Required] The Spark runtime version. + internal MonitorServerlessSparkCompute(MonitorComputeType computeType, MonitorComputeIdentityBase computeIdentity, string instanceType, string runtimeVersion) : base(computeType) + { + ComputeIdentity = computeIdentity; + InstanceType = instanceType; + RuntimeVersion = runtimeVersion; + ComputeType = computeType; + } + + /// + /// [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public MonitorComputeIdentityBase ComputeIdentity { get; set; } + /// [Required] The instance type running the Spark job. + public string InstanceType { get; set; } + /// [Required] The Spark runtime version. + public string RuntimeVersion { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationSettingsBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationSettingsBase.Serialization.cs new file mode 100644 index 000000000000..b987f2d7cdc1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationSettingsBase.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitoringAlertNotificationSettingsBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("alertNotificationType"u8); + writer.WriteStringValue(AlertNotificationType.ToString()); + writer.WriteEndObject(); + } + + internal static MonitoringAlertNotificationSettingsBase DeserializeMonitoringAlertNotificationSettingsBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("alertNotificationType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "AzureMonitor": return AzMonMonitoringAlertNotificationSettings.DeserializeAzMonMonitoringAlertNotificationSettings(element); + case "Email": return EmailMonitoringAlertNotificationSettings.DeserializeEmailMonitoringAlertNotificationSettings(element); + } + } + return UnknownMonitoringAlertNotificationSettingsBase.DeserializeUnknownMonitoringAlertNotificationSettingsBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationSettingsBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationSettingsBase.cs new file mode 100644 index 000000000000..dabc470e1e90 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationSettingsBase.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The MonitoringAlertNotificationSettingsBase. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class MonitoringAlertNotificationSettingsBase + { + /// Initializes a new instance of MonitoringAlertNotificationSettingsBase. + protected MonitoringAlertNotificationSettingsBase() + { + } + + /// Initializes a new instance of MonitoringAlertNotificationSettingsBase. + /// [Required] Specifies the type of signal to monitor. + internal MonitoringAlertNotificationSettingsBase(MonitoringAlertNotificationType alertNotificationType) + { + AlertNotificationType = alertNotificationType; + } + + /// [Required] Specifies the type of signal to monitor. + internal MonitoringAlertNotificationType AlertNotificationType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationType.cs new file mode 100644 index 000000000000..668b52b5e0ca --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringAlertNotificationType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitoringAlertNotificationType. + internal readonly partial struct MonitoringAlertNotificationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitoringAlertNotificationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureMonitorValue = "AzureMonitor"; + private const string EmailValue = "Email"; + + /// Settings for Azure Monitor based alerting. + public static MonitoringAlertNotificationType AzureMonitor { get; } = new MonitoringAlertNotificationType(AzureMonitorValue); + /// Settings for AML email notifications. + public static MonitoringAlertNotificationType Email { get; } = new MonitoringAlertNotificationType(EmailValue); + /// Determines if two values are the same. + public static bool operator ==(MonitoringAlertNotificationType left, MonitoringAlertNotificationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitoringAlertNotificationType left, MonitoringAlertNotificationType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitoringAlertNotificationType(string value) => new MonitoringAlertNotificationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitoringAlertNotificationType other && Equals(other); + /// + public bool Equals(MonitoringAlertNotificationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.Serialization.cs new file mode 100644 index 000000000000..fb20b620b12a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.Serialization.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitoringDataSegment : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Feature)) + { + if (Feature != null) + { + writer.WritePropertyName("feature"u8); + writer.WriteStringValue(Feature); + } + else + { + writer.WriteNull("feature"); + } + } + if (Optional.IsCollectionDefined(Values)) + { + if (Values != null) + { + writer.WritePropertyName("values"u8); + writer.WriteStartArray(); + foreach (var item in Values) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("values"); + } + } + writer.WriteEndObject(); + } + + internal static MonitoringDataSegment DeserializeMonitoringDataSegment(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional feature = default; + Optional> values = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("feature"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + feature = null; + continue; + } + feature = property.Value.GetString(); + continue; + } + if (property.NameEquals("values"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + values = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + values = array; + continue; + } + } + return new MonitoringDataSegment(feature.Value, Optional.ToList(values)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.cs new file mode 100644 index 000000000000..21e3c6e3a209 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitoringDataSegment. + public partial class MonitoringDataSegment + { + /// Initializes a new instance of MonitoringDataSegment. + public MonitoringDataSegment() + { + Values = new ChangeTrackingList(); + } + + /// Initializes a new instance of MonitoringDataSegment. + /// The feature to segment the data on. + /// Filters for only the specified values of the given segmented feature. + internal MonitoringDataSegment(string feature, IList values) + { + Feature = feature; + Values = values; + } + + /// The feature to segment the data on. + public string Feature { get; set; } + /// Filters for only the specified values of the given segmented feature. + public IList Values { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureDataType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureDataType.cs new file mode 100644 index 000000000000..d73ab3e382d1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureDataType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitoringFeatureDataType. + public readonly partial struct MonitoringFeatureDataType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitoringFeatureDataType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NumericalValue = "Numerical"; + private const string CategoricalValue = "Categorical"; + + /// Used for features of numerical data type. + public static MonitoringFeatureDataType Numerical { get; } = new MonitoringFeatureDataType(NumericalValue); + /// Used for features of categorical data type. + public static MonitoringFeatureDataType Categorical { get; } = new MonitoringFeatureDataType(CategoricalValue); + /// Determines if two values are the same. + public static bool operator ==(MonitoringFeatureDataType left, MonitoringFeatureDataType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitoringFeatureDataType left, MonitoringFeatureDataType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitoringFeatureDataType(string value) => new MonitoringFeatureDataType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitoringFeatureDataType other && Equals(other); + /// + public bool Equals(MonitoringFeatureDataType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.Serialization.cs new file mode 100644 index 000000000000..17dde5716d38 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitoringFeatureFilterBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("filterType"u8); + writer.WriteStringValue(FilterType.ToString()); + writer.WriteEndObject(); + } + + internal static MonitoringFeatureFilterBase DeserializeMonitoringFeatureFilterBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("filterType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "AllFeatures": return AllFeatures.DeserializeAllFeatures(element); + case "FeatureSubset": return FeatureSubset.DeserializeFeatureSubset(element); + case "TopNByAttribution": return TopNFeaturesByAttribution.DeserializeTopNFeaturesByAttribution(element); + } + } + return UnknownMonitoringFeatureFilterBase.DeserializeUnknownMonitoringFeatureFilterBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.cs new file mode 100644 index 000000000000..8508840c781d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The MonitoringFeatureFilterBase. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public abstract partial class MonitoringFeatureFilterBase + { + /// Initializes a new instance of MonitoringFeatureFilterBase. + protected MonitoringFeatureFilterBase() + { + } + + /// Initializes a new instance of MonitoringFeatureFilterBase. + /// [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over. + internal MonitoringFeatureFilterBase(MonitoringFeatureFilterType filterType) + { + FilterType = filterType; + } + + /// [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over. + internal MonitoringFeatureFilterType FilterType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterType.cs new file mode 100644 index 000000000000..298f0fbc5d53 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitoringFeatureFilterType. + internal readonly partial struct MonitoringFeatureFilterType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitoringFeatureFilterType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllFeaturesValue = "AllFeatures"; + private const string TopNByAttributionValue = "TopNByAttribution"; + private const string FeatureSubsetValue = "FeatureSubset"; + + /// Includes all features. + public static MonitoringFeatureFilterType AllFeatures { get; } = new MonitoringFeatureFilterType(AllFeaturesValue); + /// Only includes the top contributing features, measured by feature attribution. + public static MonitoringFeatureFilterType TopNByAttribution { get; } = new MonitoringFeatureFilterType(TopNByAttributionValue); + /// Includes a user-defined subset of features. + public static MonitoringFeatureFilterType FeatureSubset { get; } = new MonitoringFeatureFilterType(FeatureSubsetValue); + /// Determines if two values are the same. + public static bool operator ==(MonitoringFeatureFilterType left, MonitoringFeatureFilterType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitoringFeatureFilterType left, MonitoringFeatureFilterType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitoringFeatureFilterType(string value) => new MonitoringFeatureFilterType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitoringFeatureFilterType other && Equals(other); + /// + public bool Equals(MonitoringFeatureFilterType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataBase.Serialization.cs new file mode 100644 index 000000000000..48d945cb56ba --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataBase.Serialization.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitoringInputDataBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Columns)) + { + if (Columns != null) + { + writer.WritePropertyName("columns"u8); + writer.WriteStartObject(); + foreach (var item in Columns) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("columns"); + } + } + if (Optional.IsDefined(DataContext)) + { + if (DataContext != null) + { + writer.WritePropertyName("dataContext"u8); + writer.WriteStringValue(DataContext); + } + else + { + writer.WriteNull("dataContext"); + } + } + writer.WritePropertyName("inputDataType"u8); + writer.WriteStringValue(InputDataType.ToString()); + writer.WritePropertyName("jobInputType"u8); + writer.WriteStringValue(JobInputType.ToString()); + writer.WritePropertyName("uri"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + writer.WriteEndObject(); + } + + internal static MonitoringInputDataBase DeserializeMonitoringInputDataBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("inputDataType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Fixed": return FixedInputData.DeserializeFixedInputData(element); + case "Static": return StaticInputData.DeserializeStaticInputData(element); + case "Trailing": return TrailingInputData.DeserializeTrailingInputData(element); + } + } + return UnknownMonitoringInputDataBase.DeserializeUnknownMonitoringInputDataBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataBase.cs new file mode 100644 index 000000000000..bdd882e7ecad --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataBase.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Monitoring input data base definition. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public abstract partial class MonitoringInputDataBase + { + /// Initializes a new instance of MonitoringInputDataBase. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + /// is null. + protected MonitoringInputDataBase(JobInputType jobInputType, Uri uri) + { + Argument.AssertNotNull(uri, nameof(uri)); + + Columns = new ChangeTrackingDictionary(); + JobInputType = jobInputType; + Uri = uri; + } + + /// Initializes a new instance of MonitoringInputDataBase. + /// Mapping of column names to special uses. + /// The context metadata of the data source. + /// [Required] Specifies the type of signal to monitor. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + internal MonitoringInputDataBase(IDictionary columns, string dataContext, MonitoringInputDataType inputDataType, JobInputType jobInputType, Uri uri) + { + Columns = columns; + DataContext = dataContext; + InputDataType = inputDataType; + JobInputType = jobInputType; + Uri = uri; + } + + /// Mapping of column names to special uses. + public IDictionary Columns { get; set; } + /// The context metadata of the data source. + public string DataContext { get; set; } + /// [Required] Specifies the type of signal to monitor. + internal MonitoringInputDataType InputDataType { get; set; } + /// [Required] Specifies the type of job. + public JobInputType JobInputType { get; set; } + /// [Required] Input Asset URI. + public Uri Uri { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataType.cs new file mode 100644 index 000000000000..2e58f4f9efaf --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringInputDataType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Monitoring input data type enum. + internal readonly partial struct MonitoringInputDataType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitoringInputDataType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string StaticValue = "Static"; + private const string TrailingValue = "Trailing"; + private const string FixedValue = "Fixed"; + + /// An input data with a fixed window size. + public static MonitoringInputDataType Static { get; } = new MonitoringInputDataType(StaticValue); + /// An input data which trailing relatively to the monitor's current run. + public static MonitoringInputDataType Trailing { get; } = new MonitoringInputDataType(TrailingValue); + /// An input data with tabular format which doesn't require preprocessing. + public static MonitoringInputDataType Fixed { get; } = new MonitoringInputDataType(FixedValue); + /// Determines if two values are the same. + public static bool operator ==(MonitoringInputDataType left, MonitoringInputDataType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitoringInputDataType left, MonitoringInputDataType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitoringInputDataType(string value) => new MonitoringInputDataType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitoringInputDataType other && Equals(other); + /// + public bool Equals(MonitoringInputDataType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringModelType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringModelType.cs new file mode 100644 index 000000000000..ec404d2aed5a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringModelType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitoringModelType. + public readonly partial struct MonitoringModelType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitoringModelType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ClassificationValue = "Classification"; + private const string RegressionValue = "Regression"; + + /// A model trained for classification tasks. + public static MonitoringModelType Classification { get; } = new MonitoringModelType(ClassificationValue); + /// A model trained for regressions tasks. + public static MonitoringModelType Regression { get; } = new MonitoringModelType(RegressionValue); + /// Determines if two values are the same. + public static bool operator ==(MonitoringModelType left, MonitoringModelType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitoringModelType left, MonitoringModelType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitoringModelType(string value) => new MonitoringModelType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitoringModelType other && Equals(other); + /// + public bool Equals(MonitoringModelType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringNotificationMode.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringNotificationMode.cs new file mode 100644 index 000000000000..7f609577c192 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringNotificationMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitoringNotificationMode. + public readonly partial struct MonitoringNotificationMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitoringNotificationMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DisabledValue = "Disabled"; + private const string EnabledValue = "Enabled"; + + /// Disabled notifications will not produce emails/metrics leveraged for alerting. + public static MonitoringNotificationMode Disabled { get; } = new MonitoringNotificationMode(DisabledValue); + /// Enabled notification will produce emails/metrics leveraged for alerting. + public static MonitoringNotificationMode Enabled { get; } = new MonitoringNotificationMode(EnabledValue); + /// Determines if two values are the same. + public static bool operator ==(MonitoringNotificationMode left, MonitoringNotificationMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitoringNotificationMode left, MonitoringNotificationMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitoringNotificationMode(string value) => new MonitoringNotificationMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitoringNotificationMode other && Equals(other); + /// + public bool Equals(MonitoringNotificationMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalBase.Serialization.cs new file mode 100644 index 000000000000..e1e1e7fcdd03 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalBase.Serialization.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitoringSignalBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static MonitoringSignalBase DeserializeMonitoringSignalBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("signalType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Custom": return CustomMonitoringSignal.DeserializeCustomMonitoringSignal(element); + case "DataDrift": return DataDriftMonitoringSignal.DeserializeDataDriftMonitoringSignal(element); + case "DataQuality": return DataQualityMonitoringSignal.DeserializeDataQualityMonitoringSignal(element); + case "FeatureAttributionDrift": return FeatureAttributionDriftMonitoringSignal.DeserializeFeatureAttributionDriftMonitoringSignal(element); + case "GenerationSafetyQuality": return GenerationSafetyQualityMonitoringSignal.DeserializeGenerationSafetyQualityMonitoringSignal(element); + case "GenerationTokenStatistics": return GenerationTokenStatisticsSignal.DeserializeGenerationTokenStatisticsSignal(element); + case "ModelPerformance": return ModelPerformanceSignal.DeserializeModelPerformanceSignal(element); + case "PredictionDrift": return PredictionDriftMonitoringSignal.DeserializePredictionDriftMonitoringSignal(element); + } + } + return UnknownMonitoringSignalBase.DeserializeUnknownMonitoringSignalBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalBase.cs new file mode 100644 index 000000000000..02c67e73f069 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalBase.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The MonitoringSignalBase. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . + /// + public abstract partial class MonitoringSignalBase + { + /// Initializes a new instance of MonitoringSignalBase. + protected MonitoringSignalBase() + { + Properties = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of MonitoringSignalBase. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + internal MonitoringSignalBase(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType) + { + Mode = mode; + Properties = properties; + SignalType = signalType; + } + + /// The current notification mode for this signal. + public MonitoringNotificationMode? Mode { get; set; } + /// Property dictionary. Properties can be added, but not removed or altered. + public IDictionary Properties { get; set; } + /// [Required] Specifies the type of signal to monitor. + internal MonitoringSignalType SignalType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalType.cs new file mode 100644 index 000000000000..a30c4a5a17cf --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringSignalType.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitoringSignalType. + internal readonly partial struct MonitoringSignalType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MonitoringSignalType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DataDriftValue = "DataDrift"; + private const string PredictionDriftValue = "PredictionDrift"; + private const string DataQualityValue = "DataQuality"; + private const string FeatureAttributionDriftValue = "FeatureAttributionDrift"; + private const string CustomValue = "Custom"; + private const string ModelPerformanceValue = "ModelPerformance"; + private const string GenerationSafetyQualityValue = "GenerationSafetyQuality"; + private const string GenerationTokenStatisticsValue = "GenerationTokenStatistics"; + + /// Tracks model input data distribution change, comparing against training data or past production data. + public static MonitoringSignalType DataDrift { get; } = new MonitoringSignalType(DataDriftValue); + /// Tracks prediction result data distribution change, comparing against validation/test label data or past production data. + public static MonitoringSignalType PredictionDrift { get; } = new MonitoringSignalType(PredictionDriftValue); + /// Tracks model input data integrity. + public static MonitoringSignalType DataQuality { get; } = new MonitoringSignalType(DataQualityValue); + /// Tracks feature importance change in production, comparing against feature importance at training time. + public static MonitoringSignalType FeatureAttributionDrift { get; } = new MonitoringSignalType(FeatureAttributionDriftValue); + /// Tracks a custom signal provided by users. + public static MonitoringSignalType Custom { get; } = new MonitoringSignalType(CustomValue); + /// Tracks model performance based on ground truth data. + public static MonitoringSignalType ModelPerformance { get; } = new MonitoringSignalType(ModelPerformanceValue); + /// Tracks the safety and quality of generated content. + public static MonitoringSignalType GenerationSafetyQuality { get; } = new MonitoringSignalType(GenerationSafetyQualityValue); + /// Tracks the token usage of generative endpoints. + public static MonitoringSignalType GenerationTokenStatistics { get; } = new MonitoringSignalType(GenerationTokenStatisticsValue); + /// Determines if two values are the same. + public static bool operator ==(MonitoringSignalType left, MonitoringSignalType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MonitoringSignalType left, MonitoringSignalType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MonitoringSignalType(string value) => new MonitoringSignalType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MonitoringSignalType other && Equals(other); + /// + public bool Equals(MonitoringSignalType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringTarget.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringTarget.Serialization.cs new file mode 100644 index 000000000000..31a1e2f868e9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringTarget.Serialization.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitoringTarget : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DeploymentId)) + { + if (DeploymentId != null) + { + writer.WritePropertyName("deploymentId"u8); + writer.WriteStringValue(DeploymentId); + } + else + { + writer.WriteNull("deploymentId"); + } + } + if (Optional.IsDefined(ModelId)) + { + if (ModelId != null) + { + writer.WritePropertyName("modelId"u8); + writer.WriteStringValue(ModelId); + } + else + { + writer.WriteNull("modelId"); + } + } + writer.WritePropertyName("taskType"u8); + writer.WriteStringValue(TaskType.ToString()); + writer.WriteEndObject(); + } + + internal static MonitoringTarget DeserializeMonitoringTarget(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional deploymentId = default; + Optional modelId = default; + ModelTaskType taskType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("deploymentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + deploymentId = null; + continue; + } + deploymentId = property.Value.GetString(); + continue; + } + if (property.NameEquals("modelId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + modelId = null; + continue; + } + modelId = property.Value.GetString(); + continue; + } + if (property.NameEquals("taskType"u8)) + { + taskType = new ModelTaskType(property.Value.GetString()); + continue; + } + } + return new MonitoringTarget(deploymentId.Value, modelId.Value, taskType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringTarget.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringTarget.cs new file mode 100644 index 000000000000..cd72d7ca054f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringTarget.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Monitoring target definition. + public partial class MonitoringTarget + { + /// Initializes a new instance of MonitoringTarget. + /// [Required] The machine learning task type of the model. + public MonitoringTarget(ModelTaskType taskType) + { + TaskType = taskType; + } + + /// Initializes a new instance of MonitoringTarget. + /// The ARM resource ID of either the deployment targeted by this monitor. + /// The ARM resource ID of either the model targeted by this monitor. + /// [Required] The machine learning task type of the model. + internal MonitoringTarget(string deploymentId, string modelId, ModelTaskType taskType) + { + DeploymentId = deploymentId; + ModelId = modelId; + TaskType = taskType; + } + + /// The ARM resource ID of either the deployment targeted by this monitor. + public string DeploymentId { get; set; } + /// The ARM resource ID of either the model targeted by this monitor. + public string ModelId { get; set; } + /// [Required] The machine learning task type of the model. + public ModelTaskType TaskType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringThreshold.Serialization.cs new file mode 100644 index 000000000000..1e90c6740527 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringThreshold.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class MonitoringThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Value)) + { + if (Value != null) + { + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(Value.Value); + } + else + { + writer.WriteNull("value"); + } + } + writer.WriteEndObject(); + } + + internal static MonitoringThreshold DeserializeMonitoringThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + value = null; + continue; + } + value = property.Value.GetDouble(); + continue; + } + } + return new MonitoringThreshold(Optional.ToNullable(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringThreshold.cs new file mode 100644 index 000000000000..f088ea07fdca --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringThreshold.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MonitoringThreshold. + internal partial class MonitoringThreshold + { + /// Initializes a new instance of MonitoringThreshold. + public MonitoringThreshold() + { + } + + /// Initializes a new instance of MonitoringThreshold. + /// The threshold value. If null, the set default is dependent on the metric type. + internal MonitoringThreshold(double? value) + { + Value = value; + } + + /// The threshold value. If null, the set default is dependent on the metric type. + public double? Value { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringWorkspaceConnection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringWorkspaceConnection.Serialization.cs new file mode 100644 index 000000000000..40eb806fc3a4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringWorkspaceConnection.Serialization.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MonitoringWorkspaceConnection : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(EnvironmentVariables)) + { + if (EnvironmentVariables != null) + { + writer.WritePropertyName("environmentVariables"u8); + writer.WriteStartObject(); + foreach (var item in EnvironmentVariables) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("environmentVariables"); + } + } + if (Optional.IsCollectionDefined(Secrets)) + { + if (Secrets != null) + { + writer.WritePropertyName("secrets"u8); + writer.WriteStartObject(); + foreach (var item in Secrets) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("secrets"); + } + } + writer.WriteEndObject(); + } + + internal static MonitoringWorkspaceConnection DeserializeMonitoringWorkspaceConnection(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> environmentVariables = default; + Optional> secrets = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("environmentVariables"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + environmentVariables = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + environmentVariables = dictionary; + continue; + } + if (property.NameEquals("secrets"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + secrets = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + secrets = dictionary; + continue; + } + } + return new MonitoringWorkspaceConnection(Optional.ToDictionary(environmentVariables), Optional.ToDictionary(secrets)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringWorkspaceConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringWorkspaceConnection.cs new file mode 100644 index 000000000000..77f5fdcb08a3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringWorkspaceConnection.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Monitoring workspace connection definition. + public partial class MonitoringWorkspaceConnection + { + /// Initializes a new instance of MonitoringWorkspaceConnection. + public MonitoringWorkspaceConnection() + { + EnvironmentVariables = new ChangeTrackingDictionary(); + Secrets = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of MonitoringWorkspaceConnection. + /// + /// 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. + /// + /// + /// 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. + /// + internal MonitoringWorkspaceConnection(IDictionary environmentVariables, IDictionary secrets) + { + EnvironmentVariables = environmentVariables; + Secrets = secrets; + } + + /// + /// 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. + /// + public IDictionary EnvironmentVariables { get; set; } + /// + /// 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. + /// + public IDictionary Secrets { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MultiSelect.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MultiSelect.cs new file mode 100644 index 000000000000..644a4f943188 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MultiSelect.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Whether multiSelect is enabled. + public readonly partial struct MultiSelect : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MultiSelect(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MultiSelect Enabled { get; } = new MultiSelect(EnabledValue); + /// Disabled. + public static MultiSelect Disabled { get; } = new MultiSelect(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MultiSelect left, MultiSelect right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MultiSelect left, MultiSelect right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MultiSelect(string value) => new MultiSelect(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MultiSelect other && Equals(other); + /// + public bool Equals(MultiSelect other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpFixedParameters.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpFixedParameters.Serialization.cs new file mode 100644 index 000000000000..7214cc032f6e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpFixedParameters.Serialization.cs @@ -0,0 +1,232 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class NlpFixedParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(GradientAccumulationSteps)) + { + if (GradientAccumulationSteps != null) + { + writer.WritePropertyName("gradientAccumulationSteps"u8); + writer.WriteNumberValue(GradientAccumulationSteps.Value); + } + else + { + writer.WriteNull("gradientAccumulationSteps"); + } + } + if (Optional.IsDefined(LearningRate)) + { + if (LearningRate != null) + { + writer.WritePropertyName("learningRate"u8); + writer.WriteNumberValue(LearningRate.Value); + } + else + { + writer.WriteNull("learningRate"); + } + } + if (Optional.IsDefined(LearningRateScheduler)) + { + writer.WritePropertyName("learningRateScheduler"u8); + writer.WriteStringValue(LearningRateScheduler.Value.ToString()); + } + if (Optional.IsDefined(ModelName)) + { + if (ModelName != null) + { + writer.WritePropertyName("modelName"u8); + writer.WriteStringValue(ModelName); + } + else + { + writer.WriteNull("modelName"); + } + } + if (Optional.IsDefined(NumberOfEpochs)) + { + if (NumberOfEpochs != null) + { + writer.WritePropertyName("numberOfEpochs"u8); + writer.WriteNumberValue(NumberOfEpochs.Value); + } + else + { + writer.WriteNull("numberOfEpochs"); + } + } + if (Optional.IsDefined(TrainingBatchSize)) + { + if (TrainingBatchSize != null) + { + writer.WritePropertyName("trainingBatchSize"u8); + writer.WriteNumberValue(TrainingBatchSize.Value); + } + else + { + writer.WriteNull("trainingBatchSize"); + } + } + if (Optional.IsDefined(ValidationBatchSize)) + { + if (ValidationBatchSize != null) + { + writer.WritePropertyName("validationBatchSize"u8); + writer.WriteNumberValue(ValidationBatchSize.Value); + } + else + { + writer.WriteNull("validationBatchSize"); + } + } + if (Optional.IsDefined(WarmupRatio)) + { + if (WarmupRatio != null) + { + writer.WritePropertyName("warmupRatio"u8); + writer.WriteNumberValue(WarmupRatio.Value); + } + else + { + writer.WriteNull("warmupRatio"); + } + } + if (Optional.IsDefined(WeightDecay)) + { + if (WeightDecay != null) + { + writer.WritePropertyName("weightDecay"u8); + writer.WriteNumberValue(WeightDecay.Value); + } + else + { + writer.WriteNull("weightDecay"); + } + } + writer.WriteEndObject(); + } + + internal static NlpFixedParameters DeserializeNlpFixedParameters(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional gradientAccumulationSteps = default; + Optional learningRate = default; + Optional learningRateScheduler = default; + Optional modelName = default; + Optional numberOfEpochs = default; + Optional trainingBatchSize = default; + Optional validationBatchSize = default; + Optional warmupRatio = default; + Optional weightDecay = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("gradientAccumulationSteps"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + gradientAccumulationSteps = null; + continue; + } + gradientAccumulationSteps = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("learningRate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + learningRate = null; + continue; + } + learningRate = property.Value.GetSingle(); + continue; + } + if (property.NameEquals("learningRateScheduler"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + learningRateScheduler = new NlpLearningRateScheduler(property.Value.GetString()); + continue; + } + if (property.NameEquals("modelName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + modelName = null; + continue; + } + modelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("numberOfEpochs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + numberOfEpochs = null; + continue; + } + numberOfEpochs = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("trainingBatchSize"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + trainingBatchSize = null; + continue; + } + trainingBatchSize = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("validationBatchSize"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + validationBatchSize = null; + continue; + } + validationBatchSize = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("warmupRatio"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + warmupRatio = null; + continue; + } + warmupRatio = property.Value.GetSingle(); + continue; + } + if (property.NameEquals("weightDecay"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + weightDecay = null; + continue; + } + weightDecay = property.Value.GetSingle(); + continue; + } + } + return new NlpFixedParameters(Optional.ToNullable(gradientAccumulationSteps), Optional.ToNullable(learningRate), Optional.ToNullable(learningRateScheduler), modelName.Value, Optional.ToNullable(numberOfEpochs), Optional.ToNullable(trainingBatchSize), Optional.ToNullable(validationBatchSize), Optional.ToNullable(warmupRatio), Optional.ToNullable(weightDecay)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpFixedParameters.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpFixedParameters.cs new file mode 100644 index 000000000000..ab2a79b3a703 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpFixedParameters.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Fixed training parameters that won't be swept over during AutoML NLP training. + public partial class NlpFixedParameters + { + /// Initializes a new instance of NlpFixedParameters. + public NlpFixedParameters() + { + } + + /// Initializes a new instance of NlpFixedParameters. + /// Number of steps to accumulate gradients over before running a backward pass. + /// The learning rate for the training procedure. + /// The type of learning rate schedule to use during the training procedure. + /// The name of the model to train. + /// Number of training epochs. + /// The batch size for the training procedure. + /// The batch size to be used during evaluation. + /// The warmup ratio, used alongside LrSchedulerType. + /// The weight decay for the training procedure. + internal NlpFixedParameters(int? gradientAccumulationSteps, float? learningRate, NlpLearningRateScheduler? learningRateScheduler, string modelName, int? numberOfEpochs, int? trainingBatchSize, int? validationBatchSize, float? warmupRatio, float? weightDecay) + { + GradientAccumulationSteps = gradientAccumulationSteps; + LearningRate = learningRate; + LearningRateScheduler = learningRateScheduler; + ModelName = modelName; + NumberOfEpochs = numberOfEpochs; + TrainingBatchSize = trainingBatchSize; + ValidationBatchSize = validationBatchSize; + WarmupRatio = warmupRatio; + WeightDecay = weightDecay; + } + + /// Number of steps to accumulate gradients over before running a backward pass. + public int? GradientAccumulationSteps { get; set; } + /// The learning rate for the training procedure. + public float? LearningRate { get; set; } + /// The type of learning rate schedule to use during the training procedure. + public NlpLearningRateScheduler? LearningRateScheduler { get; set; } + /// The name of the model to train. + public string ModelName { get; set; } + /// Number of training epochs. + public int? NumberOfEpochs { get; set; } + /// The batch size for the training procedure. + public int? TrainingBatchSize { get; set; } + /// The batch size to be used during evaluation. + public int? ValidationBatchSize { get; set; } + /// The warmup ratio, used alongside LrSchedulerType. + public float? WarmupRatio { get; set; } + /// The weight decay for the training procedure. + public float? WeightDecay { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpLearningRateScheduler.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpLearningRateScheduler.cs new file mode 100644 index 000000000000..12bb3aeee757 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpLearningRateScheduler.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum of learning rate schedulers that aligns with those supported by HF. + public readonly partial struct NlpLearningRateScheduler : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NlpLearningRateScheduler(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string LinearValue = "Linear"; + private const string CosineValue = "Cosine"; + private const string CosineWithRestartsValue = "CosineWithRestarts"; + private const string PolynomialValue = "Polynomial"; + private const string ConstantValue = "Constant"; + private const string ConstantWithWarmupValue = "ConstantWithWarmup"; + + /// No learning rate schedule. + public static NlpLearningRateScheduler None { get; } = new NlpLearningRateScheduler(NoneValue); + /// Linear warmup and decay. + public static NlpLearningRateScheduler Linear { get; } = new NlpLearningRateScheduler(LinearValue); + /// Linear warmup then cosine decay. + public static NlpLearningRateScheduler Cosine { get; } = new NlpLearningRateScheduler(CosineValue); + /// Linear warmup, cosine decay, then restart to initial LR. + public static NlpLearningRateScheduler CosineWithRestarts { get; } = new NlpLearningRateScheduler(CosineWithRestartsValue); + /// Increase linearly then polynomially decay. + public static NlpLearningRateScheduler Polynomial { get; } = new NlpLearningRateScheduler(PolynomialValue); + /// Constant learning rate. + public static NlpLearningRateScheduler Constant { get; } = new NlpLearningRateScheduler(ConstantValue); + /// Linear warmup followed by constant value. + public static NlpLearningRateScheduler ConstantWithWarmup { get; } = new NlpLearningRateScheduler(ConstantWithWarmupValue); + /// Determines if two values are the same. + public static bool operator ==(NlpLearningRateScheduler left, NlpLearningRateScheduler right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NlpLearningRateScheduler left, NlpLearningRateScheduler right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NlpLearningRateScheduler(string value) => new NlpLearningRateScheduler(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NlpLearningRateScheduler other && Equals(other); + /// + public bool Equals(NlpLearningRateScheduler other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpParameterSubspace.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpParameterSubspace.Serialization.cs new file mode 100644 index 000000000000..bcf238f00e4b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpParameterSubspace.Serialization.cs @@ -0,0 +1,240 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class NlpParameterSubspace : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(GradientAccumulationSteps)) + { + if (GradientAccumulationSteps != null) + { + writer.WritePropertyName("gradientAccumulationSteps"u8); + writer.WriteStringValue(GradientAccumulationSteps); + } + else + { + writer.WriteNull("gradientAccumulationSteps"); + } + } + if (Optional.IsDefined(LearningRate)) + { + if (LearningRate != null) + { + writer.WritePropertyName("learningRate"u8); + writer.WriteStringValue(LearningRate); + } + else + { + writer.WriteNull("learningRate"); + } + } + if (Optional.IsDefined(LearningRateScheduler)) + { + if (LearningRateScheduler != null) + { + writer.WritePropertyName("learningRateScheduler"u8); + writer.WriteStringValue(LearningRateScheduler); + } + else + { + writer.WriteNull("learningRateScheduler"); + } + } + if (Optional.IsDefined(ModelName)) + { + if (ModelName != null) + { + writer.WritePropertyName("modelName"u8); + writer.WriteStringValue(ModelName); + } + else + { + writer.WriteNull("modelName"); + } + } + if (Optional.IsDefined(NumberOfEpochs)) + { + if (NumberOfEpochs != null) + { + writer.WritePropertyName("numberOfEpochs"u8); + writer.WriteStringValue(NumberOfEpochs); + } + else + { + writer.WriteNull("numberOfEpochs"); + } + } + if (Optional.IsDefined(TrainingBatchSize)) + { + if (TrainingBatchSize != null) + { + writer.WritePropertyName("trainingBatchSize"u8); + writer.WriteStringValue(TrainingBatchSize); + } + else + { + writer.WriteNull("trainingBatchSize"); + } + } + if (Optional.IsDefined(ValidationBatchSize)) + { + if (ValidationBatchSize != null) + { + writer.WritePropertyName("validationBatchSize"u8); + writer.WriteStringValue(ValidationBatchSize); + } + else + { + writer.WriteNull("validationBatchSize"); + } + } + if (Optional.IsDefined(WarmupRatio)) + { + if (WarmupRatio != null) + { + writer.WritePropertyName("warmupRatio"u8); + writer.WriteStringValue(WarmupRatio); + } + else + { + writer.WriteNull("warmupRatio"); + } + } + if (Optional.IsDefined(WeightDecay)) + { + if (WeightDecay != null) + { + writer.WritePropertyName("weightDecay"u8); + writer.WriteStringValue(WeightDecay); + } + else + { + writer.WriteNull("weightDecay"); + } + } + writer.WriteEndObject(); + } + + internal static NlpParameterSubspace DeserializeNlpParameterSubspace(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional gradientAccumulationSteps = default; + Optional learningRate = default; + Optional learningRateScheduler = default; + Optional modelName = default; + Optional numberOfEpochs = default; + Optional trainingBatchSize = default; + Optional validationBatchSize = default; + Optional warmupRatio = default; + Optional weightDecay = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("gradientAccumulationSteps"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + gradientAccumulationSteps = null; + continue; + } + gradientAccumulationSteps = property.Value.GetString(); + continue; + } + if (property.NameEquals("learningRate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + learningRate = null; + continue; + } + learningRate = property.Value.GetString(); + continue; + } + if (property.NameEquals("learningRateScheduler"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + learningRateScheduler = null; + continue; + } + learningRateScheduler = property.Value.GetString(); + continue; + } + if (property.NameEquals("modelName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + modelName = null; + continue; + } + modelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("numberOfEpochs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + numberOfEpochs = null; + continue; + } + numberOfEpochs = property.Value.GetString(); + continue; + } + if (property.NameEquals("trainingBatchSize"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + trainingBatchSize = null; + continue; + } + trainingBatchSize = property.Value.GetString(); + continue; + } + if (property.NameEquals("validationBatchSize"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + validationBatchSize = null; + continue; + } + validationBatchSize = property.Value.GetString(); + continue; + } + if (property.NameEquals("warmupRatio"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + warmupRatio = null; + continue; + } + warmupRatio = property.Value.GetString(); + continue; + } + if (property.NameEquals("weightDecay"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + weightDecay = null; + continue; + } + weightDecay = property.Value.GetString(); + continue; + } + } + return new NlpParameterSubspace(gradientAccumulationSteps.Value, learningRate.Value, learningRateScheduler.Value, modelName.Value, numberOfEpochs.Value, trainingBatchSize.Value, validationBatchSize.Value, warmupRatio.Value, weightDecay.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpParameterSubspace.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpParameterSubspace.cs new file mode 100644 index 000000000000..2fc11ac2c431 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpParameterSubspace.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Stringified search spaces for each parameter. See below examples. + public partial class NlpParameterSubspace + { + /// Initializes a new instance of NlpParameterSubspace. + public NlpParameterSubspace() + { + } + + /// Initializes a new instance of NlpParameterSubspace. + /// Number of steps to accumulate gradients over before running a backward pass. + /// The learning rate for the training procedure. + /// The type of learning rate schedule to use during the training procedure. + /// The name of the model to train. + /// Number of training epochs. + /// The batch size for the training procedure. + /// The batch size to be used during evaluation. + /// The warmup ratio, used alongside LrSchedulerType. + /// The weight decay for the training procedure. + internal NlpParameterSubspace(string gradientAccumulationSteps, string learningRate, string learningRateScheduler, string modelName, string numberOfEpochs, string trainingBatchSize, string validationBatchSize, string warmupRatio, string weightDecay) + { + GradientAccumulationSteps = gradientAccumulationSteps; + LearningRate = learningRate; + LearningRateScheduler = learningRateScheduler; + ModelName = modelName; + NumberOfEpochs = numberOfEpochs; + TrainingBatchSize = trainingBatchSize; + ValidationBatchSize = validationBatchSize; + WarmupRatio = warmupRatio; + WeightDecay = weightDecay; + } + + /// Number of steps to accumulate gradients over before running a backward pass. + public string GradientAccumulationSteps { get; set; } + /// The learning rate for the training procedure. + public string LearningRate { get; set; } + /// The type of learning rate schedule to use during the training procedure. + public string LearningRateScheduler { get; set; } + /// The name of the model to train. + public string ModelName { get; set; } + /// Number of training epochs. + public string NumberOfEpochs { get; set; } + /// The batch size for the training procedure. + public string TrainingBatchSize { get; set; } + /// The batch size to be used during evaluation. + public string ValidationBatchSize { get; set; } + /// The warmup ratio, used alongside LrSchedulerType. + public string WarmupRatio { get; set; } + /// The weight decay for the training procedure. + public string WeightDecay { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpSweepSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpSweepSettings.Serialization.cs new file mode 100644 index 000000000000..a61b3cc78a9b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpSweepSettings.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class NlpSweepSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(EarlyTermination)) + { + if (EarlyTermination != null) + { + writer.WritePropertyName("earlyTermination"u8); + writer.WriteObjectValue(EarlyTermination); + } + else + { + writer.WriteNull("earlyTermination"); + } + } + writer.WritePropertyName("samplingAlgorithm"u8); + writer.WriteStringValue(SamplingAlgorithm.ToString()); + writer.WriteEndObject(); + } + + internal static NlpSweepSettings DeserializeNlpSweepSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional earlyTermination = default; + SamplingAlgorithmType samplingAlgorithm = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("earlyTermination"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + earlyTermination = null; + continue; + } + earlyTermination = MachineLearningEarlyTerminationPolicy.DeserializeMachineLearningEarlyTerminationPolicy(property.Value); + continue; + } + if (property.NameEquals("samplingAlgorithm"u8)) + { + samplingAlgorithm = new SamplingAlgorithmType(property.Value.GetString()); + continue; + } + } + return new NlpSweepSettings(earlyTermination.Value, samplingAlgorithm); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpSweepSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpSweepSettings.cs new file mode 100644 index 000000000000..235f53523801 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpSweepSettings.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Model sweeping and hyperparameter tuning related settings. + public partial class NlpSweepSettings + { + /// Initializes a new instance of NlpSweepSettings. + /// [Required] Type of sampling algorithm. + public NlpSweepSettings(SamplingAlgorithmType samplingAlgorithm) + { + SamplingAlgorithm = samplingAlgorithm; + } + + /// Initializes a new instance of NlpSweepSettings. + /// + /// Type of early termination policy for the sweeping job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// [Required] Type of sampling algorithm. + internal NlpSweepSettings(MachineLearningEarlyTerminationPolicy earlyTermination, SamplingAlgorithmType samplingAlgorithm) + { + EarlyTermination = earlyTermination; + SamplingAlgorithm = samplingAlgorithm; + } + + /// + /// Type of early termination policy for the sweeping job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MachineLearningEarlyTerminationPolicy EarlyTermination { get; set; } + /// [Required] Type of sampling algorithm. + public SamplingAlgorithmType SamplingAlgorithm { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpVerticalLimitSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpVerticalLimitSettings.Serialization.cs index 789a2469940d..e5cc5259db2c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpVerticalLimitSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpVerticalLimitSettings.Serialization.cs @@ -21,6 +21,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("maxConcurrentTrials"u8); writer.WriteNumberValue(MaxConcurrentTrials.Value); } + if (Optional.IsDefined(MaxNodes)) + { + writer.WritePropertyName("maxNodes"u8); + writer.WriteNumberValue(MaxNodes.Value); + } if (Optional.IsDefined(MaxTrials)) { writer.WritePropertyName("maxTrials"u8); @@ -31,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("timeout"u8); writer.WriteStringValue(Timeout.Value, "P"); } + if (Optional.IsDefined(TrialTimeout)) + { + writer.WritePropertyName("trialTimeout"u8); + writer.WriteStringValue(TrialTimeout.Value, "P"); + } writer.WriteEndObject(); } @@ -41,8 +51,10 @@ internal static NlpVerticalLimitSettings DeserializeNlpVerticalLimitSettings(Jso return null; } Optional maxConcurrentTrials = default; + Optional maxNodes = default; Optional maxTrials = default; Optional timeout = default; + Optional trialTimeout = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("maxConcurrentTrials"u8)) @@ -54,6 +66,15 @@ internal static NlpVerticalLimitSettings DeserializeNlpVerticalLimitSettings(Jso maxConcurrentTrials = property.Value.GetInt32(); continue; } + if (property.NameEquals("maxNodes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maxNodes = property.Value.GetInt32(); + continue; + } if (property.NameEquals("maxTrials"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -72,8 +93,17 @@ internal static NlpVerticalLimitSettings DeserializeNlpVerticalLimitSettings(Jso timeout = property.Value.GetTimeSpan("P"); continue; } + if (property.NameEquals("trialTimeout"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + trialTimeout = property.Value.GetTimeSpan("P"); + continue; + } } - return new NlpVerticalLimitSettings(Optional.ToNullable(maxConcurrentTrials), Optional.ToNullable(maxTrials), Optional.ToNullable(timeout)); + return new NlpVerticalLimitSettings(Optional.ToNullable(maxConcurrentTrials), Optional.ToNullable(maxNodes), Optional.ToNullable(maxTrials), Optional.ToNullable(timeout), Optional.ToNullable(trialTimeout)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpVerticalLimitSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpVerticalLimitSettings.cs index b0c81c484d73..7ff035a0358a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpVerticalLimitSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NlpVerticalLimitSettings.cs @@ -19,20 +19,28 @@ public NlpVerticalLimitSettings() /// Initializes a new instance of NlpVerticalLimitSettings. /// Maximum Concurrent AutoML iterations. + /// Maximum nodes to use for the experiment. /// Number of AutoML iterations. /// AutoML job timeout. - internal NlpVerticalLimitSettings(int? maxConcurrentTrials, int? maxTrials, TimeSpan? timeout) + /// Timeout for individual HD trials. + internal NlpVerticalLimitSettings(int? maxConcurrentTrials, int? maxNodes, int? maxTrials, TimeSpan? timeout, TimeSpan? trialTimeout) { MaxConcurrentTrials = maxConcurrentTrials; + MaxNodes = maxNodes; MaxTrials = maxTrials; Timeout = timeout; + TrialTimeout = trialTimeout; } /// Maximum Concurrent AutoML iterations. public int? MaxConcurrentTrials { get; set; } + /// Maximum nodes to use for the experiment. + public int? MaxNodes { get; set; } /// Number of AutoML iterations. public int? MaxTrials { get; set; } /// AutoML job timeout. public TimeSpan? Timeout { get; set; } + /// Timeout for individual HD trials. + public TimeSpan? TrialTimeout { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.Serialization.cs new file mode 100644 index 000000000000..3ac5f4dcad5c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Nodes : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("nodesValueType"u8); + writer.WriteStringValue(NodesValueType.ToString()); + writer.WriteEndObject(); + } + + internal static Nodes DeserializeNodes(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("nodesValueType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "All": return AllNodes.DeserializeAllNodes(element); + } + } + return UnknownNodes.DeserializeUnknownNodes(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.cs new file mode 100644 index 000000000000..baf4967362d8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Abstract Nodes definition + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class Nodes + { + /// Initializes a new instance of Nodes. + protected Nodes() + { + } + + /// Initializes a new instance of Nodes. + /// [Required] Type of the Nodes value. + internal Nodes(NodesValueType nodesValueType) + { + NodesValueType = nodesValueType; + } + + /// [Required] Type of the Nodes value. + internal NodesValueType NodesValueType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NodesValueType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NodesValueType.cs new file mode 100644 index 000000000000..1992062d049b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NodesValueType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The enumerated types for the nodes value. + internal readonly partial struct NodesValueType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NodesValueType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllValue = "All"; + private const string CustomValue = "Custom"; + + /// All. + public static NodesValueType All { get; } = new NodesValueType(AllValue); + /// Custom. + public static NodesValueType Custom { get; } = new NodesValueType(CustomValue); + /// Determines if two values are the same. + public static bool operator ==(NodesValueType left, NodesValueType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NodesValueType left, NodesValueType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NodesValueType(string value) => new NodesValueType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NodesValueType other && Equals(other); + /// + public bool Equals(NodesValueType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.Serialization.cs new file mode 100644 index 000000000000..dc673c22929b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.Serialization.cs @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class NotificationSetting : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(EmailOn)) + { + if (EmailOn != null) + { + writer.WritePropertyName("emailOn"u8); + writer.WriteStartArray(); + foreach (var item in EmailOn) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("emailOn"); + } + } + if (Optional.IsCollectionDefined(Emails)) + { + if (Emails != null) + { + writer.WritePropertyName("emails"u8); + writer.WriteStartArray(); + foreach (var item in Emails) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("emails"); + } + } + if (Optional.IsCollectionDefined(Webhooks)) + { + if (Webhooks != null) + { + writer.WritePropertyName("webhooks"u8); + writer.WriteStartObject(); + foreach (var item in Webhooks) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("webhooks"); + } + } + writer.WriteEndObject(); + } + + internal static NotificationSetting DeserializeNotificationSetting(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> emailOn = default; + Optional> emails = default; + Optional> webhooks = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("emailOn"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + emailOn = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new EmailNotificationEnableType(item.GetString())); + } + emailOn = array; + continue; + } + if (property.NameEquals("emails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + emails = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + emails = array; + continue; + } + if (property.NameEquals("webhooks"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + webhooks = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, Webhook.DeserializeWebhook(property0.Value)); + } + webhooks = dictionary; + continue; + } + } + return new NotificationSetting(Optional.ToList(emailOn), Optional.ToList(emails), Optional.ToDictionary(webhooks)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs new file mode 100644 index 000000000000..be697d64e55c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Configuration for notification. + public partial class NotificationSetting + { + /// Initializes a new instance of NotificationSetting. + public NotificationSetting() + { + EmailOn = new ChangeTrackingList(); + Emails = new ChangeTrackingList(); + Webhooks = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of NotificationSetting. + /// Send email notification to user on specified notification type. + /// This is the email recipient list which has a limitation of 499 characters in total concat with comma separator. + /// + /// Send webhook callback to a service. Key is a user-provided name for the webhook. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + internal NotificationSetting(IList emailOn, IList emails, IDictionary webhooks) + { + EmailOn = emailOn; + Emails = emails; + Webhooks = webhooks; + } + + /// Send email notification to user on specified notification type. + public IList EmailOn { get; set; } + /// This is the email recipient list which has a limitation of 499 characters in total concat with comma separator. + public IList Emails { get; set; } + /// + /// Send webhook callback to a service. Key is a user-provided name for the webhook. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public IDictionary Webhooks { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetric.cs new file mode 100644 index 000000000000..13e3111d7c0a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetric.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The NumericalDataDriftMetric. + public readonly partial struct NumericalDataDriftMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NumericalDataDriftMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string JensenShannonDistanceValue = "JensenShannonDistance"; + private const string PopulationStabilityIndexValue = "PopulationStabilityIndex"; + private const string NormalizedWassersteinDistanceValue = "NormalizedWassersteinDistance"; + private const string TwoSampleKolmogorovSmirnovTestValue = "TwoSampleKolmogorovSmirnovTest"; + + /// The Jensen Shannon Distance (JSD) metric. + public static NumericalDataDriftMetric JensenShannonDistance { get; } = new NumericalDataDriftMetric(JensenShannonDistanceValue); + /// The Population Stability Index (PSI) metric. + public static NumericalDataDriftMetric PopulationStabilityIndex { get; } = new NumericalDataDriftMetric(PopulationStabilityIndexValue); + /// The Normalized Wasserstein Distance metric. + public static NumericalDataDriftMetric NormalizedWassersteinDistance { get; } = new NumericalDataDriftMetric(NormalizedWassersteinDistanceValue); + /// The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. + public static NumericalDataDriftMetric TwoSampleKolmogorovSmirnovTest { get; } = new NumericalDataDriftMetric(TwoSampleKolmogorovSmirnovTestValue); + /// Determines if two values are the same. + public static bool operator ==(NumericalDataDriftMetric left, NumericalDataDriftMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NumericalDataDriftMetric left, NumericalDataDriftMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NumericalDataDriftMetric(string value) => new NumericalDataDriftMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NumericalDataDriftMetric other && Equals(other); + /// + public bool Equals(NumericalDataDriftMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..7a122f5e9993 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetricThreshold.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class NumericalDataDriftMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static NumericalDataDriftMetricThreshold DeserializeNumericalDataDriftMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + NumericalDataDriftMetric metric = default; + MonitoringFeatureDataType dataType = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new NumericalDataDriftMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new NumericalDataDriftMetricThreshold(dataType, threshold.Value, metric); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetricThreshold.cs new file mode 100644 index 000000000000..da556d1c940e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataDriftMetricThreshold.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The NumericalDataDriftMetricThreshold. + public partial class NumericalDataDriftMetricThreshold : DataDriftMetricThresholdBase + { + /// Initializes a new instance of NumericalDataDriftMetricThreshold. + /// [Required] The numerical data drift metric to calculate. + public NumericalDataDriftMetricThreshold(NumericalDataDriftMetric metric) + { + Metric = metric; + DataType = MonitoringFeatureDataType.Numerical; + } + + /// Initializes a new instance of NumericalDataDriftMetricThreshold. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + /// [Required] The numerical data drift metric to calculate. + internal NumericalDataDriftMetricThreshold(MonitoringFeatureDataType dataType, MonitoringThreshold threshold, NumericalDataDriftMetric metric) : base(dataType, threshold) + { + Metric = metric; + DataType = dataType; + } + + /// [Required] The numerical data drift metric to calculate. + public NumericalDataDriftMetric Metric { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetric.cs new file mode 100644 index 000000000000..96c757e926b9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetric.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The NumericalDataQualityMetric. + public readonly partial struct NumericalDataQualityMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NumericalDataQualityMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NullValueRateValue = "NullValueRate"; + private const string DataTypeErrorRateValue = "DataTypeErrorRate"; + private const string OutOfBoundsRateValue = "OutOfBoundsRate"; + + /// Calculates the rate of null values. + public static NumericalDataQualityMetric NullValueRate { get; } = new NumericalDataQualityMetric(NullValueRateValue); + /// Calculates the rate of data type errors. + public static NumericalDataQualityMetric DataTypeErrorRate { get; } = new NumericalDataQualityMetric(DataTypeErrorRateValue); + /// Calculates the rate values are out of bounds. + public static NumericalDataQualityMetric OutOfBoundsRate { get; } = new NumericalDataQualityMetric(OutOfBoundsRateValue); + /// Determines if two values are the same. + public static bool operator ==(NumericalDataQualityMetric left, NumericalDataQualityMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NumericalDataQualityMetric left, NumericalDataQualityMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NumericalDataQualityMetric(string value) => new NumericalDataQualityMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NumericalDataQualityMetric other && Equals(other); + /// + public bool Equals(NumericalDataQualityMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..2ce284b2b40b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetricThreshold.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class NumericalDataQualityMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static NumericalDataQualityMetricThreshold DeserializeNumericalDataQualityMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + NumericalDataQualityMetric metric = default; + MonitoringFeatureDataType dataType = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new NumericalDataQualityMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new NumericalDataQualityMetricThreshold(dataType, threshold.Value, metric); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetricThreshold.cs new file mode 100644 index 000000000000..1ca86df8a4fa --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalDataQualityMetricThreshold.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The NumericalDataQualityMetricThreshold. + public partial class NumericalDataQualityMetricThreshold : DataQualityMetricThresholdBase + { + /// Initializes a new instance of NumericalDataQualityMetricThreshold. + /// [Required] The numerical data quality metric to calculate. + public NumericalDataQualityMetricThreshold(NumericalDataQualityMetric metric) + { + Metric = metric; + DataType = MonitoringFeatureDataType.Numerical; + } + + /// Initializes a new instance of NumericalDataQualityMetricThreshold. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + /// [Required] The numerical data quality metric to calculate. + internal NumericalDataQualityMetricThreshold(MonitoringFeatureDataType dataType, MonitoringThreshold threshold, NumericalDataQualityMetric metric) : base(dataType, threshold) + { + Metric = metric; + DataType = dataType; + } + + /// [Required] The numerical data quality metric to calculate. + public NumericalDataQualityMetric Metric { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetric.cs new file mode 100644 index 000000000000..4bb1fd084870 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetric.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The NumericalPredictionDriftMetric. + public readonly partial struct NumericalPredictionDriftMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NumericalPredictionDriftMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string JensenShannonDistanceValue = "JensenShannonDistance"; + private const string PopulationStabilityIndexValue = "PopulationStabilityIndex"; + private const string NormalizedWassersteinDistanceValue = "NormalizedWassersteinDistance"; + private const string TwoSampleKolmogorovSmirnovTestValue = "TwoSampleKolmogorovSmirnovTest"; + + /// The Jensen Shannon Distance (JSD) metric. + public static NumericalPredictionDriftMetric JensenShannonDistance { get; } = new NumericalPredictionDriftMetric(JensenShannonDistanceValue); + /// The Population Stability Index (PSI) metric. + public static NumericalPredictionDriftMetric PopulationStabilityIndex { get; } = new NumericalPredictionDriftMetric(PopulationStabilityIndexValue); + /// The Normalized Wasserstein Distance metric. + public static NumericalPredictionDriftMetric NormalizedWassersteinDistance { get; } = new NumericalPredictionDriftMetric(NormalizedWassersteinDistanceValue); + /// The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. + public static NumericalPredictionDriftMetric TwoSampleKolmogorovSmirnovTest { get; } = new NumericalPredictionDriftMetric(TwoSampleKolmogorovSmirnovTestValue); + /// Determines if two values are the same. + public static bool operator ==(NumericalPredictionDriftMetric left, NumericalPredictionDriftMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NumericalPredictionDriftMetric left, NumericalPredictionDriftMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NumericalPredictionDriftMetric(string value) => new NumericalPredictionDriftMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NumericalPredictionDriftMetric other && Equals(other); + /// + public bool Equals(NumericalPredictionDriftMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..43c718456a4a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetricThreshold.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class NumericalPredictionDriftMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static NumericalPredictionDriftMetricThreshold DeserializeNumericalPredictionDriftMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + NumericalPredictionDriftMetric metric = default; + MonitoringFeatureDataType dataType = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new NumericalPredictionDriftMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new NumericalPredictionDriftMetricThreshold(dataType, threshold.Value, metric); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetricThreshold.cs new file mode 100644 index 000000000000..bdf26a5c7789 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NumericalPredictionDriftMetricThreshold.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The NumericalPredictionDriftMetricThreshold. + public partial class NumericalPredictionDriftMetricThreshold : PredictionDriftMetricThresholdBase + { + /// Initializes a new instance of NumericalPredictionDriftMetricThreshold. + /// [Required] The numerical prediction drift metric to calculate. + public NumericalPredictionDriftMetricThreshold(NumericalPredictionDriftMetric metric) + { + Metric = metric; + DataType = MonitoringFeatureDataType.Numerical; + } + + /// Initializes a new instance of NumericalPredictionDriftMetricThreshold. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + /// [Required] The numerical prediction drift metric to calculate. + internal NumericalPredictionDriftMetricThreshold(MonitoringFeatureDataType dataType, MonitoringThreshold threshold, NumericalPredictionDriftMetric metric) : base(dataType, threshold) + { + Metric = metric; + DataType = dataType; + } + + /// [Required] The numerical prediction drift metric to calculate. + public NumericalPredictionDriftMetric Metric { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifact.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifact.Serialization.cs new file mode 100644 index 000000000000..21585b9fc785 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifact.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class OneLakeArtifact : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("artifactName"u8); + writer.WriteStringValue(ArtifactName); + writer.WritePropertyName("artifactType"u8); + writer.WriteStringValue(ArtifactType.ToString()); + writer.WriteEndObject(); + } + + internal static OneLakeArtifact DeserializeOneLakeArtifact(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("artifactType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "LakeHouse": return LakeHouseArtifact.DeserializeLakeHouseArtifact(element); + } + } + return UnknownOneLakeArtifact.DeserializeUnknownOneLakeArtifact(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifact.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifact.cs new file mode 100644 index 000000000000..94a886f20fbf --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifact.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// OneLake artifact (data source) configuration. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class OneLakeArtifact + { + /// Initializes a new instance of OneLakeArtifact. + /// [Required] OneLake artifact name. + /// is null. + protected OneLakeArtifact(string artifactName) + { + Argument.AssertNotNull(artifactName, nameof(artifactName)); + + ArtifactName = artifactName; + } + + /// Initializes a new instance of OneLakeArtifact. + /// [Required] OneLake artifact name. + /// [Required] OneLake artifact type. + internal OneLakeArtifact(string artifactName, OneLakeArtifactType artifactType) + { + ArtifactName = artifactName; + ArtifactType = artifactType; + } + + /// [Required] OneLake artifact name. + public string ArtifactName { get; set; } + /// [Required] OneLake artifact type. + internal OneLakeArtifactType ArtifactType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifactType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifactType.cs new file mode 100644 index 000000000000..998f4829a6a2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeArtifactType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine OneLake artifact type. + internal readonly partial struct OneLakeArtifactType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public OneLakeArtifactType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string LakeHouseValue = "LakeHouse"; + + /// LakeHouse. + public static OneLakeArtifactType LakeHouse { get; } = new OneLakeArtifactType(LakeHouseValue); + /// Determines if two values are the same. + public static bool operator ==(OneLakeArtifactType left, OneLakeArtifactType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(OneLakeArtifactType left, OneLakeArtifactType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator OneLakeArtifactType(string value) => new OneLakeArtifactType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is OneLakeArtifactType other && Equals(other); + /// + public bool Equals(OneLakeArtifactType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeDatastore.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeDatastore.Serialization.cs new file mode 100644 index 000000000000..0394da8323ce --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeDatastore.Serialization.cs @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class OneLakeDatastore : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("artifact"u8); + writer.WriteObjectValue(Artifact); + if (Optional.IsDefined(Endpoint)) + { + if (Endpoint != null) + { + writer.WritePropertyName("endpoint"u8); + writer.WriteStringValue(Endpoint); + } + else + { + writer.WriteNull("endpoint"); + } + } + writer.WritePropertyName("oneLakeWorkspaceName"u8); + writer.WriteStringValue(OneLakeWorkspaceName); + if (Optional.IsDefined(ServiceDataAccessAuthIdentity)) + { + writer.WritePropertyName("serviceDataAccessAuthIdentity"u8); + writer.WriteStringValue(ServiceDataAccessAuthIdentity.Value.ToString()); + } + writer.WritePropertyName("credentials"u8); + writer.WriteObjectValue(Credentials); + writer.WritePropertyName("datastoreType"u8); + writer.WriteStringValue(DatastoreType.ToString()); + if (Optional.IsDefined(IntellectualProperty)) + { + if (IntellectualProperty != null) + { + writer.WritePropertyName("intellectualProperty"u8); + writer.WriteObjectValue(IntellectualProperty); + } + else + { + writer.WriteNull("intellectualProperty"); + } + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static OneLakeDatastore DeserializeOneLakeDatastore(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + OneLakeArtifact artifact = default; + Optional endpoint = default; + string oneLakeWorkspaceName = default; + Optional serviceDataAccessAuthIdentity = default; + MachineLearningDatastoreCredentials credentials = default; + DatastoreType datastoreType = default; + Optional intellectualProperty = default; + Optional isDefault = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("artifact"u8)) + { + artifact = OneLakeArtifact.DeserializeOneLakeArtifact(property.Value); + continue; + } + if (property.NameEquals("endpoint"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + endpoint = null; + continue; + } + endpoint = property.Value.GetString(); + continue; + } + if (property.NameEquals("oneLakeWorkspaceName"u8)) + { + oneLakeWorkspaceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("serviceDataAccessAuthIdentity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + serviceDataAccessAuthIdentity = new MachineLearningServiceDataAccessAuthIdentity(property.Value.GetString()); + continue; + } + if (property.NameEquals("credentials"u8)) + { + credentials = MachineLearningDatastoreCredentials.DeserializeMachineLearningDatastoreCredentials(property.Value); + continue; + } + if (property.NameEquals("datastoreType"u8)) + { + datastoreType = new DatastoreType(property.Value.GetString()); + continue; + } + if (property.NameEquals("intellectualProperty"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + intellectualProperty = null; + continue; + } + intellectualProperty = IntellectualProperty.DeserializeIntellectualProperty(property.Value); + continue; + } + if (property.NameEquals("isDefault"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isDefault = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new OneLakeDatastore(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), credentials, datastoreType, intellectualProperty.Value, Optional.ToNullable(isDefault), artifact, endpoint.Value, oneLakeWorkspaceName, Optional.ToNullable(serviceDataAccessAuthIdentity)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeDatastore.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeDatastore.cs new file mode 100644 index 000000000000..fdb4c278d515 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OneLakeDatastore.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// OneLake (Trident) datastore configuration. + public partial class OneLakeDatastore : MachineLearningDatastoreProperties + { + /// Initializes a new instance of OneLakeDatastore. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// + /// [Required] OneLake artifact backing the datastore. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// [Required] OneLake workspace name. + /// , or is null. + public OneLakeDatastore(MachineLearningDatastoreCredentials credentials, OneLakeArtifact artifact, string oneLakeWorkspaceName) : base(credentials) + { + Argument.AssertNotNull(credentials, nameof(credentials)); + Argument.AssertNotNull(artifact, nameof(artifact)); + Argument.AssertNotNull(oneLakeWorkspaceName, nameof(oneLakeWorkspaceName)); + + Artifact = artifact; + OneLakeWorkspaceName = oneLakeWorkspaceName; + DatastoreType = DatastoreType.OneLake; + } + + /// Initializes a new instance of OneLakeDatastore. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// [Required] Storage type backing the datastore. + /// Intellectual Property details. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// + /// [Required] OneLake artifact backing the datastore. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// OneLake endpoint to use for the datastore. + /// [Required] OneLake workspace name. + /// Indicates which identity to use to authenticate service data access to customer's storage. + internal OneLakeDatastore(string description, IDictionary properties, IDictionary tags, MachineLearningDatastoreCredentials credentials, DatastoreType datastoreType, IntellectualProperty intellectualProperty, bool? isDefault, OneLakeArtifact artifact, string endpoint, string oneLakeWorkspaceName, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity) : base(description, properties, tags, credentials, datastoreType, intellectualProperty, isDefault) + { + Artifact = artifact; + Endpoint = endpoint; + OneLakeWorkspaceName = oneLakeWorkspaceName; + ServiceDataAccessAuthIdentity = serviceDataAccessAuthIdentity; + DatastoreType = datastoreType; + } + + /// + /// [Required] OneLake artifact backing the datastore. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public OneLakeArtifact Artifact { get; set; } + /// OneLake endpoint to use for the datastore. + public string Endpoint { get; set; } + /// [Required] OneLake workspace name. + public string OneLakeWorkspaceName { get; set; } + /// Indicates which identity to use to authenticate service data access to customer's storage. + public MachineLearningServiceDataAccessAuthIdentity? ServiceDataAccessAuthIdentity { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineInferenceConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineInferenceConfiguration.Serialization.cs new file mode 100644 index 000000000000..b5de221114a6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineInferenceConfiguration.Serialization.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class OnlineInferenceConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Configurations)) + { + if (Configurations != null) + { + writer.WritePropertyName("configurations"u8); + writer.WriteStartObject(); + foreach (var item in Configurations) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("configurations"); + } + } + if (Optional.IsDefined(EntryScript)) + { + if (EntryScript != null) + { + writer.WritePropertyName("entryScript"u8); + writer.WriteStringValue(EntryScript); + } + else + { + writer.WriteNull("entryScript"); + } + } + if (Optional.IsDefined(LivenessRoute)) + { + if (LivenessRoute != null) + { + writer.WritePropertyName("livenessRoute"u8); + writer.WriteObjectValue(LivenessRoute); + } + else + { + writer.WriteNull("livenessRoute"); + } + } + if (Optional.IsDefined(ReadinessRoute)) + { + if (ReadinessRoute != null) + { + writer.WritePropertyName("readinessRoute"u8); + writer.WriteObjectValue(ReadinessRoute); + } + else + { + writer.WriteNull("readinessRoute"); + } + } + if (Optional.IsDefined(ScoringRoute)) + { + if (ScoringRoute != null) + { + writer.WritePropertyName("scoringRoute"u8); + writer.WriteObjectValue(ScoringRoute); + } + else + { + writer.WriteNull("scoringRoute"); + } + } + writer.WriteEndObject(); + } + + internal static OnlineInferenceConfiguration DeserializeOnlineInferenceConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> configurations = default; + Optional entryScript = default; + Optional livenessRoute = default; + Optional readinessRoute = default; + Optional scoringRoute = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("configurations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + configurations = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + configurations = dictionary; + continue; + } + if (property.NameEquals("entryScript"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + entryScript = null; + continue; + } + entryScript = property.Value.GetString(); + continue; + } + if (property.NameEquals("livenessRoute"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + livenessRoute = null; + continue; + } + livenessRoute = MachineLearningInferenceContainerRoute.DeserializeMachineLearningInferenceContainerRoute(property.Value); + continue; + } + if (property.NameEquals("readinessRoute"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + readinessRoute = null; + continue; + } + readinessRoute = MachineLearningInferenceContainerRoute.DeserializeMachineLearningInferenceContainerRoute(property.Value); + continue; + } + if (property.NameEquals("scoringRoute"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + scoringRoute = null; + continue; + } + scoringRoute = MachineLearningInferenceContainerRoute.DeserializeMachineLearningInferenceContainerRoute(property.Value); + continue; + } + } + return new OnlineInferenceConfiguration(Optional.ToDictionary(configurations), entryScript.Value, livenessRoute.Value, readinessRoute.Value, scoringRoute.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineInferenceConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineInferenceConfiguration.cs new file mode 100644 index 000000000000..d017011d987c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineInferenceConfiguration.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Online inference configuration options. + public partial class OnlineInferenceConfiguration + { + /// Initializes a new instance of OnlineInferenceConfiguration. + public OnlineInferenceConfiguration() + { + Configurations = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of OnlineInferenceConfiguration. + /// Additional configurations. + /// Entry script or command to invoke. + /// The route to check the liveness of the inference server container. + /// The route to check the readiness of the inference server container. + /// The port to send the scoring requests to, within the inference server container. + internal OnlineInferenceConfiguration(IDictionary configurations, string entryScript, MachineLearningInferenceContainerRoute livenessRoute, MachineLearningInferenceContainerRoute readinessRoute, MachineLearningInferenceContainerRoute scoringRoute) + { + Configurations = configurations; + EntryScript = entryScript; + LivenessRoute = livenessRoute; + ReadinessRoute = readinessRoute; + ScoringRoute = scoringRoute; + } + + /// Additional configurations. + public IDictionary Configurations { get; set; } + /// Entry script or command to invoke. + public string EntryScript { get; set; } + /// The route to check the liveness of the inference server container. + public MachineLearningInferenceContainerRoute LivenessRoute { get; set; } + /// The route to check the readiness of the inference server container. + public MachineLearningInferenceContainerRoute ReadinessRoute { get; set; } + /// The port to send the scoring requests to, within the inference server container. + public MachineLearningInferenceContainerRoute ScoringRoute { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.Serialization.cs new file mode 100644 index 000000000000..8c3d5231a561 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class OutboundRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + writer.WritePropertyName("type"u8); + writer.WriteStringValue(RuleType.ToString()); + writer.WriteEndObject(); + } + + internal static OutboundRule DeserializeOutboundRule(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("type", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "FQDN": return FqdnOutboundRule.DeserializeFqdnOutboundRule(element); + case "PrivateEndpoint": return PrivateEndpointOutboundRule.DeserializePrivateEndpointOutboundRule(element); + case "ServiceTag": return ServiceTagOutboundRule.DeserializeServiceTagOutboundRule(element); + } + } + return UnknownOutboundRule.DeserializeUnknownOutboundRule(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.cs new file mode 100644 index 000000000000..ab2a8ab0fb28 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Outbound Rule for the managed network of a machine learning workspace. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public abstract partial class OutboundRule + { + /// Initializes a new instance of OutboundRule. + protected OutboundRule() + { + } + + /// Initializes a new instance of OutboundRule. + /// Category of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + internal OutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType) + { + Category = category; + Status = status; + RuleType = ruleType; + } + + /// Category of a managed network Outbound Rule of a machine learning workspace. + public RuleCategory? Category { get; set; } + /// Type of a managed network Outbound Rule of a machine learning workspace. + public RuleStatus? Status { get; set; } + /// Type of a managed network Outbound Rule of a machine learning workspace. + internal RuleType RuleType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleBasicResourceData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleBasicResourceData.Serialization.cs new file mode 100644 index 000000000000..a1fc1a6071f8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleBasicResourceData.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class OutboundRuleBasicResourceData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static OutboundRuleBasicResourceData DeserializeOutboundRuleBasicResourceData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + OutboundRule properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = OutboundRule.DeserializeOutboundRule(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new OutboundRuleBasicResourceData(id, name, type, systemData.Value, properties); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.Serialization.cs new file mode 100644 index 000000000000..f488270e7340 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class OutboundRuleListResult + { + internal static OutboundRuleListResult DeserializeOutboundRuleListResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(item)); + } + value = array; + continue; + } + } + return new OutboundRuleListResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs new file mode 100644 index 000000000000..6519d2b1de09 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// List of outbound rules for the managed network of a machine learning workspace. + internal partial class OutboundRuleListResult + { + /// Initializes a new instance of OutboundRuleListResult. + internal OutboundRuleListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of OutboundRuleListResult. + /// The link to the next page constructed using the continuationToken. If null, there are no additional pages. + /// 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. + internal OutboundRuleListResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page constructed using the continuationToken. If null, there are no additional pages. + public string NextLink { get; } + /// 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. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageBuildState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageBuildState.cs new file mode 100644 index 000000000000..0adc706b21f2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageBuildState.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Package build state returned in package response. + public readonly partial struct PackageBuildState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PackageBuildState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotStartedValue = "NotStarted"; + private const string RunningValue = "Running"; + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + + /// NotStarted. + public static PackageBuildState NotStarted { get; } = new PackageBuildState(NotStartedValue); + /// Running. + public static PackageBuildState Running { get; } = new PackageBuildState(RunningValue); + /// Succeeded. + public static PackageBuildState Succeeded { get; } = new PackageBuildState(SucceededValue); + /// Failed. + public static PackageBuildState Failed { get; } = new PackageBuildState(FailedValue); + /// Determines if two values are the same. + public static bool operator ==(PackageBuildState left, PackageBuildState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PackageBuildState left, PackageBuildState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PackageBuildState(string value) => new PackageBuildState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PackageBuildState other && Equals(other); + /// + public bool Equals(PackageBuildState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputDeliveryMode.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputDeliveryMode.cs new file mode 100644 index 000000000000..5e5594e252a5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputDeliveryMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Mounting type of the model or the inputs. + public readonly partial struct PackageInputDeliveryMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PackageInputDeliveryMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CopyValue = "Copy"; + private const string DownloadValue = "Download"; + + /// Copy. + public static PackageInputDeliveryMode Copy { get; } = new PackageInputDeliveryMode(CopyValue); + /// Download. + public static PackageInputDeliveryMode Download { get; } = new PackageInputDeliveryMode(DownloadValue); + /// Determines if two values are the same. + public static bool operator ==(PackageInputDeliveryMode left, PackageInputDeliveryMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PackageInputDeliveryMode left, PackageInputDeliveryMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PackageInputDeliveryMode(string value) => new PackageInputDeliveryMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PackageInputDeliveryMode other && Equals(other); + /// + public bool Equals(PackageInputDeliveryMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathBase.Serialization.cs new file mode 100644 index 000000000000..36ff32d708a6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathBase.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PackageInputPathBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("inputPathType"u8); + writer.WriteStringValue(InputPathType.ToString()); + writer.WriteEndObject(); + } + + internal static PackageInputPathBase DeserializePackageInputPathBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("inputPathType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "PathId": return PackageInputPathId.DeserializePackageInputPathId(element); + case "PathVersion": return PackageInputPathVersion.DeserializePackageInputPathVersion(element); + case "Url": return PackageInputPathUri.DeserializePackageInputPathUri(element); + } + } + return UnknownPackageInputPathBase.DeserializeUnknownPackageInputPathBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathBase.cs new file mode 100644 index 000000000000..40851cee083d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathBase.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The PackageInputPathBase. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public abstract partial class PackageInputPathBase + { + /// Initializes a new instance of PackageInputPathBase. + protected PackageInputPathBase() + { + } + + /// Initializes a new instance of PackageInputPathBase. + /// [Required] Input path type for package inputs. + internal PackageInputPathBase(InputPathType inputPathType) + { + InputPathType = inputPathType; + } + + /// [Required] Input path type for package inputs. + internal InputPathType InputPathType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.Serialization.cs new file mode 100644 index 000000000000..5a4676629d5d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PackageInputPathId : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ResourceId)) + { + if (ResourceId != null) + { + writer.WritePropertyName("resourceId"u8); + writer.WriteStringValue(ResourceId); + } + else + { + writer.WriteNull("resourceId"); + } + } + writer.WritePropertyName("inputPathType"u8); + writer.WriteStringValue(InputPathType.ToString()); + writer.WriteEndObject(); + } + + internal static PackageInputPathId DeserializePackageInputPathId(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional resourceId = default; + InputPathType inputPathType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resourceId = null; + continue; + } + resourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("inputPathType"u8)) + { + inputPathType = new InputPathType(property.Value.GetString()); + continue; + } + } + return new PackageInputPathId(inputPathType, resourceId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.cs new file mode 100644 index 000000000000..a9072e18a264 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Package input path specified with a resource id. + public partial class PackageInputPathId : PackageInputPathBase + { + /// Initializes a new instance of PackageInputPathId. + public PackageInputPathId() + { + InputPathType = InputPathType.PathId; + } + + /// Initializes a new instance of PackageInputPathId. + /// [Required] Input path type for package inputs. + /// Input resource id. + internal PackageInputPathId(InputPathType inputPathType, string resourceId) : base(inputPathType) + { + ResourceId = resourceId; + InputPathType = inputPathType; + } + + /// Input resource id. + public string ResourceId { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathUri.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathUri.Serialization.cs new file mode 100644 index 000000000000..0781f87b3bee --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathUri.Serialization.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PackageInputPathUri : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Uri)) + { + if (Uri != null) + { + writer.WritePropertyName("url"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + } + else + { + writer.WriteNull("url"); + } + } + writer.WritePropertyName("inputPathType"u8); + writer.WriteStringValue(InputPathType.ToString()); + writer.WriteEndObject(); + } + + internal static PackageInputPathUri DeserializePackageInputPathUri(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional url = default; + InputPathType inputPathType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("url"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + url = null; + continue; + } + url = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("inputPathType"u8)) + { + inputPathType = new InputPathType(property.Value.GetString()); + continue; + } + } + return new PackageInputPathUri(inputPathType, url.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathUri.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathUri.cs new file mode 100644 index 000000000000..f89292b8508b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathUri.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Package input path specified as an url. + public partial class PackageInputPathUri : PackageInputPathBase + { + /// Initializes a new instance of PackageInputPathUri. + public PackageInputPathUri() + { + InputPathType = InputPathType.Url; + } + + /// Initializes a new instance of PackageInputPathUri. + /// [Required] Input path type for package inputs. + /// Input path url. + internal PackageInputPathUri(InputPathType inputPathType, Uri uri) : base(inputPathType) + { + Uri = uri; + InputPathType = inputPathType; + } + + /// Input path url. + public Uri Uri { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathVersion.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathVersion.Serialization.cs new file mode 100644 index 000000000000..80482b74d5b7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathVersion.Serialization.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PackageInputPathVersion : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ResourceName)) + { + if (ResourceName != null) + { + writer.WritePropertyName("resourceName"u8); + writer.WriteStringValue(ResourceName); + } + else + { + writer.WriteNull("resourceName"); + } + } + if (Optional.IsDefined(ResourceVersion)) + { + if (ResourceVersion != null) + { + writer.WritePropertyName("resourceVersion"u8); + writer.WriteStringValue(ResourceVersion); + } + else + { + writer.WriteNull("resourceVersion"); + } + } + writer.WritePropertyName("inputPathType"u8); + writer.WriteStringValue(InputPathType.ToString()); + writer.WriteEndObject(); + } + + internal static PackageInputPathVersion DeserializePackageInputPathVersion(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional resourceName = default; + Optional resourceVersion = default; + InputPathType inputPathType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resourceName = null; + continue; + } + resourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceVersion"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resourceVersion = null; + continue; + } + resourceVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("inputPathType"u8)) + { + inputPathType = new InputPathType(property.Value.GetString()); + continue; + } + } + return new PackageInputPathVersion(inputPathType, resourceName.Value, resourceVersion.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathVersion.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathVersion.cs new file mode 100644 index 000000000000..b59929577aa0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathVersion.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Package input path specified with name and version. + public partial class PackageInputPathVersion : PackageInputPathBase + { + /// Initializes a new instance of PackageInputPathVersion. + public PackageInputPathVersion() + { + InputPathType = InputPathType.PathVersion; + } + + /// Initializes a new instance of PackageInputPathVersion. + /// [Required] Input path type for package inputs. + /// Input resource name. + /// Input resource version. + internal PackageInputPathVersion(InputPathType inputPathType, string resourceName, string resourceVersion) : base(inputPathType) + { + ResourceName = resourceName; + ResourceVersion = resourceVersion; + InputPathType = inputPathType; + } + + /// Input resource name. + public string ResourceName { get; set; } + /// Input resource version. + public string ResourceVersion { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputType.cs new file mode 100644 index 000000000000..2fcc93a0161e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of the inputs. + public readonly partial struct PackageInputType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PackageInputType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UriFileValue = "UriFile"; + private const string UriFolderValue = "UriFolder"; + + /// UriFile. + public static PackageInputType UriFile { get; } = new PackageInputType(UriFileValue); + /// UriFolder. + public static PackageInputType UriFolder { get; } = new PackageInputType(UriFolderValue); + /// Determines if two values are the same. + public static bool operator ==(PackageInputType left, PackageInputType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PackageInputType left, PackageInputType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PackageInputType(string value) => new PackageInputType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PackageInputType other && Equals(other); + /// + public bool Equals(PackageInputType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.Serialization.cs new file mode 100644 index 000000000000..f09d44e5f240 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.Serialization.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PackageRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(BaseEnvironmentSource)) + { + if (BaseEnvironmentSource != null) + { + writer.WritePropertyName("baseEnvironmentSource"u8); + writer.WriteObjectValue(BaseEnvironmentSource); + } + else + { + writer.WriteNull("baseEnvironmentSource"); + } + } + if (Optional.IsCollectionDefined(EnvironmentVariables)) + { + if (EnvironmentVariables != null) + { + writer.WritePropertyName("environmentVariables"u8); + writer.WriteStartObject(); + foreach (var item in EnvironmentVariables) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("environmentVariables"); + } + } + writer.WritePropertyName("inferencingServer"u8); + writer.WriteObjectValue(InferencingServer); + if (Optional.IsCollectionDefined(Inputs)) + { + if (Inputs != null) + { + writer.WritePropertyName("inputs"u8); + writer.WriteStartArray(); + foreach (var item in Inputs) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("inputs"); + } + } + if (Optional.IsDefined(ModelConfiguration)) + { + if (ModelConfiguration != null) + { + writer.WritePropertyName("modelConfiguration"u8); + writer.WriteObjectValue(ModelConfiguration); + } + else + { + writer.WriteNull("modelConfiguration"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WritePropertyName("targetEnvironmentId"u8); + writer.WriteStringValue(TargetEnvironmentId); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs new file mode 100644 index 000000000000..29d84e240aea --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Model package operation request properties. + public partial class PackageRequest + { + /// Initializes a new instance of PackageRequest. + /// + /// [Required] Inferencing server configurations. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// [Required] Arm ID of the target environment to be created by package operation. + /// or is null. + public PackageRequest(InferencingServer inferencingServer, string targetEnvironmentId) + { + Argument.AssertNotNull(inferencingServer, nameof(inferencingServer)); + Argument.AssertNotNull(targetEnvironmentId, nameof(targetEnvironmentId)); + + EnvironmentVariables = new ChangeTrackingDictionary(); + InferencingServer = inferencingServer; + Inputs = new ChangeTrackingList(); + Tags = new ChangeTrackingDictionary(); + TargetEnvironmentId = targetEnvironmentId; + } + + /// + /// Base environment to start with. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public BaseEnvironmentSource BaseEnvironmentSource { get; set; } + /// Collection of environment variables. + public IDictionary EnvironmentVariables { get; set; } + /// + /// [Required] Inferencing server configurations. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + public InferencingServer InferencingServer { get; } + /// Collection of inputs. + public IList Inputs { get; set; } + /// Model configuration including the mount mode. + public ModelConfiguration ModelConfiguration { get; set; } + /// Tag dictionary. Tags can be added, removed, and updated. + public IDictionary Tags { get; set; } + /// [Required] Arm ID of the target environment to be created by package operation. + public string TargetEnvironmentId { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.Serialization.cs new file mode 100644 index 000000000000..fdf987c9929b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.Serialization.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PackageResponse + { + internal static PackageResponse DeserializePackageResponse(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional baseEnvironmentSource = default; + Optional buildId = default; + Optional buildState = default; + Optional> environmentVariables = default; + Optional inferencingServer = default; + Optional> inputs = default; + Optional logUrl = default; + Optional modelConfiguration = default; + Optional> tags = default; + Optional targetEnvironmentId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("baseEnvironmentSource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + baseEnvironmentSource = null; + continue; + } + baseEnvironmentSource = BaseEnvironmentSource.DeserializeBaseEnvironmentSource(property.Value); + continue; + } + if (property.NameEquals("buildId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + buildId = null; + continue; + } + buildId = property.Value.GetString(); + continue; + } + if (property.NameEquals("buildState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + buildState = new PackageBuildState(property.Value.GetString()); + continue; + } + if (property.NameEquals("environmentVariables"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + environmentVariables = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + environmentVariables = dictionary; + continue; + } + if (property.NameEquals("inferencingServer"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + inferencingServer = null; + continue; + } + inferencingServer = InferencingServer.DeserializeInferencingServer(property.Value); + continue; + } + if (property.NameEquals("inputs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + inputs = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ModelPackageInput.DeserializeModelPackageInput(item)); + } + inputs = array; + continue; + } + if (property.NameEquals("logUrl"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + logUrl = null; + continue; + } + logUrl = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("modelConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + modelConfiguration = null; + continue; + } + modelConfiguration = ModelConfiguration.DeserializeModelConfiguration(property.Value); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("targetEnvironmentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + targetEnvironmentId = null; + continue; + } + targetEnvironmentId = property.Value.GetString(); + continue; + } + } + return new PackageResponse(baseEnvironmentSource.Value, buildId.Value, Optional.ToNullable(buildState), Optional.ToDictionary(environmentVariables), inferencingServer.Value, Optional.ToList(inputs), logUrl.Value, modelConfiguration.Value, Optional.ToDictionary(tags), targetEnvironmentId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs new file mode 100644 index 000000000000..a143d13f1683 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Package response returned after async package operation completes successfully. + public partial class PackageResponse + { + /// Initializes a new instance of PackageResponse. + internal PackageResponse() + { + EnvironmentVariables = new ChangeTrackingDictionary(); + Inputs = new ChangeTrackingList(); + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of PackageResponse. + /// + /// Base environment to start with. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// Build id of the image build operation. + /// Build state of the image build operation. + /// Collection of environment variables. + /// + /// Inferencing server configurations. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Collection of inputs. + /// Log url of the image build operation. + /// Model configuration including the mount mode. + /// Tag dictionary. Tags can be added, removed, and updated. + /// Asset ID of the target environment created by package operation. + internal PackageResponse(BaseEnvironmentSource baseEnvironmentSource, string buildId, PackageBuildState? buildState, IReadOnlyDictionary environmentVariables, InferencingServer inferencingServer, IReadOnlyList inputs, Uri logUri, ModelConfiguration modelConfiguration, IReadOnlyDictionary tags, string targetEnvironmentId) + { + BaseEnvironmentSource = baseEnvironmentSource; + BuildId = buildId; + BuildState = buildState; + EnvironmentVariables = environmentVariables; + InferencingServer = inferencingServer; + Inputs = inputs; + LogUri = logUri; + ModelConfiguration = modelConfiguration; + Tags = tags; + TargetEnvironmentId = targetEnvironmentId; + } + + /// + /// Base environment to start with. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public BaseEnvironmentSource BaseEnvironmentSource { get; } + /// Build id of the image build operation. + public string BuildId { get; } + /// Build state of the image build operation. + public PackageBuildState? BuildState { get; } + /// Collection of environment variables. + public IReadOnlyDictionary EnvironmentVariables { get; } + /// + /// Inferencing server configurations. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + public InferencingServer InferencingServer { get; } + /// Collection of inputs. + public IReadOnlyList Inputs { get; } + /// Log url of the image build operation. + public Uri LogUri { get; } + /// Model configuration including the mount mode. + public ModelConfiguration ModelConfiguration { get; } + /// Tag dictionary. Tags can be added, removed, and updated. + public IReadOnlyDictionary Tags { get; } + /// Asset ID of the target environment created by package operation. + public string TargetEnvironmentId { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.Serialization.cs new file mode 100644 index 000000000000..39ab5dadd4ba --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class PartialJobBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(NotificationSetting)) + { + if (NotificationSetting != null) + { + writer.WritePropertyName("notificationSetting"u8); + writer.WriteObjectValue(NotificationSetting); + } + else + { + writer.WriteNull("notificationSetting"); + } + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.cs new file mode 100644 index 000000000000..f9531cdab2a6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Mutable base definition for a job. + internal partial class PartialJobBase + { + /// Initializes a new instance of PartialJobBase. + public PartialJobBase() + { + } + + /// Mutable notification setting for the job. + internal PartialNotificationSetting NotificationSetting { get; set; } + /// + /// Send webhook callback to a service. Key is a user-provided name for the webhook. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public IDictionary NotificationSettingWebhooks + { + get => NotificationSetting is null ? default : NotificationSetting.Webhooks; + set + { + if (NotificationSetting is null) + NotificationSetting = new PartialNotificationSetting(); + NotificationSetting.Webhooks = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.Serialization.cs new file mode 100644 index 000000000000..b557ee9d2de2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class PartialNotificationSetting : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Webhooks)) + { + if (Webhooks != null) + { + writer.WritePropertyName("webhooks"u8); + writer.WriteStartObject(); + foreach (var item in Webhooks) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("webhooks"); + } + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.cs new file mode 100644 index 000000000000..dbc1e6c99dcf --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Mutable configuration for notification. + internal partial class PartialNotificationSetting + { + /// Initializes a new instance of PartialNotificationSetting. + public PartialNotificationSetting() + { + Webhooks = new ChangeTrackingDictionary(); + } + + /// + /// Send webhook callback to a service. Key is a user-provided name for the webhook. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public IDictionary Webhooks { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialDto.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialDto.Serialization.cs new file mode 100644 index 000000000000..1401fe5acf25 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialDto.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PendingUploadCredentialDto + { + internal static PendingUploadCredentialDto DeserializePendingUploadCredentialDto(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("credentialType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "SAS": return SasCredentialDto.DeserializeSasCredentialDto(element); + } + } + return UnknownPendingUploadCredentialDto.DeserializeUnknownPendingUploadCredentialDto(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialDto.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialDto.cs new file mode 100644 index 000000000000..3bd6c65472d2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialDto.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The PendingUploadCredentialDto. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class PendingUploadCredentialDto + { + /// Initializes a new instance of PendingUploadCredentialDto. + protected PendingUploadCredentialDto() + { + } + + /// Initializes a new instance of PendingUploadCredentialDto. + /// [Required] Credential type used to authentication with storage. + internal PendingUploadCredentialDto(PendingUploadCredentialType credentialType) + { + CredentialType = credentialType; + } + + /// [Required] Credential type used to authentication with storage. + internal PendingUploadCredentialType CredentialType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialType.cs new file mode 100644 index 000000000000..0b228b06d722 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadCredentialType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the PendingUpload credentials type. + internal readonly partial struct PendingUploadCredentialType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PendingUploadCredentialType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SasValue = "SAS"; + + /// SAS. + public static PendingUploadCredentialType Sas { get; } = new PendingUploadCredentialType(SasValue); + /// Determines if two values are the same. + public static bool operator ==(PendingUploadCredentialType left, PendingUploadCredentialType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PendingUploadCredentialType left, PendingUploadCredentialType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PendingUploadCredentialType(string value) => new PendingUploadCredentialType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PendingUploadCredentialType other && Equals(other); + /// + public bool Equals(PendingUploadCredentialType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadRequestDto.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadRequestDto.Serialization.cs new file mode 100644 index 000000000000..3c854c2cac6c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadRequestDto.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PendingUploadRequestDto : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(PendingUploadId)) + { + if (PendingUploadId != null) + { + writer.WritePropertyName("pendingUploadId"u8); + writer.WriteStringValue(PendingUploadId); + } + else + { + writer.WriteNull("pendingUploadId"); + } + } + if (Optional.IsDefined(PendingUploadType)) + { + writer.WritePropertyName("pendingUploadType"u8); + writer.WriteStringValue(PendingUploadType.Value.ToString()); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadRequestDto.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadRequestDto.cs new file mode 100644 index 000000000000..fed670402dca --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadRequestDto.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The PendingUploadRequestDto. + public partial class PendingUploadRequestDto + { + /// Initializes a new instance of PendingUploadRequestDto. + public PendingUploadRequestDto() + { + } + + /// If PendingUploadId = null then random guid will be used. + public string PendingUploadId { get; set; } + /// TemporaryBlobReference is the only supported type. + public PendingUploadType? PendingUploadType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadResponseDto.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadResponseDto.Serialization.cs new file mode 100644 index 000000000000..1794e133c210 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadResponseDto.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PendingUploadResponseDto + { + internal static PendingUploadResponseDto DeserializePendingUploadResponseDto(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional blobReferenceForConsumption = default; + Optional pendingUploadId = default; + Optional pendingUploadType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("blobReferenceForConsumption"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + blobReferenceForConsumption = null; + continue; + } + blobReferenceForConsumption = BlobReferenceForConsumptionDto.DeserializeBlobReferenceForConsumptionDto(property.Value); + continue; + } + if (property.NameEquals("pendingUploadId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + pendingUploadId = null; + continue; + } + pendingUploadId = property.Value.GetString(); + continue; + } + if (property.NameEquals("pendingUploadType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pendingUploadType = new PendingUploadType(property.Value.GetString()); + continue; + } + } + return new PendingUploadResponseDto(blobReferenceForConsumption.Value, pendingUploadId.Value, Optional.ToNullable(pendingUploadType)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadResponseDto.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadResponseDto.cs new file mode 100644 index 000000000000..12828feb8d52 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadResponseDto.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The PendingUploadResponseDto. + public partial class PendingUploadResponseDto + { + /// Initializes a new instance of PendingUploadResponseDto. + internal PendingUploadResponseDto() + { + } + + /// Initializes a new instance of PendingUploadResponseDto. + /// Container level read, write, list SAS. + /// ID for this upload request. + /// TemporaryBlobReference is the only supported type. + internal PendingUploadResponseDto(BlobReferenceForConsumptionDto blobReferenceForConsumption, string pendingUploadId, PendingUploadType? pendingUploadType) + { + BlobReferenceForConsumption = blobReferenceForConsumption; + PendingUploadId = pendingUploadId; + PendingUploadType = pendingUploadType; + } + + /// Container level read, write, list SAS. + public BlobReferenceForConsumptionDto BlobReferenceForConsumption { get; } + /// ID for this upload request. + public string PendingUploadId { get; } + /// TemporaryBlobReference is the only supported type. + public PendingUploadType? PendingUploadType { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadType.cs new file mode 100644 index 000000000000..9da24d66ed37 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PendingUploadType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of storage to use for the pending upload location. + public readonly partial struct PendingUploadType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PendingUploadType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string TemporaryBlobReferenceValue = "TemporaryBlobReference"; + + /// None. + public static PendingUploadType None { get; } = new PendingUploadType(NoneValue); + /// TemporaryBlobReference. + public static PendingUploadType TemporaryBlobReference { get; } = new PendingUploadType(TemporaryBlobReferenceValue); + /// Determines if two values are the same. + public static bool operator ==(PendingUploadType left, PendingUploadType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PendingUploadType left, PendingUploadType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PendingUploadType(string value) => new PendingUploadType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PendingUploadType other && Equals(other); + /// + public bool Equals(PendingUploadType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMetricThresholdBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMetricThresholdBase.Serialization.cs new file mode 100644 index 000000000000..1f845a97bbfe --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMetricThresholdBase.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PredictionDriftMetricThresholdBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static PredictionDriftMetricThresholdBase DeserializePredictionDriftMetricThresholdBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("dataType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Categorical": return CategoricalPredictionDriftMetricThreshold.DeserializeCategoricalPredictionDriftMetricThreshold(element); + case "Numerical": return NumericalPredictionDriftMetricThreshold.DeserializeNumericalPredictionDriftMetricThreshold(element); + } + } + return UnknownPredictionDriftMetricThresholdBase.DeserializeUnknownPredictionDriftMetricThresholdBase(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMetricThresholdBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMetricThresholdBase.cs new file mode 100644 index 000000000000..9d63a9f52bcd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMetricThresholdBase.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The PredictionDriftMetricThresholdBase. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class PredictionDriftMetricThresholdBase + { + /// Initializes a new instance of PredictionDriftMetricThresholdBase. + protected PredictionDriftMetricThresholdBase() + { + } + + /// Initializes a new instance of PredictionDriftMetricThresholdBase. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal PredictionDriftMetricThresholdBase(MonitoringFeatureDataType dataType, MonitoringThreshold threshold) + { + DataType = dataType; + Threshold = threshold; + } + + /// [Required] Specifies the data type of the metric threshold. + internal MonitoringFeatureDataType DataType { get; set; } + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal MonitoringThreshold Threshold { get; set; } + /// The threshold value. If null, the set default is dependent on the metric type. + public double? ThresholdValue + { + get => Threshold is null ? default : Threshold.Value; + set + { + if (Threshold is null) + Threshold = new MonitoringThreshold(); + Threshold.Value = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMonitoringSignal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMonitoringSignal.Serialization.cs new file mode 100644 index 000000000000..fc0a774c0305 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMonitoringSignal.Serialization.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PredictionDriftMonitoringSignal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metricThresholds"u8); + writer.WriteStartArray(); + foreach (var item in MetricThresholds) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("modelType"u8); + writer.WriteStringValue(ModelType.ToString()); + writer.WritePropertyName("productionData"u8); + writer.WriteObjectValue(ProductionData); + writer.WritePropertyName("referenceData"u8); + writer.WriteObjectValue(ReferenceData); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static PredictionDriftMonitoringSignal DeserializePredictionDriftMonitoringSignal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList metricThresholds = default; + MonitoringModelType modelType = default; + MonitoringInputDataBase productionData = default; + MonitoringInputDataBase referenceData = default; + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metricThresholds"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PredictionDriftMetricThresholdBase.DeserializePredictionDriftMetricThresholdBase(item)); + } + metricThresholds = array; + continue; + } + if (property.NameEquals("modelType"u8)) + { + modelType = new MonitoringModelType(property.Value.GetString()); + continue; + } + if (property.NameEquals("productionData"u8)) + { + productionData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("referenceData"u8)) + { + referenceData = MonitoringInputDataBase.DeserializeMonitoringInputDataBase(property.Value); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new PredictionDriftMonitoringSignal(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType, metricThresholds, modelType, productionData, referenceData); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMonitoringSignal.cs new file mode 100644 index 000000000000..22ada1c01a54 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PredictionDriftMonitoringSignal.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The PredictionDriftMonitoringSignal. + public partial class PredictionDriftMonitoringSignal : MonitoringSignalBase + { + /// Initializes a new instance of PredictionDriftMonitoringSignal. + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// [Required] The type of the model monitored. + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// , or is null. + public PredictionDriftMonitoringSignal(IEnumerable metricThresholds, MonitoringModelType modelType, MonitoringInputDataBase productionData, MonitoringInputDataBase referenceData) + { + Argument.AssertNotNull(metricThresholds, nameof(metricThresholds)); + Argument.AssertNotNull(productionData, nameof(productionData)); + Argument.AssertNotNull(referenceData, nameof(referenceData)); + + MetricThresholds = metricThresholds.ToList(); + ModelType = modelType; + ProductionData = productionData; + ReferenceData = referenceData; + SignalType = MonitoringSignalType.PredictionDrift; + } + + /// Initializes a new instance of PredictionDriftMonitoringSignal. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// [Required] The type of the model monitored. + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + internal PredictionDriftMonitoringSignal(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType, IList metricThresholds, MonitoringModelType modelType, MonitoringInputDataBase productionData, MonitoringInputDataBase referenceData) : base(mode, properties, signalType) + { + MetricThresholds = metricThresholds; + ModelType = modelType; + ProductionData = productionData; + ReferenceData = referenceData; + SignalType = signalType; + } + + /// + /// [Required] A list of metrics to calculate and their associated thresholds. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public IList MetricThresholds { get; } + /// [Required] The type of the model monitored. + public MonitoringModelType ModelType { get; set; } + /// + /// [Required] The data which drift will be calculated for. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ProductionData { get; set; } + /// + /// [Required] The data to calculate drift against. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MonitoringInputDataBase ReferenceData { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.Serialization.cs new file mode 100644 index 000000000000..83141bac23b7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.Serialization.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PrivateEndpointDestination : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ServiceResourceId)) + { + writer.WritePropertyName("serviceResourceId"u8); + writer.WriteStringValue(ServiceResourceId); + } + if (Optional.IsDefined(SparkEnabled)) + { + writer.WritePropertyName("sparkEnabled"u8); + writer.WriteBooleanValue(SparkEnabled.Value); + } + if (Optional.IsDefined(SparkStatus)) + { + writer.WritePropertyName("sparkStatus"u8); + writer.WriteStringValue(SparkStatus.Value.ToString()); + } + if (Optional.IsDefined(SubresourceTarget)) + { + writer.WritePropertyName("subresourceTarget"u8); + writer.WriteStringValue(SubresourceTarget); + } + writer.WriteEndObject(); + } + + internal static PrivateEndpointDestination DeserializePrivateEndpointDestination(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional serviceResourceId = default; + Optional sparkEnabled = default; + Optional sparkStatus = default; + Optional subresourceTarget = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("serviceResourceId"u8)) + { + serviceResourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("sparkEnabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sparkEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("sparkStatus"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sparkStatus = new RuleStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("subresourceTarget"u8)) + { + subresourceTarget = property.Value.GetString(); + continue; + } + } + return new PrivateEndpointDestination(serviceResourceId.Value, Optional.ToNullable(sparkEnabled), Optional.ToNullable(sparkStatus), subresourceTarget.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.cs new file mode 100644 index 000000000000..dbd3ea8a3e52 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. + public partial class PrivateEndpointDestination + { + /// Initializes a new instance of PrivateEndpointDestination. + public PrivateEndpointDestination() + { + } + + /// Initializes a new instance of PrivateEndpointDestination. + /// + /// + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// + internal PrivateEndpointDestination(string serviceResourceId, bool? sparkEnabled, RuleStatus? sparkStatus, string subresourceTarget) + { + ServiceResourceId = serviceResourceId; + SparkEnabled = sparkEnabled; + SparkStatus = sparkStatus; + SubresourceTarget = subresourceTarget; + } + + /// Gets or sets the service resource id. + public string ServiceResourceId { get; set; } + /// Gets or sets the spark enabled. + public bool? SparkEnabled { get; set; } + /// Type of a managed network Outbound Rule of a machine learning workspace. + public RuleStatus? SparkStatus { get; set; } + /// Gets or sets the subresource target. + public string SubresourceTarget { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.Serialization.cs new file mode 100644 index 000000000000..ad9b4da44adc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.Serialization.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PrivateEndpointOutboundRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Destination)) + { + writer.WritePropertyName("destination"u8); + writer.WriteObjectValue(Destination); + } + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + writer.WritePropertyName("type"u8); + writer.WriteStringValue(RuleType.ToString()); + writer.WriteEndObject(); + } + + internal static PrivateEndpointOutboundRule DeserializePrivateEndpointOutboundRule(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional destination = default; + Optional category = default; + Optional status = default; + RuleType type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("destination"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + destination = PrivateEndpointDestination.DeserializePrivateEndpointDestination(property.Value); + continue; + } + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + category = new RuleCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new RuleStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new RuleType(property.Value.GetString()); + continue; + } + } + return new PrivateEndpointOutboundRule(Optional.ToNullable(category), Optional.ToNullable(status), type, destination.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.cs new file mode 100644 index 000000000000..c66b0c6e1473 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Private Endpoint Outbound Rule for the managed network of a machine learning workspace. + public partial class PrivateEndpointOutboundRule : OutboundRule + { + /// Initializes a new instance of PrivateEndpointOutboundRule. + public PrivateEndpointOutboundRule() + { + RuleType = RuleType.PrivateEndpoint; + } + + /// Initializes a new instance of PrivateEndpointOutboundRule. + /// Category of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. + internal PrivateEndpointOutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType, PrivateEndpointDestination destination) : base(category, status, ruleType) + { + Destination = destination; + RuleType = ruleType; + } + + /// Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. + public PrivateEndpointDestination Destination { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs new file mode 100644 index 000000000000..b9bccba812c1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class PrivateEndpointResource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(SubnetArmId)) + { + if (SubnetArmId != null) + { + writer.WritePropertyName("subnetArmId"u8); + writer.WriteStringValue(SubnetArmId); + } + else + { + writer.WriteNull("subnetArmId"); + } + } + writer.WriteEndObject(); + } + + internal static PrivateEndpointResource DeserializePrivateEndpointResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional subnetArmId = default; + Optional id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("subnetArmId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subnetArmId = null; + continue; + } + subnetArmId = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + } + return new PrivateEndpointResource(id.Value, subnetArmId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs new file mode 100644 index 000000000000..f77b72158a9d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The PE network resource that is linked to this PE connection. + public partial class PrivateEndpointResource : MachineLearningPrivateEndpoint + { + /// Initializes a new instance of PrivateEndpointResource. + public PrivateEndpointResource() + { + } + + /// Initializes a new instance of PrivateEndpointResource. + /// The ARM identifier for Private Endpoint. + /// The subnetId that the private endpoint is connected to. + internal PrivateEndpointResource(ResourceIdentifier id, string subnetArmId) : base(id) + { + SubnetArmId = subnetArmId; + } + + /// The subnetId that the private endpoint is connected to. + public string SubnetArmId { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProgressMetrics.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProgressMetrics.Serialization.cs new file mode 100644 index 000000000000..b4356e1b7411 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProgressMetrics.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ProgressMetrics + { + internal static ProgressMetrics DeserializeProgressMetrics(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional completedDatapointCount = default; + Optional incrementalDataLastRefreshDateTime = default; + Optional skippedDatapointCount = default; + Optional totalDatapointCount = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("completedDatapointCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + completedDatapointCount = null; + continue; + } + completedDatapointCount = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("incrementalDataLastRefreshDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + incrementalDataLastRefreshDateTime = null; + continue; + } + incrementalDataLastRefreshDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("skippedDatapointCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + skippedDatapointCount = null; + continue; + } + skippedDatapointCount = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("totalDatapointCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + totalDatapointCount = null; + continue; + } + totalDatapointCount = property.Value.GetInt64(); + continue; + } + } + return new ProgressMetrics(Optional.ToNullable(completedDatapointCount), Optional.ToNullable(incrementalDataLastRefreshDateTime), Optional.ToNullable(skippedDatapointCount), Optional.ToNullable(totalDatapointCount)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProgressMetrics.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProgressMetrics.cs new file mode 100644 index 000000000000..0b5ff7be1138 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProgressMetrics.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Progress metrics definition. + public partial class ProgressMetrics + { + /// Initializes a new instance of ProgressMetrics. + internal ProgressMetrics() + { + } + + /// Initializes a new instance of ProgressMetrics. + /// The completed datapoint count. + /// The time of last successful incremental data refresh in UTC. + /// The skipped datapoint count. + /// The total datapoint count. + internal ProgressMetrics(long? completedDatapointCount, DateTimeOffset? incrementalDataLastRefreshOn, long? skippedDatapointCount, long? totalDatapointCount) + { + CompletedDatapointCount = completedDatapointCount; + IncrementalDataLastRefreshOn = incrementalDataLastRefreshOn; + SkippedDatapointCount = skippedDatapointCount; + TotalDatapointCount = totalDatapointCount; + } + + /// The completed datapoint count. + public long? CompletedDatapointCount { get; } + /// The time of last successful incremental data refresh in UTC. + public DateTimeOffset? IncrementalDataLastRefreshOn { get; } + /// The skipped datapoint count. + public long? SkippedDatapointCount { get; } + /// The total datapoint count. + public long? TotalDatapointCount { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProtectionLevel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProtectionLevel.cs new file mode 100644 index 000000000000..6ebeec2353e0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProtectionLevel.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Protection level associated with the Intellectual Property. + public readonly partial struct ProtectionLevel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ProtectionLevel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllValue = "All"; + private const string NoneValue = "None"; + + /// All means Intellectual Property is fully protected. + public static ProtectionLevel All { get; } = new ProtectionLevel(AllValue); + /// None means it is not an Intellectual Property. + public static ProtectionLevel None { get; } = new ProtectionLevel(NoneValue); + /// Determines if two values are the same. + public static bool operator ==(ProtectionLevel left, ProtectionLevel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ProtectionLevel left, ProtectionLevel right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ProtectionLevel(string value) => new ProtectionLevel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ProtectionLevel other && Equals(other); + /// + public bool Equals(ProtectionLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Protocol.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Protocol.cs new file mode 100644 index 000000000000..c2fff38e36df --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Protocol.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Protocol over which communication will happen over this endpoint. + public readonly partial struct Protocol : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public Protocol(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TcpValue = "tcp"; + private const string UdpValue = "udp"; + private const string HttpValue = "http"; + + /// tcp. + public static Protocol Tcp { get; } = new Protocol(TcpValue); + /// udp. + public static Protocol Udp { get; } = new Protocol(UdpValue); + /// http. + public static Protocol Http { get; } = new Protocol(HttpValue); + /// Determines if two values are the same. + public static bool operator ==(Protocol left, Protocol right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Protocol left, Protocol right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Protocol(string value) => new Protocol(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Protocol other && Equals(other); + /// + public bool Equals(Protocol other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.Serialization.cs new file mode 100644 index 000000000000..1a00ac91915e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class QueueSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(JobTier)) + { + writer.WritePropertyName("jobTier"u8); + writer.WriteStringValue(JobTier.Value.ToString()); + } + if (Optional.IsDefined(Priority)) + { + if (Priority != null) + { + writer.WritePropertyName("priority"u8); + writer.WriteNumberValue(Priority.Value); + } + else + { + writer.WriteNull("priority"); + } + } + writer.WriteEndObject(); + } + + internal static QueueSettings DeserializeQueueSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional jobTier = default; + Optional priority = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("jobTier"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + jobTier = new JobTier(property.Value.GetString()); + continue; + } + if (property.NameEquals("priority"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + priority = null; + continue; + } + priority = property.Value.GetInt32(); + continue; + } + } + return new QueueSettings(Optional.ToNullable(jobTier), Optional.ToNullable(priority)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.cs new file mode 100644 index 000000000000..694ce0f90620 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The QueueSettings. + public partial class QueueSettings + { + /// Initializes a new instance of QueueSettings. + public QueueSettings() + { + } + + /// Initializes a new instance of QueueSettings. + /// Controls the compute job tier. + /// Controls the priority of the job on a compute. + internal QueueSettings(JobTier? jobTier, int? priority) + { + JobTier = jobTier; + Priority = priority; + } + + /// Controls the compute job tier. + public JobTier? JobTier { get; set; } + /// Controls the priority of the job on a compute. + public int? Priority { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RandomSamplingAlgorithm.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RandomSamplingAlgorithm.Serialization.cs index f7dc3543d1bc..449039a380b0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RandomSamplingAlgorithm.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RandomSamplingAlgorithm.Serialization.cs @@ -15,6 +15,18 @@ public partial class RandomSamplingAlgorithm : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(Logbase)) + { + if (Logbase != null) + { + writer.WritePropertyName("logbase"u8); + writer.WriteStringValue(Logbase); + } + else + { + writer.WriteNull("logbase"); + } + } if (Optional.IsDefined(Rule)) { writer.WritePropertyName("rule"u8); @@ -43,11 +55,22 @@ internal static RandomSamplingAlgorithm DeserializeRandomSamplingAlgorithm(JsonE { return null; } + Optional logbase = default; Optional rule = default; Optional seed = default; SamplingAlgorithmType samplingAlgorithmType = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("logbase"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + logbase = null; + continue; + } + logbase = property.Value.GetString(); + continue; + } if (property.NameEquals("rule"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -73,7 +96,7 @@ internal static RandomSamplingAlgorithm DeserializeRandomSamplingAlgorithm(JsonE continue; } } - return new RandomSamplingAlgorithm(samplingAlgorithmType, Optional.ToNullable(rule), Optional.ToNullable(seed)); + return new RandomSamplingAlgorithm(samplingAlgorithmType, logbase.Value, Optional.ToNullable(rule), Optional.ToNullable(seed)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RandomSamplingAlgorithm.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RandomSamplingAlgorithm.cs index d82bf35528f3..e965feca1ad1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RandomSamplingAlgorithm.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RandomSamplingAlgorithm.cs @@ -18,15 +18,19 @@ public RandomSamplingAlgorithm() /// Initializes a new instance of RandomSamplingAlgorithm. /// [Required] The algorithm used for generating hyperparameter values, along with configuration properties. + /// An optional positive number or e in string format to be used as base for log based random sampling. /// The specific type of random algorithm. /// An optional integer to use as the seed for random number generation. - internal RandomSamplingAlgorithm(SamplingAlgorithmType samplingAlgorithmType, RandomSamplingAlgorithmRule? rule, int? seed) : base(samplingAlgorithmType) + internal RandomSamplingAlgorithm(SamplingAlgorithmType samplingAlgorithmType, string logbase, RandomSamplingAlgorithmRule? rule, int? seed) : base(samplingAlgorithmType) { + Logbase = logbase; Rule = rule; Seed = seed; SamplingAlgorithmType = samplingAlgorithmType; } + /// An optional positive number or e in string format to be used as base for log based random sampling. + public string Logbase { get; set; } /// The specific type of random algorithm. public RandomSamplingAlgorithmRule? Rule { get; set; } /// An optional integer to use as the seed for random number generation. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.Serialization.cs new file mode 100644 index 000000000000..2456cf066836 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.Serialization.cs @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Ray : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Address)) + { + if (Address != null) + { + writer.WritePropertyName("address"u8); + writer.WriteStringValue(Address); + } + else + { + writer.WriteNull("address"); + } + } + if (Optional.IsDefined(DashboardPort)) + { + if (DashboardPort != null) + { + writer.WritePropertyName("dashboardPort"u8); + writer.WriteNumberValue(DashboardPort.Value); + } + else + { + writer.WriteNull("dashboardPort"); + } + } + if (Optional.IsDefined(HeadNodeAdditionalArgs)) + { + if (HeadNodeAdditionalArgs != null) + { + writer.WritePropertyName("headNodeAdditionalArgs"u8); + writer.WriteStringValue(HeadNodeAdditionalArgs); + } + else + { + writer.WriteNull("headNodeAdditionalArgs"); + } + } + if (Optional.IsDefined(IncludeDashboard)) + { + if (IncludeDashboard != null) + { + writer.WritePropertyName("includeDashboard"u8); + writer.WriteBooleanValue(IncludeDashboard.Value); + } + else + { + writer.WriteNull("includeDashboard"); + } + } + if (Optional.IsDefined(Port)) + { + if (Port != null) + { + writer.WritePropertyName("port"u8); + writer.WriteNumberValue(Port.Value); + } + else + { + writer.WriteNull("port"); + } + } + if (Optional.IsDefined(WorkerNodeAdditionalArgs)) + { + if (WorkerNodeAdditionalArgs != null) + { + writer.WritePropertyName("workerNodeAdditionalArgs"u8); + writer.WriteStringValue(WorkerNodeAdditionalArgs); + } + else + { + writer.WriteNull("workerNodeAdditionalArgs"); + } + } + writer.WritePropertyName("distributionType"u8); + writer.WriteStringValue(DistributionType.ToString()); + writer.WriteEndObject(); + } + + internal static Ray DeserializeRay(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional address = default; + Optional dashboardPort = default; + Optional headNodeAdditionalArgs = default; + Optional includeDashboard = default; + Optional port = default; + Optional workerNodeAdditionalArgs = default; + DistributionType distributionType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("address"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + address = null; + continue; + } + address = property.Value.GetString(); + continue; + } + if (property.NameEquals("dashboardPort"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dashboardPort = null; + continue; + } + dashboardPort = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("headNodeAdditionalArgs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + headNodeAdditionalArgs = null; + continue; + } + headNodeAdditionalArgs = property.Value.GetString(); + continue; + } + if (property.NameEquals("includeDashboard"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + includeDashboard = null; + continue; + } + includeDashboard = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("port"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + port = null; + continue; + } + port = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("workerNodeAdditionalArgs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + workerNodeAdditionalArgs = null; + continue; + } + workerNodeAdditionalArgs = property.Value.GetString(); + continue; + } + if (property.NameEquals("distributionType"u8)) + { + distributionType = new DistributionType(property.Value.GetString()); + continue; + } + } + return new Ray(distributionType, address.Value, Optional.ToNullable(dashboardPort), headNodeAdditionalArgs.Value, Optional.ToNullable(includeDashboard), Optional.ToNullable(port), workerNodeAdditionalArgs.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.cs new file mode 100644 index 000000000000..f0a3ab027a6f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Ray distribution configuration. + public partial class Ray : MachineLearningDistributionConfiguration + { + /// Initializes a new instance of Ray. + public Ray() + { + DistributionType = DistributionType.Ray; + } + + /// Initializes a new instance of Ray. + /// [Required] Specifies the type of distribution framework. + /// The address of Ray head node. + /// The port to bind the dashboard server to. + /// Additional arguments passed to ray start in head node. + /// Provide this argument to start the Ray dashboard GUI. + /// The port of the head ray process. + /// Additional arguments passed to ray start in worker node. + internal Ray(DistributionType distributionType, string address, int? dashboardPort, string headNodeAdditionalArgs, bool? includeDashboard, int? port, string workerNodeAdditionalArgs) : base(distributionType) + { + Address = address; + DashboardPort = dashboardPort; + HeadNodeAdditionalArgs = headNodeAdditionalArgs; + IncludeDashboard = includeDashboard; + Port = port; + WorkerNodeAdditionalArgs = workerNodeAdditionalArgs; + DistributionType = distributionType; + } + + /// The address of Ray head node. + public string Address { get; set; } + /// The port to bind the dashboard server to. + public int? DashboardPort { get; set; } + /// Additional arguments passed to ray start in head node. + public string HeadNodeAdditionalArgs { get; set; } + /// Provide this argument to start the Ray dashboard GUI. + public bool? IncludeDashboard { get; set; } + /// The port of the head ray process. + public int? Port { get; set; } + /// Additional arguments passed to ray start in worker node. + public string WorkerNodeAdditionalArgs { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.Serialization.cs new file mode 100644 index 000000000000..4e656f6220fd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.Serialization.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Recurrence : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Frequency)) + { + writer.WritePropertyName("frequency"u8); + writer.WriteStringValue(Frequency.Value.ToString()); + } + if (Optional.IsDefined(Interval)) + { + writer.WritePropertyName("interval"u8); + writer.WriteNumberValue(Interval.Value); + } + if (Optional.IsDefined(StartTime)) + { + if (StartTime != null) + { + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartTime); + } + else + { + writer.WriteNull("startTime"); + } + } + if (Optional.IsDefined(TimeZone)) + { + writer.WritePropertyName("timeZone"u8); + writer.WriteStringValue(TimeZone); + } + if (Optional.IsDefined(Schedule)) + { + writer.WritePropertyName("schedule"u8); + writer.WriteObjectValue(Schedule); + } + writer.WriteEndObject(); + } + + internal static Recurrence DeserializeRecurrence(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional frequency = default; + Optional interval = default; + Optional startTime = default; + Optional timeZone = default; + Optional schedule = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("frequency"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + frequency = new MachineLearningRecurrenceFrequency(property.Value.GetString()); + continue; + } + if (property.NameEquals("interval"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + interval = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("startTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + startTime = null; + continue; + } + startTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("timeZone"u8)) + { + timeZone = property.Value.GetString(); + continue; + } + if (property.NameEquals("schedule"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + schedule = MachineLearningRecurrenceSchedule.DeserializeMachineLearningRecurrenceSchedule(property.Value); + continue; + } + } + return new Recurrence(Optional.ToNullable(frequency), Optional.ToNullable(interval), startTime.Value, timeZone.Value, schedule.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.cs new file mode 100644 index 000000000000..536d5e9e56d2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The workflow trigger recurrence for ComputeStartStop schedule type. + public partial class Recurrence + { + /// Initializes a new instance of Recurrence. + public Recurrence() + { + } + + /// Initializes a new instance of Recurrence. + /// [Required] The frequency to trigger schedule. + /// [Required] Specifies schedule interval in conjunction with frequency. + /// The start time in yyyy-MM-ddTHH:mm:ss format. + /// + /// 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 + /// + /// [Required] The recurrence schedule. + internal Recurrence(MachineLearningRecurrenceFrequency? frequency, int? interval, string startTime, string timeZone, MachineLearningRecurrenceSchedule schedule) + { + Frequency = frequency; + Interval = interval; + StartTime = startTime; + TimeZone = timeZone; + Schedule = schedule; + } + + /// [Required] The frequency to trigger schedule. + public MachineLearningRecurrenceFrequency? Frequency { get; set; } + /// [Required] Specifies schedule interval in conjunction with frequency. + public int? Interval { get; set; } + /// The start time in yyyy-MM-ddTHH:mm:ss format. + public string StartTime { get; set; } + /// + /// 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 + /// + public string TimeZone { get; set; } + /// [Required] The recurrence schedule. + public MachineLearningRecurrenceSchedule Schedule { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryData.Serialization.cs new file mode 100644 index 000000000000..2b1195ea77b4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryData.Serialization.cs @@ -0,0 +1,338 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class RegistryData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); + } + if (Optional.IsDefined(Kind)) + { + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind); + } + if (Optional.IsDefined(Sku)) + { + writer.WritePropertyName("sku"u8); + writer.WriteObjectValue(Sku); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(DiscoveryUri)) + { + if (DiscoveryUri != null) + { + writer.WritePropertyName("discoveryUrl"u8); + writer.WriteStringValue(DiscoveryUri.AbsoluteUri); + } + else + { + writer.WriteNull("discoveryUrl"); + } + } + if (Optional.IsDefined(IntellectualPropertyPublisher)) + { + if (IntellectualPropertyPublisher != null) + { + writer.WritePropertyName("intellectualPropertyPublisher"u8); + writer.WriteStringValue(IntellectualPropertyPublisher); + } + else + { + writer.WriteNull("intellectualPropertyPublisher"); + } + } + if (Optional.IsDefined(ManagedResourceGroup)) + { + if (ManagedResourceGroup != null) + { + writer.WritePropertyName("managedResourceGroup"u8); + writer.WriteObjectValue(ManagedResourceGroup); + } + else + { + writer.WriteNull("managedResourceGroup"); + } + } + if (Optional.IsDefined(MlFlowRegistryUri)) + { + if (MlFlowRegistryUri != null) + { + writer.WritePropertyName("mlFlowRegistryUri"u8); + writer.WriteStringValue(MlFlowRegistryUri.AbsoluteUri); + } + else + { + writer.WriteNull("mlFlowRegistryUri"); + } + } + if (Optional.IsCollectionDefined(PrivateEndpointConnections)) + { + if (PrivateEndpointConnections != null) + { + writer.WritePropertyName("privateEndpointConnections"u8); + writer.WriteStartArray(); + foreach (var item in PrivateEndpointConnections) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("privateEndpointConnections"); + } + } + if (Optional.IsDefined(PublicNetworkAccess)) + { + if (PublicNetworkAccess != null) + { + writer.WritePropertyName("publicNetworkAccess"u8); + writer.WriteStringValue(PublicNetworkAccess); + } + else + { + writer.WriteNull("publicNetworkAccess"); + } + } + if (Optional.IsCollectionDefined(RegionDetails)) + { + if (RegionDetails != null) + { + writer.WritePropertyName("regionDetails"u8); + writer.WriteStartArray(); + foreach (var item in RegionDetails) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("regionDetails"); + } + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static RegistryData DeserializeRegistryData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional identity = default; + Optional kind = default; + Optional sku = default; + Optional> tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional discoveryUrl = default; + Optional intellectualPropertyPublisher = default; + Optional managedResourceGroup = default; + Optional mlFlowRegistryUri = default; + Optional> privateEndpointConnections = default; + Optional publicNetworkAccess = default; + Optional> regionDetails = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + identity = JsonSerializer.Deserialize(property.Value.GetRawText(), serializeOptions); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("sku"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sku = MachineLearningSku.DeserializeMachineLearningSku(property.Value); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("discoveryUrl"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + discoveryUrl = null; + continue; + } + discoveryUrl = new Uri(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("intellectualPropertyPublisher"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + intellectualPropertyPublisher = null; + continue; + } + intellectualPropertyPublisher = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("managedResourceGroup"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + managedResourceGroup = null; + continue; + } + managedResourceGroup = ArmResourceId.DeserializeArmResourceId(property0.Value); + continue; + } + if (property0.NameEquals("mlFlowRegistryUri"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + mlFlowRegistryUri = null; + continue; + } + mlFlowRegistryUri = new Uri(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("privateEndpointConnections"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + privateEndpointConnections = null; + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(RegistryPrivateEndpointConnection.DeserializeRegistryPrivateEndpointConnection(item)); + } + privateEndpointConnections = array; + continue; + } + if (property0.NameEquals("publicNetworkAccess"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + publicNetworkAccess = null; + continue; + } + publicNetworkAccess = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("regionDetails"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + regionDetails = null; + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(RegistryRegionArmDetails.DeserializeRegistryRegionArmDetails(item)); + } + regionDetails = array; + continue; + } + } + continue; + } + } + return new RegistryData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, kind.Value, sku.Value, discoveryUrl.Value, intellectualPropertyPublisher.Value, managedResourceGroup.Value, mlFlowRegistryUri.Value, Optional.ToList(privateEndpointConnections), publicNetworkAccess.Value, Optional.ToList(regionDetails)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryModelVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryModelVersionCollectionGetAllOptions.cs new file mode 100644 index 000000000000..e3097165f953 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryModelVersionCollectionGetAllOptions.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The RegistryModelVersionCollectionGetAllOptions. + public partial class RegistryModelVersionCollectionGetAllOptions + { + /// Initializes a new instance of RegistryModelVersionCollectionGetAllOptions. + public RegistryModelVersionCollectionGetAllOptions() + { + } + + /// Continuation token for pagination. + public string Skip { get; set; } + /// Ordering of list. + public string OrderBy { get; set; } + /// Maximum number of records to return. + public int? Top { get; set; } + /// Version identifier. + public string Version { get; set; } + /// Model description. + public string Description { get; set; } + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + public string Tags { get; set; } + /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. + public string Properties { get; set; } + /// View type for including/excluding (for example) archived entities. + public MachineLearningListViewType? ListViewType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.Serialization.cs new file mode 100644 index 000000000000..08e56ee4c49a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.Serialization.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class RegistryPatch : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + JsonSerializer.Serialize(writer, Identity); + } + if (Optional.IsDefined(Sku)) + { + writer.WritePropertyName("sku"u8); + writer.WriteObjectValue(Sku); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.cs new file mode 100644 index 000000000000..3d83d09a2d68 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Strictly used in update requests. + public partial class RegistryPatch + { + /// Initializes a new instance of RegistryPatch. + public RegistryPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Managed service identity (system assigned and/or user assigned identities). + public ManagedServiceIdentity Identity { get; set; } + /// Sku details required for ARM contract for Autoscaling. + public MachineLearningSkuPatch Sku { get; set; } + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.Serialization.cs new file mode 100644 index 000000000000..caa664e82ef0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.Serialization.cs @@ -0,0 +1,197 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class RegistryPrivateEndpointConnection : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + if (Id != null) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + else + { + writer.WriteNull("id"); + } + } + if (Optional.IsDefined(Location)) + { + if (Location != null) + { + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location.Value); + } + else + { + writer.WriteNull("location"); + } + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(GroupIds)) + { + if (GroupIds != null) + { + writer.WritePropertyName("groupIds"u8); + writer.WriteStartArray(); + foreach (var item in GroupIds) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("groupIds"); + } + } + if (Optional.IsDefined(PrivateEndpoint)) + { + if (PrivateEndpoint != null) + { + writer.WritePropertyName("privateEndpoint"u8); + writer.WriteObjectValue(PrivateEndpoint); + } + else + { + writer.WriteNull("privateEndpoint"); + } + } + if (Optional.IsDefined(PrivateLinkServiceConnectionState)) + { + if (PrivateLinkServiceConnectionState != null) + { + writer.WritePropertyName("privateLinkServiceConnectionState"u8); + writer.WriteObjectValue(PrivateLinkServiceConnectionState); + } + else + { + writer.WriteNull("privateLinkServiceConnectionState"); + } + } + if (Optional.IsDefined(ProvisioningState)) + { + if (ProvisioningState != null) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState); + } + else + { + writer.WriteNull("provisioningState"); + } + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static RegistryPrivateEndpointConnection DeserializeRegistryPrivateEndpointConnection(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional id = default; + Optional location = default; + Optional> groupIds = default; + Optional privateEndpoint = default; + Optional privateLinkServiceConnectionState = default; + Optional provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + id = null; + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("location"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + location = null; + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("groupIds"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + groupIds = null; + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + groupIds = array; + continue; + } + if (property0.NameEquals("privateEndpoint"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + privateEndpoint = null; + continue; + } + privateEndpoint = PrivateEndpointResource.DeserializePrivateEndpointResource(property0.Value); + continue; + } + if (property0.NameEquals("privateLinkServiceConnectionState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + privateLinkServiceConnectionState = null; + continue; + } + privateLinkServiceConnectionState = RegistryPrivateLinkServiceConnectionState.DeserializeRegistryPrivateLinkServiceConnectionState(property0.Value); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + provisioningState = null; + continue; + } + provisioningState = property0.Value.GetString(); + continue; + } + } + continue; + } + } + return new RegistryPrivateEndpointConnection(id.Value, Optional.ToNullable(location), Optional.ToList(groupIds), privateEndpoint.Value, privateLinkServiceConnectionState.Value, provisioningState.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs new file mode 100644 index 000000000000..0bb4d7c22ea8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Private endpoint connection definition. + public partial class RegistryPrivateEndpointConnection + { + /// Initializes a new instance of RegistryPrivateEndpointConnection. + public RegistryPrivateEndpointConnection() + { + GroupIds = new ChangeTrackingList(); + } + + /// Initializes a new instance of RegistryPrivateEndpointConnection. + /// + /// This is the private endpoint connection name created on SRP + /// Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/privateEndpointConnections/{peConnectionName} + /// + /// Same as workspace location. + /// The group ids. + /// The PE network resource that is linked to this PE connection. + /// The connection state. + /// One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null. + internal RegistryPrivateEndpointConnection(string id, AzureLocation? location, IList groupIds, PrivateEndpointResource privateEndpoint, RegistryPrivateLinkServiceConnectionState privateLinkServiceConnectionState, string provisioningState) + { + Id = id; + Location = location; + GroupIds = groupIds; + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; + } + + /// + /// This is the private endpoint connection name created on SRP + /// Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/privateEndpointConnections/{peConnectionName} + /// + public string Id { get; set; } + /// Same as workspace location. + public AzureLocation? Location { get; set; } + /// The group ids. + public IList GroupIds { get; set; } + /// The PE network resource that is linked to this PE connection. + public PrivateEndpointResource PrivateEndpoint { get; set; } + /// The connection state. + public RegistryPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + /// One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null. + public string ProvisioningState { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.Serialization.cs new file mode 100644 index 000000000000..8fff4389c5f5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.Serialization.cs @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class RegistryPrivateLinkServiceConnectionState : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ActionsRequired)) + { + if (ActionsRequired != null) + { + writer.WritePropertyName("actionsRequired"u8); + writer.WriteStringValue(ActionsRequired); + } + else + { + writer.WriteNull("actionsRequired"); + } + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static RegistryPrivateLinkServiceConnectionState DeserializeRegistryPrivateLinkServiceConnectionState(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional actionsRequired = default; + Optional description = default; + Optional status = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("actionsRequired"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + actionsRequired = null; + continue; + } + actionsRequired = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new EndpointServiceConnectionStatus(property.Value.GetString()); + continue; + } + } + return new RegistryPrivateLinkServiceConnectionState(actionsRequired.Value, description.Value, Optional.ToNullable(status)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.cs new file mode 100644 index 000000000000..2bd47217ca3b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The connection state. + public partial class RegistryPrivateLinkServiceConnectionState + { + /// Initializes a new instance of RegistryPrivateLinkServiceConnectionState. + public RegistryPrivateLinkServiceConnectionState() + { + } + + /// Initializes a new instance of RegistryPrivateLinkServiceConnectionState. + /// Some RP chose "None". Other RPs use this for region expansion. + /// User-defined message that, per NRP doc, may be used for approval-related message. + /// Connection status of the service consumer with the service provider. + internal RegistryPrivateLinkServiceConnectionState(string actionsRequired, string description, EndpointServiceConnectionStatus? status) + { + ActionsRequired = actionsRequired; + Description = description; + Status = status; + } + + /// Some RP chose "None". Other RPs use this for region expansion. + public string ActionsRequired { get; set; } + /// User-defined message that, per NRP doc, may be used for approval-related message. + public string Description { get; set; } + /// Connection status of the service consumer with the service provider. + public EndpointServiceConnectionStatus? Status { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.Serialization.cs new file mode 100644 index 000000000000..2a3d3ce614f5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.Serialization.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class RegistryRegionArmDetails : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(AcrDetails)) + { + if (AcrDetails != null) + { + writer.WritePropertyName("acrDetails"u8); + writer.WriteStartArray(); + foreach (var item in AcrDetails) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("acrDetails"); + } + } + if (Optional.IsDefined(Location)) + { + if (Location != null) + { + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location.Value); + } + else + { + writer.WriteNull("location"); + } + } + if (Optional.IsCollectionDefined(StorageAccountDetails)) + { + if (StorageAccountDetails != null) + { + writer.WritePropertyName("storageAccountDetails"u8); + writer.WriteStartArray(); + foreach (var item in StorageAccountDetails) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("storageAccountDetails"); + } + } + writer.WriteEndObject(); + } + + internal static RegistryRegionArmDetails DeserializeRegistryRegionArmDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> acrDetails = default; + Optional location = default; + Optional> storageAccountDetails = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("acrDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + acrDetails = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Models.AcrDetails.DeserializeAcrDetails(item)); + } + acrDetails = array; + continue; + } + if (property.NameEquals("location"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + location = null; + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("storageAccountDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + storageAccountDetails = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Models.StorageAccountDetails.DeserializeStorageAccountDetails(item)); + } + storageAccountDetails = array; + continue; + } + } + return new RegistryRegionArmDetails(Optional.ToList(acrDetails), Optional.ToNullable(location), Optional.ToList(storageAccountDetails)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs new file mode 100644 index 000000000000..5eda876039f7 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Details for each region the registry is in. + public partial class RegistryRegionArmDetails + { + /// Initializes a new instance of RegistryRegionArmDetails. + public RegistryRegionArmDetails() + { + AcrDetails = new ChangeTrackingList(); + StorageAccountDetails = new ChangeTrackingList(); + } + + /// Initializes a new instance of RegistryRegionArmDetails. + /// List of ACR accounts. + /// The location where the registry exists. + /// List of storage accounts. + internal RegistryRegionArmDetails(IList acrDetails, AzureLocation? location, IList storageAccountDetails) + { + AcrDetails = acrDetails; + Location = location; + StorageAccountDetails = storageAccountDetails; + } + + /// List of ACR accounts. + public IList AcrDetails { get; set; } + /// The location where the registry exists. + public AzureLocation? Location { get; set; } + /// List of storage accounts. + public IList StorageAccountDetails { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.Serialization.cs new file mode 100644 index 000000000000..d4bdc27c8b5c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class RegistryTrackedResourceArmPaginatedResult + { + internal static RegistryTrackedResourceArmPaginatedResult DeserializeRegistryTrackedResourceArmPaginatedResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RegistryData.DeserializeRegistryData(item)); + } + value = array; + continue; + } + } + return new RegistryTrackedResourceArmPaginatedResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs new file mode 100644 index 000000000000..7064ffde0935 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// A paginated list of Registry entities. + internal partial class RegistryTrackedResourceArmPaginatedResult + { + /// Initializes a new instance of RegistryTrackedResourceArmPaginatedResult. + internal RegistryTrackedResourceArmPaginatedResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of RegistryTrackedResourceArmPaginatedResult. + /// The link to the next page of Registry objects. If null, there are no additional pages. + /// An array of objects of type Registry. + internal RegistryTrackedResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// The link to the next page of Registry objects. If null, there are no additional pages. + public string NextLink { get; } + /// An array of objects of type Registry. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetric.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetric.cs new file mode 100644 index 000000000000..786edd7e5748 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetric.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The RegressionModelPerformanceMetric. + public readonly partial struct RegressionModelPerformanceMetric : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RegressionModelPerformanceMetric(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MeanAbsoluteErrorValue = "MeanAbsoluteError"; + private const string RootMeanSquaredErrorValue = "RootMeanSquaredError"; + private const string MeanSquaredErrorValue = "MeanSquaredError"; + + /// The Mean Absolute Error (MAE) metric. + public static RegressionModelPerformanceMetric MeanAbsoluteError { get; } = new RegressionModelPerformanceMetric(MeanAbsoluteErrorValue); + /// The Root Mean Squared Error (RMSE) metric. + public static RegressionModelPerformanceMetric RootMeanSquaredError { get; } = new RegressionModelPerformanceMetric(RootMeanSquaredErrorValue); + /// The Mean Squared Error (MSE) metric. + public static RegressionModelPerformanceMetric MeanSquaredError { get; } = new RegressionModelPerformanceMetric(MeanSquaredErrorValue); + /// Determines if two values are the same. + public static bool operator ==(RegressionModelPerformanceMetric left, RegressionModelPerformanceMetric right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RegressionModelPerformanceMetric left, RegressionModelPerformanceMetric right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RegressionModelPerformanceMetric(string value) => new RegressionModelPerformanceMetric(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RegressionModelPerformanceMetric other && Equals(other); + /// + public bool Equals(RegressionModelPerformanceMetric other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetricThreshold.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetricThreshold.Serialization.cs new file mode 100644 index 000000000000..0895982c46d6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetricThreshold.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class RegressionModelPerformanceMetricThreshold : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("metric"u8); + writer.WriteStringValue(Metric.ToString()); + writer.WritePropertyName("modelType"u8); + writer.WriteStringValue(ModelType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static RegressionModelPerformanceMetricThreshold DeserializeRegressionModelPerformanceMetricThreshold(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + RegressionModelPerformanceMetric metric = default; + MonitoringModelType modelType = default; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metric"u8)) + { + metric = new RegressionModelPerformanceMetric(property.Value.GetString()); + continue; + } + if (property.NameEquals("modelType"u8)) + { + modelType = new MonitoringModelType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new RegressionModelPerformanceMetricThreshold(modelType, threshold.Value, metric); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetricThreshold.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetricThreshold.cs new file mode 100644 index 000000000000..422800b0a418 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionModelPerformanceMetricThreshold.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The RegressionModelPerformanceMetricThreshold. + public partial class RegressionModelPerformanceMetricThreshold : ModelPerformanceMetricThresholdBase + { + /// Initializes a new instance of RegressionModelPerformanceMetricThreshold. + /// [Required] The regression model performance metric to calculate. + public RegressionModelPerformanceMetricThreshold(RegressionModelPerformanceMetric metric) + { + Metric = metric; + ModelType = MonitoringModelType.Regression; + } + + /// Initializes a new instance of RegressionModelPerformanceMetricThreshold. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + /// [Required] The regression model performance metric to calculate. + internal RegressionModelPerformanceMetricThreshold(MonitoringModelType modelType, MonitoringThreshold threshold, RegressionModelPerformanceMetric metric) : base(modelType, threshold) + { + Metric = metric; + ModelType = modelType; + } + + /// [Required] The regression model performance metric to calculate. + public RegressionModelPerformanceMetric Metric { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.Serialization.cs index 9c07ede26ba0..8f28a3fccee2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.Serialization.cs @@ -93,6 +93,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("stackEnsembleSettings"); } } + if (Optional.IsDefined(TrainingMode)) + { + writer.WritePropertyName("trainingMode"u8); + writer.WriteStringValue(TrainingMode.Value.ToString()); + } writer.WriteEndObject(); } @@ -111,6 +116,7 @@ internal static RegressionTrainingSettings DeserializeRegressionTrainingSettings Optional enableVoteEnsemble = default; Optional ensembleModelDownloadTimeout = default; Optional stackEnsembleSettings = default; + Optional trainingMode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("allowedTrainingAlgorithms"u8)) @@ -207,8 +213,17 @@ internal static RegressionTrainingSettings DeserializeRegressionTrainingSettings stackEnsembleSettings = MachineLearningStackEnsembleSettings.DeserializeMachineLearningStackEnsembleSettings(property.Value); continue; } + if (property.NameEquals("trainingMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + trainingMode = new TrainingMode(property.Value.GetString()); + continue; + } } - return new RegressionTrainingSettings(Optional.ToNullable(enableDnnTraining), Optional.ToNullable(enableModelExplainability), Optional.ToNullable(enableOnnxCompatibleModels), Optional.ToNullable(enableStackEnsemble), Optional.ToNullable(enableVoteEnsemble), Optional.ToNullable(ensembleModelDownloadTimeout), stackEnsembleSettings.Value, Optional.ToList(allowedTrainingAlgorithms), Optional.ToList(blockedTrainingAlgorithms)); + return new RegressionTrainingSettings(Optional.ToNullable(enableDnnTraining), Optional.ToNullable(enableModelExplainability), Optional.ToNullable(enableOnnxCompatibleModels), Optional.ToNullable(enableStackEnsemble), Optional.ToNullable(enableVoteEnsemble), Optional.ToNullable(ensembleModelDownloadTimeout), stackEnsembleSettings.Value, Optional.ToNullable(trainingMode), Optional.ToList(allowedTrainingAlgorithms), Optional.ToList(blockedTrainingAlgorithms)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.cs index dfbd361e3b31..e3caefa36031 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.cs @@ -32,9 +32,14 @@ public RegressionTrainingSettings() /// Configure this parameter with a higher value than 300 secs, if more time is needed. /// /// Stack ensemble settings for stack ensemble run. + /// + /// 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. + /// /// Allowed models for regression task. /// Blocked models for regression task. - internal RegressionTrainingSettings(bool? isDnnTrainingEnabled, bool? isModelExplainabilityEnabled, bool? isOnnxCompatibleModelsEnabled, bool? isStackEnsembleEnabled, bool? isVoteEnsembleEnabled, TimeSpan? ensembleModelDownloadTimeout, MachineLearningStackEnsembleSettings stackEnsembleSettings, IList allowedTrainingAlgorithms, IList blockedTrainingAlgorithms) : base(isDnnTrainingEnabled, isModelExplainabilityEnabled, isOnnxCompatibleModelsEnabled, isStackEnsembleEnabled, isVoteEnsembleEnabled, ensembleModelDownloadTimeout, stackEnsembleSettings) + internal RegressionTrainingSettings(bool? isDnnTrainingEnabled, bool? isModelExplainabilityEnabled, bool? isOnnxCompatibleModelsEnabled, bool? isStackEnsembleEnabled, bool? isVoteEnsembleEnabled, TimeSpan? ensembleModelDownloadTimeout, MachineLearningStackEnsembleSettings stackEnsembleSettings, TrainingMode? trainingMode, IList allowedTrainingAlgorithms, IList blockedTrainingAlgorithms) : base(isDnnTrainingEnabled, isModelExplainabilityEnabled, isOnnxCompatibleModelsEnabled, isStackEnsembleEnabled, isVoteEnsembleEnabled, ensembleModelDownloadTimeout, stackEnsembleSettings, trainingMode) { AllowedTrainingAlgorithms = allowedTrainingAlgorithms; BlockedTrainingAlgorithms = blockedTrainingAlgorithms; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.Serialization.cs new file mode 100644 index 000000000000..e5ef96e6fdc8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.Serialization.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class RequestLogging : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(CaptureHeaders)) + { + if (CaptureHeaders != null) + { + writer.WritePropertyName("captureHeaders"u8); + writer.WriteStartArray(); + foreach (var item in CaptureHeaders) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("captureHeaders"); + } + } + writer.WriteEndObject(); + } + + internal static RequestLogging DeserializeRequestLogging(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> captureHeaders = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("captureHeaders"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + captureHeaders = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + captureHeaders = array; + continue; + } + } + return new RequestLogging(Optional.ToList(captureHeaders)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.cs new file mode 100644 index 000000000000..5522a8915e25 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The RequestLogging. + internal partial class RequestLogging + { + /// Initializes a new instance of RequestLogging. + public RequestLogging() + { + CaptureHeaders = new ChangeTrackingList(); + } + + /// Initializes a new instance of 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. + internal RequestLogging(IList captureHeaders) + { + CaptureHeaders = captureHeaders; + } + + /// 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. + public IList CaptureHeaders { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RollingRateType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RollingRateType.cs new file mode 100644 index 000000000000..86aee2e44721 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RollingRateType.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The RollingRateType. + public readonly partial struct RollingRateType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RollingRateType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string YearValue = "Year"; + private const string MonthValue = "Month"; + private const string DayValue = "Day"; + private const string HourValue = "Hour"; + private const string MinuteValue = "Minute"; + + /// Year. + public static RollingRateType Year { get; } = new RollingRateType(YearValue); + /// Month. + public static RollingRateType Month { get; } = new RollingRateType(MonthValue); + /// Day. + public static RollingRateType Day { get; } = new RollingRateType(DayValue); + /// Hour. + public static RollingRateType Hour { get; } = new RollingRateType(HourValue); + /// Minute. + public static RollingRateType Minute { get; } = new RollingRateType(MinuteValue); + /// Determines if two values are the same. + public static bool operator ==(RollingRateType left, RollingRateType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RollingRateType left, RollingRateType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RollingRateType(string value) => new RollingRateType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RollingRateType other && Equals(other); + /// + public bool Equals(RollingRateType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleAction.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleAction.cs new file mode 100644 index 000000000000..42544e675545 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleAction.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The action enum for networking rule. + public readonly partial struct RuleAction : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RuleAction(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllowValue = "Allow"; + private const string DenyValue = "Deny"; + + /// Allow. + public static RuleAction Allow { get; } = new RuleAction(AllowValue); + /// Deny. + public static RuleAction Deny { get; } = new RuleAction(DenyValue); + /// Determines if two values are the same. + public static bool operator ==(RuleAction left, RuleAction right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RuleAction left, RuleAction right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RuleAction(string value) => new RuleAction(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RuleAction other && Equals(other); + /// + public bool Equals(RuleAction other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleCategory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleCategory.cs new file mode 100644 index 000000000000..d5c2d1c2a530 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleCategory.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Category of a managed network Outbound Rule of a machine learning workspace. + public readonly partial struct RuleCategory : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RuleCategory(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RequiredValue = "Required"; + private const string RecommendedValue = "Recommended"; + private const string UserDefinedValue = "UserDefined"; + + /// Required. + public static RuleCategory Required { get; } = new RuleCategory(RequiredValue); + /// Recommended. + public static RuleCategory Recommended { get; } = new RuleCategory(RecommendedValue); + /// UserDefined. + public static RuleCategory UserDefined { get; } = new RuleCategory(UserDefinedValue); + /// Determines if two values are the same. + public static bool operator ==(RuleCategory left, RuleCategory right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RuleCategory left, RuleCategory right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RuleCategory(string value) => new RuleCategory(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RuleCategory other && Equals(other); + /// + public bool Equals(RuleCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleStatus.cs new file mode 100644 index 000000000000..4ba4e77818c1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleStatus.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of a managed network Outbound Rule of a machine learning workspace. + public readonly partial struct RuleStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RuleStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InactiveValue = "Inactive"; + private const string ActiveValue = "Active"; + + /// Inactive. + public static RuleStatus Inactive { get; } = new RuleStatus(InactiveValue); + /// Active. + public static RuleStatus Active { get; } = new RuleStatus(ActiveValue); + /// Determines if two values are the same. + public static bool operator ==(RuleStatus left, RuleStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RuleStatus left, RuleStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RuleStatus(string value) => new RuleStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RuleStatus other && Equals(other); + /// + public bool Equals(RuleStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleType.cs new file mode 100644 index 000000000000..10c600fa9b7c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of a managed network Outbound Rule of a machine learning workspace. + internal readonly partial struct RuleType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RuleType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FqdnValue = "FQDN"; + private const string PrivateEndpointValue = "PrivateEndpoint"; + private const string ServiceTagValue = "ServiceTag"; + + /// FQDN. + public static RuleType Fqdn { get; } = new RuleType(FqdnValue); + /// PrivateEndpoint. + public static RuleType PrivateEndpoint { get; } = new RuleType(PrivateEndpointValue); + /// ServiceTag. + public static RuleType ServiceTag { get; } = new RuleType(ServiceTagValue); + /// Determines if two values are the same. + public static bool operator ==(RuleType left, RuleType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RuleType left, RuleType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RuleType(string value) => new RuleType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RuleType other && Equals(other); + /// + public bool Equals(RuleType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SasCredentialDto.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SasCredentialDto.Serialization.cs new file mode 100644 index 000000000000..72e3b25091c0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SasCredentialDto.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SasCredentialDto + { + internal static SasCredentialDto DeserializeSasCredentialDto(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional sasUri = default; + PendingUploadCredentialType credentialType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sasUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sasUri = null; + continue; + } + sasUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("credentialType"u8)) + { + credentialType = new PendingUploadCredentialType(property.Value.GetString()); + continue; + } + } + return new SasCredentialDto(credentialType, sasUri.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SasCredentialDto.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SasCredentialDto.cs new file mode 100644 index 000000000000..e2ff2c64e844 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SasCredentialDto.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The SasCredentialDto. + public partial class SasCredentialDto : PendingUploadCredentialDto + { + /// Initializes a new instance of SasCredentialDto. + internal SasCredentialDto() + { + CredentialType = PendingUploadCredentialType.Sas; + } + + /// Initializes a new instance of SasCredentialDto. + /// [Required] Credential type used to authentication with storage. + /// Full SAS Uri, including the storage, container/blob path and SAS token. + internal SasCredentialDto(PendingUploadCredentialType credentialType, Uri sasUri) : base(credentialType) + { + SasUri = sasUri; + CredentialType = credentialType; + } + + /// Full SAS Uri, including the storage, container/blob path and SAS token. + public Uri SasUri { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ScheduleActionType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ScheduleActionType.cs index 0b2403a6e195..d7bd0301cff1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ScheduleActionType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ScheduleActionType.cs @@ -24,11 +24,17 @@ public ScheduleActionType(string value) private const string CreateJobValue = "CreateJob"; private const string InvokeBatchEndpointValue = "InvokeBatchEndpoint"; + private const string ImportDataValue = "ImportData"; + private const string CreateMonitorValue = "CreateMonitor"; /// CreateJob. public static ScheduleActionType CreateJob { get; } = new ScheduleActionType(CreateJobValue); /// InvokeBatchEndpoint. public static ScheduleActionType InvokeBatchEndpoint { get; } = new ScheduleActionType(InvokeBatchEndpointValue); + /// ImportData. + public static ScheduleActionType ImportData { get; } = new ScheduleActionType(ImportDataValue); + /// CreateMonitor. + public static ScheduleActionType CreateMonitor { get; } = new ScheduleActionType(CreateMonitorValue); /// Determines if two values are the same. public static bool operator ==(ScheduleActionType left, ScheduleActionType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretConfiguration.Serialization.cs new file mode 100644 index 000000000000..747058cfaa70 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretConfiguration.Serialization.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SecretConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Uri)) + { + if (Uri != null) + { + writer.WritePropertyName("uri"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + } + else + { + writer.WriteNull("uri"); + } + } + if (Optional.IsDefined(WorkspaceSecretName)) + { + if (WorkspaceSecretName != null) + { + writer.WritePropertyName("workspaceSecretName"u8); + writer.WriteStringValue(WorkspaceSecretName); + } + else + { + writer.WriteNull("workspaceSecretName"); + } + } + writer.WriteEndObject(); + } + + internal static SecretConfiguration DeserializeSecretConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional uri = default; + Optional workspaceSecretName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("uri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + uri = null; + continue; + } + uri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("workspaceSecretName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + workspaceSecretName = null; + continue; + } + workspaceSecretName = property.Value.GetString(); + continue; + } + } + return new SecretConfiguration(uri.Value, workspaceSecretName.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretConfiguration.cs new file mode 100644 index 000000000000..87553f52573d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretConfiguration.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Secret Configuration definition. + public partial class SecretConfiguration + { + /// Initializes a new instance of SecretConfiguration. + public SecretConfiguration() + { + } + + /// Initializes a new instance of SecretConfiguration. + /// + /// Secret Uri. + /// Sample Uri : https://myvault.vault.azure.net/secrets/mysecretname/secretversion + /// + /// Name of secret in workspace key vault. + internal SecretConfiguration(Uri uri, string workspaceSecretName) + { + Uri = uri; + WorkspaceSecretName = workspaceSecretName; + } + + /// + /// Secret Uri. + /// Sample Uri : https://myvault.vault.azure.net/secrets/mysecretname/secretversion + /// + public Uri Uri { get; set; } + /// Name of secret in workspace key vault. + public string WorkspaceSecretName { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretsType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretsType.cs index 091196b5382a..8b548663e774 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretsType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SecretsType.cs @@ -26,6 +26,8 @@ public SecretsType(string value) private const string CertificateValue = "Certificate"; private const string SasValue = "Sas"; private const string ServicePrincipalValue = "ServicePrincipal"; + private const string KerberosPasswordValue = "KerberosPassword"; + private const string KerberosKeytabValue = "KerberosKeytab"; /// AccountKey. public static SecretsType AccountKey { get; } = new SecretsType(AccountKeyValue); @@ -35,6 +37,10 @@ public SecretsType(string value) public static SecretsType Sas { get; } = new SecretsType(SasValue); /// ServicePrincipal. public static SecretsType ServicePrincipal { get; } = new SecretsType(ServicePrincipalValue); + /// KerberosPassword. + public static SecretsType KerberosPassword { get; } = new SecretsType(KerberosPasswordValue); + /// KerberosKeytab. + public static SecretsType KerberosKeytab { get; } = new SecretsType(KerberosKeytabValue); /// Determines if two values are the same. public static bool operator ==(SecretsType left, SecretsType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceManagedResourcesSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceManagedResourcesSettings.cs index bf4439457c5b..74dd8f1f4205 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceManagedResourcesSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceManagedResourcesSettings.cs @@ -16,15 +16,15 @@ public ServiceManagedResourcesSettings() } /// Initializes a new instance of ServiceManagedResourcesSettings. - /// The settings for the service managed cosmosdb account. + /// internal ServiceManagedResourcesSettings(CosmosDbSettings cosmosDb) { CosmosDb = cosmosDb; } - /// The settings for the service managed cosmosdb account. + /// Gets or sets the cosmos db. internal CosmosDbSettings CosmosDb { get; set; } - /// The throughput of the collections in cosmosdb database. + /// Gets or sets the cosmos db collections throughput. public int? CosmosDbCollectionsThroughput { get => CosmosDb is null ? default : CosmosDb.CollectionsThroughput; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServicePrincipalAuthTypeWorkspaceConnectionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServicePrincipalAuthTypeWorkspaceConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..2d9d953e4f3e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServicePrincipalAuthTypeWorkspaceConnectionProperties.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ServicePrincipalAuthTypeWorkspaceConnectionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Credentials)) + { + writer.WritePropertyName("credentials"u8); + writer.WriteObjectValue(Credentials); + } + writer.WritePropertyName("authType"u8); + writer.WriteStringValue(AuthType.ToString()); + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(ExpiryOn)) + { + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); + } + if (Optional.IsDefined(Metadata)) + { + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif + } + if (Optional.IsDefined(Target)) + { + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); + } + writer.WriteEndObject(); + } + + internal static ServicePrincipalAuthTypeWorkspaceConnectionProperties DeserializeServicePrincipalAuthTypeWorkspaceConnectionProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional credentials = default; + MachineLearningConnectionAuthType authType = default; + Optional category = default; + Optional expiryTime = default; + Optional metadata = default; + Optional target = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("credentials"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + credentials = WorkspaceConnectionServicePrincipal.DeserializeWorkspaceConnectionServicePrincipal(property.Value); + continue; + } + if (property.NameEquals("authType"u8)) + { + authType = new MachineLearningConnectionAuthType(property.Value.GetString()); + continue; + } + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + category = new MachineLearningConnectionCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("expiryTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("metadata"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); + continue; + } + } + return new ServicePrincipalAuthTypeWorkspaceConnectionProperties(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value, credentials.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServicePrincipalAuthTypeWorkspaceConnectionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServicePrincipalAuthTypeWorkspaceConnectionProperties.cs new file mode 100644 index 000000000000..0e079ea92ba2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServicePrincipalAuthTypeWorkspaceConnectionProperties.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The ServicePrincipalAuthTypeWorkspaceConnectionProperties. + public partial class ServicePrincipalAuthTypeWorkspaceConnectionProperties : MachineLearningWorkspaceConnectionProperties + { + /// Initializes a new instance of ServicePrincipalAuthTypeWorkspaceConnectionProperties. + public ServicePrincipalAuthTypeWorkspaceConnectionProperties() + { + AuthType = MachineLearningConnectionAuthType.ServicePrincipal; + } + + /// Initializes a new instance of ServicePrincipalAuthTypeWorkspaceConnectionProperties. + /// Authentication type of the connection target. + /// Category of the connection. + /// + /// Any object. + /// + /// + internal ServicePrincipalAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, WorkspaceConnectionServicePrincipal credentials) : base(authType, category, expiryOn, metadata, target) + { + Credentials = credentials; + AuthType = authType; + } + + /// Gets or sets the credentials. + public WorkspaceConnectionServicePrincipal Credentials { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.Serialization.cs new file mode 100644 index 000000000000..9066a5293482 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.Serialization.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ServiceTagDestination : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Action)) + { + writer.WritePropertyName("action"u8); + writer.WriteStringValue(Action.Value.ToString()); + } + if (Optional.IsDefined(PortRanges)) + { + writer.WritePropertyName("portRanges"u8); + writer.WriteStringValue(PortRanges); + } + if (Optional.IsDefined(Protocol)) + { + writer.WritePropertyName("protocol"u8); + writer.WriteStringValue(Protocol); + } + if (Optional.IsDefined(ServiceTag)) + { + writer.WritePropertyName("serviceTag"u8); + writer.WriteStringValue(ServiceTag); + } + writer.WriteEndObject(); + } + + internal static ServiceTagDestination DeserializeServiceTagDestination(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional action = default; + Optional> addressPrefixes = default; + Optional portRanges = default; + Optional protocol = default; + Optional serviceTag = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("action"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + action = new RuleAction(property.Value.GetString()); + continue; + } + if (property.NameEquals("addressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + addressPrefixes = array; + continue; + } + if (property.NameEquals("portRanges"u8)) + { + portRanges = property.Value.GetString(); + continue; + } + if (property.NameEquals("protocol"u8)) + { + protocol = property.Value.GetString(); + continue; + } + if (property.NameEquals("serviceTag"u8)) + { + serviceTag = property.Value.GetString(); + continue; + } + } + return new ServiceTagDestination(Optional.ToNullable(action), Optional.ToList(addressPrefixes), portRanges.Value, protocol.Value, serviceTag.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs new file mode 100644 index 000000000000..5411256b2ba9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. + public partial class ServiceTagDestination + { + /// Initializes a new instance of ServiceTagDestination. + public ServiceTagDestination() + { + AddressPrefixes = new ChangeTrackingList(); + } + + /// Initializes a new instance of ServiceTagDestination. + /// The action enum for networking rule. + /// Optional, if provided, the ServiceTag property will be ignored. + /// + /// + /// + internal ServiceTagDestination(RuleAction? action, IReadOnlyList addressPrefixes, string portRanges, string protocol, string serviceTag) + { + Action = action; + AddressPrefixes = addressPrefixes; + PortRanges = portRanges; + Protocol = protocol; + ServiceTag = serviceTag; + } + + /// The action enum for networking rule. + public RuleAction? Action { get; set; } + /// Optional, if provided, the ServiceTag property will be ignored. + public IReadOnlyList AddressPrefixes { get; } + /// Gets or sets the port ranges. + public string PortRanges { get; set; } + /// Gets or sets the protocol. + public string Protocol { get; set; } + /// Gets or sets the service tag. + public string ServiceTag { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.Serialization.cs new file mode 100644 index 000000000000..243ecf20779c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.Serialization.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class ServiceTagOutboundRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Destination)) + { + writer.WritePropertyName("destination"u8); + writer.WriteObjectValue(Destination); + } + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + writer.WritePropertyName("type"u8); + writer.WriteStringValue(RuleType.ToString()); + writer.WriteEndObject(); + } + + internal static ServiceTagOutboundRule DeserializeServiceTagOutboundRule(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional destination = default; + Optional category = default; + Optional status = default; + RuleType type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("destination"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + destination = ServiceTagDestination.DeserializeServiceTagDestination(property.Value); + continue; + } + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + category = new RuleCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new RuleStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new RuleType(property.Value.GetString()); + continue; + } + } + return new ServiceTagOutboundRule(Optional.ToNullable(category), Optional.ToNullable(status), type, destination.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.cs new file mode 100644 index 000000000000..bfe9761aba7d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Service Tag Outbound Rule for the managed network of a machine learning workspace. + public partial class ServiceTagOutboundRule : OutboundRule + { + /// Initializes a new instance of ServiceTagOutboundRule. + public ServiceTagOutboundRule() + { + RuleType = RuleType.ServiceTag; + } + + /// Initializes a new instance of ServiceTagOutboundRule. + /// Category of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. + internal ServiceTagOutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType, ServiceTagDestination destination) : base(category, status, ruleType) + { + Destination = destination; + RuleType = ruleType; + } + + /// Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. + public ServiceTagDestination Destination { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.Serialization.cs new file mode 100644 index 000000000000..076044b8f50e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.Serialization.cs @@ -0,0 +1,694 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SparkJob : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Archives)) + { + if (Archives != null) + { + writer.WritePropertyName("archives"u8); + writer.WriteStartArray(); + foreach (var item in Archives) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("archives"); + } + } + if (Optional.IsDefined(Args)) + { + if (Args != null) + { + writer.WritePropertyName("args"u8); + writer.WriteStringValue(Args); + } + else + { + writer.WriteNull("args"); + } + } + writer.WritePropertyName("codeId"u8); + writer.WriteStringValue(CodeId); + if (Optional.IsCollectionDefined(Conf)) + { + if (Conf != null) + { + writer.WritePropertyName("conf"u8); + writer.WriteStartObject(); + foreach (var item in Conf) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("conf"); + } + } + writer.WritePropertyName("entry"u8); + writer.WriteObjectValue(Entry); + if (Optional.IsDefined(EnvironmentId)) + { + if (EnvironmentId != null) + { + writer.WritePropertyName("environmentId"u8); + writer.WriteStringValue(EnvironmentId); + } + else + { + writer.WriteNull("environmentId"); + } + } + if (Optional.IsCollectionDefined(Files)) + { + if (Files != null) + { + writer.WritePropertyName("files"u8); + writer.WriteStartArray(); + foreach (var item in Files) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("files"); + } + } + if (Optional.IsCollectionDefined(Inputs)) + { + if (Inputs != null) + { + writer.WritePropertyName("inputs"u8); + writer.WriteStartObject(); + foreach (var item in Inputs) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("inputs"); + } + } + if (Optional.IsCollectionDefined(Jars)) + { + if (Jars != null) + { + writer.WritePropertyName("jars"u8); + writer.WriteStartArray(); + foreach (var item in Jars) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("jars"); + } + } + if (Optional.IsCollectionDefined(Outputs)) + { + if (Outputs != null) + { + writer.WritePropertyName("outputs"u8); + writer.WriteStartObject(); + foreach (var item in Outputs) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("outputs"); + } + } + if (Optional.IsCollectionDefined(PyFiles)) + { + if (PyFiles != null) + { + writer.WritePropertyName("pyFiles"u8); + writer.WriteStartArray(); + foreach (var item in PyFiles) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("pyFiles"); + } + } + if (Optional.IsDefined(QueueSettings)) + { + if (QueueSettings != null) + { + writer.WritePropertyName("queueSettings"u8); + writer.WriteObjectValue(QueueSettings); + } + else + { + writer.WriteNull("queueSettings"); + } + } + if (Optional.IsDefined(Resources)) + { + if (Resources != null) + { + writer.WritePropertyName("resources"u8); + writer.WriteObjectValue(Resources); + } + else + { + writer.WriteNull("resources"); + } + } + if (Optional.IsDefined(ComponentId)) + { + if (ComponentId != null) + { + writer.WritePropertyName("componentId"u8); + writer.WriteStringValue(ComponentId); + } + else + { + writer.WriteNull("componentId"); + } + } + if (Optional.IsDefined(ComputeId)) + { + if (ComputeId != null) + { + writer.WritePropertyName("computeId"u8); + writer.WriteStringValue(ComputeId); + } + else + { + writer.WriteNull("computeId"); + } + } + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsDefined(ExperimentName)) + { + writer.WritePropertyName("experimentName"u8); + writer.WriteStringValue(ExperimentName); + } + if (Optional.IsDefined(Identity)) + { + if (Identity != null) + { + writer.WritePropertyName("identity"u8); + writer.WriteObjectValue(Identity); + } + else + { + writer.WriteNull("identity"); + } + } + if (Optional.IsDefined(IsArchived)) + { + writer.WritePropertyName("isArchived"u8); + writer.WriteBooleanValue(IsArchived.Value); + } + writer.WritePropertyName("jobType"u8); + writer.WriteStringValue(JobType.ToString()); + if (Optional.IsDefined(NotificationSetting)) + { + if (NotificationSetting != null) + { + writer.WritePropertyName("notificationSetting"u8); + writer.WriteObjectValue(NotificationSetting); + } + else + { + writer.WriteNull("notificationSetting"); + } + } + if (Optional.IsCollectionDefined(SecretsConfiguration)) + { + if (SecretsConfiguration != null) + { + writer.WritePropertyName("secretsConfiguration"u8); + writer.WriteStartObject(); + foreach (var item in SecretsConfiguration) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("secretsConfiguration"); + } + } + if (Optional.IsCollectionDefined(Services)) + { + if (Services != null) + { + writer.WritePropertyName("services"u8); + writer.WriteStartObject(); + foreach (var item in Services) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("services"); + } + } + if (Optional.IsDefined(Description)) + { + if (Description != null) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + else + { + writer.WriteNull("description"); + } + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + if (Optional.IsCollectionDefined(Tags)) + { + if (Tags != null) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); + } + } + writer.WriteEndObject(); + } + + internal static SparkJob DeserializeSparkJob(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> archives = default; + Optional args = default; + string codeId = default; + Optional> conf = default; + SparkJobEntry entry = default; + Optional environmentId = default; + Optional> files = default; + Optional> inputs = default; + Optional> jars = default; + Optional> outputs = default; + Optional> pyFiles = default; + Optional queueSettings = default; + Optional resources = default; + Optional componentId = default; + Optional computeId = default; + Optional displayName = default; + Optional experimentName = default; + Optional identity = default; + Optional isArchived = default; + JobType jobType = default; + Optional notificationSetting = default; + Optional> secretsConfiguration = default; + Optional> services = default; + Optional status = default; + Optional description = default; + Optional> properties = default; + Optional> tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("archives"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + archives = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + archives = array; + continue; + } + if (property.NameEquals("args"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + args = null; + continue; + } + args = property.Value.GetString(); + continue; + } + if (property.NameEquals("codeId"u8)) + { + codeId = property.Value.GetString(); + continue; + } + if (property.NameEquals("conf"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + conf = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + conf = dictionary; + continue; + } + if (property.NameEquals("entry"u8)) + { + entry = SparkJobEntry.DeserializeSparkJobEntry(property.Value); + continue; + } + if (property.NameEquals("environmentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + environmentId = null; + continue; + } + environmentId = property.Value.GetString(); + continue; + } + if (property.NameEquals("files"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + files = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + files = array; + continue; + } + if (property.NameEquals("inputs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + inputs = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, MachineLearningJobInput.DeserializeMachineLearningJobInput(property0.Value)); + } + inputs = dictionary; + continue; + } + if (property.NameEquals("jars"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + jars = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + jars = array; + continue; + } + if (property.NameEquals("outputs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + outputs = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, MachineLearningJobOutput.DeserializeMachineLearningJobOutput(property0.Value)); + } + outputs = dictionary; + continue; + } + if (property.NameEquals("pyFiles"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + pyFiles = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + pyFiles = array; + continue; + } + if (property.NameEquals("queueSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + queueSettings = null; + continue; + } + queueSettings = QueueSettings.DeserializeQueueSettings(property.Value); + continue; + } + if (property.NameEquals("resources"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + resources = null; + continue; + } + resources = SparkResourceConfiguration.DeserializeSparkResourceConfiguration(property.Value); + continue; + } + if (property.NameEquals("componentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + componentId = null; + continue; + } + componentId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("computeId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + computeId = null; + continue; + } + computeId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("displayName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("experimentName"u8)) + { + experimentName = property.Value.GetString(); + continue; + } + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + identity = null; + continue; + } + identity = MachineLearningIdentityConfiguration.DeserializeMachineLearningIdentityConfiguration(property.Value); + continue; + } + if (property.NameEquals("isArchived"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isArchived = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("jobType"u8)) + { + jobType = new JobType(property.Value.GetString()); + continue; + } + if (property.NameEquals("notificationSetting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + notificationSetting = null; + continue; + } + notificationSetting = NotificationSetting.DeserializeNotificationSetting(property.Value); + continue; + } + if (property.NameEquals("secretsConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + secretsConfiguration = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, SecretConfiguration.DeserializeSecretConfiguration(property0.Value)); + } + secretsConfiguration = dictionary; + continue; + } + if (property.NameEquals("services"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + services = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, MachineLearningJobService.DeserializeMachineLearningJobService(property0.Value)); + } + services = dictionary; + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new MachineLearningJobStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + description = null; + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tags = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + } + return new SparkJob(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), componentId.Value, computeId.Value, displayName.Value, experimentName.Value, identity.Value, Optional.ToNullable(isArchived), jobType, notificationSetting.Value, Optional.ToDictionary(secretsConfiguration), Optional.ToDictionary(services), Optional.ToNullable(status), Optional.ToList(archives), args.Value, codeId, Optional.ToDictionary(conf), entry, environmentId.Value, Optional.ToList(files), Optional.ToDictionary(inputs), Optional.ToList(jars), Optional.ToDictionary(outputs), Optional.ToList(pyFiles), queueSettings.Value, resources.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs new file mode 100644 index 000000000000..133f1ea1733f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Spark job definition. + public partial class SparkJob : MachineLearningJobProperties + { + /// Initializes a new instance of SparkJob. + /// [Required] ARM resource ID of the code asset. + /// + /// [Required] The entry to execute on startup of the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// or is null. + public SparkJob(string codeId, SparkJobEntry entry) + { + Argument.AssertNotNull(codeId, nameof(codeId)); + Argument.AssertNotNull(entry, nameof(entry)); + + Archives = new ChangeTrackingList(); + CodeId = codeId; + Conf = new ChangeTrackingDictionary(); + Entry = entry; + Files = new ChangeTrackingList(); + Inputs = new ChangeTrackingDictionary(); + Jars = new ChangeTrackingList(); + Outputs = new ChangeTrackingDictionary(); + PyFiles = new ChangeTrackingList(); + JobType = JobType.Spark; + } + + /// Initializes a new instance of SparkJob. + /// The asset description text. + /// The asset property dictionary. + /// Tag dictionary. Tags can be added, removed, and updated. + /// ARM resource ID of the component resource. + /// ARM resource ID of the compute resource. + /// Display name of job. + /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. + /// + /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + /// Defaults to AmlToken if null. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Is the asset archived?. + /// [Required] Specifies the type of job. + /// Notification setting for the job. + /// Configuration for secrets to be made available during runtime. + /// + /// List of JobEndpoints. + /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + /// + /// Status of the job. + /// Archive files used in the job. + /// Arguments for the job. + /// [Required] ARM resource ID of the code asset. + /// Spark configured properties. + /// + /// [Required] The entry to execute on startup of the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// The ARM resource ID of the Environment specification for the job. + /// Files used in the job. + /// + /// Mapping of input data bindings used in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + /// Jar files used in the job. + /// + /// Mapping of output data bindings used in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// Python files used in the job. + /// Queue settings for the job. + /// Compute Resource configuration for the job. + internal SparkJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, IList archives, string args, string codeId, IDictionary conf, SparkJobEntry entry, string environmentId, IList files, IDictionary inputs, IList jars, IDictionary outputs, IList pyFiles, QueueSettings queueSettings, SparkResourceConfiguration resources) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) + { + Archives = archives; + Args = args; + CodeId = codeId; + Conf = conf; + Entry = entry; + EnvironmentId = environmentId; + Files = files; + Inputs = inputs; + Jars = jars; + Outputs = outputs; + PyFiles = pyFiles; + QueueSettings = queueSettings; + Resources = resources; + JobType = jobType; + } + + /// Archive files used in the job. + public IList Archives { get; set; } + /// Arguments for the job. + public string Args { get; set; } + /// [Required] ARM resource ID of the code asset. + public string CodeId { get; set; } + /// Spark configured properties. + public IDictionary Conf { get; set; } + /// + /// [Required] The entry to execute on startup of the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public SparkJobEntry Entry { get; set; } + /// The ARM resource ID of the Environment specification for the job. + public string EnvironmentId { get; set; } + /// Files used in the job. + public IList Files { get; set; } + /// + /// Mapping of input data bindings used in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . + /// + public IDictionary Inputs { get; set; } + /// Jar files used in the job. + public IList Jars { get; set; } + /// + /// Mapping of output data bindings used in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + public IDictionary Outputs { get; set; } + /// Python files used in the job. + public IList PyFiles { get; set; } + /// Queue settings for the job. + public QueueSettings QueueSettings { get; set; } + /// Compute Resource configuration for the job. + public SparkResourceConfiguration Resources { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntry.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntry.Serialization.cs new file mode 100644 index 000000000000..937d06f59c17 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntry.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SparkJobEntry : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("sparkJobEntryType"u8); + writer.WriteStringValue(SparkJobEntryType.ToString()); + writer.WriteEndObject(); + } + + internal static SparkJobEntry DeserializeSparkJobEntry(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("sparkJobEntryType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "SparkJobPythonEntry": return SparkJobPythonEntry.DeserializeSparkJobPythonEntry(element); + case "SparkJobScalaEntry": return SparkJobScalaEntry.DeserializeSparkJobScalaEntry(element); + } + } + return UnknownSparkJobEntry.DeserializeUnknownSparkJobEntry(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntry.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntry.cs new file mode 100644 index 000000000000..796604f1b975 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntry.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Spark job entry point definition. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class SparkJobEntry + { + /// Initializes a new instance of SparkJobEntry. + protected SparkJobEntry() + { + } + + /// Initializes a new instance of SparkJobEntry. + /// [Required] Type of the job's entry point. + internal SparkJobEntry(SparkJobEntryType sparkJobEntryType) + { + SparkJobEntryType = sparkJobEntryType; + } + + /// [Required] Type of the job's entry point. + internal SparkJobEntryType SparkJobEntryType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntryType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntryType.cs new file mode 100644 index 000000000000..72ff3ae366e9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobEntryType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The SparkJobEntryType. + internal readonly partial struct SparkJobEntryType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SparkJobEntryType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SparkJobPythonEntryValue = "SparkJobPythonEntry"; + private const string SparkJobScalaEntryValue = "SparkJobScalaEntry"; + + /// SparkJobPythonEntry. + public static SparkJobEntryType SparkJobPythonEntry { get; } = new SparkJobEntryType(SparkJobPythonEntryValue); + /// SparkJobScalaEntry. + public static SparkJobEntryType SparkJobScalaEntry { get; } = new SparkJobEntryType(SparkJobScalaEntryValue); + /// Determines if two values are the same. + public static bool operator ==(SparkJobEntryType left, SparkJobEntryType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SparkJobEntryType left, SparkJobEntryType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SparkJobEntryType(string value) => new SparkJobEntryType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SparkJobEntryType other && Equals(other); + /// + public bool Equals(SparkJobEntryType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobPythonEntry.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobPythonEntry.Serialization.cs new file mode 100644 index 000000000000..b9db8d46bd9c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobPythonEntry.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SparkJobPythonEntry : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("file"u8); + writer.WriteStringValue(File); + writer.WritePropertyName("sparkJobEntryType"u8); + writer.WriteStringValue(SparkJobEntryType.ToString()); + writer.WriteEndObject(); + } + + internal static SparkJobPythonEntry DeserializeSparkJobPythonEntry(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string file = default; + SparkJobEntryType sparkJobEntryType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("file"u8)) + { + file = property.Value.GetString(); + continue; + } + if (property.NameEquals("sparkJobEntryType"u8)) + { + sparkJobEntryType = new SparkJobEntryType(property.Value.GetString()); + continue; + } + } + return new SparkJobPythonEntry(sparkJobEntryType, file); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobPythonEntry.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobPythonEntry.cs new file mode 100644 index 000000000000..f4c23f5948a5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobPythonEntry.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The SparkJobPythonEntry. + public partial class SparkJobPythonEntry : SparkJobEntry + { + /// Initializes a new instance of SparkJobPythonEntry. + /// [Required] Relative python file path for job entry point. + /// is null. + public SparkJobPythonEntry(string file) + { + Argument.AssertNotNull(file, nameof(file)); + + File = file; + SparkJobEntryType = SparkJobEntryType.SparkJobPythonEntry; + } + + /// Initializes a new instance of SparkJobPythonEntry. + /// [Required] Type of the job's entry point. + /// [Required] Relative python file path for job entry point. + internal SparkJobPythonEntry(SparkJobEntryType sparkJobEntryType, string file) : base(sparkJobEntryType) + { + File = file; + SparkJobEntryType = sparkJobEntryType; + } + + /// [Required] Relative python file path for job entry point. + public string File { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobScalaEntry.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobScalaEntry.Serialization.cs new file mode 100644 index 000000000000..d616db258ea2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobScalaEntry.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SparkJobScalaEntry : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("className"u8); + writer.WriteStringValue(ClassName); + writer.WritePropertyName("sparkJobEntryType"u8); + writer.WriteStringValue(SparkJobEntryType.ToString()); + writer.WriteEndObject(); + } + + internal static SparkJobScalaEntry DeserializeSparkJobScalaEntry(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string className = default; + SparkJobEntryType sparkJobEntryType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("className"u8)) + { + className = property.Value.GetString(); + continue; + } + if (property.NameEquals("sparkJobEntryType"u8)) + { + sparkJobEntryType = new SparkJobEntryType(property.Value.GetString()); + continue; + } + } + return new SparkJobScalaEntry(sparkJobEntryType, className); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobScalaEntry.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobScalaEntry.cs new file mode 100644 index 000000000000..e769b6306466 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJobScalaEntry.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The SparkJobScalaEntry. + public partial class SparkJobScalaEntry : SparkJobEntry + { + /// Initializes a new instance of SparkJobScalaEntry. + /// [Required] Scala class name used as entry point. + /// is null. + public SparkJobScalaEntry(string className) + { + Argument.AssertNotNull(className, nameof(className)); + + ClassName = className; + SparkJobEntryType = SparkJobEntryType.SparkJobScalaEntry; + } + + /// Initializes a new instance of SparkJobScalaEntry. + /// [Required] Type of the job's entry point. + /// [Required] Scala class name used as entry point. + internal SparkJobScalaEntry(SparkJobEntryType sparkJobEntryType, string className) : base(sparkJobEntryType) + { + ClassName = className; + SparkJobEntryType = sparkJobEntryType; + } + + /// [Required] Scala class name used as entry point. + public string ClassName { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkResourceConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkResourceConfiguration.Serialization.cs new file mode 100644 index 000000000000..b9c33b6fe827 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkResourceConfiguration.Serialization.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SparkResourceConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(InstanceType)) + { + if (InstanceType != null) + { + writer.WritePropertyName("instanceType"u8); + writer.WriteStringValue(InstanceType); + } + else + { + writer.WriteNull("instanceType"); + } + } + if (Optional.IsDefined(RuntimeVersion)) + { + writer.WritePropertyName("runtimeVersion"u8); + writer.WriteStringValue(RuntimeVersion); + } + writer.WriteEndObject(); + } + + internal static SparkResourceConfiguration DeserializeSparkResourceConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional instanceType = default; + Optional runtimeVersion = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("instanceType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + instanceType = null; + continue; + } + instanceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("runtimeVersion"u8)) + { + runtimeVersion = property.Value.GetString(); + continue; + } + } + return new SparkResourceConfiguration(instanceType.Value, runtimeVersion.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkResourceConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkResourceConfiguration.cs new file mode 100644 index 000000000000..bd5511ae11a3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkResourceConfiguration.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The SparkResourceConfiguration. + public partial class SparkResourceConfiguration + { + /// Initializes a new instance of SparkResourceConfiguration. + public SparkResourceConfiguration() + { + } + + /// Initializes a new instance of SparkResourceConfiguration. + /// Optional type of VM used as supported by the compute target. + /// Version of spark runtime used for the job. + internal SparkResourceConfiguration(string instanceType, string runtimeVersion) + { + InstanceType = instanceType; + RuntimeVersion = runtimeVersion; + } + + /// Optional type of VM used as supported by the compute target. + public string InstanceType { get; set; } + /// Version of spark runtime used for the job. + public string RuntimeVersion { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StaticInputData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StaticInputData.Serialization.cs new file mode 100644 index 000000000000..c5bfb8f37b23 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StaticInputData.Serialization.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class StaticInputData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(PreprocessingComponentId)) + { + if (PreprocessingComponentId != null) + { + writer.WritePropertyName("preprocessingComponentId"u8); + writer.WriteStringValue(PreprocessingComponentId); + } + else + { + writer.WriteNull("preprocessingComponentId"); + } + } + writer.WritePropertyName("windowEnd"u8); + writer.WriteStringValue(WindowEnd, "O"); + writer.WritePropertyName("windowStart"u8); + writer.WriteStringValue(WindowStart, "O"); + if (Optional.IsCollectionDefined(Columns)) + { + if (Columns != null) + { + writer.WritePropertyName("columns"u8); + writer.WriteStartObject(); + foreach (var item in Columns) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("columns"); + } + } + if (Optional.IsDefined(DataContext)) + { + if (DataContext != null) + { + writer.WritePropertyName("dataContext"u8); + writer.WriteStringValue(DataContext); + } + else + { + writer.WriteNull("dataContext"); + } + } + writer.WritePropertyName("inputDataType"u8); + writer.WriteStringValue(InputDataType.ToString()); + writer.WritePropertyName("jobInputType"u8); + writer.WriteStringValue(JobInputType.ToString()); + writer.WritePropertyName("uri"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + writer.WriteEndObject(); + } + + internal static StaticInputData DeserializeStaticInputData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional preprocessingComponentId = default; + DateTimeOffset windowEnd = default; + DateTimeOffset windowStart = default; + Optional> columns = default; + Optional dataContext = default; + MonitoringInputDataType inputDataType = default; + JobInputType jobInputType = default; + Uri uri = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("preprocessingComponentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + preprocessingComponentId = null; + continue; + } + preprocessingComponentId = property.Value.GetString(); + continue; + } + if (property.NameEquals("windowEnd"u8)) + { + windowEnd = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("windowStart"u8)) + { + windowStart = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("columns"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + columns = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + columns = dictionary; + continue; + } + if (property.NameEquals("dataContext"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataContext = null; + continue; + } + dataContext = property.Value.GetString(); + continue; + } + if (property.NameEquals("inputDataType"u8)) + { + inputDataType = new MonitoringInputDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("jobInputType"u8)) + { + jobInputType = new JobInputType(property.Value.GetString()); + continue; + } + if (property.NameEquals("uri"u8)) + { + uri = new Uri(property.Value.GetString()); + continue; + } + } + return new StaticInputData(Optional.ToDictionary(columns), dataContext.Value, inputDataType, jobInputType, uri, preprocessingComponentId.Value, windowEnd, windowStart); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StaticInputData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StaticInputData.cs new file mode 100644 index 000000000000..642070e3638b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StaticInputData.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Static input data definition. + public partial class StaticInputData : MonitoringInputDataBase + { + /// Initializes a new instance of StaticInputData. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + /// [Required] The end date of the data window. + /// [Required] The start date of the data window. + /// is null. + public StaticInputData(JobInputType jobInputType, Uri uri, DateTimeOffset windowEnd, DateTimeOffset windowStart) : base(jobInputType, uri) + { + Argument.AssertNotNull(uri, nameof(uri)); + + WindowEnd = windowEnd; + WindowStart = windowStart; + InputDataType = MonitoringInputDataType.Static; + } + + /// Initializes a new instance of StaticInputData. + /// Mapping of column names to special uses. + /// The context metadata of the data source. + /// [Required] Specifies the type of signal to monitor. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + /// The ARM resource ID of the component resource used to preprocess the data. + /// [Required] The end date of the data window. + /// [Required] The start date of the data window. + internal StaticInputData(IDictionary columns, string dataContext, MonitoringInputDataType inputDataType, JobInputType jobInputType, Uri uri, string preprocessingComponentId, DateTimeOffset windowEnd, DateTimeOffset windowStart) : base(columns, dataContext, inputDataType, jobInputType, uri) + { + PreprocessingComponentId = preprocessingComponentId; + WindowEnd = windowEnd; + WindowStart = windowStart; + InputDataType = inputDataType; + } + + /// The ARM resource ID of the component resource used to preprocess the data. + public string PreprocessingComponentId { get; set; } + /// [Required] The end date of the data window. + public DateTimeOffset WindowEnd { get; set; } + /// [Required] The start date of the data window. + public DateTimeOffset WindowStart { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.Serialization.cs new file mode 100644 index 000000000000..83b8150b151e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class StatusMessage + { + internal static StatusMessage DeserializeStatusMessage(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional code = default; + Optional createdDateTime = default; + Optional level = default; + Optional message = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + code = null; + continue; + } + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("createdDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + createdDateTime = null; + continue; + } + createdDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("level"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + level = new StatusMessageLevel(property.Value.GetString()); + continue; + } + if (property.NameEquals("message"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + message = null; + continue; + } + message = property.Value.GetString(); + continue; + } + } + return new StatusMessage(code.Value, Optional.ToNullable(createdDateTime), Optional.ToNullable(level), message.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.cs new file mode 100644 index 000000000000..729172ca0aeb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Active message associated with project. + public partial class StatusMessage + { + /// Initializes a new instance of StatusMessage. + internal StatusMessage() + { + } + + /// Initializes a new instance of StatusMessage. + /// Service-defined message code. + /// Time in UTC at which the message was created. + /// Severity level of message. + /// A human-readable representation of the message code. + internal StatusMessage(string code, DateTimeOffset? createdOn, StatusMessageLevel? level, string message) + { + Code = code; + CreatedOn = createdOn; + Level = level; + Message = message; + } + + /// Service-defined message code. + public string Code { get; } + /// Time in UTC at which the message was created. + public DateTimeOffset? CreatedOn { get; } + /// Severity level of message. + public StatusMessageLevel? Level { get; } + /// A human-readable representation of the message code. + public string Message { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessageLevel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessageLevel.cs new file mode 100644 index 000000000000..6f6864cba6fa --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessageLevel.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The StatusMessageLevel. + public readonly partial struct StatusMessageLevel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public StatusMessageLevel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ErrorValue = "Error"; + private const string InformationValue = "Information"; + private const string WarningValue = "Warning"; + + /// Error. + public static StatusMessageLevel Error { get; } = new StatusMessageLevel(ErrorValue); + /// Information. + public static StatusMessageLevel Information { get; } = new StatusMessageLevel(InformationValue); + /// Warning. + public static StatusMessageLevel Warning { get; } = new StatusMessageLevel(WarningValue); + /// Determines if two values are the same. + public static bool operator ==(StatusMessageLevel left, StatusMessageLevel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(StatusMessageLevel left, StatusMessageLevel right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator StatusMessageLevel(string value) => new StatusMessageLevel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is StatusMessageLevel other && Equals(other); + /// + public bool Equals(StatusMessageLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.Serialization.cs new file mode 100644 index 000000000000..7d030a703d65 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.Serialization.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class StorageAccountDetails : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(SystemCreatedStorageAccount)) + { + if (SystemCreatedStorageAccount != null) + { + writer.WritePropertyName("systemCreatedStorageAccount"u8); + writer.WriteObjectValue(SystemCreatedStorageAccount); + } + else + { + writer.WriteNull("systemCreatedStorageAccount"); + } + } + if (Optional.IsDefined(UserCreatedStorageAccount)) + { + if (UserCreatedStorageAccount != null) + { + writer.WritePropertyName("userCreatedStorageAccount"u8); + writer.WriteObjectValue(UserCreatedStorageAccount); + } + else + { + writer.WriteNull("userCreatedStorageAccount"); + } + } + writer.WriteEndObject(); + } + + internal static StorageAccountDetails DeserializeStorageAccountDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional systemCreatedStorageAccount = default; + Optional userCreatedStorageAccount = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("systemCreatedStorageAccount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + systemCreatedStorageAccount = null; + continue; + } + systemCreatedStorageAccount = SystemCreatedStorageAccount.DeserializeSystemCreatedStorageAccount(property.Value); + continue; + } + if (property.NameEquals("userCreatedStorageAccount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + userCreatedStorageAccount = null; + continue; + } + userCreatedStorageAccount = UserCreatedStorageAccount.DeserializeUserCreatedStorageAccount(property.Value); + continue; + } + } + return new StorageAccountDetails(systemCreatedStorageAccount.Value, userCreatedStorageAccount.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs new file mode 100644 index 000000000000..f328b3edbd4d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Details of storage account to be used for the Registry. + public partial class StorageAccountDetails + { + /// Initializes a new instance of StorageAccountDetails. + public StorageAccountDetails() + { + } + + /// Initializes a new instance of StorageAccountDetails. + /// Details of system created storage account to be used for the registry. + /// Details of user created storage account to be used for the registry. + internal StorageAccountDetails(SystemCreatedStorageAccount systemCreatedStorageAccount, UserCreatedStorageAccount userCreatedStorageAccount) + { + SystemCreatedStorageAccount = systemCreatedStorageAccount; + UserCreatedStorageAccount = userCreatedStorageAccount; + } + + /// Details of system created storage account to be used for the registry. + public SystemCreatedStorageAccount SystemCreatedStorageAccount { get; set; } + /// Details of user created storage account to be used for the registry. + internal UserCreatedStorageAccount UserCreatedStorageAccount { get; set; } + /// + /// 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}" + /// + public string ArmResourceId + { + get => UserCreatedStorageAccount is null ? default : UserCreatedStorageAccount.ArmResourceId; + set + { + if (UserCreatedStorageAccount is null) + UserCreatedStorageAccount = new UserCreatedStorageAccount(); + UserCreatedStorageAccount.ArmResourceId = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.Serialization.cs new file mode 100644 index 000000000000..6326a8aa991a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.Serialization.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SystemCreatedAcrAccount : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AcrAccountName)) + { + if (AcrAccountName != null) + { + writer.WritePropertyName("acrAccountName"u8); + writer.WriteStringValue(AcrAccountName); + } + else + { + writer.WriteNull("acrAccountName"); + } + } + if (Optional.IsDefined(AcrAccountSku)) + { + if (AcrAccountSku != null) + { + writer.WritePropertyName("acrAccountSku"u8); + writer.WriteStringValue(AcrAccountSku); + } + else + { + writer.WriteNull("acrAccountSku"); + } + } + if (Optional.IsDefined(ArmResourceIdentifier)) + { + if (ArmResourceIdentifier != null) + { + writer.WritePropertyName("armResourceId"u8); + writer.WriteObjectValue(ArmResourceIdentifier); + } + else + { + writer.WriteNull("armResourceId"); + } + } + writer.WriteEndObject(); + } + + internal static SystemCreatedAcrAccount DeserializeSystemCreatedAcrAccount(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional acrAccountName = default; + Optional acrAccountSku = default; + Optional armResourceId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("acrAccountName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + acrAccountName = null; + continue; + } + acrAccountName = property.Value.GetString(); + continue; + } + if (property.NameEquals("acrAccountSku"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + acrAccountSku = null; + continue; + } + acrAccountSku = property.Value.GetString(); + continue; + } + if (property.NameEquals("armResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + armResourceId = null; + continue; + } + armResourceId = Models.ArmResourceId.DeserializeArmResourceId(property.Value); + continue; + } + } + return new SystemCreatedAcrAccount(acrAccountName.Value, acrAccountSku.Value, armResourceId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.cs new file mode 100644 index 000000000000..eac6d1f506ce --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The SystemCreatedAcrAccount. + public partial class SystemCreatedAcrAccount + { + /// Initializes a new instance of SystemCreatedAcrAccount. + public SystemCreatedAcrAccount() + { + } + + /// Initializes a new instance of SystemCreatedAcrAccount. + /// Name of the ACR account. + /// SKU of the ACR account. + /// This is populated once the ACR account is created. + internal SystemCreatedAcrAccount(string acrAccountName, string acrAccountSku, ArmResourceId armResourceIdentifier) + { + AcrAccountName = acrAccountName; + AcrAccountSku = acrAccountSku; + ArmResourceIdentifier = armResourceIdentifier; + } + + /// Name of the ACR account. + public string AcrAccountName { get; set; } + /// SKU of the ACR account. + public string AcrAccountSku { get; set; } + /// This is populated once the ACR account is created. + internal ArmResourceId ArmResourceIdentifier { get; set; } + /// + /// 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}" + /// + public string ArmResourceId + { + get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; + set + { + if (ArmResourceIdentifier is null) + ArmResourceIdentifier = new ArmResourceId(); + ArmResourceIdentifier.ResourceId = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.Serialization.cs new file mode 100644 index 000000000000..a1e1d27851ab --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.Serialization.cs @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class SystemCreatedStorageAccount : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AllowBlobPublicAccess)) + { + writer.WritePropertyName("allowBlobPublicAccess"u8); + writer.WriteBooleanValue(AllowBlobPublicAccess.Value); + } + if (Optional.IsDefined(ArmResourceIdentifier)) + { + if (ArmResourceIdentifier != null) + { + writer.WritePropertyName("armResourceId"u8); + writer.WriteObjectValue(ArmResourceIdentifier); + } + else + { + writer.WriteNull("armResourceId"); + } + } + if (Optional.IsDefined(StorageAccountHnsEnabled)) + { + writer.WritePropertyName("storageAccountHnsEnabled"u8); + writer.WriteBooleanValue(StorageAccountHnsEnabled.Value); + } + if (Optional.IsDefined(StorageAccountName)) + { + if (StorageAccountName != null) + { + writer.WritePropertyName("storageAccountName"u8); + writer.WriteStringValue(StorageAccountName); + } + else + { + writer.WriteNull("storageAccountName"); + } + } + if (Optional.IsDefined(StorageAccountType)) + { + if (StorageAccountType != null) + { + writer.WritePropertyName("storageAccountType"u8); + writer.WriteStringValue(StorageAccountType); + } + else + { + writer.WriteNull("storageAccountType"); + } + } + writer.WriteEndObject(); + } + + internal static SystemCreatedStorageAccount DeserializeSystemCreatedStorageAccount(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional allowBlobPublicAccess = default; + Optional armResourceId = default; + Optional storageAccountHnsEnabled = default; + Optional storageAccountName = default; + Optional storageAccountType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("allowBlobPublicAccess"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allowBlobPublicAccess = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("armResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + armResourceId = null; + continue; + } + armResourceId = Models.ArmResourceId.DeserializeArmResourceId(property.Value); + continue; + } + if (property.NameEquals("storageAccountHnsEnabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageAccountHnsEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("storageAccountName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + storageAccountName = null; + continue; + } + storageAccountName = property.Value.GetString(); + continue; + } + if (property.NameEquals("storageAccountType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + storageAccountType = null; + continue; + } + storageAccountType = property.Value.GetString(); + continue; + } + } + return new SystemCreatedStorageAccount(Optional.ToNullable(allowBlobPublicAccess), armResourceId.Value, Optional.ToNullable(storageAccountHnsEnabled), storageAccountName.Value, storageAccountType.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.cs new file mode 100644 index 000000000000..0d09cf97dbf4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The SystemCreatedStorageAccount. + public partial class SystemCreatedStorageAccount + { + /// Initializes a new instance of SystemCreatedStorageAccount. + public SystemCreatedStorageAccount() + { + } + + /// Initializes a new instance of SystemCreatedStorageAccount. + /// Public blob access allowed. + /// This is populated once the storage account is created. + /// HNS enabled for storage account. + /// Name of the storage account. + /// + /// Allowed values: + /// "Standard_LRS", + /// "Standard_GRS", + /// "Standard_RAGRS", + /// "Standard_ZRS", + /// "Standard_GZRS", + /// "Standard_RAGZRS", + /// "Premium_LRS", + /// "Premium_ZRS" + /// + internal SystemCreatedStorageAccount(bool? allowBlobPublicAccess, ArmResourceId armResourceIdentifier, bool? storageAccountHnsEnabled, string storageAccountName, string storageAccountType) + { + AllowBlobPublicAccess = allowBlobPublicAccess; + ArmResourceIdentifier = armResourceIdentifier; + StorageAccountHnsEnabled = storageAccountHnsEnabled; + StorageAccountName = storageAccountName; + StorageAccountType = storageAccountType; + } + + /// Public blob access allowed. + public bool? AllowBlobPublicAccess { get; set; } + /// This is populated once the storage account is created. + internal ArmResourceId ArmResourceIdentifier { get; set; } + /// + /// 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}" + /// + public string ArmResourceId + { + get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; + set + { + if (ArmResourceIdentifier is null) + ArmResourceIdentifier = new ArmResourceId(); + ArmResourceIdentifier.ResourceId = value; + } + } + + /// HNS enabled for storage account. + public bool? StorageAccountHnsEnabled { get; set; } + /// Name of the storage account. + public string StorageAccountName { get; set; } + /// + /// Allowed values: + /// "Standard_LRS", + /// "Standard_GRS", + /// "Standard_RAGRS", + /// "Standard_ZRS", + /// "Standard_GZRS", + /// "Standard_RAGZRS", + /// "Premium_LRS", + /// "Premium_ZRS" + /// + public string StorageAccountType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableFixedParameters.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableFixedParameters.Serialization.cs new file mode 100644 index 000000000000..731d2a685d0a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableFixedParameters.Serialization.cs @@ -0,0 +1,477 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class TableFixedParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Booster)) + { + if (Booster != null) + { + writer.WritePropertyName("booster"u8); + writer.WriteStringValue(Booster); + } + else + { + writer.WriteNull("booster"); + } + } + if (Optional.IsDefined(BoostingType)) + { + if (BoostingType != null) + { + writer.WritePropertyName("boostingType"u8); + writer.WriteStringValue(BoostingType); + } + else + { + writer.WriteNull("boostingType"); + } + } + if (Optional.IsDefined(GrowPolicy)) + { + if (GrowPolicy != null) + { + writer.WritePropertyName("growPolicy"u8); + writer.WriteStringValue(GrowPolicy); + } + else + { + writer.WriteNull("growPolicy"); + } + } + if (Optional.IsDefined(LearningRate)) + { + if (LearningRate != null) + { + writer.WritePropertyName("learningRate"u8); + writer.WriteNumberValue(LearningRate.Value); + } + else + { + writer.WriteNull("learningRate"); + } + } + if (Optional.IsDefined(MaxBin)) + { + if (MaxBin != null) + { + writer.WritePropertyName("maxBin"u8); + writer.WriteNumberValue(MaxBin.Value); + } + else + { + writer.WriteNull("maxBin"); + } + } + if (Optional.IsDefined(MaxDepth)) + { + if (MaxDepth != null) + { + writer.WritePropertyName("maxDepth"u8); + writer.WriteNumberValue(MaxDepth.Value); + } + else + { + writer.WriteNull("maxDepth"); + } + } + if (Optional.IsDefined(MaxLeaves)) + { + if (MaxLeaves != null) + { + writer.WritePropertyName("maxLeaves"u8); + writer.WriteNumberValue(MaxLeaves.Value); + } + else + { + writer.WriteNull("maxLeaves"); + } + } + if (Optional.IsDefined(MinDataInLeaf)) + { + if (MinDataInLeaf != null) + { + writer.WritePropertyName("minDataInLeaf"u8); + writer.WriteNumberValue(MinDataInLeaf.Value); + } + else + { + writer.WriteNull("minDataInLeaf"); + } + } + if (Optional.IsDefined(MinSplitGain)) + { + if (MinSplitGain != null) + { + writer.WritePropertyName("minSplitGain"u8); + writer.WriteNumberValue(MinSplitGain.Value); + } + else + { + writer.WriteNull("minSplitGain"); + } + } + if (Optional.IsDefined(ModelName)) + { + if (ModelName != null) + { + writer.WritePropertyName("modelName"u8); + writer.WriteStringValue(ModelName); + } + else + { + writer.WriteNull("modelName"); + } + } + if (Optional.IsDefined(NEstimators)) + { + if (NEstimators != null) + { + writer.WritePropertyName("nEstimators"u8); + writer.WriteNumberValue(NEstimators.Value); + } + else + { + writer.WriteNull("nEstimators"); + } + } + if (Optional.IsDefined(NumLeaves)) + { + if (NumLeaves != null) + { + writer.WritePropertyName("numLeaves"u8); + writer.WriteNumberValue(NumLeaves.Value); + } + else + { + writer.WriteNull("numLeaves"); + } + } + if (Optional.IsDefined(PreprocessorName)) + { + if (PreprocessorName != null) + { + writer.WritePropertyName("preprocessorName"u8); + writer.WriteStringValue(PreprocessorName); + } + else + { + writer.WriteNull("preprocessorName"); + } + } + if (Optional.IsDefined(RegAlpha)) + { + if (RegAlpha != null) + { + writer.WritePropertyName("regAlpha"u8); + writer.WriteNumberValue(RegAlpha.Value); + } + else + { + writer.WriteNull("regAlpha"); + } + } + if (Optional.IsDefined(RegLambda)) + { + if (RegLambda != null) + { + writer.WritePropertyName("regLambda"u8); + writer.WriteNumberValue(RegLambda.Value); + } + else + { + writer.WriteNull("regLambda"); + } + } + if (Optional.IsDefined(Subsample)) + { + if (Subsample != null) + { + writer.WritePropertyName("subsample"u8); + writer.WriteNumberValue(Subsample.Value); + } + else + { + writer.WriteNull("subsample"); + } + } + if (Optional.IsDefined(SubsampleFreq)) + { + if (SubsampleFreq != null) + { + writer.WritePropertyName("subsampleFreq"u8); + writer.WriteNumberValue(SubsampleFreq.Value); + } + else + { + writer.WriteNull("subsampleFreq"); + } + } + if (Optional.IsDefined(TreeMethod)) + { + if (TreeMethod != null) + { + writer.WritePropertyName("treeMethod"u8); + writer.WriteStringValue(TreeMethod); + } + else + { + writer.WriteNull("treeMethod"); + } + } + if (Optional.IsDefined(WithMean)) + { + writer.WritePropertyName("withMean"u8); + writer.WriteBooleanValue(WithMean.Value); + } + if (Optional.IsDefined(WithStd)) + { + writer.WritePropertyName("withStd"u8); + writer.WriteBooleanValue(WithStd.Value); + } + writer.WriteEndObject(); + } + + internal static TableFixedParameters DeserializeTableFixedParameters(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional booster = default; + Optional boostingType = default; + Optional growPolicy = default; + Optional learningRate = default; + Optional maxBin = default; + Optional maxDepth = default; + Optional maxLeaves = default; + Optional minDataInLeaf = default; + Optional minSplitGain = default; + Optional modelName = default; + Optional nEstimators = default; + Optional numLeaves = default; + Optional preprocessorName = default; + Optional regAlpha = default; + Optional regLambda = default; + Optional subsample = default; + Optional subsampleFreq = default; + Optional treeMethod = default; + Optional withMean = default; + Optional withStd = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("booster"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + booster = null; + continue; + } + booster = property.Value.GetString(); + continue; + } + if (property.NameEquals("boostingType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + boostingType = null; + continue; + } + boostingType = property.Value.GetString(); + continue; + } + if (property.NameEquals("growPolicy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + growPolicy = null; + continue; + } + growPolicy = property.Value.GetString(); + continue; + } + if (property.NameEquals("learningRate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + learningRate = null; + continue; + } + learningRate = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("maxBin"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxBin = null; + continue; + } + maxBin = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("maxDepth"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxDepth = null; + continue; + } + maxDepth = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("maxLeaves"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxLeaves = null; + continue; + } + maxLeaves = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("minDataInLeaf"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + minDataInLeaf = null; + continue; + } + minDataInLeaf = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("minSplitGain"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + minSplitGain = null; + continue; + } + minSplitGain = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("modelName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + modelName = null; + continue; + } + modelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("nEstimators"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + nEstimators = null; + continue; + } + nEstimators = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("numLeaves"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + numLeaves = null; + continue; + } + numLeaves = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("preprocessorName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + preprocessorName = null; + continue; + } + preprocessorName = property.Value.GetString(); + continue; + } + if (property.NameEquals("regAlpha"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + regAlpha = null; + continue; + } + regAlpha = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("regLambda"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + regLambda = null; + continue; + } + regLambda = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("subsample"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subsample = null; + continue; + } + subsample = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("subsampleFreq"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subsampleFreq = null; + continue; + } + subsampleFreq = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("treeMethod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + treeMethod = null; + continue; + } + treeMethod = property.Value.GetString(); + continue; + } + if (property.NameEquals("withMean"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + withMean = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("withStd"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + withStd = property.Value.GetBoolean(); + continue; + } + } + return new TableFixedParameters(booster.Value, boostingType.Value, growPolicy.Value, Optional.ToNullable(learningRate), Optional.ToNullable(maxBin), Optional.ToNullable(maxDepth), Optional.ToNullable(maxLeaves), Optional.ToNullable(minDataInLeaf), Optional.ToNullable(minSplitGain), modelName.Value, Optional.ToNullable(nEstimators), Optional.ToNullable(numLeaves), preprocessorName.Value, Optional.ToNullable(regAlpha), Optional.ToNullable(regLambda), Optional.ToNullable(subsample), Optional.ToNullable(subsampleFreq), treeMethod.Value, Optional.ToNullable(withMean), Optional.ToNullable(withStd)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableFixedParameters.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableFixedParameters.cs new file mode 100644 index 000000000000..93dea981087b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableFixedParameters.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Fixed training parameters that won't be swept over during AutoML Table training. + public partial class TableFixedParameters + { + /// Initializes a new instance of TableFixedParameters. + public TableFixedParameters() + { + } + + /// Initializes a new instance of TableFixedParameters. + /// Specify the boosting type, e.g gbdt for XGBoost. + /// Specify the boosting type, e.g gbdt for LightGBM. + /// Specify the grow policy, which controls the way new nodes are added to the tree. + /// The learning rate for the training procedure. + /// Specify the Maximum number of discrete bins to bucket continuous features . + /// Specify the max depth to limit the tree depth explicitly. + /// Specify the max leaves to limit the tree leaves explicitly. + /// The minimum number of data per leaf. + /// Minimum loss reduction required to make a further partition on a leaf node of the tree. + /// The name of the model to train. + /// Specify the number of trees (or rounds) in an model. + /// Specify the number of leaves. + /// The name of the preprocessor to use. + /// L1 regularization term on weights. + /// L2 regularization term on weights. + /// Subsample ratio of the training instance. + /// Frequency of subsample. + /// Specify the tree method. + /// If true, center before scaling the data with StandardScalar. + /// If true, scaling the data with Unit Variance with StandardScalar. + internal TableFixedParameters(string booster, string boostingType, string growPolicy, double? learningRate, int? maxBin, int? maxDepth, int? maxLeaves, int? minDataInLeaf, double? minSplitGain, string modelName, int? nEstimators, int? numLeaves, string preprocessorName, double? regAlpha, double? regLambda, double? subsample, double? subsampleFreq, string treeMethod, bool? withMean, bool? withStd) + { + Booster = booster; + BoostingType = boostingType; + GrowPolicy = growPolicy; + LearningRate = learningRate; + MaxBin = maxBin; + MaxDepth = maxDepth; + MaxLeaves = maxLeaves; + MinDataInLeaf = minDataInLeaf; + MinSplitGain = minSplitGain; + ModelName = modelName; + NEstimators = nEstimators; + NumLeaves = numLeaves; + PreprocessorName = preprocessorName; + RegAlpha = regAlpha; + RegLambda = regLambda; + Subsample = subsample; + SubsampleFreq = subsampleFreq; + TreeMethod = treeMethod; + WithMean = withMean; + WithStd = withStd; + } + + /// Specify the boosting type, e.g gbdt for XGBoost. + public string Booster { get; set; } + /// Specify the boosting type, e.g gbdt for LightGBM. + public string BoostingType { get; set; } + /// Specify the grow policy, which controls the way new nodes are added to the tree. + public string GrowPolicy { get; set; } + /// The learning rate for the training procedure. + public double? LearningRate { get; set; } + /// Specify the Maximum number of discrete bins to bucket continuous features . + public int? MaxBin { get; set; } + /// Specify the max depth to limit the tree depth explicitly. + public int? MaxDepth { get; set; } + /// Specify the max leaves to limit the tree leaves explicitly. + public int? MaxLeaves { get; set; } + /// The minimum number of data per leaf. + public int? MinDataInLeaf { get; set; } + /// Minimum loss reduction required to make a further partition on a leaf node of the tree. + public double? MinSplitGain { get; set; } + /// The name of the model to train. + public string ModelName { get; set; } + /// Specify the number of trees (or rounds) in an model. + public int? NEstimators { get; set; } + /// Specify the number of leaves. + public int? NumLeaves { get; set; } + /// The name of the preprocessor to use. + public string PreprocessorName { get; set; } + /// L1 regularization term on weights. + public double? RegAlpha { get; set; } + /// L2 regularization term on weights. + public double? RegLambda { get; set; } + /// Subsample ratio of the training instance. + public double? Subsample { get; set; } + /// Frequency of subsample. + public double? SubsampleFreq { get; set; } + /// Specify the tree method. + public string TreeMethod { get; set; } + /// If true, center before scaling the data with StandardScalar. + public bool? WithMean { get; set; } + /// If true, scaling the data with Unit Variance with StandardScalar. + public bool? WithStd { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableParameterSubspace.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableParameterSubspace.Serialization.cs new file mode 100644 index 000000000000..d9251975a860 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableParameterSubspace.Serialization.cs @@ -0,0 +1,493 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class TableParameterSubspace : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Booster)) + { + if (Booster != null) + { + writer.WritePropertyName("booster"u8); + writer.WriteStringValue(Booster); + } + else + { + writer.WriteNull("booster"); + } + } + if (Optional.IsDefined(BoostingType)) + { + if (BoostingType != null) + { + writer.WritePropertyName("boostingType"u8); + writer.WriteStringValue(BoostingType); + } + else + { + writer.WriteNull("boostingType"); + } + } + if (Optional.IsDefined(GrowPolicy)) + { + if (GrowPolicy != null) + { + writer.WritePropertyName("growPolicy"u8); + writer.WriteStringValue(GrowPolicy); + } + else + { + writer.WriteNull("growPolicy"); + } + } + if (Optional.IsDefined(LearningRate)) + { + if (LearningRate != null) + { + writer.WritePropertyName("learningRate"u8); + writer.WriteStringValue(LearningRate); + } + else + { + writer.WriteNull("learningRate"); + } + } + if (Optional.IsDefined(MaxBin)) + { + if (MaxBin != null) + { + writer.WritePropertyName("maxBin"u8); + writer.WriteStringValue(MaxBin); + } + else + { + writer.WriteNull("maxBin"); + } + } + if (Optional.IsDefined(MaxDepth)) + { + if (MaxDepth != null) + { + writer.WritePropertyName("maxDepth"u8); + writer.WriteStringValue(MaxDepth); + } + else + { + writer.WriteNull("maxDepth"); + } + } + if (Optional.IsDefined(MaxLeaves)) + { + if (MaxLeaves != null) + { + writer.WritePropertyName("maxLeaves"u8); + writer.WriteStringValue(MaxLeaves); + } + else + { + writer.WriteNull("maxLeaves"); + } + } + if (Optional.IsDefined(MinDataInLeaf)) + { + if (MinDataInLeaf != null) + { + writer.WritePropertyName("minDataInLeaf"u8); + writer.WriteStringValue(MinDataInLeaf); + } + else + { + writer.WriteNull("minDataInLeaf"); + } + } + if (Optional.IsDefined(MinSplitGain)) + { + if (MinSplitGain != null) + { + writer.WritePropertyName("minSplitGain"u8); + writer.WriteStringValue(MinSplitGain); + } + else + { + writer.WriteNull("minSplitGain"); + } + } + if (Optional.IsDefined(ModelName)) + { + if (ModelName != null) + { + writer.WritePropertyName("modelName"u8); + writer.WriteStringValue(ModelName); + } + else + { + writer.WriteNull("modelName"); + } + } + if (Optional.IsDefined(NEstimators)) + { + if (NEstimators != null) + { + writer.WritePropertyName("nEstimators"u8); + writer.WriteStringValue(NEstimators); + } + else + { + writer.WriteNull("nEstimators"); + } + } + if (Optional.IsDefined(NumLeaves)) + { + if (NumLeaves != null) + { + writer.WritePropertyName("numLeaves"u8); + writer.WriteStringValue(NumLeaves); + } + else + { + writer.WriteNull("numLeaves"); + } + } + if (Optional.IsDefined(PreprocessorName)) + { + if (PreprocessorName != null) + { + writer.WritePropertyName("preprocessorName"u8); + writer.WriteStringValue(PreprocessorName); + } + else + { + writer.WriteNull("preprocessorName"); + } + } + if (Optional.IsDefined(RegAlpha)) + { + if (RegAlpha != null) + { + writer.WritePropertyName("regAlpha"u8); + writer.WriteStringValue(RegAlpha); + } + else + { + writer.WriteNull("regAlpha"); + } + } + if (Optional.IsDefined(RegLambda)) + { + if (RegLambda != null) + { + writer.WritePropertyName("regLambda"u8); + writer.WriteStringValue(RegLambda); + } + else + { + writer.WriteNull("regLambda"); + } + } + if (Optional.IsDefined(Subsample)) + { + if (Subsample != null) + { + writer.WritePropertyName("subsample"u8); + writer.WriteStringValue(Subsample); + } + else + { + writer.WriteNull("subsample"); + } + } + if (Optional.IsDefined(SubsampleFreq)) + { + if (SubsampleFreq != null) + { + writer.WritePropertyName("subsampleFreq"u8); + writer.WriteStringValue(SubsampleFreq); + } + else + { + writer.WriteNull("subsampleFreq"); + } + } + if (Optional.IsDefined(TreeMethod)) + { + if (TreeMethod != null) + { + writer.WritePropertyName("treeMethod"u8); + writer.WriteStringValue(TreeMethod); + } + else + { + writer.WriteNull("treeMethod"); + } + } + if (Optional.IsDefined(WithMean)) + { + if (WithMean != null) + { + writer.WritePropertyName("withMean"u8); + writer.WriteStringValue(WithMean); + } + else + { + writer.WriteNull("withMean"); + } + } + if (Optional.IsDefined(WithStd)) + { + if (WithStd != null) + { + writer.WritePropertyName("withStd"u8); + writer.WriteStringValue(WithStd); + } + else + { + writer.WriteNull("withStd"); + } + } + writer.WriteEndObject(); + } + + internal static TableParameterSubspace DeserializeTableParameterSubspace(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional booster = default; + Optional boostingType = default; + Optional growPolicy = default; + Optional learningRate = default; + Optional maxBin = default; + Optional maxDepth = default; + Optional maxLeaves = default; + Optional minDataInLeaf = default; + Optional minSplitGain = default; + Optional modelName = default; + Optional nEstimators = default; + Optional numLeaves = default; + Optional preprocessorName = default; + Optional regAlpha = default; + Optional regLambda = default; + Optional subsample = default; + Optional subsampleFreq = default; + Optional treeMethod = default; + Optional withMean = default; + Optional withStd = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("booster"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + booster = null; + continue; + } + booster = property.Value.GetString(); + continue; + } + if (property.NameEquals("boostingType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + boostingType = null; + continue; + } + boostingType = property.Value.GetString(); + continue; + } + if (property.NameEquals("growPolicy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + growPolicy = null; + continue; + } + growPolicy = property.Value.GetString(); + continue; + } + if (property.NameEquals("learningRate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + learningRate = null; + continue; + } + learningRate = property.Value.GetString(); + continue; + } + if (property.NameEquals("maxBin"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxBin = null; + continue; + } + maxBin = property.Value.GetString(); + continue; + } + if (property.NameEquals("maxDepth"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxDepth = null; + continue; + } + maxDepth = property.Value.GetString(); + continue; + } + if (property.NameEquals("maxLeaves"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxLeaves = null; + continue; + } + maxLeaves = property.Value.GetString(); + continue; + } + if (property.NameEquals("minDataInLeaf"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + minDataInLeaf = null; + continue; + } + minDataInLeaf = property.Value.GetString(); + continue; + } + if (property.NameEquals("minSplitGain"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + minSplitGain = null; + continue; + } + minSplitGain = property.Value.GetString(); + continue; + } + if (property.NameEquals("modelName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + modelName = null; + continue; + } + modelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("nEstimators"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + nEstimators = null; + continue; + } + nEstimators = property.Value.GetString(); + continue; + } + if (property.NameEquals("numLeaves"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + numLeaves = null; + continue; + } + numLeaves = property.Value.GetString(); + continue; + } + if (property.NameEquals("preprocessorName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + preprocessorName = null; + continue; + } + preprocessorName = property.Value.GetString(); + continue; + } + if (property.NameEquals("regAlpha"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + regAlpha = null; + continue; + } + regAlpha = property.Value.GetString(); + continue; + } + if (property.NameEquals("regLambda"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + regLambda = null; + continue; + } + regLambda = property.Value.GetString(); + continue; + } + if (property.NameEquals("subsample"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subsample = null; + continue; + } + subsample = property.Value.GetString(); + continue; + } + if (property.NameEquals("subsampleFreq"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subsampleFreq = null; + continue; + } + subsampleFreq = property.Value.GetString(); + continue; + } + if (property.NameEquals("treeMethod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + treeMethod = null; + continue; + } + treeMethod = property.Value.GetString(); + continue; + } + if (property.NameEquals("withMean"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + withMean = null; + continue; + } + withMean = property.Value.GetString(); + continue; + } + if (property.NameEquals("withStd"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + withStd = null; + continue; + } + withStd = property.Value.GetString(); + continue; + } + } + return new TableParameterSubspace(booster.Value, boostingType.Value, growPolicy.Value, learningRate.Value, maxBin.Value, maxDepth.Value, maxLeaves.Value, minDataInLeaf.Value, minSplitGain.Value, modelName.Value, nEstimators.Value, numLeaves.Value, preprocessorName.Value, regAlpha.Value, regLambda.Value, subsample.Value, subsampleFreq.Value, treeMethod.Value, withMean.Value, withStd.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableParameterSubspace.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableParameterSubspace.cs new file mode 100644 index 000000000000..5536162c889c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableParameterSubspace.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The TableParameterSubspace. + public partial class TableParameterSubspace + { + /// Initializes a new instance of TableParameterSubspace. + public TableParameterSubspace() + { + } + + /// Initializes a new instance of TableParameterSubspace. + /// Specify the boosting type, e.g gbdt for XGBoost. + /// Specify the boosting type, e.g gbdt for LightGBM. + /// Specify the grow policy, which controls the way new nodes are added to the tree. + /// The learning rate for the training procedure. + /// Specify the Maximum number of discrete bins to bucket continuous features . + /// Specify the max depth to limit the tree depth explicitly. + /// Specify the max leaves to limit the tree leaves explicitly. + /// The minimum number of data per leaf. + /// Minimum loss reduction required to make a further partition on a leaf node of the tree. + /// The name of the model to train. + /// Specify the number of trees (or rounds) in an model. + /// Specify the number of leaves. + /// The name of the preprocessor to use. + /// L1 regularization term on weights. + /// L2 regularization term on weights. + /// Subsample ratio of the training instance. + /// Frequency of subsample. + /// Specify the tree method. + /// If true, center before scaling the data with StandardScalar. + /// If true, scaling the data with Unit Variance with StandardScalar. + internal TableParameterSubspace(string 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) + { + Booster = booster; + BoostingType = boostingType; + GrowPolicy = growPolicy; + LearningRate = learningRate; + MaxBin = maxBin; + MaxDepth = maxDepth; + MaxLeaves = maxLeaves; + MinDataInLeaf = minDataInLeaf; + MinSplitGain = minSplitGain; + ModelName = modelName; + NEstimators = nEstimators; + NumLeaves = numLeaves; + PreprocessorName = preprocessorName; + RegAlpha = regAlpha; + RegLambda = regLambda; + Subsample = subsample; + SubsampleFreq = subsampleFreq; + TreeMethod = treeMethod; + WithMean = withMean; + WithStd = withStd; + } + + /// Specify the boosting type, e.g gbdt for XGBoost. + public string Booster { get; set; } + /// Specify the boosting type, e.g gbdt for LightGBM. + public string BoostingType { get; set; } + /// Specify the grow policy, which controls the way new nodes are added to the tree. + public string GrowPolicy { get; set; } + /// The learning rate for the training procedure. + public string LearningRate { get; set; } + /// Specify the Maximum number of discrete bins to bucket continuous features . + public string MaxBin { get; set; } + /// Specify the max depth to limit the tree depth explicitly. + public string MaxDepth { get; set; } + /// Specify the max leaves to limit the tree leaves explicitly. + public string MaxLeaves { get; set; } + /// The minimum number of data per leaf. + public string MinDataInLeaf { get; set; } + /// Minimum loss reduction required to make a further partition on a leaf node of the tree. + public string MinSplitGain { get; set; } + /// The name of the model to train. + public string ModelName { get; set; } + /// Specify the number of trees (or rounds) in an model. + public string NEstimators { get; set; } + /// Specify the number of leaves. + public string NumLeaves { get; set; } + /// The name of the preprocessor to use. + public string PreprocessorName { get; set; } + /// L1 regularization term on weights. + public string RegAlpha { get; set; } + /// L2 regularization term on weights. + public string RegLambda { get; set; } + /// Subsample ratio of the training instance. + public string Subsample { get; set; } + /// Frequency of subsample. + public string SubsampleFreq { get; set; } + /// Specify the tree method. + public string TreeMethod { get; set; } + /// If true, center before scaling the data with StandardScalar. + public string WithMean { get; set; } + /// If true, scaling the data with Unit Variance with StandardScalar. + public string WithStd { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableSweepSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableSweepSettings.Serialization.cs new file mode 100644 index 000000000000..8238bae11f45 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableSweepSettings.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class TableSweepSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(EarlyTermination)) + { + if (EarlyTermination != null) + { + writer.WritePropertyName("earlyTermination"u8); + writer.WriteObjectValue(EarlyTermination); + } + else + { + writer.WriteNull("earlyTermination"); + } + } + writer.WritePropertyName("samplingAlgorithm"u8); + writer.WriteStringValue(SamplingAlgorithm.ToString()); + writer.WriteEndObject(); + } + + internal static TableSweepSettings DeserializeTableSweepSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional earlyTermination = default; + SamplingAlgorithmType samplingAlgorithm = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("earlyTermination"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + earlyTermination = null; + continue; + } + earlyTermination = MachineLearningEarlyTerminationPolicy.DeserializeMachineLearningEarlyTerminationPolicy(property.Value); + continue; + } + if (property.NameEquals("samplingAlgorithm"u8)) + { + samplingAlgorithm = new SamplingAlgorithmType(property.Value.GetString()); + continue; + } + } + return new TableSweepSettings(earlyTermination.Value, samplingAlgorithm); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableSweepSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableSweepSettings.cs new file mode 100644 index 000000000000..249f6488eee0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableSweepSettings.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The TableSweepSettings. + public partial class TableSweepSettings + { + /// Initializes a new instance of TableSweepSettings. + /// [Required] Type of sampling algorithm. + public TableSweepSettings(SamplingAlgorithmType samplingAlgorithm) + { + SamplingAlgorithm = samplingAlgorithm; + } + + /// Initializes a new instance of TableSweepSettings. + /// + /// Type of early termination policy for the sweeping job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// [Required] Type of sampling algorithm. + internal TableSweepSettings(MachineLearningEarlyTerminationPolicy earlyTermination, SamplingAlgorithmType samplingAlgorithm) + { + EarlyTermination = earlyTermination; + SamplingAlgorithm = samplingAlgorithm; + } + + /// + /// Type of early termination policy for the sweeping job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public MachineLearningEarlyTerminationPolicy EarlyTermination { get; set; } + /// [Required] Type of sampling algorithm. + public SamplingAlgorithmType SamplingAlgorithm { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalLimitSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalLimitSettings.Serialization.cs index e0730f5f36b8..c5f28fe578e2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalLimitSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalLimitSettings.Serialization.cs @@ -43,11 +43,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("maxCoresPerTrial"u8); writer.WriteNumberValue(MaxCoresPerTrial.Value); } + if (Optional.IsDefined(MaxNodes)) + { + writer.WritePropertyName("maxNodes"u8); + writer.WriteNumberValue(MaxNodes.Value); + } if (Optional.IsDefined(MaxTrials)) { writer.WritePropertyName("maxTrials"u8); writer.WriteNumberValue(MaxTrials.Value); } + if (Optional.IsDefined(SweepConcurrentTrials)) + { + writer.WritePropertyName("sweepConcurrentTrials"u8); + writer.WriteNumberValue(SweepConcurrentTrials.Value); + } + if (Optional.IsDefined(SweepTrials)) + { + writer.WritePropertyName("sweepTrials"u8); + writer.WriteNumberValue(SweepTrials.Value); + } if (Optional.IsDefined(Timeout)) { writer.WritePropertyName("timeout"u8); @@ -71,7 +86,10 @@ internal static TableVerticalLimitSettings DeserializeTableVerticalLimitSettings Optional exitScore = default; Optional maxConcurrentTrials = default; Optional maxCoresPerTrial = default; + Optional maxNodes = default; Optional maxTrials = default; + Optional sweepConcurrentTrials = default; + Optional sweepTrials = default; Optional timeout = default; Optional trialTimeout = default; foreach (var property in element.EnumerateObject()) @@ -113,6 +131,15 @@ internal static TableVerticalLimitSettings DeserializeTableVerticalLimitSettings maxCoresPerTrial = property.Value.GetInt32(); continue; } + if (property.NameEquals("maxNodes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maxNodes = property.Value.GetInt32(); + continue; + } if (property.NameEquals("maxTrials"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -122,6 +149,24 @@ internal static TableVerticalLimitSettings DeserializeTableVerticalLimitSettings maxTrials = property.Value.GetInt32(); continue; } + if (property.NameEquals("sweepConcurrentTrials"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sweepConcurrentTrials = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("sweepTrials"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sweepTrials = property.Value.GetInt32(); + continue; + } if (property.NameEquals("timeout"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -141,7 +186,7 @@ internal static TableVerticalLimitSettings DeserializeTableVerticalLimitSettings continue; } } - return new TableVerticalLimitSettings(Optional.ToNullable(enableEarlyTermination), Optional.ToNullable(exitScore), Optional.ToNullable(maxConcurrentTrials), Optional.ToNullable(maxCoresPerTrial), Optional.ToNullable(maxTrials), Optional.ToNullable(timeout), Optional.ToNullable(trialTimeout)); + return new TableVerticalLimitSettings(Optional.ToNullable(enableEarlyTermination), Optional.ToNullable(exitScore), Optional.ToNullable(maxConcurrentTrials), Optional.ToNullable(maxCoresPerTrial), Optional.ToNullable(maxNodes), Optional.ToNullable(maxTrials), Optional.ToNullable(sweepConcurrentTrials), Optional.ToNullable(sweepTrials), Optional.ToNullable(timeout), Optional.ToNullable(trialTimeout)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalLimitSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalLimitSettings.cs index 00cdd7a38a1c..14f001ad5e3c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalLimitSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalLimitSettings.cs @@ -22,16 +22,22 @@ public TableVerticalLimitSettings() /// Exit score for the AutoML job. /// Maximum Concurrent iterations. /// Max cores per iteration. + /// Maximum nodes to use for the experiment. /// Number of iterations. + /// Number of concurrent sweeping runs that user wants to trigger. + /// Number of sweeping runs that user wants to trigger. /// AutoML job timeout. /// Iteration timeout. - internal TableVerticalLimitSettings(bool? enableEarlyTermination, double? exitScore, int? maxConcurrentTrials, int? maxCoresPerTrial, int? maxTrials, TimeSpan? timeout, TimeSpan? trialTimeout) + internal TableVerticalLimitSettings(bool? enableEarlyTermination, double? exitScore, int? maxConcurrentTrials, int? maxCoresPerTrial, int? maxNodes, int? maxTrials, int? sweepConcurrentTrials, int? sweepTrials, TimeSpan? timeout, TimeSpan? trialTimeout) { EnableEarlyTermination = enableEarlyTermination; ExitScore = exitScore; MaxConcurrentTrials = maxConcurrentTrials; MaxCoresPerTrial = maxCoresPerTrial; + MaxNodes = maxNodes; MaxTrials = maxTrials; + SweepConcurrentTrials = sweepConcurrentTrials; + SweepTrials = sweepTrials; Timeout = timeout; TrialTimeout = trialTimeout; } @@ -44,8 +50,14 @@ internal TableVerticalLimitSettings(bool? enableEarlyTermination, double? exitSc public int? MaxConcurrentTrials { get; set; } /// Max cores per iteration. public int? MaxCoresPerTrial { get; set; } + /// Maximum nodes to use for the experiment. + public int? MaxNodes { get; set; } /// Number of iterations. public int? MaxTrials { get; set; } + /// Number of concurrent sweeping runs that user wants to trigger. + public int? SweepConcurrentTrials { get; set; } + /// Number of sweeping runs that user wants to trigger. + public int? SweepTrials { get; set; } /// AutoML job timeout. public TimeSpan? Timeout { get; set; } /// Iteration timeout. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextAnnotationType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextAnnotationType.cs new file mode 100644 index 000000000000..33ff488d3e40 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextAnnotationType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Annotation type of text data. + public readonly partial struct TextAnnotationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TextAnnotationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ClassificationValue = "Classification"; + private const string NamedEntityRecognitionValue = "NamedEntityRecognition"; + + /// Classification. + public static TextAnnotationType Classification { get; } = new TextAnnotationType(ClassificationValue); + /// NamedEntityRecognition. + public static TextAnnotationType NamedEntityRecognition { get; } = new TextAnnotationType(NamedEntityRecognitionValue); + /// Determines if two values are the same. + public static bool operator ==(TextAnnotationType left, TextAnnotationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TextAnnotationType left, TextAnnotationType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator TextAnnotationType(string value) => new TextAnnotationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TextAnnotationType other && Equals(other); + /// + public bool Equals(TextAnnotationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.Serialization.cs index 7671c49d3589..68c7d0793ab9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -32,6 +33,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("featurizationSettings"); } } + if (Optional.IsDefined(FixedParameters)) + { + if (FixedParameters != null) + { + writer.WritePropertyName("fixedParameters"u8); + writer.WriteObjectValue(FixedParameters); + } + else + { + writer.WriteNull("fixedParameters"); + } + } if (Optional.IsDefined(LimitSettings)) { if (LimitSettings != null) @@ -44,6 +57,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("limitSettings"); } } + if (Optional.IsCollectionDefined(SearchSpace)) + { + if (SearchSpace != null) + { + writer.WritePropertyName("searchSpace"u8); + writer.WriteStartArray(); + foreach (var item in SearchSpace) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("searchSpace"); + } + } + if (Optional.IsDefined(SweepSettings)) + { + if (SweepSettings != null) + { + writer.WritePropertyName("sweepSettings"u8); + writer.WriteObjectValue(SweepSettings); + } + else + { + writer.WriteNull("sweepSettings"); + } + } if (Optional.IsDefined(ValidationData)) { if (ValidationData != null) @@ -88,7 +130,10 @@ internal static TextClassification DeserializeTextClassification(JsonElement ele } Optional primaryMetric = default; Optional featurizationSettings = default; + Optional fixedParameters = default; Optional limitSettings = default; + Optional> searchSpace = default; + Optional sweepSettings = default; Optional validationData = default; Optional logVerbosity = default; Optional targetColumnName = default; @@ -115,6 +160,16 @@ internal static TextClassification DeserializeTextClassification(JsonElement ele featurizationSettings = NlpVerticalFeaturizationSettings.DeserializeNlpVerticalFeaturizationSettings(property.Value); continue; } + if (property.NameEquals("fixedParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + fixedParameters = null; + continue; + } + fixedParameters = NlpFixedParameters.DeserializeNlpFixedParameters(property.Value); + continue; + } if (property.NameEquals("limitSettings"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -125,6 +180,31 @@ internal static TextClassification DeserializeTextClassification(JsonElement ele limitSettings = NlpVerticalLimitSettings.DeserializeNlpVerticalLimitSettings(property.Value); continue; } + if (property.NameEquals("searchSpace"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + searchSpace = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(NlpParameterSubspace.DeserializeNlpParameterSubspace(item)); + } + searchSpace = array; + continue; + } + if (property.NameEquals("sweepSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sweepSettings = null; + continue; + } + sweepSettings = NlpSweepSettings.DeserializeNlpSweepSettings(property.Value); + continue; + } if (property.NameEquals("validationData"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -165,7 +245,7 @@ internal static TextClassification DeserializeTextClassification(JsonElement ele continue; } } - return new TextClassification(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, Optional.ToNullable(primaryMetric), featurizationSettings.Value, limitSettings.Value, validationData.Value); + return new TextClassification(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, Optional.ToNullable(primaryMetric), featurizationSettings.Value, fixedParameters.Value, limitSettings.Value, Optional.ToList(searchSpace), sweepSettings.Value, validationData.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.cs index 60dcf944e831..de200a3e31fd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.MachineLearning.Models @@ -23,6 +24,7 @@ public TextClassification(MachineLearningTableJobInput trainingData) : base(trai { Argument.AssertNotNull(trainingData, nameof(trainingData)); + SearchSpace = new ChangeTrackingList(); TaskType = TaskType.TextClassification; } @@ -36,13 +38,19 @@ public TextClassification(MachineLearningTableJobInput trainingData) : base(trai /// [Required] Training data input. /// Primary metric for Text-Classification task. /// Featurization inputs needed for AutoML job. + /// Model/training parameters that will remain constant throughout training. /// Execution constraints for AutoMLJob. + /// Search space for sampling different combinations of models and their hyperparameters. + /// Settings for model sweeping and hyperparameter tuning. /// Validation data inputs. - internal TextClassification(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, ClassificationPrimaryMetric? primaryMetric, NlpVerticalFeaturizationSettings featurizationSettings, NlpVerticalLimitSettings limitSettings, MachineLearningTableJobInput validationData) : base(logVerbosity, targetColumnName, taskType, trainingData) + internal TextClassification(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, ClassificationPrimaryMetric? primaryMetric, NlpVerticalFeaturizationSettings featurizationSettings, NlpFixedParameters fixedParameters, NlpVerticalLimitSettings limitSettings, IList searchSpace, NlpSweepSettings sweepSettings, MachineLearningTableJobInput validationData) : base(logVerbosity, targetColumnName, taskType, trainingData) { PrimaryMetric = primaryMetric; FeaturizationSettings = featurizationSettings; + FixedParameters = fixedParameters; LimitSettings = limitSettings; + SearchSpace = searchSpace; + SweepSettings = sweepSettings; ValidationData = validationData; TaskType = taskType; } @@ -63,8 +71,14 @@ public string FeaturizationDatasetLanguage } } + /// Model/training parameters that will remain constant throughout training. + public NlpFixedParameters FixedParameters { get; set; } /// Execution constraints for AutoMLJob. public NlpVerticalLimitSettings LimitSettings { get; set; } + /// Search space for sampling different combinations of models and their hyperparameters. + public IList SearchSpace { get; set; } + /// Settings for model sweeping and hyperparameter tuning. + public NlpSweepSettings SweepSettings { get; set; } /// Validation data inputs. public MachineLearningTableJobInput ValidationData { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.Serialization.cs index ffd4e66831d0..bccb79426164 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -27,6 +28,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("featurizationSettings"); } } + if (Optional.IsDefined(FixedParameters)) + { + if (FixedParameters != null) + { + writer.WritePropertyName("fixedParameters"u8); + writer.WriteObjectValue(FixedParameters); + } + else + { + writer.WriteNull("fixedParameters"); + } + } if (Optional.IsDefined(LimitSettings)) { if (LimitSettings != null) @@ -39,6 +52,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("limitSettings"); } } + if (Optional.IsCollectionDefined(SearchSpace)) + { + if (SearchSpace != null) + { + writer.WritePropertyName("searchSpace"u8); + writer.WriteStartArray(); + foreach (var item in SearchSpace) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("searchSpace"); + } + } + if (Optional.IsDefined(SweepSettings)) + { + if (SweepSettings != null) + { + writer.WritePropertyName("sweepSettings"u8); + writer.WriteObjectValue(SweepSettings); + } + else + { + writer.WriteNull("sweepSettings"); + } + } if (Optional.IsDefined(ValidationData)) { if (ValidationData != null) @@ -83,7 +125,10 @@ internal static TextClassificationMultilabel DeserializeTextClassificationMultil } Optional primaryMetric = default; Optional featurizationSettings = default; + Optional fixedParameters = default; Optional limitSettings = default; + Optional> searchSpace = default; + Optional sweepSettings = default; Optional validationData = default; Optional logVerbosity = default; Optional targetColumnName = default; @@ -110,6 +155,16 @@ internal static TextClassificationMultilabel DeserializeTextClassificationMultil featurizationSettings = NlpVerticalFeaturizationSettings.DeserializeNlpVerticalFeaturizationSettings(property.Value); continue; } + if (property.NameEquals("fixedParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + fixedParameters = null; + continue; + } + fixedParameters = NlpFixedParameters.DeserializeNlpFixedParameters(property.Value); + continue; + } if (property.NameEquals("limitSettings"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -120,6 +175,31 @@ internal static TextClassificationMultilabel DeserializeTextClassificationMultil limitSettings = NlpVerticalLimitSettings.DeserializeNlpVerticalLimitSettings(property.Value); continue; } + if (property.NameEquals("searchSpace"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + searchSpace = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(NlpParameterSubspace.DeserializeNlpParameterSubspace(item)); + } + searchSpace = array; + continue; + } + if (property.NameEquals("sweepSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sweepSettings = null; + continue; + } + sweepSettings = NlpSweepSettings.DeserializeNlpSweepSettings(property.Value); + continue; + } if (property.NameEquals("validationData"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -160,7 +240,7 @@ internal static TextClassificationMultilabel DeserializeTextClassificationMultil continue; } } - return new TextClassificationMultilabel(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, Optional.ToNullable(primaryMetric), featurizationSettings.Value, limitSettings.Value, validationData.Value); + return new TextClassificationMultilabel(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, Optional.ToNullable(primaryMetric), featurizationSettings.Value, fixedParameters.Value, limitSettings.Value, Optional.ToList(searchSpace), sweepSettings.Value, validationData.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.cs index a2b272c3304b..7e5f27d08157 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.MachineLearning.Models @@ -23,6 +24,7 @@ public TextClassificationMultilabel(MachineLearningTableJobInput trainingData) : { Argument.AssertNotNull(trainingData, nameof(trainingData)); + SearchSpace = new ChangeTrackingList(); TaskType = TaskType.TextClassificationMultilabel; } @@ -39,13 +41,19 @@ public TextClassificationMultilabel(MachineLearningTableJobInput trainingData) : /// Currently only Accuracy is supported as primary metric, hence user need not set it explicitly. /// /// Featurization inputs needed for AutoML job. + /// Model/training parameters that will remain constant throughout training. /// Execution constraints for AutoMLJob. + /// Search space for sampling different combinations of models and their hyperparameters. + /// Settings for model sweeping and hyperparameter tuning. /// Validation data inputs. - internal TextClassificationMultilabel(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, ClassificationMultilabelPrimaryMetric? primaryMetric, NlpVerticalFeaturizationSettings featurizationSettings, NlpVerticalLimitSettings limitSettings, MachineLearningTableJobInput validationData) : base(logVerbosity, targetColumnName, taskType, trainingData) + internal TextClassificationMultilabel(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, ClassificationMultilabelPrimaryMetric? primaryMetric, NlpVerticalFeaturizationSettings featurizationSettings, NlpFixedParameters fixedParameters, NlpVerticalLimitSettings limitSettings, IList searchSpace, NlpSweepSettings sweepSettings, MachineLearningTableJobInput validationData) : base(logVerbosity, targetColumnName, taskType, trainingData) { PrimaryMetric = primaryMetric; FeaturizationSettings = featurizationSettings; + FixedParameters = fixedParameters; LimitSettings = limitSettings; + SearchSpace = searchSpace; + SweepSettings = sweepSettings; ValidationData = validationData; TaskType = taskType; } @@ -69,8 +77,14 @@ public string FeaturizationDatasetLanguage } } + /// Model/training parameters that will remain constant throughout training. + public NlpFixedParameters FixedParameters { get; set; } /// Execution constraints for AutoMLJob. public NlpVerticalLimitSettings LimitSettings { get; set; } + /// Search space for sampling different combinations of models and their hyperparameters. + public IList SearchSpace { get; set; } + /// Settings for model sweeping and hyperparameter tuning. + public NlpSweepSettings SweepSettings { get; set; } /// Validation data inputs. public MachineLearningTableJobInput ValidationData { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.Serialization.cs index f81cb2a0abfe..0304d79fa7b3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -27,6 +28,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("featurizationSettings"); } } + if (Optional.IsDefined(FixedParameters)) + { + if (FixedParameters != null) + { + writer.WritePropertyName("fixedParameters"u8); + writer.WriteObjectValue(FixedParameters); + } + else + { + writer.WriteNull("fixedParameters"); + } + } if (Optional.IsDefined(LimitSettings)) { if (LimitSettings != null) @@ -39,6 +52,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("limitSettings"); } } + if (Optional.IsCollectionDefined(SearchSpace)) + { + if (SearchSpace != null) + { + writer.WritePropertyName("searchSpace"u8); + writer.WriteStartArray(); + foreach (var item in SearchSpace) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("searchSpace"); + } + } + if (Optional.IsDefined(SweepSettings)) + { + if (SweepSettings != null) + { + writer.WritePropertyName("sweepSettings"u8); + writer.WriteObjectValue(SweepSettings); + } + else + { + writer.WriteNull("sweepSettings"); + } + } if (Optional.IsDefined(ValidationData)) { if (ValidationData != null) @@ -83,7 +125,10 @@ internal static TextNer DeserializeTextNer(JsonElement element) } Optional primaryMetric = default; Optional featurizationSettings = default; + Optional fixedParameters = default; Optional limitSettings = default; + Optional> searchSpace = default; + Optional sweepSettings = default; Optional validationData = default; Optional logVerbosity = default; Optional targetColumnName = default; @@ -110,6 +155,16 @@ internal static TextNer DeserializeTextNer(JsonElement element) featurizationSettings = NlpVerticalFeaturizationSettings.DeserializeNlpVerticalFeaturizationSettings(property.Value); continue; } + if (property.NameEquals("fixedParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + fixedParameters = null; + continue; + } + fixedParameters = NlpFixedParameters.DeserializeNlpFixedParameters(property.Value); + continue; + } if (property.NameEquals("limitSettings"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -120,6 +175,31 @@ internal static TextNer DeserializeTextNer(JsonElement element) limitSettings = NlpVerticalLimitSettings.DeserializeNlpVerticalLimitSettings(property.Value); continue; } + if (property.NameEquals("searchSpace"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + searchSpace = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(NlpParameterSubspace.DeserializeNlpParameterSubspace(item)); + } + searchSpace = array; + continue; + } + if (property.NameEquals("sweepSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sweepSettings = null; + continue; + } + sweepSettings = NlpSweepSettings.DeserializeNlpSweepSettings(property.Value); + continue; + } if (property.NameEquals("validationData"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -160,7 +240,7 @@ internal static TextNer DeserializeTextNer(JsonElement element) continue; } } - return new TextNer(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, Optional.ToNullable(primaryMetric), featurizationSettings.Value, limitSettings.Value, validationData.Value); + return new TextNer(Optional.ToNullable(logVerbosity), targetColumnName.Value, taskType, trainingData, Optional.ToNullable(primaryMetric), featurizationSettings.Value, fixedParameters.Value, limitSettings.Value, Optional.ToList(searchSpace), sweepSettings.Value, validationData.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.cs index befb91a55fc4..25c16194bd34 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.MachineLearning.Models @@ -24,6 +25,7 @@ public TextNer(MachineLearningTableJobInput trainingData) : base(trainingData) { Argument.AssertNotNull(trainingData, nameof(trainingData)); + SearchSpace = new ChangeTrackingList(); TaskType = TaskType.TextNER; } @@ -40,13 +42,19 @@ public TextNer(MachineLearningTableJobInput trainingData) : base(trainingData) /// Only 'Accuracy' is supported for Text-NER, so user need not set this explicitly. /// /// Featurization inputs needed for AutoML job. + /// Model/training parameters that will remain constant throughout training. /// Execution constraints for AutoMLJob. + /// Search space for sampling different combinations of models and their hyperparameters. + /// Settings for model sweeping and hyperparameter tuning. /// Validation data inputs. - internal TextNer(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, ClassificationPrimaryMetric? primaryMetric, NlpVerticalFeaturizationSettings featurizationSettings, NlpVerticalLimitSettings limitSettings, MachineLearningTableJobInput validationData) : base(logVerbosity, targetColumnName, taskType, trainingData) + internal TextNer(MachineLearningLogVerbosity? logVerbosity, string targetColumnName, TaskType taskType, MachineLearningTableJobInput trainingData, ClassificationPrimaryMetric? primaryMetric, NlpVerticalFeaturizationSettings featurizationSettings, NlpFixedParameters fixedParameters, NlpVerticalLimitSettings limitSettings, IList searchSpace, NlpSweepSettings sweepSettings, MachineLearningTableJobInput validationData) : base(logVerbosity, targetColumnName, taskType, trainingData) { PrimaryMetric = primaryMetric; FeaturizationSettings = featurizationSettings; + FixedParameters = fixedParameters; LimitSettings = limitSettings; + SearchSpace = searchSpace; + SweepSettings = sweepSettings; ValidationData = validationData; TaskType = taskType; } @@ -70,8 +78,14 @@ public string FeaturizationDatasetLanguage } } + /// Model/training parameters that will remain constant throughout training. + public NlpFixedParameters FixedParameters { get; set; } /// Execution constraints for AutoMLJob. public NlpVerticalLimitSettings LimitSettings { get; set; } + /// Search space for sampling different combinations of models and their hyperparameters. + public IList SearchSpace { get; set; } + /// Settings for model sweeping and hyperparameter tuning. + public NlpSweepSettings SweepSettings { get; set; } /// Validation data inputs. public MachineLearningTableJobInput ValidationData { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TmpfsOptions.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TmpfsOptions.Serialization.cs new file mode 100644 index 000000000000..5014b3c12fb3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TmpfsOptions.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class TmpfsOptions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Size)) + { + writer.WritePropertyName("size"u8); + writer.WriteNumberValue(Size.Value); + } + writer.WriteEndObject(); + } + + internal static TmpfsOptions DeserializeTmpfsOptions(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional size = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("size"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + size = property.Value.GetInt32(); + continue; + } + } + return new TmpfsOptions(Optional.ToNullable(size)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TmpfsOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TmpfsOptions.cs new file mode 100644 index 000000000000..c3c29016b9b0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TmpfsOptions.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The TmpfsOptions. + internal partial class TmpfsOptions + { + /// Initializes a new instance of TmpfsOptions. + public TmpfsOptions() + { + } + + /// Initializes a new instance of TmpfsOptions. + /// Mention the Tmpfs size. + internal TmpfsOptions(int? size) + { + Size = size; + } + + /// Mention the Tmpfs size. + public int? Size { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TopNFeaturesByAttribution.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TopNFeaturesByAttribution.Serialization.cs new file mode 100644 index 000000000000..105992199a8e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TopNFeaturesByAttribution.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class TopNFeaturesByAttribution : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Top)) + { + writer.WritePropertyName("top"u8); + writer.WriteNumberValue(Top.Value); + } + writer.WritePropertyName("filterType"u8); + writer.WriteStringValue(FilterType.ToString()); + writer.WriteEndObject(); + } + + internal static TopNFeaturesByAttribution DeserializeTopNFeaturesByAttribution(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional top = default; + MonitoringFeatureFilterType filterType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("top"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + top = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("filterType"u8)) + { + filterType = new MonitoringFeatureFilterType(property.Value.GetString()); + continue; + } + } + return new TopNFeaturesByAttribution(filterType, Optional.ToNullable(top)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TopNFeaturesByAttribution.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TopNFeaturesByAttribution.cs new file mode 100644 index 000000000000..d45d517a1760 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TopNFeaturesByAttribution.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The TopNFeaturesByAttribution. + public partial class TopNFeaturesByAttribution : MonitoringFeatureFilterBase + { + /// Initializes a new instance of TopNFeaturesByAttribution. + public TopNFeaturesByAttribution() + { + FilterType = MonitoringFeatureFilterType.TopNByAttribution; + } + + /// Initializes a new instance of TopNFeaturesByAttribution. + /// [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over. + /// The number of top features to include. + internal TopNFeaturesByAttribution(MonitoringFeatureFilterType filterType, int? top) : base(filterType) + { + Top = top; + FilterType = filterType; + } + + /// The number of top features to include. + public int? Top { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrailingInputData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrailingInputData.Serialization.cs new file mode 100644 index 000000000000..a059e59e1a11 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrailingInputData.Serialization.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class TrailingInputData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(PreprocessingComponentId)) + { + if (PreprocessingComponentId != null) + { + writer.WritePropertyName("preprocessingComponentId"u8); + writer.WriteStringValue(PreprocessingComponentId); + } + else + { + writer.WriteNull("preprocessingComponentId"); + } + } + writer.WritePropertyName("windowOffset"u8); + writer.WriteStringValue(WindowOffset, "P"); + writer.WritePropertyName("windowSize"u8); + writer.WriteStringValue(WindowSize, "P"); + if (Optional.IsCollectionDefined(Columns)) + { + if (Columns != null) + { + writer.WritePropertyName("columns"u8); + writer.WriteStartObject(); + foreach (var item in Columns) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("columns"); + } + } + if (Optional.IsDefined(DataContext)) + { + if (DataContext != null) + { + writer.WritePropertyName("dataContext"u8); + writer.WriteStringValue(DataContext); + } + else + { + writer.WriteNull("dataContext"); + } + } + writer.WritePropertyName("inputDataType"u8); + writer.WriteStringValue(InputDataType.ToString()); + writer.WritePropertyName("jobInputType"u8); + writer.WriteStringValue(JobInputType.ToString()); + writer.WritePropertyName("uri"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + writer.WriteEndObject(); + } + + internal static TrailingInputData DeserializeTrailingInputData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional preprocessingComponentId = default; + TimeSpan windowOffset = default; + TimeSpan windowSize = default; + Optional> columns = default; + Optional dataContext = default; + MonitoringInputDataType inputDataType = default; + JobInputType jobInputType = default; + Uri uri = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("preprocessingComponentId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + preprocessingComponentId = null; + continue; + } + preprocessingComponentId = property.Value.GetString(); + continue; + } + if (property.NameEquals("windowOffset"u8)) + { + windowOffset = property.Value.GetTimeSpan("P"); + continue; + } + if (property.NameEquals("windowSize"u8)) + { + windowSize = property.Value.GetTimeSpan("P"); + continue; + } + if (property.NameEquals("columns"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + columns = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + columns = dictionary; + continue; + } + if (property.NameEquals("dataContext"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataContext = null; + continue; + } + dataContext = property.Value.GetString(); + continue; + } + if (property.NameEquals("inputDataType"u8)) + { + inputDataType = new MonitoringInputDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("jobInputType"u8)) + { + jobInputType = new JobInputType(property.Value.GetString()); + continue; + } + if (property.NameEquals("uri"u8)) + { + uri = new Uri(property.Value.GetString()); + continue; + } + } + return new TrailingInputData(Optional.ToDictionary(columns), dataContext.Value, inputDataType, jobInputType, uri, preprocessingComponentId.Value, windowOffset, windowSize); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrailingInputData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrailingInputData.cs new file mode 100644 index 000000000000..df973e810523 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrailingInputData.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Trailing input data definition. + public partial class TrailingInputData : MonitoringInputDataBase + { + /// Initializes a new instance of TrailingInputData. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + /// [Required] The time offset between the end of the data window and the monitor's current run time. + /// [Required] The size of the trailing data window. + /// is null. + public TrailingInputData(JobInputType jobInputType, Uri uri, TimeSpan windowOffset, TimeSpan windowSize) : base(jobInputType, uri) + { + Argument.AssertNotNull(uri, nameof(uri)); + + WindowOffset = windowOffset; + WindowSize = windowSize; + InputDataType = MonitoringInputDataType.Trailing; + } + + /// Initializes a new instance of TrailingInputData. + /// Mapping of column names to special uses. + /// The context metadata of the data source. + /// [Required] Specifies the type of signal to monitor. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + /// The ARM resource ID of the component resource used to preprocess the data. + /// [Required] The time offset between the end of the data window and the monitor's current run time. + /// [Required] The size of the trailing data window. + internal TrailingInputData(IDictionary columns, string dataContext, MonitoringInputDataType inputDataType, JobInputType jobInputType, Uri uri, string preprocessingComponentId, TimeSpan windowOffset, TimeSpan windowSize) : base(columns, dataContext, inputDataType, jobInputType, uri) + { + PreprocessingComponentId = preprocessingComponentId; + WindowOffset = windowOffset; + WindowSize = windowSize; + InputDataType = inputDataType; + } + + /// The ARM resource ID of the component resource used to preprocess the data. + public string PreprocessingComponentId { get; set; } + /// [Required] The time offset between the end of the data window and the monitor's current run time. + public TimeSpan WindowOffset { get; set; } + /// [Required] The size of the trailing data window. + public TimeSpan WindowSize { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrainingMode.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrainingMode.cs new file mode 100644 index 000000000000..03cec38eb49a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TrainingMode.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Training mode dictates whether to use distributed training or not. + public readonly partial struct TrainingMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TrainingMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AutoValue = "Auto"; + private const string DistributedValue = "Distributed"; + private const string NonDistributedValue = "NonDistributed"; + + /// Auto mode. + public static TrainingMode Auto { get; } = new TrainingMode(AutoValue); + /// Distributed training mode. + public static TrainingMode Distributed { get; } = new TrainingMode(DistributedValue); + /// Non distributed training mode. + public static TrainingMode NonDistributed { get; } = new TrainingMode(NonDistributedValue); + /// Determines if two values are the same. + public static bool operator ==(TrainingMode left, TrainingMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TrainingMode left, TrainingMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator TrainingMode(string value) => new TrainingMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TrainingMode other && Equals(other); + /// + public bool Equals(TrainingMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TritonInferencingServer.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TritonInferencingServer.Serialization.cs new file mode 100644 index 000000000000..bdbc62477b7c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TritonInferencingServer.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class TritonInferencingServer : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(InferenceConfiguration)) + { + if (InferenceConfiguration != null) + { + writer.WritePropertyName("inferenceConfiguration"u8); + writer.WriteObjectValue(InferenceConfiguration); + } + else + { + writer.WriteNull("inferenceConfiguration"); + } + } + writer.WritePropertyName("serverType"u8); + writer.WriteStringValue(ServerType.ToString()); + writer.WriteEndObject(); + } + + internal static TritonInferencingServer DeserializeTritonInferencingServer(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional inferenceConfiguration = default; + InferencingServerType serverType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("inferenceConfiguration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + inferenceConfiguration = null; + continue; + } + inferenceConfiguration = OnlineInferenceConfiguration.DeserializeOnlineInferenceConfiguration(property.Value); + continue; + } + if (property.NameEquals("serverType"u8)) + { + serverType = new InferencingServerType(property.Value.GetString()); + continue; + } + } + return new TritonInferencingServer(serverType, inferenceConfiguration.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TritonInferencingServer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TritonInferencingServer.cs new file mode 100644 index 000000000000..2dd51657d671 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TritonInferencingServer.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Triton inferencing server configurations. + public partial class TritonInferencingServer : InferencingServer + { + /// Initializes a new instance of TritonInferencingServer. + public TritonInferencingServer() + { + ServerType = InferencingServerType.Triton; + } + + /// Initializes a new instance of TritonInferencingServer. + /// [Required] Inferencing server type for various targets. + /// Inference configuration for Triton. + internal TritonInferencingServer(InferencingServerType serverType, OnlineInferenceConfiguration inferenceConfiguration) : base(serverType) + { + InferenceConfiguration = inferenceConfiguration; + ServerType = serverType; + } + + /// Inference configuration for Triton. + public OnlineInferenceConfiguration InferenceConfiguration { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBaseEnvironmentSource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBaseEnvironmentSource.Serialization.cs new file mode 100644 index 000000000000..06dbe1461053 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBaseEnvironmentSource.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownBaseEnvironmentSource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("baseEnvironmentSourceType"u8); + writer.WriteStringValue(BaseEnvironmentSourceType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownBaseEnvironmentSource DeserializeUnknownBaseEnvironmentSource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + BaseEnvironmentSourceType baseEnvironmentSourceType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("baseEnvironmentSourceType"u8)) + { + baseEnvironmentSourceType = new BaseEnvironmentSourceType(property.Value.GetString()); + continue; + } + } + return new UnknownBaseEnvironmentSource(baseEnvironmentSourceType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBaseEnvironmentSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBaseEnvironmentSource.cs new file mode 100644 index 000000000000..81616e32c15b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBaseEnvironmentSource.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownBaseEnvironmentSource. + internal partial class UnknownBaseEnvironmentSource : BaseEnvironmentSource + { + /// Initializes a new instance of UnknownBaseEnvironmentSource. + /// [Required] Base environment type. + internal UnknownBaseEnvironmentSource(BaseEnvironmentSourceType baseEnvironmentSourceType) : base(baseEnvironmentSourceType) + { + BaseEnvironmentSourceType = baseEnvironmentSourceType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBatchDeploymentConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBatchDeploymentConfiguration.Serialization.cs new file mode 100644 index 000000000000..59e485f8aab0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBatchDeploymentConfiguration.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownBatchDeploymentConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("deploymentConfigurationType"u8); + writer.WriteStringValue(DeploymentConfigurationType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownBatchDeploymentConfiguration DeserializeUnknownBatchDeploymentConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + BatchDeploymentConfigurationType deploymentConfigurationType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("deploymentConfigurationType"u8)) + { + deploymentConfigurationType = new BatchDeploymentConfigurationType(property.Value.GetString()); + continue; + } + } + return new UnknownBatchDeploymentConfiguration(deploymentConfigurationType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBatchDeploymentConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBatchDeploymentConfiguration.cs new file mode 100644 index 000000000000..5915563e1eb4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownBatchDeploymentConfiguration.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownBatchDeploymentConfiguration. + internal partial class UnknownBatchDeploymentConfiguration : BatchDeploymentConfiguration + { + /// Initializes a new instance of UnknownBatchDeploymentConfiguration. + /// [Required] The type of the deployment. + internal UnknownBatchDeploymentConfiguration(BatchDeploymentConfigurationType deploymentConfigurationType) : base(deploymentConfigurationType) + { + DeploymentConfigurationType = deploymentConfigurationType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataDriftMetricThresholdBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataDriftMetricThresholdBase.Serialization.cs new file mode 100644 index 000000000000..feb422ab252e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataDriftMetricThresholdBase.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownDataDriftMetricThresholdBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static UnknownDataDriftMetricThresholdBase DeserializeUnknownDataDriftMetricThresholdBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitoringFeatureDataType dataType = "Unknown"; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new UnknownDataDriftMetricThresholdBase(dataType, threshold.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataDriftMetricThresholdBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataDriftMetricThresholdBase.cs new file mode 100644 index 000000000000..9ac0683dfa47 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataDriftMetricThresholdBase.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownDataDriftMetricThresholdBase. + internal partial class UnknownDataDriftMetricThresholdBase : DataDriftMetricThresholdBase + { + /// Initializes a new instance of UnknownDataDriftMetricThresholdBase. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal UnknownDataDriftMetricThresholdBase(MonitoringFeatureDataType dataType, MonitoringThreshold threshold) : base(dataType, threshold) + { + DataType = dataType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataImportSource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataImportSource.Serialization.cs new file mode 100644 index 000000000000..4b6e97b3d9c9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataImportSource.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownDataImportSource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Connection)) + { + if (Connection != null) + { + writer.WritePropertyName("connection"u8); + writer.WriteStringValue(Connection); + } + else + { + writer.WriteNull("connection"); + } + } + writer.WritePropertyName("sourceType"u8); + writer.WriteStringValue(SourceType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownDataImportSource DeserializeUnknownDataImportSource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional connection = default; + DataImportSourceType sourceType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("connection"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connection = null; + continue; + } + connection = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceType"u8)) + { + sourceType = new DataImportSourceType(property.Value.GetString()); + continue; + } + } + return new UnknownDataImportSource(connection.Value, sourceType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataImportSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataImportSource.cs new file mode 100644 index 000000000000..ebe5df37ed47 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataImportSource.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownDataImportSource. + internal partial class UnknownDataImportSource : DataImportSource + { + /// Initializes a new instance of UnknownDataImportSource. + /// Workspace connection for data import source storage. + /// [Required] Specifies the type of data. + internal UnknownDataImportSource(string connection, DataImportSourceType sourceType) : base(connection, sourceType) + { + SourceType = sourceType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataQualityMetricThresholdBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataQualityMetricThresholdBase.Serialization.cs new file mode 100644 index 000000000000..f9ea9d6cf644 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataQualityMetricThresholdBase.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownDataQualityMetricThresholdBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static UnknownDataQualityMetricThresholdBase DeserializeUnknownDataQualityMetricThresholdBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitoringFeatureDataType dataType = "Unknown"; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new UnknownDataQualityMetricThresholdBase(dataType, threshold.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataQualityMetricThresholdBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataQualityMetricThresholdBase.cs new file mode 100644 index 000000000000..f1453c7ec317 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownDataQualityMetricThresholdBase.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownDataQualityMetricThresholdBase. + internal partial class UnknownDataQualityMetricThresholdBase : DataQualityMetricThresholdBase + { + /// Initializes a new instance of UnknownDataQualityMetricThresholdBase. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal UnknownDataQualityMetricThresholdBase(MonitoringFeatureDataType dataType, MonitoringThreshold threshold) : base(dataType, threshold) + { + DataType = dataType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownExportSummary.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownExportSummary.Serialization.cs new file mode 100644 index 000000000000..ccfc6f6deb67 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownExportSummary.Serialization.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownExportSummary : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("format"u8); + writer.WriteStringValue(Format.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownExportSummary DeserializeUnknownExportSummary(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional endDateTime = default; + Optional exportedRowCount = default; + ExportFormatType format = "Unknown"; + Optional labelingJobId = default; + Optional startDateTime = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("endDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + endDateTime = null; + continue; + } + endDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("exportedRowCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + exportedRowCount = null; + continue; + } + exportedRowCount = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("format"u8)) + { + format = new ExportFormatType(property.Value.GetString()); + continue; + } + if (property.NameEquals("labelingJobId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + labelingJobId = null; + continue; + } + labelingJobId = property.Value.GetString(); + continue; + } + if (property.NameEquals("startDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + startDateTime = null; + continue; + } + startDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new UnknownExportSummary(Optional.ToNullable(endDateTime), Optional.ToNullable(exportedRowCount), format, labelingJobId.Value, Optional.ToNullable(startDateTime)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownExportSummary.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownExportSummary.cs new file mode 100644 index 000000000000..4ede6d8eb23c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownExportSummary.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownExportSummary. + internal partial class UnknownExportSummary : ExportSummary + { + /// Initializes a new instance of UnknownExportSummary. + /// The time when the export was completed. + /// The total number of labeled datapoints exported. + /// [Required] The format of exported labels, also as the discriminator. + /// Name and identifier of the job containing exported labels. + /// The time when the export was requested. + internal UnknownExportSummary(DateTimeOffset? endOn, long? exportedRowCount, ExportFormatType format, string labelingJobId, DateTimeOffset? startOn) : base(endOn, exportedRowCount, format, labelingJobId, startOn) + { + Format = format; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownInferencingServer.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownInferencingServer.Serialization.cs new file mode 100644 index 000000000000..1112c0432920 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownInferencingServer.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownInferencingServer : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("serverType"u8); + writer.WriteStringValue(ServerType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownInferencingServer DeserializeUnknownInferencingServer(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + InferencingServerType serverType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("serverType"u8)) + { + serverType = new InferencingServerType(property.Value.GetString()); + continue; + } + } + return new UnknownInferencingServer(serverType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownInferencingServer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownInferencingServer.cs new file mode 100644 index 000000000000..af8d48b138c2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownInferencingServer.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownInferencingServer. + internal partial class UnknownInferencingServer : InferencingServer + { + /// Initializes a new instance of UnknownInferencingServer. + /// [Required] Inferencing server type for various targets. + internal UnknownInferencingServer(InferencingServerType serverType) : base(serverType) + { + ServerType = serverType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownLabelingJobMediaProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownLabelingJobMediaProperties.Serialization.cs new file mode 100644 index 000000000000..f8d9d9d4db00 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownLabelingJobMediaProperties.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownLabelingJobMediaProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("mediaType"u8); + writer.WriteStringValue(MediaType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownLabelingJobMediaProperties DeserializeUnknownLabelingJobMediaProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MediaType mediaType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mediaType"u8)) + { + mediaType = new MediaType(property.Value.GetString()); + continue; + } + } + return new UnknownLabelingJobMediaProperties(mediaType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownLabelingJobMediaProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownLabelingJobMediaProperties.cs new file mode 100644 index 000000000000..4f80ddcd8317 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownLabelingJobMediaProperties.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownLabelingJobMediaProperties. + internal partial class UnknownLabelingJobMediaProperties : LabelingJobMediaProperties + { + /// Initializes a new instance of UnknownLabelingJobMediaProperties. + /// [Required] Media type of the job. + internal UnknownLabelingJobMediaProperties(MediaType mediaType) : base(mediaType) + { + MediaType = mediaType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.Serialization.cs new file mode 100644 index 000000000000..8ecedb29f92d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownMLAssistConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("mlAssist"u8); + writer.WriteStringValue(MlAssist.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownMLAssistConfiguration DeserializeUnknownMLAssistConfiguration(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MLAssistConfigurationType mlAssist = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mlAssist"u8)) + { + mlAssist = new MLAssistConfigurationType(property.Value.GetString()); + continue; + } + } + return new UnknownMLAssistConfiguration(mlAssist); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.cs new file mode 100644 index 000000000000..6ed4131e062c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownMLAssistConfiguration. + internal partial class UnknownMLAssistConfiguration : MLAssistConfiguration + { + /// Initializes a new instance of UnknownMLAssistConfiguration. + /// [Required] Indicates whether MLAssist feature is enabled. + internal UnknownMLAssistConfiguration(MLAssistConfigurationType mlAssist) : base(mlAssist) + { + MlAssist = mlAssist; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownModelPerformanceMetricThresholdBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownModelPerformanceMetricThresholdBase.Serialization.cs new file mode 100644 index 000000000000..0bc797e05cfd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownModelPerformanceMetricThresholdBase.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownModelPerformanceMetricThresholdBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("modelType"u8); + writer.WriteStringValue(ModelType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static UnknownModelPerformanceMetricThresholdBase DeserializeUnknownModelPerformanceMetricThresholdBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitoringModelType modelType = "Unknown"; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("modelType"u8)) + { + modelType = new MonitoringModelType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new UnknownModelPerformanceMetricThresholdBase(modelType, threshold.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownModelPerformanceMetricThresholdBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownModelPerformanceMetricThresholdBase.cs new file mode 100644 index 000000000000..4b57000c6230 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownModelPerformanceMetricThresholdBase.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownModelPerformanceMetricThresholdBase. + internal partial class UnknownModelPerformanceMetricThresholdBase : ModelPerformanceMetricThresholdBase + { + /// Initializes a new instance of UnknownModelPerformanceMetricThresholdBase. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal UnknownModelPerformanceMetricThresholdBase(MonitoringModelType modelType, MonitoringThreshold threshold) : base(modelType, threshold) + { + ModelType = modelType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeConfigurationBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeConfigurationBase.Serialization.cs new file mode 100644 index 000000000000..94e23f132686 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeConfigurationBase.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownMonitorComputeConfigurationBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("computeType"u8); + writer.WriteStringValue(ComputeType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownMonitorComputeConfigurationBase DeserializeUnknownMonitorComputeConfigurationBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitorComputeType computeType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("computeType"u8)) + { + computeType = new MonitorComputeType(property.Value.GetString()); + continue; + } + } + return new UnknownMonitorComputeConfigurationBase(computeType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeConfigurationBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeConfigurationBase.cs new file mode 100644 index 000000000000..fec1ef31fef4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeConfigurationBase.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownMonitorComputeConfigurationBase. + internal partial class UnknownMonitorComputeConfigurationBase : MonitorComputeConfigurationBase + { + /// Initializes a new instance of UnknownMonitorComputeConfigurationBase. + /// [Required] Specifies the type of signal to monitor. + internal UnknownMonitorComputeConfigurationBase(MonitorComputeType computeType) : base(computeType) + { + ComputeType = computeType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeIdentityBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeIdentityBase.Serialization.cs new file mode 100644 index 000000000000..3d6c307e5a42 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeIdentityBase.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownMonitorComputeIdentityBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("computeIdentityType"u8); + writer.WriteStringValue(ComputeIdentityType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownMonitorComputeIdentityBase DeserializeUnknownMonitorComputeIdentityBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitorComputeIdentityType computeIdentityType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("computeIdentityType"u8)) + { + computeIdentityType = new MonitorComputeIdentityType(property.Value.GetString()); + continue; + } + } + return new UnknownMonitorComputeIdentityBase(computeIdentityType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeIdentityBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeIdentityBase.cs new file mode 100644 index 000000000000..c7f6c1d9637c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitorComputeIdentityBase.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownMonitorComputeIdentityBase. + internal partial class UnknownMonitorComputeIdentityBase : MonitorComputeIdentityBase + { + /// Initializes a new instance of UnknownMonitorComputeIdentityBase. + /// [Required] Monitor compute identity type enum. + internal UnknownMonitorComputeIdentityBase(MonitorComputeIdentityType computeIdentityType) : base(computeIdentityType) + { + ComputeIdentityType = computeIdentityType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringAlertNotificationSettingsBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringAlertNotificationSettingsBase.Serialization.cs new file mode 100644 index 000000000000..8e5df00a5527 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringAlertNotificationSettingsBase.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownMonitoringAlertNotificationSettingsBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("alertNotificationType"u8); + writer.WriteStringValue(AlertNotificationType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownMonitoringAlertNotificationSettingsBase DeserializeUnknownMonitoringAlertNotificationSettingsBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitoringAlertNotificationType alertNotificationType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("alertNotificationType"u8)) + { + alertNotificationType = new MonitoringAlertNotificationType(property.Value.GetString()); + continue; + } + } + return new UnknownMonitoringAlertNotificationSettingsBase(alertNotificationType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringAlertNotificationSettingsBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringAlertNotificationSettingsBase.cs new file mode 100644 index 000000000000..723dc7f20a47 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringAlertNotificationSettingsBase.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownMonitoringAlertNotificationSettingsBase. + internal partial class UnknownMonitoringAlertNotificationSettingsBase : MonitoringAlertNotificationSettingsBase + { + /// Initializes a new instance of UnknownMonitoringAlertNotificationSettingsBase. + /// [Required] Specifies the type of signal to monitor. + internal UnknownMonitoringAlertNotificationSettingsBase(MonitoringAlertNotificationType alertNotificationType) : base(alertNotificationType) + { + AlertNotificationType = alertNotificationType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringFeatureFilterBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringFeatureFilterBase.Serialization.cs new file mode 100644 index 000000000000..2429ba8fec50 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringFeatureFilterBase.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownMonitoringFeatureFilterBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("filterType"u8); + writer.WriteStringValue(FilterType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownMonitoringFeatureFilterBase DeserializeUnknownMonitoringFeatureFilterBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitoringFeatureFilterType filterType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("filterType"u8)) + { + filterType = new MonitoringFeatureFilterType(property.Value.GetString()); + continue; + } + } + return new UnknownMonitoringFeatureFilterBase(filterType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringFeatureFilterBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringFeatureFilterBase.cs new file mode 100644 index 000000000000..4e2981a5c68e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringFeatureFilterBase.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownMonitoringFeatureFilterBase. + internal partial class UnknownMonitoringFeatureFilterBase : MonitoringFeatureFilterBase + { + /// Initializes a new instance of UnknownMonitoringFeatureFilterBase. + /// [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over. + internal UnknownMonitoringFeatureFilterBase(MonitoringFeatureFilterType filterType) : base(filterType) + { + FilterType = filterType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringInputDataBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringInputDataBase.Serialization.cs new file mode 100644 index 000000000000..082890bf49e2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringInputDataBase.Serialization.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownMonitoringInputDataBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Columns)) + { + if (Columns != null) + { + writer.WritePropertyName("columns"u8); + writer.WriteStartObject(); + foreach (var item in Columns) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("columns"); + } + } + if (Optional.IsDefined(DataContext)) + { + if (DataContext != null) + { + writer.WritePropertyName("dataContext"u8); + writer.WriteStringValue(DataContext); + } + else + { + writer.WriteNull("dataContext"); + } + } + writer.WritePropertyName("inputDataType"u8); + writer.WriteStringValue(InputDataType.ToString()); + writer.WritePropertyName("jobInputType"u8); + writer.WriteStringValue(JobInputType.ToString()); + writer.WritePropertyName("uri"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + writer.WriteEndObject(); + } + + internal static UnknownMonitoringInputDataBase DeserializeUnknownMonitoringInputDataBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> columns = default; + Optional dataContext = default; + MonitoringInputDataType inputDataType = "Unknown"; + JobInputType jobInputType = default; + Uri uri = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("columns"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + columns = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + columns = dictionary; + continue; + } + if (property.NameEquals("dataContext"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dataContext = null; + continue; + } + dataContext = property.Value.GetString(); + continue; + } + if (property.NameEquals("inputDataType"u8)) + { + inputDataType = new MonitoringInputDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("jobInputType"u8)) + { + jobInputType = new JobInputType(property.Value.GetString()); + continue; + } + if (property.NameEquals("uri"u8)) + { + uri = new Uri(property.Value.GetString()); + continue; + } + } + return new UnknownMonitoringInputDataBase(Optional.ToDictionary(columns), dataContext.Value, inputDataType, jobInputType, uri); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringInputDataBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringInputDataBase.cs new file mode 100644 index 000000000000..5a5d48bd6d72 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringInputDataBase.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownMonitoringInputDataBase. + internal partial class UnknownMonitoringInputDataBase : MonitoringInputDataBase + { + /// Initializes a new instance of UnknownMonitoringInputDataBase. + /// Mapping of column names to special uses. + /// The context metadata of the data source. + /// [Required] Specifies the type of signal to monitor. + /// [Required] Specifies the type of job. + /// [Required] Input Asset URI. + internal UnknownMonitoringInputDataBase(IDictionary columns, string dataContext, MonitoringInputDataType inputDataType, JobInputType jobInputType, Uri uri) : base(columns, dataContext, inputDataType, jobInputType, uri) + { + InputDataType = inputDataType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringSignalBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringSignalBase.Serialization.cs new file mode 100644 index 000000000000..7f1b23aa6c84 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringSignalBase.Serialization.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownMonitoringSignalBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsCollectionDefined(Properties)) + { + if (Properties != null) + { + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("properties"); + } + } + writer.WritePropertyName("signalType"u8); + writer.WriteStringValue(SignalType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownMonitoringSignalBase DeserializeUnknownMonitoringSignalBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional mode = default; + Optional> properties = default; + MonitoringSignalType signalType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new MonitoringNotificationMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + properties = null; + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + properties = dictionary; + continue; + } + if (property.NameEquals("signalType"u8)) + { + signalType = new MonitoringSignalType(property.Value.GetString()); + continue; + } + } + return new UnknownMonitoringSignalBase(Optional.ToNullable(mode), Optional.ToDictionary(properties), signalType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringSignalBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringSignalBase.cs new file mode 100644 index 000000000000..637c4194f744 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMonitoringSignalBase.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownMonitoringSignalBase. + internal partial class UnknownMonitoringSignalBase : MonitoringSignalBase + { + /// Initializes a new instance of UnknownMonitoringSignalBase. + /// The current notification mode for this signal. + /// Property dictionary. Properties can be added, but not removed or altered. + /// [Required] Specifies the type of signal to monitor. + internal UnknownMonitoringSignalBase(MonitoringNotificationMode? mode, IDictionary properties, MonitoringSignalType signalType) : base(mode, properties, signalType) + { + SignalType = signalType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.Serialization.cs new file mode 100644 index 000000000000..7910889bf2b5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownNodes : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("nodesValueType"u8); + writer.WriteStringValue(NodesValueType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownNodes DeserializeUnknownNodes(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + NodesValueType nodesValueType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nodesValueType"u8)) + { + nodesValueType = new NodesValueType(property.Value.GetString()); + continue; + } + } + return new UnknownNodes(nodesValueType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.cs new file mode 100644 index 000000000000..7fa0daa1265e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownNodes. + internal partial class UnknownNodes : Nodes + { + /// Initializes a new instance of UnknownNodes. + /// [Required] Type of the Nodes value. + internal UnknownNodes(NodesValueType nodesValueType) : base(nodesValueType) + { + NodesValueType = nodesValueType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOneLakeArtifact.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOneLakeArtifact.Serialization.cs new file mode 100644 index 000000000000..8ca031a52b4d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOneLakeArtifact.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownOneLakeArtifact : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("artifactName"u8); + writer.WriteStringValue(ArtifactName); + writer.WritePropertyName("artifactType"u8); + writer.WriteStringValue(ArtifactType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownOneLakeArtifact DeserializeUnknownOneLakeArtifact(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string artifactName = default; + OneLakeArtifactType artifactType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("artifactName"u8)) + { + artifactName = property.Value.GetString(); + continue; + } + if (property.NameEquals("artifactType"u8)) + { + artifactType = new OneLakeArtifactType(property.Value.GetString()); + continue; + } + } + return new UnknownOneLakeArtifact(artifactName, artifactType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOneLakeArtifact.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOneLakeArtifact.cs new file mode 100644 index 000000000000..7faf9bd9e2e3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOneLakeArtifact.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownOneLakeArtifact. + internal partial class UnknownOneLakeArtifact : OneLakeArtifact + { + /// Initializes a new instance of UnknownOneLakeArtifact. + /// [Required] OneLake artifact name. + /// [Required] OneLake artifact type. + internal UnknownOneLakeArtifact(string artifactName, OneLakeArtifactType artifactType) : base(artifactName, artifactType) + { + ArtifactType = artifactType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.Serialization.cs new file mode 100644 index 000000000000..4216c8ca186e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownOutboundRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Category)) + { + writer.WritePropertyName("category"u8); + writer.WriteStringValue(Category.Value.ToString()); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + writer.WritePropertyName("type"u8); + writer.WriteStringValue(RuleType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownOutboundRule DeserializeUnknownOutboundRule(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional category = default; + Optional status = default; + RuleType type = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("category"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + category = new RuleCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new RuleStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new RuleType(property.Value.GetString()); + continue; + } + } + return new UnknownOutboundRule(Optional.ToNullable(category), Optional.ToNullable(status), type); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.cs new file mode 100644 index 000000000000..4a85a6832515 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownOutboundRule. + internal partial class UnknownOutboundRule : OutboundRule + { + /// Initializes a new instance of UnknownOutboundRule. + /// Category of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. + internal UnknownOutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType) : base(category, status, ruleType) + { + RuleType = ruleType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPackageInputPathBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPackageInputPathBase.Serialization.cs new file mode 100644 index 000000000000..6cca9481c212 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPackageInputPathBase.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownPackageInputPathBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("inputPathType"u8); + writer.WriteStringValue(InputPathType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownPackageInputPathBase DeserializeUnknownPackageInputPathBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + InputPathType inputPathType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("inputPathType"u8)) + { + inputPathType = new InputPathType(property.Value.GetString()); + continue; + } + } + return new UnknownPackageInputPathBase(inputPathType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPackageInputPathBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPackageInputPathBase.cs new file mode 100644 index 000000000000..318e15b66da3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPackageInputPathBase.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownPackageInputPathBase. + internal partial class UnknownPackageInputPathBase : PackageInputPathBase + { + /// Initializes a new instance of UnknownPackageInputPathBase. + /// [Required] Input path type for package inputs. + internal UnknownPackageInputPathBase(InputPathType inputPathType) : base(inputPathType) + { + InputPathType = inputPathType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPendingUploadCredentialDto.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPendingUploadCredentialDto.Serialization.cs new file mode 100644 index 000000000000..4815346b6597 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPendingUploadCredentialDto.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownPendingUploadCredentialDto + { + internal static UnknownPendingUploadCredentialDto DeserializeUnknownPendingUploadCredentialDto(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + PendingUploadCredentialType credentialType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("credentialType"u8)) + { + credentialType = new PendingUploadCredentialType(property.Value.GetString()); + continue; + } + } + return new UnknownPendingUploadCredentialDto(credentialType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPendingUploadCredentialDto.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPendingUploadCredentialDto.cs new file mode 100644 index 000000000000..98cec29c94c1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPendingUploadCredentialDto.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownPendingUploadCredentialDto. + internal partial class UnknownPendingUploadCredentialDto : PendingUploadCredentialDto + { + /// Initializes a new instance of UnknownPendingUploadCredentialDto. + /// [Required] Credential type used to authentication with storage. + internal UnknownPendingUploadCredentialDto(PendingUploadCredentialType credentialType) : base(credentialType) + { + CredentialType = credentialType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPredictionDriftMetricThresholdBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPredictionDriftMetricThresholdBase.Serialization.cs new file mode 100644 index 000000000000..fca22b926e23 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPredictionDriftMetricThresholdBase.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownPredictionDriftMetricThresholdBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType.ToString()); + if (Optional.IsDefined(Threshold)) + { + if (Threshold != null) + { + writer.WritePropertyName("threshold"u8); + writer.WriteObjectValue(Threshold); + } + else + { + writer.WriteNull("threshold"); + } + } + writer.WriteEndObject(); + } + + internal static UnknownPredictionDriftMetricThresholdBase DeserializeUnknownPredictionDriftMetricThresholdBase(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + MonitoringFeatureDataType dataType = "Unknown"; + Optional threshold = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dataType"u8)) + { + dataType = new MonitoringFeatureDataType(property.Value.GetString()); + continue; + } + if (property.NameEquals("threshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + threshold = null; + continue; + } + threshold = MonitoringThreshold.DeserializeMonitoringThreshold(property.Value); + continue; + } + } + return new UnknownPredictionDriftMetricThresholdBase(dataType, threshold.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPredictionDriftMetricThresholdBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPredictionDriftMetricThresholdBase.cs new file mode 100644 index 000000000000..83f37c391625 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownPredictionDriftMetricThresholdBase.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownPredictionDriftMetricThresholdBase. + internal partial class UnknownPredictionDriftMetricThresholdBase : PredictionDriftMetricThresholdBase + { + /// Initializes a new instance of UnknownPredictionDriftMetricThresholdBase. + /// [Required] Specifies the data type of the metric threshold. + /// The threshold value. If null, a default value will be set depending on the selected metric. + internal UnknownPredictionDriftMetricThresholdBase(MonitoringFeatureDataType dataType, MonitoringThreshold threshold) : base(dataType, threshold) + { + DataType = dataType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownSparkJobEntry.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownSparkJobEntry.Serialization.cs new file mode 100644 index 000000000000..4c5c7e7425c8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownSparkJobEntry.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownSparkJobEntry : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("sparkJobEntryType"u8); + writer.WriteStringValue(SparkJobEntryType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownSparkJobEntry DeserializeUnknownSparkJobEntry(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + SparkJobEntryType sparkJobEntryType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sparkJobEntryType"u8)) + { + sparkJobEntryType = new SparkJobEntryType(property.Value.GetString()); + continue; + } + } + return new UnknownSparkJobEntry(sparkJobEntryType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownSparkJobEntry.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownSparkJobEntry.cs new file mode 100644 index 000000000000..81ddac11c503 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownSparkJobEntry.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownSparkJobEntry. + internal partial class UnknownSparkJobEntry : SparkJobEntry + { + /// Initializes a new instance of UnknownSparkJobEntry. + /// [Required] Type of the job's entry point. + internal UnknownSparkJobEntry(SparkJobEntryType sparkJobEntryType) : base(sparkJobEntryType) + { + SparkJobEntryType = sparkJobEntryType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.Serialization.cs new file mode 100644 index 000000000000..7ce32ee5e7f5 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UnknownWebhook : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(EventType)) + { + if (EventType != null) + { + writer.WritePropertyName("eventType"u8); + writer.WriteStringValue(EventType); + } + else + { + writer.WriteNull("eventType"); + } + } + writer.WritePropertyName("webhookType"u8); + writer.WriteStringValue(WebhookType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownWebhook DeserializeUnknownWebhook(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional eventType = default; + WebhookType webhookType = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("eventType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + eventType = null; + continue; + } + eventType = property.Value.GetString(); + continue; + } + if (property.NameEquals("webhookType"u8)) + { + webhookType = new WebhookType(property.Value.GetString()); + continue; + } + } + return new UnknownWebhook(eventType.Value, webhookType); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.cs new file mode 100644 index 000000000000..bdaf44a73559 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UnknownWebhook. + internal partial class UnknownWebhook : Webhook + { + /// Initializes a new instance of UnknownWebhook. + /// Send callback on a specified notification event. + /// [Required] Specifies the type of service to send a callback. + internal UnknownWebhook(string eventType, WebhookType webhookType) : base(eventType, webhookType) + { + WebhookType = webhookType; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWorkspaceConnectionPropertiesV2.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWorkspaceConnectionPropertiesV2.Serialization.cs index 20e8fde28eed..44f4b0e63e59 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWorkspaceConnectionPropertiesV2.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWorkspaceConnectionPropertiesV2.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -22,20 +23,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("category"u8); writer.WriteStringValue(Category.Value.ToString()); } - if (Optional.IsDefined(Target)) + if (Optional.IsDefined(ExpiryOn)) { - writer.WritePropertyName("target"u8); - writer.WriteStringValue(Target); + writer.WritePropertyName("expiryTime"u8); + writer.WriteStringValue(ExpiryOn.Value, "O"); } - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(Metadata)) { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif } - if (Optional.IsDefined(ValueFormat)) + if (Optional.IsDefined(Target)) { - writer.WritePropertyName("valueFormat"u8); - writer.WriteStringValue(ValueFormat.Value.ToString()); + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); } writer.WriteEndObject(); } @@ -48,9 +53,9 @@ internal static UnknownWorkspaceConnectionPropertiesV2 DeserializeUnknownWorkspa } MachineLearningConnectionAuthType authType = "Unknown"; Optional category = default; + Optional expiryTime = default; + Optional metadata = default; Optional target = default; - Optional value = default; - Optional valueFormat = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("authType"u8)) @@ -67,27 +72,31 @@ internal static UnknownWorkspaceConnectionPropertiesV2 DeserializeUnknownWorkspa category = new MachineLearningConnectionCategory(property.Value.GetString()); continue; } - if (property.NameEquals("target"u8)) - { - target = property.Value.GetString(); - continue; - } - if (property.NameEquals("value"u8)) + if (property.NameEquals("expiryTime"u8)) { - value = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("valueFormat"u8)) + if (property.NameEquals("metadata"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - valueFormat = new MachineLearningValueFormat(property.Value.GetString()); + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); continue; } } - return new UnknownWorkspaceConnectionPropertiesV2(authType, Optional.ToNullable(category), target.Value, value.Value, Optional.ToNullable(valueFormat)); + return new UnknownWorkspaceConnectionPropertiesV2(authType, Optional.ToNullable(category), Optional.ToNullable(expiryTime), metadata.Value, target.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWorkspaceConnectionPropertiesV2.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWorkspaceConnectionPropertiesV2.cs index d9ba88976ccd..9335f7267d88 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWorkspaceConnectionPropertiesV2.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWorkspaceConnectionPropertiesV2.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.MachineLearning.Models { /// The UnknownWorkspaceConnectionPropertiesV2. @@ -13,10 +15,10 @@ internal partial class UnknownWorkspaceConnectionPropertiesV2 : MachineLearningW /// Initializes a new instance of UnknownWorkspaceConnectionPropertiesV2. /// Authentication type of the connection target. /// Category of the connection. + /// + /// Any object. /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - internal UnknownWorkspaceConnectionPropertiesV2(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, string target, string value, MachineLearningValueFormat? valueFormat) : base(authType, category, target, value, valueFormat) + internal UnknownWorkspaceConnectionPropertiesV2(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target) : base(authType, category, expiryOn, metadata, target) { AuthType = authType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.Serialization.cs new file mode 100644 index 000000000000..8ebd7398b9f9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UserCreatedAcrAccount : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ArmResourceIdentifier)) + { + if (ArmResourceIdentifier != null) + { + writer.WritePropertyName("armResourceId"u8); + writer.WriteObjectValue(ArmResourceIdentifier); + } + else + { + writer.WriteNull("armResourceId"); + } + } + writer.WriteEndObject(); + } + + internal static UserCreatedAcrAccount DeserializeUserCreatedAcrAccount(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional armResourceId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("armResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + armResourceId = null; + continue; + } + armResourceId = Models.ArmResourceId.DeserializeArmResourceId(property.Value); + continue; + } + } + return new UserCreatedAcrAccount(armResourceId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs new file mode 100644 index 000000000000..dc6028f2f921 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UserCreatedAcrAccount. + internal partial class UserCreatedAcrAccount + { + /// Initializes a new instance of UserCreatedAcrAccount. + public UserCreatedAcrAccount() + { + } + + /// Initializes a new instance of UserCreatedAcrAccount. + /// ARM ResourceId of a resource. + internal UserCreatedAcrAccount(ArmResourceId armResourceIdentifier) + { + ArmResourceIdentifier = armResourceIdentifier; + } + + /// ARM ResourceId of a resource. + internal ArmResourceId ArmResourceIdentifier { get; set; } + /// + /// 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}" + /// + public string ArmResourceId + { + get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; + set + { + if (ArmResourceIdentifier is null) + ArmResourceIdentifier = new ArmResourceId(); + ArmResourceIdentifier.ResourceId = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.Serialization.cs new file mode 100644 index 000000000000..6999ab1cfaea --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class UserCreatedStorageAccount : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ArmResourceIdentifier)) + { + if (ArmResourceIdentifier != null) + { + writer.WritePropertyName("armResourceId"u8); + writer.WriteObjectValue(ArmResourceIdentifier); + } + else + { + writer.WriteNull("armResourceId"); + } + } + writer.WriteEndObject(); + } + + internal static UserCreatedStorageAccount DeserializeUserCreatedStorageAccount(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional armResourceId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("armResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + armResourceId = null; + continue; + } + armResourceId = Models.ArmResourceId.DeserializeArmResourceId(property.Value); + continue; + } + } + return new UserCreatedStorageAccount(armResourceId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs new file mode 100644 index 000000000000..b1d851338c34 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The UserCreatedStorageAccount. + internal partial class UserCreatedStorageAccount + { + /// Initializes a new instance of UserCreatedStorageAccount. + public UserCreatedStorageAccount() + { + } + + /// Initializes a new instance of UserCreatedStorageAccount. + /// ARM ResourceId of a resource. + internal UserCreatedStorageAccount(ArmResourceId armResourceIdentifier) + { + ArmResourceIdentifier = armResourceIdentifier; + } + + /// ARM ResourceId of a resource. + internal ArmResourceId ArmResourceIdentifier { get; set; } + /// + /// 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}" + /// + public string ArmResourceId + { + get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; + set + { + if (ArmResourceIdentifier is null) + ArmResourceIdentifier = new ArmResourceId(); + ArmResourceIdentifier.ResourceId = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.Serialization.cs new file mode 100644 index 000000000000..386b2dc63ab2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.Serialization.cs @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class VolumeDefinition : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DefinitionType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(DefinitionType.Value.ToString()); + } + if (Optional.IsDefined(ReadOnly)) + { + if (ReadOnly != null) + { + writer.WritePropertyName("readOnly"u8); + writer.WriteBooleanValue(ReadOnly.Value); + } + else + { + writer.WriteNull("readOnly"); + } + } + if (Optional.IsDefined(Source)) + { + writer.WritePropertyName("source"u8); + writer.WriteStringValue(Source); + } + if (Optional.IsDefined(Target)) + { + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); + } + if (Optional.IsDefined(Consistency)) + { + if (Consistency != null) + { + writer.WritePropertyName("consistency"u8); + writer.WriteStringValue(Consistency); + } + else + { + writer.WriteNull("consistency"); + } + } + if (Optional.IsDefined(Bind)) + { + if (Bind != null) + { + writer.WritePropertyName("bind"u8); + writer.WriteObjectValue(Bind); + } + else + { + writer.WriteNull("bind"); + } + } + if (Optional.IsDefined(Volume)) + { + if (Volume != null) + { + writer.WritePropertyName("volume"u8); + writer.WriteObjectValue(Volume); + } + else + { + writer.WriteNull("volume"); + } + } + if (Optional.IsDefined(Tmpfs)) + { + if (Tmpfs != null) + { + writer.WritePropertyName("tmpfs"u8); + writer.WriteObjectValue(Tmpfs); + } + else + { + writer.WriteNull("tmpfs"); + } + } + writer.WriteEndObject(); + } + + internal static VolumeDefinition DeserializeVolumeDefinition(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional type = default; + Optional readOnly = default; + Optional source = default; + Optional target = default; + Optional consistency = default; + Optional bind = default; + Optional volume = default; + Optional tmpfs = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new VolumeDefinitionType(property.Value.GetString()); + continue; + } + if (property.NameEquals("readOnly"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + readOnly = null; + continue; + } + readOnly = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("source"u8)) + { + source = property.Value.GetString(); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); + continue; + } + if (property.NameEquals("consistency"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + consistency = null; + continue; + } + consistency = property.Value.GetString(); + continue; + } + if (property.NameEquals("bind"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + bind = null; + continue; + } + bind = BindOptions.DeserializeBindOptions(property.Value); + continue; + } + if (property.NameEquals("volume"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + volume = null; + continue; + } + volume = VolumeOptions.DeserializeVolumeOptions(property.Value); + continue; + } + if (property.NameEquals("tmpfs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + tmpfs = null; + continue; + } + tmpfs = TmpfsOptions.DeserializeTmpfsOptions(property.Value); + continue; + } + } + return new VolumeDefinition(Optional.ToNullable(type), Optional.ToNullable(readOnly), source.Value, target.Value, consistency.Value, bind.Value, volume.Value, tmpfs.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.cs new file mode 100644 index 000000000000..7e4b4249ee5e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The VolumeDefinition. + public partial class VolumeDefinition + { + /// Initializes a new instance of VolumeDefinition. + public VolumeDefinition() + { + } + + /// Initializes a new instance of VolumeDefinition. + /// Type of Volume Definition. Possible Values: bind,volume,tmpfs,npipe. + /// Indicate whether to mount volume as readOnly. Default value for this is false. + /// Source of the mount. For bind mounts this is the host path. + /// Target of the mount. For bind mounts this is the path in the container. + /// Consistency of the volume. + /// Bind Options of the mount. + /// Volume Options of the mount. + /// tmpfs option of the mount. + internal VolumeDefinition(VolumeDefinitionType? definitionType, bool? readOnly, string source, string target, string consistency, BindOptions bind, VolumeOptions volume, TmpfsOptions tmpfs) + { + DefinitionType = definitionType; + ReadOnly = readOnly; + Source = source; + Target = target; + Consistency = consistency; + Bind = bind; + Volume = volume; + Tmpfs = tmpfs; + } + + /// Type of Volume Definition. Possible Values: bind,volume,tmpfs,npipe. + public VolumeDefinitionType? DefinitionType { get; set; } + /// Indicate whether to mount volume as readOnly. Default value for this is false. + public bool? ReadOnly { get; set; } + /// Source of the mount. For bind mounts this is the host path. + public string Source { get; set; } + /// Target of the mount. For bind mounts this is the path in the container. + public string Target { get; set; } + /// Consistency of the volume. + public string Consistency { get; set; } + /// Bind Options of the mount. + public BindOptions Bind { get; set; } + /// Volume Options of the mount. + internal VolumeOptions Volume { get; set; } + /// Indicate whether volume is nocopy. + public bool? Nocopy + { + get => Volume is null ? default : Volume.Nocopy; + set + { + if (Volume is null) + Volume = new VolumeOptions(); + Volume.Nocopy = value; + } + } + + /// tmpfs option of the mount. + internal TmpfsOptions Tmpfs { get; set; } + /// Mention the Tmpfs size. + public int? TmpfsSize + { + get => Tmpfs is null ? default : Tmpfs.Size; + set + { + if (Tmpfs is null) + Tmpfs = new TmpfsOptions(); + Tmpfs.Size = value; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinitionType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinitionType.cs new file mode 100644 index 000000000000..433f9193f758 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinitionType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of Volume Definition. Possible Values: bind,volume,tmpfs,npipe. + public readonly partial struct VolumeDefinitionType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VolumeDefinitionType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BindValue = "bind"; + private const string VolumeValue = "volume"; + private const string TmpfsValue = "tmpfs"; + private const string NpipeValue = "npipe"; + + /// bind. + public static VolumeDefinitionType Bind { get; } = new VolumeDefinitionType(BindValue); + /// volume. + public static VolumeDefinitionType Volume { get; } = new VolumeDefinitionType(VolumeValue); + /// tmpfs. + public static VolumeDefinitionType Tmpfs { get; } = new VolumeDefinitionType(TmpfsValue); + /// npipe. + public static VolumeDefinitionType Npipe { get; } = new VolumeDefinitionType(NpipeValue); + /// Determines if two values are the same. + public static bool operator ==(VolumeDefinitionType left, VolumeDefinitionType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VolumeDefinitionType left, VolumeDefinitionType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator VolumeDefinitionType(string value) => new VolumeDefinitionType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VolumeDefinitionType other && Equals(other); + /// + public bool Equals(VolumeDefinitionType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeOptions.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeOptions.Serialization.cs new file mode 100644 index 000000000000..124a682a2ec4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeOptions.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class VolumeOptions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Nocopy)) + { + if (Nocopy != null) + { + writer.WritePropertyName("nocopy"u8); + writer.WriteBooleanValue(Nocopy.Value); + } + else + { + writer.WriteNull("nocopy"); + } + } + writer.WriteEndObject(); + } + + internal static VolumeOptions DeserializeVolumeOptions(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nocopy = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nocopy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + nocopy = null; + continue; + } + nocopy = property.Value.GetBoolean(); + continue; + } + } + return new VolumeOptions(Optional.ToNullable(nocopy)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeOptions.cs new file mode 100644 index 000000000000..d36990e2c9e6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeOptions.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The VolumeOptions. + internal partial class VolumeOptions + { + /// Initializes a new instance of VolumeOptions. + public VolumeOptions() + { + } + + /// Initializes a new instance of VolumeOptions. + /// Indicate whether volume is nocopy. + internal VolumeOptions(bool? nocopy) + { + Nocopy = nocopy; + } + + /// Indicate whether volume is nocopy. + public bool? Nocopy { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.Serialization.cs new file mode 100644 index 000000000000..a6fec1d6bc74 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class Webhook : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(EventType)) + { + if (EventType != null) + { + writer.WritePropertyName("eventType"u8); + writer.WriteStringValue(EventType); + } + else + { + writer.WriteNull("eventType"); + } + } + writer.WritePropertyName("webhookType"u8); + writer.WriteStringValue(WebhookType.ToString()); + writer.WriteEndObject(); + } + + internal static Webhook DeserializeWebhook(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("webhookType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "AzureDevOps": return AzureDevOpsWebhook.DeserializeAzureDevOpsWebhook(element); + } + } + return UnknownWebhook.DeserializeUnknownWebhook(element); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.cs new file mode 100644 index 000000000000..d689f85b9fcc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Webhook base + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class Webhook + { + /// Initializes a new instance of Webhook. + protected Webhook() + { + } + + /// Initializes a new instance of Webhook. + /// Send callback on a specified notification event. + /// [Required] Specifies the type of service to send a callback. + internal Webhook(string eventType, WebhookType webhookType) + { + EventType = eventType; + WebhookType = webhookType; + } + + /// Send callback on a specified notification event. + public string EventType { get; set; } + /// [Required] Specifies the type of service to send a callback. + internal WebhookType WebhookType { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WebhookType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WebhookType.cs new file mode 100644 index 000000000000..c70ed031b367 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WebhookType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the webhook callback service type. + internal readonly partial struct WebhookType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public WebhookType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureDevOpsValue = "AzureDevOps"; + + /// AzureDevOps. + public static WebhookType AzureDevOps { get; } = new WebhookType(AzureDevOpsValue); + /// Determines if two values are the same. + public static bool operator ==(WebhookType left, WebhookType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(WebhookType left, WebhookType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator WebhookType(string value) => new WebhookType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is WebhookType other && Equals(other); + /// + public bool Equals(WebhookType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionAccessKey.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionAccessKey.Serialization.cs new file mode 100644 index 000000000000..5645ba293107 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionAccessKey.Serialization.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class WorkspaceConnectionAccessKey : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AccessKeyId)) + { + writer.WritePropertyName("accessKeyId"u8); + writer.WriteStringValue(AccessKeyId); + } + if (Optional.IsDefined(SecretAccessKey)) + { + writer.WritePropertyName("secretAccessKey"u8); + writer.WriteStringValue(SecretAccessKey); + } + writer.WriteEndObject(); + } + + internal static WorkspaceConnectionAccessKey DeserializeWorkspaceConnectionAccessKey(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional accessKeyId = default; + Optional secretAccessKey = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("accessKeyId"u8)) + { + accessKeyId = property.Value.GetString(); + continue; + } + if (property.NameEquals("secretAccessKey"u8)) + { + secretAccessKey = property.Value.GetString(); + continue; + } + } + return new WorkspaceConnectionAccessKey(accessKeyId.Value, secretAccessKey.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionAccessKey.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionAccessKey.cs new file mode 100644 index 000000000000..634d099b847a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionAccessKey.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The WorkspaceConnectionAccessKey. + public partial class WorkspaceConnectionAccessKey + { + /// Initializes a new instance of WorkspaceConnectionAccessKey. + public WorkspaceConnectionAccessKey() + { + } + + /// Initializes a new instance of WorkspaceConnectionAccessKey. + /// + /// + internal WorkspaceConnectionAccessKey(string accessKeyId, string secretAccessKey) + { + AccessKeyId = accessKeyId; + SecretAccessKey = secretAccessKey; + } + + /// Gets or sets the access key id. + public string AccessKeyId { get; set; } + /// Gets or sets the secret access key. + public string SecretAccessKey { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionApiKey.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionApiKey.Serialization.cs new file mode 100644 index 000000000000..f0c733b60ffa --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionApiKey.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + internal partial class WorkspaceConnectionApiKey : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Key)) + { + writer.WritePropertyName("key"u8); + writer.WriteStringValue(Key); + } + writer.WriteEndObject(); + } + + internal static WorkspaceConnectionApiKey DeserializeWorkspaceConnectionApiKey(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional key = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("key"u8)) + { + key = property.Value.GetString(); + continue; + } + } + return new WorkspaceConnectionApiKey(key.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionApiKey.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionApiKey.cs new file mode 100644 index 000000000000..40012493b758 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionApiKey.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Api key object for workspace connection credential. + internal partial class WorkspaceConnectionApiKey + { + /// Initializes a new instance of WorkspaceConnectionApiKey. + public WorkspaceConnectionApiKey() + { + } + + /// Initializes a new instance of WorkspaceConnectionApiKey. + /// + internal WorkspaceConnectionApiKey(string key) + { + Key = key; + } + + /// Gets or sets the key. + public string Key { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.Serialization.cs index ac06a6a21783..402ff0a95fa3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.Serialization.cs @@ -20,10 +20,15 @@ internal static WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult D { return null; } - Optional> value = default; Optional nextLink = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -38,13 +43,8 @@ internal static WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult D value = array; continue; } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } } - return new WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult(Optional.ToList(value), nextLink.Value); + return new WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult(nextLink.Value, Optional.ToList(value)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.cs index 730d74028906..0a4aea5e0cde 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.cs @@ -21,17 +21,17 @@ internal WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult() } /// Initializes a new instance of WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult. - /// /// - internal WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult(IReadOnlyList value, string nextLink) + /// + internal WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult(string nextLink, IReadOnlyList value) { - Value = value; NextLink = nextLink; + Value = value; } - /// Gets the value. - public IReadOnlyList Value { get; } /// Gets the next link. public string NextLink { get; } + /// Gets the value. + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionServicePrincipal.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionServicePrincipal.Serialization.cs new file mode 100644 index 000000000000..f270013535a3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionServicePrincipal.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class WorkspaceConnectionServicePrincipal : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ClientId)) + { + writer.WritePropertyName("clientId"u8); + writer.WriteStringValue(ClientId); + } + if (Optional.IsDefined(ClientSecret)) + { + writer.WritePropertyName("clientSecret"u8); + writer.WriteStringValue(ClientSecret); + } + if (Optional.IsDefined(TenantId)) + { + writer.WritePropertyName("tenantId"u8); + writer.WriteStringValue(TenantId.Value); + } + writer.WriteEndObject(); + } + + internal static WorkspaceConnectionServicePrincipal DeserializeWorkspaceConnectionServicePrincipal(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional clientId = default; + Optional clientSecret = default; + Optional tenantId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("clientId"u8)) + { + clientId = property.Value.GetString(); + continue; + } + if (property.NameEquals("clientSecret"u8)) + { + clientSecret = property.Value.GetString(); + continue; + } + if (property.NameEquals("tenantId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tenantId = property.Value.GetGuid(); + continue; + } + } + return new WorkspaceConnectionServicePrincipal(clientId.Value, clientSecret.Value, Optional.ToNullable(tenantId)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionServicePrincipal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionServicePrincipal.cs new file mode 100644 index 000000000000..3ca4403a10d0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionServicePrincipal.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The WorkspaceConnectionServicePrincipal. + public partial class WorkspaceConnectionServicePrincipal + { + /// Initializes a new instance of WorkspaceConnectionServicePrincipal. + public WorkspaceConnectionServicePrincipal() + { + } + + /// Initializes a new instance of WorkspaceConnectionServicePrincipal. + /// + /// + /// + internal WorkspaceConnectionServicePrincipal(string clientId, string clientSecret, Guid? tenantId) + { + ClientId = clientId; + ClientSecret = clientSecret; + TenantId = tenantId; + } + + /// Gets or sets the client id. + public string ClientId { get; set; } + /// Gets or sets the client secret. + public string ClientSecret { get; set; } + /// Gets or sets the tenant id. + public Guid? TenantId { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceDataVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceDataVersionCollectionGetAllOptions.cs new file mode 100644 index 000000000000..f168e303f1da --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceDataVersionCollectionGetAllOptions.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The WorkspaceDataVersionCollectionGetAllOptions. + public partial class WorkspaceDataVersionCollectionGetAllOptions + { + /// Initializes a new instance of WorkspaceDataVersionCollectionGetAllOptions. + public WorkspaceDataVersionCollectionGetAllOptions() + { + } + + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + public string OrderBy { get; set; } + /// + /// 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 + /// + public int? Top { get; set; } + /// Continuation token for pagination. + public string Skip { get; set; } + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + public string Tags { get; set; } + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + public MachineLearningListViewType? ListViewType { get; set; } + /// data stage. + public string Stage { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.Serialization.cs new file mode 100644 index 000000000000..6a8fef027da2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class WorkspaceHubConfig : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(AdditionalWorkspaceStorageAccounts)) + { + writer.WritePropertyName("additionalWorkspaceStorageAccounts"u8); + writer.WriteStartArray(); + foreach (var item in AdditionalWorkspaceStorageAccounts) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(DefaultWorkspaceResourceGroup)) + { + writer.WritePropertyName("defaultWorkspaceResourceGroup"u8); + writer.WriteStringValue(DefaultWorkspaceResourceGroup); + } + writer.WriteEndObject(); + } + + internal static WorkspaceHubConfig DeserializeWorkspaceHubConfig(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> additionalWorkspaceStorageAccounts = default; + Optional defaultWorkspaceResourceGroup = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("additionalWorkspaceStorageAccounts"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + additionalWorkspaceStorageAccounts = array; + continue; + } + if (property.NameEquals("defaultWorkspaceResourceGroup"u8)) + { + defaultWorkspaceResourceGroup = property.Value.GetString(); + continue; + } + } + return new WorkspaceHubConfig(Optional.ToList(additionalWorkspaceStorageAccounts), defaultWorkspaceResourceGroup.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.cs new file mode 100644 index 000000000000..6cb55c1780be --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// WorkspaceHub's configuration object. + public partial class WorkspaceHubConfig + { + /// Initializes a new instance of WorkspaceHubConfig. + public WorkspaceHubConfig() + { + AdditionalWorkspaceStorageAccounts = new ChangeTrackingList(); + } + + /// Initializes a new instance of WorkspaceHubConfig. + /// + /// + internal WorkspaceHubConfig(IList additionalWorkspaceStorageAccounts, string defaultWorkspaceResourceGroup) + { + AdditionalWorkspaceStorageAccounts = additionalWorkspaceStorageAccounts; + DefaultWorkspaceResourceGroup = defaultWorkspaceResourceGroup; + } + + /// Gets the additional workspace storage accounts. + public IList AdditionalWorkspaceStorageAccounts { get; } + /// Gets or sets the default workspace resource group. + public string DefaultWorkspaceResourceGroup { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.Serialization.cs index f9570280dcb9..5ae55f8ca2c0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.Serialization.cs @@ -20,10 +20,15 @@ internal static WorkspaceListResult DeserializeWorkspaceListResult(JsonElement e { return null; } - Optional> value = default; Optional nextLink = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -38,13 +43,8 @@ internal static WorkspaceListResult DeserializeWorkspaceListResult(JsonElement e value = array; continue; } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } } - return new WorkspaceListResult(Optional.ToList(value), nextLink.Value); + return new WorkspaceListResult(nextLink.Value, Optional.ToList(value)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.cs index e69019b0282c..675b6f3976db 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.cs @@ -21,17 +21,17 @@ internal WorkspaceListResult() } /// Initializes a new instance of WorkspaceListResult. + /// The link to the next page constructed using the continuationToken. If null, there are no additional pages. /// 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. - /// The URI that can be used to request the next list of machine learning workspaces. - internal WorkspaceListResult(IReadOnlyList value, string nextLink) + internal WorkspaceListResult(string nextLink, IReadOnlyList value) { - Value = value; NextLink = nextLink; + Value = value; } + /// The link to the next page constructed using the continuationToken. If null, there are no additional pages. + public string NextLink { get; } /// 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. public IReadOnlyList Value { get; } - /// The URI that can be used to request the next list of machine learning workspaces. - public string NextLink { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceModelVersionCollectionGetAllOptions.cs similarity index 77% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionCollectionGetAllOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceModelVersionCollectionGetAllOptions.cs index 1310ba75efab..5724921ffec3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceModelVersionCollectionGetAllOptions.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The MachineLearningModelVersionCollectionGetAllOptions. - public partial class MachineLearningModelVersionCollectionGetAllOptions + /// The WorkspaceModelVersionCollectionGetAllOptions. + public partial class WorkspaceModelVersionCollectionGetAllOptions { - /// Initializes a new instance of MachineLearningModelVersionCollectionGetAllOptions. - public MachineLearningModelVersionCollectionGetAllOptions() + /// Initializes a new instance of WorkspaceModelVersionCollectionGetAllOptions. + public WorkspaceModelVersionCollectionGetAllOptions() { } @@ -35,5 +35,7 @@ public MachineLearningModelVersionCollectionGetAllOptions() public string Feed { get; set; } /// View type for including/excluding (for example) archived entities. public MachineLearningListViewType? ListViewType { get; set; } + /// Model stage. + public string Stage { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.Serialization.cs new file mode 100644 index 000000000000..733deda107ea --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class WorkspacePrivateEndpointResource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } + + internal static WorkspacePrivateEndpointResource DeserializeWorkspacePrivateEndpointResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional id = default; + Optional subnetArmId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("subnetArmId"u8)) + { + subnetArmId = property.Value.GetString(); + continue; + } + } + return new WorkspacePrivateEndpointResource(id.Value, subnetArmId.Value); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.cs new file mode 100644 index 000000000000..0d525342a4f4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The Private Endpoint resource. + public partial class WorkspacePrivateEndpointResource + { + /// Initializes a new instance of WorkspacePrivateEndpointResource. + public WorkspacePrivateEndpointResource() + { + } + + /// Initializes a new instance of WorkspacePrivateEndpointResource. + /// e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}. + /// The subnetId that the private endpoint is connected to. + internal WorkspacePrivateEndpointResource(string id, string subnetArmId) + { + Id = id; + SubnetArmId = subnetArmId; + } + + /// e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}. + public string Id { get; } + /// The subnetId that the private endpoint is connected to. + public string SubnetArmId { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResource.cs new file mode 100644 index 000000000000..136df30cee27 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResource.cs @@ -0,0 +1,297 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing an OutboundRuleBasicResource along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetOutboundRuleBasicResource method. + /// Otherwise you can get one from its parent resource using the GetOutboundRuleBasicResource method. + /// + public partial class OutboundRuleBasicResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics; + private readonly ManagedNetworkSettingsRuleRestOperations _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient; + private readonly OutboundRuleBasicResourceData _data; + + /// Initializes a new instance of the class for mocking. + protected OutboundRuleBasicResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal OutboundRuleBasicResource(ArmClient client, OutboundRuleBasicResourceData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal OutboundRuleBasicResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string outboundRuleBasicResourceManagedNetworkSettingsRuleApiVersion); + _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient = new ManagedNetworkSettingsRuleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, outboundRuleBasicResourceManagedNetworkSettingsRuleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/outboundRules"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual OutboundRuleBasicResourceData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets an outbound rule from the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Get"); + scope.Start(); + try + { + var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets an outbound rule from the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Get"); + scope.Start(); + try + { + var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes an outbound rule from the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Delete"); + scope.Start(); + try + { + var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes an outbound rule from the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Delete"); + scope.Start(); + try + { + var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates an outbound rule in the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Outbound Rule to be created or updated in the managed network of a machine learning workspace. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Update"); + scope.Start(); + try + { + var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new OutboundRuleBasicResourceOperationSource(Client), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates an outbound rule in the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Outbound Rule to be created or updated in the managed network of a machine learning workspace. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Update"); + scope.Start(); + try + { + var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new OutboundRuleBasicResourceOperationSource(Client), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceCollection.cs new file mode 100644 index 000000000000..2f4dbcbd3e93 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceCollection.cs @@ -0,0 +1,341 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetOutboundRuleBasicResources method from an instance of . + /// + public partial class OutboundRuleBasicResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics; + private readonly ManagedNetworkSettingsRuleRestOperations _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient; + + /// Initializes a new instance of the class for mocking. + protected OutboundRuleBasicResourceCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal OutboundRuleBasicResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", OutboundRuleBasicResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(OutboundRuleBasicResource.ResourceType, out string outboundRuleBasicResourceManagedNetworkSettingsRuleApiVersion); + _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient = new ManagedNetworkSettingsRuleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, outboundRuleBasicResourceManagedNetworkSettingsRuleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != MachineLearningWorkspaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningWorkspaceResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates an outbound rule in the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Name of the workspace managed network outbound rule. + /// Outbound Rule to be created or updated in the managed network of a machine learning workspace. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleName, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new OutboundRuleBasicResourceOperationSource(Client), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates an outbound rule in the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Name of the workspace managed network outbound rule. + /// Outbound Rule to be created or updated in the managed network of a machine learning workspace. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleName, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new OutboundRuleBasicResourceOperationSource(Client), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets an outbound rule from the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Get + /// + /// + /// + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.Get"); + scope.Start(); + try + { + var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets an outbound rule from the managed network of a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Get + /// + /// + /// + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.Get"); + scope.Start(); + try + { + var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists the managed network outbound rules for a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new OutboundRuleBasicResource(Client, OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(e)), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, "OutboundRuleBasicResourceCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists the managed network outbound rules for a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new OutboundRuleBasicResource(Client, OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(e)), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, "OutboundRuleBasicResourceCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Get + /// + /// + /// + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.Exists"); + scope.Start(); + try + { + var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} + /// + /// + /// Operation Id + /// ManagedNetworkSettingsRule_Get + /// + /// + /// + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.Exists"); + scope.Start(); + try + { + var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceData.cs new file mode 100644 index 000000000000..4100c18c9aeb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceData.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing the OutboundRuleBasicResource data model. + /// Outbound Rule Basic Resource for the managed network of a machine learning workspace. + /// + public partial class OutboundRuleBasicResourceData : ResourceData + { + /// Initializes a new instance of OutboundRuleBasicResourceData. + /// + /// Outbound Rule for the managed network of a machine learning workspace. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// is null. + public OutboundRuleBasicResourceData(OutboundRule properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of OutboundRuleBasicResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Outbound Rule for the managed network of a machine learning workspace. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + internal OutboundRuleBasicResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, OutboundRule properties) : base(id, name, resourceType, systemData) + { + Properties = properties; + } + + /// + /// Outbound Rule for the managed network of a machine learning workspace. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public OutboundRule Properties { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeCollection.cs new file mode 100644 index 000000000000..5eb8b951bc44 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeCollection.cs @@ -0,0 +1,343 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryCodes method from an instance of . + /// + public partial class RegistryCodeCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryCodeRegistryCodeContainersClientDiagnostics; + private readonly RegistryCodeContainersRestOperations _registryCodeRegistryCodeContainersRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryCodeCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryCodeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryCodeRegistryCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryCodeResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryCodeResource.ResourceType, out string registryCodeRegistryCodeContainersApiVersion); + _registryCodeRegistryCodeContainersRestClient = new RegistryCodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryCodeRegistryCodeContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + } + + /// + /// Create or update Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string codeName, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryCodeRegistryCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryCodeOperationSource(Client), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string codeName, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryCodeRegistryCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryCodeOperationSource(Client), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string codeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.Get"); + scope.Start(); + try + { + var response = await _registryCodeRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string codeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.Get"); + scope.Start(); + try + { + var response = _registryCodeRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes + /// + /// + /// Operation Id + /// RegistryCodeContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryCodeRegistryCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryCodeRegistryCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryCodeResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, "RegistryCodeCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes + /// + /// + /// Operation Id + /// RegistryCodeContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryCodeRegistryCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryCodeRegistryCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryCodeResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, "RegistryCodeCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string codeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.Exists"); + scope.Start(); + try + { + var response = await _registryCodeRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string codeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.Exists"); + scope.Start(); + try + { + var response = _registryCodeRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeResource.cs new file mode 100644 index 000000000000..78671f6e5d7c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeResource.cs @@ -0,0 +1,350 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryCode along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryCodeResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryCode method. + /// + public partial class RegistryCodeResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryCodeRegistryCodeContainersClientDiagnostics; + private readonly RegistryCodeContainersRestOperations _registryCodeRegistryCodeContainersRestClient; + private readonly MachineLearningCodeContainerData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryCodeResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryCodeResource(ArmClient client, MachineLearningCodeContainerData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryCodeResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryCodeRegistryCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryCodeRegistryCodeContainersApiVersion); + _registryCodeRegistryCodeContainersRestClient = new RegistryCodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryCodeRegistryCodeContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/codes"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningCodeContainerData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of RegistryCodeVersionResources in the RegistryCode. + /// An object representing collection of RegistryCodeVersionResources and their operations over a RegistryCodeVersionResource. + public virtual RegistryCodeVersionCollection GetRegistryCodeVersions() + { + return GetCachedClient(Client => new RegistryCodeVersionCollection(Client, Id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryCodeVersionAsync(string version, CancellationToken cancellationToken = default) + { + return await GetRegistryCodeVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryCodeVersion(string version, CancellationToken cancellationToken = default) + { + return GetRegistryCodeVersions().Get(version, cancellationToken); + } + + /// + /// Get Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Get"); + scope.Start(); + try + { + var response = await _registryCodeRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Get"); + scope.Start(); + try + { + var response = _registryCodeRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Delete"); + scope.Start(); + try + { + var response = await _registryCodeRegistryCodeContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Delete"); + scope.Start(); + try + { + var response = _registryCodeRegistryCodeContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Update"); + scope.Start(); + try + { + var response = await _registryCodeRegistryCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryCodeOperationSource(Client), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Update"); + scope.Start(); + try + { + var response = _registryCodeRegistryCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryCodeOperationSource(Client), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionCollection.cs new file mode 100644 index 000000000000..3dee8f14a390 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionCollection.cs @@ -0,0 +1,347 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryCodeVersions method from an instance of . + /// + public partial class RegistryCodeVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryCodeVersionClientDiagnostics; + private readonly RegistryCodeVersionsRestOperations _registryCodeVersionRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryCodeVersionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryCodeVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryCodeVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryCodeVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryCodeVersionResource.ResourceType, out string registryCodeVersionApiVersion); + _registryCodeVersionRestClient = new RegistryCodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryCodeVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryCodeResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryCodeResource.ResourceType), nameof(id)); + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryCodeVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryCodeVersionOperationSource(Client), _registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryCodeVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryCodeVersionOperationSource(Client), _registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.Get"); + scope.Start(); + try + { + var response = await _registryCodeVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.Get"); + scope.Start(); + try + { + var response = _registryCodeVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions + /// + /// + /// Operation Id + /// RegistryCodeVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryCodeVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryCodeVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _registryCodeVersionClientDiagnostics, Pipeline, "RegistryCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions + /// + /// + /// Operation Id + /// RegistryCodeVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryCodeVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryCodeVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _registryCodeVersionClientDiagnostics, Pipeline, "RegistryCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.Exists"); + scope.Start(); + try + { + var response = await _registryCodeVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.Exists"); + scope.Start(); + try + { + var response = _registryCodeVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionResource.cs new file mode 100644 index 000000000000..97dd71f43870 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionResource.cs @@ -0,0 +1,366 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryCodeVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryCodeVersionResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryCodeVersion method. + /// + public partial class RegistryCodeVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryCodeVersionClientDiagnostics; + private readonly RegistryCodeVersionsRestOperations _registryCodeVersionRestClient; + private readonly MachineLearningCodeVersionData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryCodeVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryCodeVersionResource(ArmClient client, MachineLearningCodeVersionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryCodeVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryCodeVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryCodeVersionApiVersion); + _registryCodeVersionRestClient = new RegistryCodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryCodeVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/codes/versions"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningCodeVersionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Get"); + scope.Start(); + try + { + var response = await _registryCodeVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Get"); + scope.Start(); + try + { + var response = _registryCodeVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Delete"); + scope.Start(); + try + { + var response = await _registryCodeVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Delete"); + scope.Start(); + try + { + var response = _registryCodeVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Update"); + scope.Start(); + try + { + var response = await _registryCodeVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryCodeVersionOperationSource(Client), _registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryCodeVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Update"); + scope.Start(); + try + { + var response = _registryCodeVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryCodeVersionOperationSource(Client), _registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generate a storage location and credential for the client to upload a code asset to. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}/startPendingUpload + /// + /// + /// Operation Id + /// RegistryCodeVersions_CreateOrGetStartPendingUpload + /// + /// + /// + /// Pending upload request object. + /// The cancellation token to use. + /// is null. + public virtual async Task> CreateOrGetStartPendingUploadAsync(PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.CreateOrGetStartPendingUpload"); + scope.Start(); + try + { + var response = await _registryCodeVersionRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generate a storage location and credential for the client to upload a code asset to. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}/startPendingUpload + /// + /// + /// Operation Id + /// RegistryCodeVersions_CreateOrGetStartPendingUpload + /// + /// + /// + /// Pending upload request object. + /// The cancellation token to use. + /// is null. + public virtual Response CreateOrGetStartPendingUpload(PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.CreateOrGetStartPendingUpload"); + scope.Start(); + try + { + var response = _registryCodeVersionRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCollection.cs new file mode 100644 index 000000000000..193a6bf50cf9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCollection.cs @@ -0,0 +1,342 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistries method from an instance of . + /// + public partial class RegistryCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryClientDiagnostics; + private readonly RegistriesRestOperations _registryRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryResource.ResourceType, out string registryApiVersion); + _registryRestClient = new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceGroupResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id)); + } + + /// + /// Create or update registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Details required to create the registry. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string registryName, RegistryData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryOperationSource(Client), _registryClientDiagnostics, Pipeline, _registryRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, registryName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Details required to create the registry. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string registryName, RegistryData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, registryName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryOperationSource(Client), _registryClientDiagnostics, Pipeline, _registryRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, registryName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string registryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.Get"); + scope.Start(); + try + { + var response = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string registryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.Get"); + scope.Start(); + try + { + var response = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List registries + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries + /// + /// + /// Operation Id + /// Registries_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryResource(Client, RegistryData.DeserializeRegistryData(e)), _registryClientDiagnostics, Pipeline, "RegistryCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List registries + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries + /// + /// + /// Operation Id + /// Registries_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryResource(Client, RegistryData.DeserializeRegistryData(e)), _registryClientDiagnostics, Pipeline, "RegistryCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string registryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.Exists"); + scope.Start(); + try + { + var response = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string registryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.Exists"); + scope.Start(); + try + { + var response = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentCollection.cs new file mode 100644 index 000000000000..eb657c864709 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentCollection.cs @@ -0,0 +1,343 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryComponents method from an instance of . + /// + public partial class RegistryComponentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryComponentRegistryComponentContainersClientDiagnostics; + private readonly RegistryComponentContainersRestOperations _registryComponentRegistryComponentContainersRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryComponentCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryComponentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryComponentRegistryComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryComponentResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryComponentResource.ResourceType, out string registryComponentRegistryComponentContainersApiVersion); + _registryComponentRegistryComponentContainersRestClient = new RegistryComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryComponentRegistryComponentContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string componentName, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryComponentRegistryComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryComponentOperationSource(Client), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string componentName, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryComponentRegistryComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryComponentOperationSource(Client), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string componentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.Get"); + scope.Start(); + try + { + var response = await _registryComponentRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string componentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.Get"); + scope.Start(); + try + { + var response = _registryComponentRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components + /// + /// + /// Operation Id + /// RegistryComponentContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryComponentRegistryComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryComponentRegistryComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryComponentResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, "RegistryComponentCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components + /// + /// + /// Operation Id + /// RegistryComponentContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryComponentRegistryComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryComponentRegistryComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryComponentResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, "RegistryComponentCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string componentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.Exists"); + scope.Start(); + try + { + var response = await _registryComponentRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string componentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.Exists"); + scope.Start(); + try + { + var response = _registryComponentRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentResource.cs new file mode 100644 index 000000000000..3831553f5be4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentResource.cs @@ -0,0 +1,350 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryComponent along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryComponentResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryComponent method. + /// + public partial class RegistryComponentResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string componentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryComponentRegistryComponentContainersClientDiagnostics; + private readonly RegistryComponentContainersRestOperations _registryComponentRegistryComponentContainersRestClient; + private readonly MachineLearningComponentContainerData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryComponentResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryComponentResource(ArmClient client, MachineLearningComponentContainerData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryComponentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryComponentRegistryComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryComponentRegistryComponentContainersApiVersion); + _registryComponentRegistryComponentContainersRestClient = new RegistryComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryComponentRegistryComponentContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/components"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningComponentContainerData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of RegistryComponentVersionResources in the RegistryComponent. + /// An object representing collection of RegistryComponentVersionResources and their operations over a RegistryComponentVersionResource. + public virtual RegistryComponentVersionCollection GetRegistryComponentVersions() + { + return GetCachedClient(Client => new RegistryComponentVersionCollection(Client, Id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryComponentVersionAsync(string version, CancellationToken cancellationToken = default) + { + return await GetRegistryComponentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryComponentVersion(string version, CancellationToken cancellationToken = default) + { + return GetRegistryComponentVersions().Get(version, cancellationToken); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Get"); + scope.Start(); + try + { + var response = await _registryComponentRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Get"); + scope.Start(); + try + { + var response = _registryComponentRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Delete"); + scope.Start(); + try + { + var response = await _registryComponentRegistryComponentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Delete"); + scope.Start(); + try + { + var response = _registryComponentRegistryComponentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Update"); + scope.Start(); + try + { + var response = await _registryComponentRegistryComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryComponentOperationSource(Client), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Update"); + scope.Start(); + try + { + var response = _registryComponentRegistryComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryComponentOperationSource(Client), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionCollection.cs new file mode 100644 index 000000000000..b7409c3b57ab --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionCollection.cs @@ -0,0 +1,349 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryComponentVersions method from an instance of . + /// + public partial class RegistryComponentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryComponentVersionClientDiagnostics; + private readonly RegistryComponentVersionsRestOperations _registryComponentVersionRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryComponentVersionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryComponentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryComponentVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryComponentVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryComponentVersionResource.ResourceType, out string registryComponentVersionApiVersion); + _registryComponentVersionRestClient = new RegistryComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryComponentVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryComponentResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryComponentResource.ResourceType), nameof(id)); + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryComponentVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryComponentVersionOperationSource(Client), _registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryComponentVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryComponentVersionOperationSource(Client), _registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.Get"); + scope.Start(); + try + { + var response = await _registryComponentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.Get"); + scope.Start(); + try + { + var response = _registryComponentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions + /// + /// + /// Operation Id + /// RegistryComponentVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// Component stage. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryComponentVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryComponentVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _registryComponentVersionClientDiagnostics, Pipeline, "RegistryComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions + /// + /// + /// Operation Id + /// RegistryComponentVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// Component stage. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryComponentVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryComponentVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _registryComponentVersionClientDiagnostics, Pipeline, "RegistryComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.Exists"); + scope.Start(); + try + { + var response = await _registryComponentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.Exists"); + scope.Start(); + try + { + var response = _registryComponentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionResource.cs new file mode 100644 index 000000000000..994ae674280d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionResource.cs @@ -0,0 +1,297 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryComponentVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryComponentVersionResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryComponentVersion method. + /// + public partial class RegistryComponentVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryComponentVersionClientDiagnostics; + private readonly RegistryComponentVersionsRestOperations _registryComponentVersionRestClient; + private readonly MachineLearningComponentVersionData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryComponentVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryComponentVersionResource(ArmClient client, MachineLearningComponentVersionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryComponentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryComponentVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryComponentVersionApiVersion); + _registryComponentVersionRestClient = new RegistryComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryComponentVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/components/versions"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningComponentVersionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Get"); + scope.Start(); + try + { + var response = await _registryComponentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Get"); + scope.Start(); + try + { + var response = _registryComponentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Delete"); + scope.Start(); + try + { + var response = await _registryComponentVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Delete"); + scope.Start(); + try + { + var response = _registryComponentVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Update"); + scope.Start(); + try + { + var response = await _registryComponentVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryComponentVersionOperationSource(Client), _registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryComponentVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Update"); + scope.Start(); + try + { + var response = _registryComponentVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryComponentVersionOperationSource(Client), _registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryData.cs new file mode 100644 index 000000000000..c39c3e2e3362 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryData.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// A class representing the Registry data model. + public partial class RegistryData : TrackedResourceData + { + /// Initializes a new instance of RegistryData. + /// The location. + public RegistryData(AzureLocation location) : base(location) + { + PrivateEndpointConnections = new ChangeTrackingList(); + RegionDetails = new ChangeTrackingList(); + } + + /// Initializes a new instance of RegistryData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Managed service identity (system assigned and/or user assigned identities). + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// Sku details required for ARM contract for Autoscaling. + /// Discovery URL for the Registry. + /// IntellectualPropertyPublisher for the registry. + /// ResourceId of the managed RG if the registry has system created resources. + /// MLFlow Registry URI for the Registry. + /// Private endpoint connections info used for pending connections in private link portal. + /// + /// Is the Registry accessible from the internet? + /// Possible values: "Enabled" or "Disabled" + /// + /// Details of each region the registry is in. + internal RegistryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string kind, MachineLearningSku sku, Uri discoveryUri, string intellectualPropertyPublisher, ArmResourceId managedResourceGroup, Uri mlFlowRegistryUri, IList privateEndpointConnections, string publicNetworkAccess, IList regionDetails) : base(id, name, resourceType, systemData, tags, location) + { + Identity = identity; + Kind = kind; + Sku = sku; + DiscoveryUri = discoveryUri; + IntellectualPropertyPublisher = intellectualPropertyPublisher; + ManagedResourceGroup = managedResourceGroup; + MlFlowRegistryUri = mlFlowRegistryUri; + PrivateEndpointConnections = privateEndpointConnections; + PublicNetworkAccess = publicNetworkAccess; + RegionDetails = regionDetails; + } + + /// Managed service identity (system assigned and/or user assigned identities). + public ManagedServiceIdentity Identity { get; set; } + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + public string Kind { get; set; } + /// Sku details required for ARM contract for Autoscaling. + public MachineLearningSku Sku { get; set; } + /// Discovery URL for the Registry. + public Uri DiscoveryUri { get; set; } + /// IntellectualPropertyPublisher for the registry. + public string IntellectualPropertyPublisher { get; set; } + /// ResourceId of the managed RG if the registry has system created resources. + internal ArmResourceId ManagedResourceGroup { get; set; } + /// + /// 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}" + /// + public string ManagedResourceId + { + get => ManagedResourceGroup is null ? default : ManagedResourceGroup.ResourceId; + set + { + if (ManagedResourceGroup is null) + ManagedResourceGroup = new ArmResourceId(); + ManagedResourceGroup.ResourceId = value; + } + } + + /// MLFlow Registry URI for the Registry. + public Uri MlFlowRegistryUri { get; set; } + /// Private endpoint connections info used for pending connections in private link portal. + public IList PrivateEndpointConnections { get; set; } + /// + /// Is the Registry accessible from the internet? + /// Possible values: "Enabled" or "Disabled" + /// + public string PublicNetworkAccess { get; set; } + /// Details of each region the registry is in. + public IList RegionDetails { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataCollection.cs new file mode 100644 index 000000000000..0503ee04bd85 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataCollection.cs @@ -0,0 +1,346 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryData method from an instance of . + /// + public partial class RegistryDataCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryDataRegistryDataContainersClientDiagnostics; + private readonly RegistryDataContainersRestOperations _registryDataRegistryDataContainersRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryDataCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryDataCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryDataRegistryDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryDataResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryDataResource.ResourceType, out string registryDataRegistryDataContainersApiVersion); + _registryDataRegistryDataContainersRestClient = new RegistryDataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryDataRegistryDataContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryDataRegistryDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryDataOperationSource(Client), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryDataRegistryDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryDataOperationSource(Client), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.Get"); + scope.Start(); + try + { + var response = await _registryDataRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.Get"); + scope.Start(); + try + { + var response = _registryDataRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List Data containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data + /// + /// + /// Operation Id + /// RegistryDataContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryDataRegistryDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryDataRegistryDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryDataResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, "RegistryDataCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List Data containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data + /// + /// + /// Operation Id + /// RegistryDataContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryDataRegistryDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryDataRegistryDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryDataResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, "RegistryDataCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.Exists"); + scope.Start(); + try + { + var response = await _registryDataRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.Exists"); + scope.Start(); + try + { + var response = _registryDataRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataResource.cs new file mode 100644 index 000000000000..ebe3e739fcc4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataResource.cs @@ -0,0 +1,350 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryData along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryDataResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryData method. + /// + public partial class RegistryDataResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryDataRegistryDataContainersClientDiagnostics; + private readonly RegistryDataContainersRestOperations _registryDataRegistryDataContainersRestClient; + private readonly MachineLearningDataContainerData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryDataResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryDataResource(ArmClient client, MachineLearningDataContainerData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryDataResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryDataRegistryDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryDataRegistryDataContainersApiVersion); + _registryDataRegistryDataContainersRestClient = new RegistryDataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryDataRegistryDataContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/data"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningDataContainerData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of RegistryDataVersionResources in the RegistryData. + /// An object representing collection of RegistryDataVersionResources and their operations over a RegistryDataVersionResource. + public virtual RegistryDataVersionCollection GetRegistryDataVersions() + { + return GetCachedClient(Client => new RegistryDataVersionCollection(Client, Id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// RegistryDataVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryDataVersionAsync(string version, CancellationToken cancellationToken = default) + { + return await GetRegistryDataVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// RegistryDataVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryDataVersion(string version, CancellationToken cancellationToken = default) + { + return GetRegistryDataVersions().Get(version, cancellationToken); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Get"); + scope.Start(); + try + { + var response = await _registryDataRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Get"); + scope.Start(); + try + { + var response = _registryDataRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Delete"); + scope.Start(); + try + { + var response = await _registryDataRegistryDataContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Delete"); + scope.Start(); + try + { + var response = _registryDataRegistryDataContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Update"); + scope.Start(); + try + { + var response = await _registryDataRegistryDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryDataOperationSource(Client), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Update"); + scope.Start(); + try + { + var response = _registryDataRegistryDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryDataOperationSource(Client), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionCollection.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionCollection.cs index bc30093ae82e..53fc550c8b43 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningDataVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryDataVersions method from an instance of . /// - public partial class MachineLearningDataVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class RegistryDataVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningDataVersionDataVersionsClientDiagnostics; - private readonly DataVersionsRestOperations _machineLearningDataVersionDataVersionsRestClient; + private readonly ClientDiagnostics _registryDataVersionClientDiagnostics; + private readonly RegistryDataVersionsRestOperations _registryDataVersionRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningDataVersionCollection() + /// Initializes a new instance of the class for mocking. + protected RegistryDataVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningDataVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal RegistryDataVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningDataVersionDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningDataVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningDataVersionResource.ResourceType, out string machineLearningDataVersionDataVersionsApiVersion); - _machineLearningDataVersionDataVersionsRestClient = new DataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningDataVersionDataVersionsApiVersion); + _registryDataVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryDataVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryDataVersionResource.ResourceType, out string registryDataVersionApiVersion); + _registryDataVersionRestClient = new RegistryDataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryDataVersionApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal MachineLearningDataVersionCollection(ArmClient client, ResourceIdentifi internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != MachineLearningDataContainerResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningDataContainerResource.ResourceType), nameof(id)); + if (id.ResourceType != RegistryDataResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryDataResource.ResourceType), nameof(id)); } /// @@ -59,11 +59,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} /// /// /// Operation Id - /// DataVersions_CreateOrUpdate + /// RegistryDataVersions_CreateOrUpdate /// /// /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.CreateOrUpdate"); + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); + var response = await _registryDataVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryDataVersionOperationSource(Client), _registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -100,11 +100,11 @@ public virtual async Task> Crea /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} /// /// /// Operation Id - /// DataVersions_CreateOrUpdate + /// RegistryDataVersions_CreateOrUpdate /// /// /// @@ -114,17 +114,17 @@ public virtual async Task> Crea /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.CreateOrUpdate"); + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); + var response = _registryDataVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryDataVersionOperationSource(Client), _registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -141,11 +141,11 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} /// /// /// Operation Id - /// DataVersions_Get + /// RegistryDataVersions_Get /// /// /// @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(W /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.Get"); + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.Get"); scope.Start(); try { - var response = await _machineLearningDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _registryDataVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -178,11 +178,11 @@ public virtual async Task> GetAsync /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} /// /// /// Operation Id - /// DataVersions_Get + /// RegistryDataVersions_Get /// /// /// @@ -190,18 +190,18 @@ public virtual async Task> GetAsync /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.Get"); + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.Get"); scope.Start(); try { - var response = _machineLearningDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _registryDataVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -215,11 +215,11 @@ public virtual Response Get(string version, /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions /// /// /// Operation Id - /// DataVersions_List + /// RegistryDataVersions_List /// /// /// @@ -232,12 +232,12 @@ public virtual Response Get(string version, /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _machineLearningDataVersionDataVersionsClientDiagnostics, Pipeline, "MachineLearningDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryDataVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryDataVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _registryDataVersionClientDiagnostics, Pipeline, "RegistryDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -245,11 +245,11 @@ public virtual AsyncPageable GetAllAsync(str /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions /// /// /// Operation Id - /// DataVersions_List + /// RegistryDataVersions_List /// /// /// @@ -262,12 +262,12 @@ public virtual AsyncPageable GetAllAsync(str /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _machineLearningDataVersionDataVersionsClientDiagnostics, Pipeline, "MachineLearningDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryDataVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryDataVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _registryDataVersionClientDiagnostics, Pipeline, "RegistryDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -275,11 +275,11 @@ public virtual Pageable GetAll(string orderB /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} /// /// /// Operation Id - /// DataVersions_Get + /// RegistryDataVersions_Get /// /// /// @@ -291,11 +291,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.Exists"); + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.Exists"); scope.Start(); try { - var response = await _machineLearningDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _registryDataVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -310,11 +310,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} /// /// /// Operation Id - /// DataVersions_Get + /// RegistryDataVersions_Get /// /// /// @@ -326,11 +326,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.Exists"); + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.Exists"); scope.Start(); try { - var response = _machineLearningDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _registryDataVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -340,7 +340,7 @@ public virtual Response Exists(string version, CancellationToken cancellat } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -350,7 +350,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionResource.cs new file mode 100644 index 000000000000..f994ac956edc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionResource.cs @@ -0,0 +1,366 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryDataVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryDataVersionResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryDataVersion method. + /// + public partial class RegistryDataVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name, string version) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryDataVersionClientDiagnostics; + private readonly RegistryDataVersionsRestOperations _registryDataVersionRestClient; + private readonly MachineLearningDataVersionData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryDataVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryDataVersionResource(ArmClient client, MachineLearningDataVersionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryDataVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryDataVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryDataVersionApiVersion); + _registryDataVersionRestClient = new RegistryDataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryDataVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/data/versions"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningDataVersionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// RegistryDataVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Get"); + scope.Start(); + try + { + var response = await _registryDataVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// RegistryDataVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Get"); + scope.Start(); + try + { + var response = _registryDataVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// RegistryDataVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Delete"); + scope.Start(); + try + { + var response = await _registryDataVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// RegistryDataVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Delete"); + scope.Start(); + try + { + var response = _registryDataVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// RegistryDataVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Update"); + scope.Start(); + try + { + var response = await _registryDataVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryDataVersionOperationSource(Client), _registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// RegistryDataVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Update"); + scope.Start(); + try + { + var response = _registryDataVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryDataVersionOperationSource(Client), _registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generate a storage location and credential for the client to upload a data asset to. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}/startPendingUpload + /// + /// + /// Operation Id + /// RegistryDataVersions_CreateOrGetStartPendingUpload + /// + /// + /// + /// Pending upload request object. + /// The cancellation token to use. + /// is null. + public virtual async Task> CreateOrGetStartPendingUploadAsync(PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.CreateOrGetStartPendingUpload"); + scope.Start(); + try + { + var response = await _registryDataVersionRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generate a storage location and credential for the client to upload a data asset to. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}/startPendingUpload + /// + /// + /// Operation Id + /// RegistryDataVersions_CreateOrGetStartPendingUpload + /// + /// + /// + /// Pending upload request object. + /// The cancellation token to use. + /// is null. + public virtual Response CreateOrGetStartPendingUpload(PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.CreateOrGetStartPendingUpload"); + scope.Start(); + try + { + var response = _registryDataVersionRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentCollection.cs new file mode 100644 index 000000000000..8f12ce71fd80 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentCollection.cs @@ -0,0 +1,346 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryEnvironments method from an instance of . + /// + public partial class RegistryEnvironmentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics; + private readonly RegistryEnvironmentContainersRestOperations _registryEnvironmentRegistryEnvironmentContainersRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryEnvironmentCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryEnvironmentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryEnvironmentResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryEnvironmentResource.ResourceType, out string registryEnvironmentRegistryEnvironmentContainersApiVersion); + _registryEnvironmentRegistryEnvironmentContainersRestClient = new RegistryEnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryEnvironmentRegistryEnvironmentContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string environmentName, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryEnvironmentOperationSource(Client), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string environmentName, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryEnvironmentOperationSource(Client), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string environmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.Get"); + scope.Start(); + try + { + var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string environmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.Get"); + scope.Start(); + try + { + var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List environment containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryEnvironmentResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, "RegistryEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List environment containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryEnvironmentResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, "RegistryEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string environmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.Exists"); + scope.Start(); + try + { + var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string environmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.Exists"); + scope.Start(); + try + { + var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentResource.cs new file mode 100644 index 000000000000..392b0cfc1921 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentResource.cs @@ -0,0 +1,350 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryEnvironment along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryEnvironmentResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryEnvironment method. + /// + public partial class RegistryEnvironmentResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics; + private readonly RegistryEnvironmentContainersRestOperations _registryEnvironmentRegistryEnvironmentContainersRestClient; + private readonly MachineLearningEnvironmentContainerData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryEnvironmentResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryEnvironmentResource(ArmClient client, MachineLearningEnvironmentContainerData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryEnvironmentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryEnvironmentRegistryEnvironmentContainersApiVersion); + _registryEnvironmentRegistryEnvironmentContainersRestClient = new RegistryEnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryEnvironmentRegistryEnvironmentContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/environments"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningEnvironmentContainerData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of RegistryEnvironmentVersionResources in the RegistryEnvironment. + /// An object representing collection of RegistryEnvironmentVersionResources and their operations over a RegistryEnvironmentVersionResource. + public virtual RegistryEnvironmentVersionCollection GetRegistryEnvironmentVersions() + { + return GetCachedClient(Client => new RegistryEnvironmentVersionCollection(Client, Id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryEnvironmentVersionAsync(string version, CancellationToken cancellationToken = default) + { + return await GetRegistryEnvironmentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryEnvironmentVersion(string version, CancellationToken cancellationToken = default) + { + return GetRegistryEnvironmentVersions().Get(version, cancellationToken); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Get"); + scope.Start(); + try + { + var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Get"); + scope.Start(); + try + { + var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Delete"); + scope.Start(); + try + { + var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Delete"); + scope.Start(); + try + { + var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Update"); + scope.Start(); + try + { + var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryEnvironmentOperationSource(Client), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Update"); + scope.Start(); + try + { + var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryEnvironmentOperationSource(Client), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionCollection.cs new file mode 100644 index 000000000000..deb4f5c6f62c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionCollection.cs @@ -0,0 +1,352 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryEnvironmentVersions method from an instance of . + /// + public partial class RegistryEnvironmentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryEnvironmentVersionClientDiagnostics; + private readonly RegistryEnvironmentVersionsRestOperations _registryEnvironmentVersionRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryEnvironmentVersionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryEnvironmentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryEnvironmentVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryEnvironmentVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryEnvironmentVersionResource.ResourceType, out string registryEnvironmentVersionApiVersion); + _registryEnvironmentVersionRestClient = new RegistryEnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryEnvironmentVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryEnvironmentResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryEnvironmentResource.ResourceType), nameof(id)); + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryEnvironmentVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryEnvironmentVersionOperationSource(Client), _registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryEnvironmentVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryEnvironmentVersionOperationSource(Client), _registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.Get"); + scope.Start(); + try + { + var response = await _registryEnvironmentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.Get"); + scope.Start(); + try + { + var response = _registryEnvironmentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryEnvironmentVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryEnvironmentVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _registryEnvironmentVersionClientDiagnostics, Pipeline, "RegistryEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryEnvironmentVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryEnvironmentVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _registryEnvironmentVersionClientDiagnostics, Pipeline, "RegistryEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.Exists"); + scope.Start(); + try + { + var response = await _registryEnvironmentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryEnvironmentVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.Exists"); + scope.Start(); + try + { + var response = _registryEnvironmentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionResource.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionResource.cs index 982ed0ac37e1..26dd96059688 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionResource.cs @@ -17,60 +17,60 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningCodeVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningCodeVersionResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningCodeVersion method. + /// A Class representing a RegistryEnvironmentVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryEnvironmentVersionResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryEnvironmentVersion method. /// - public partial class MachineLearningCodeVersionResource : ArmResource + public partial class RegistryEnvironmentVersionResource : ArmResource { - /// Generate the resource identifier of a instance. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}"; + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningCodeVersionCodeVersionsClientDiagnostics; - private readonly CodeVersionsRestOperations _machineLearningCodeVersionCodeVersionsRestClient; - private readonly MachineLearningCodeVersionData _data; + private readonly ClientDiagnostics _registryEnvironmentVersionClientDiagnostics; + private readonly RegistryEnvironmentVersionsRestOperations _registryEnvironmentVersionRestClient; + private readonly MachineLearningEnvironmentVersionData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningCodeVersionResource() + /// Initializes a new instance of the class for mocking. + protected RegistryEnvironmentVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningCodeVersionResource(ArmClient client, MachineLearningCodeVersionData data) : this(client, data.Id) + internal RegistryEnvironmentVersionResource(ArmClient client, MachineLearningEnvironmentVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningCodeVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal RegistryEnvironmentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningCodeVersionCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningCodeVersionCodeVersionsApiVersion); - _machineLearningCodeVersionCodeVersionsRestClient = new CodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningCodeVersionCodeVersionsApiVersion); + _registryEnvironmentVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryEnvironmentVersionApiVersion); + _registryEnvironmentVersionRestClient = new RegistryEnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryEnvironmentVersionApiVersion); #if DEBUG ValidateResourceId(Id); #endif } /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/codes/versions"; + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/environments/versions"; /// Gets whether or not the current instance has data. public virtual bool HasData { get; } /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual MachineLearningCodeVersionData Data + public virtual MachineLearningEnvironmentVersionData Data { get { @@ -91,25 +91,25 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} /// /// /// Operation Id - /// CodeVersions_Get + /// RegistryEnvironmentVersions_Get /// /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Get"); + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Get"); scope.Start(); try { - var response = await _machineLearningCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _registryEnvironmentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -123,25 +123,25 @@ public virtual async Task> GetAsync /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} /// /// /// Operation Id - /// CodeVersions_Get + /// RegistryEnvironmentVersions_Get /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Get"); + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Get"); scope.Start(); try { - var response = _machineLearningCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _registryEnvironmentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -155,11 +155,11 @@ public virtual Response Get(CancellationToke /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} /// /// /// Operation Id - /// CodeVersions_Delete + /// RegistryEnvironmentVersions_Delete /// /// /// @@ -167,12 +167,12 @@ public virtual Response Get(CancellationToke /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Delete"); + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Delete"); scope.Start(); try { - var response = await _machineLearningCodeVersionCodeVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var response = await _registryEnvironmentVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -189,11 +189,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} /// /// /// Operation Id - /// CodeVersions_Delete + /// RegistryEnvironmentVersions_Delete /// /// /// @@ -201,12 +201,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Delete"); + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Delete"); scope.Start(); try { - var response = _machineLearningCodeVersionCodeVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var response = _registryEnvironmentVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -223,11 +223,11 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} /// /// /// Operation Id - /// CodeVersions_CreateOrUpdate + /// RegistryEnvironmentVersions_CreateOrUpdate /// /// /// @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Update"); + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Update"); scope.Start(); try { - var response = await _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); + var response = await _registryEnvironmentVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryEnvironmentVersionOperationSource(Client), _registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -261,11 +261,11 @@ public virtual async Task> Upda /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version} /// /// /// Operation Id - /// CodeVersions_CreateOrUpdate + /// RegistryEnvironmentVersions_CreateOrUpdate /// /// /// @@ -273,16 +273,16 @@ public virtual async Task> Upda /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Update"); + using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Update"); scope.Start(); try { - var response = _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); + var response = _registryEnvironmentVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryEnvironmentVersionOperationSource(Client), _registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelCollection.cs new file mode 100644 index 000000000000..3c70d8468eed --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelCollection.cs @@ -0,0 +1,346 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryModels method from an instance of . + /// + public partial class RegistryModelCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryModelRegistryModelContainersClientDiagnostics; + private readonly RegistryModelContainersRestOperations _registryModelRegistryModelContainersRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryModelCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryModelCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryModelRegistryModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryModelResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryModelResource.ResourceType, out string registryModelRegistryModelContainersApiVersion); + _registryModelRegistryModelContainersRestClient = new RegistryModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryModelRegistryModelContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + } + + /// + /// Create or update model container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string modelName, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryModelRegistryModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryModelOperationSource(Client), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update model container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string modelName, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryModelRegistryModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryModelOperationSource(Client), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string modelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.Get"); + scope.Start(); + try + { + var response = await _registryModelRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string modelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.Get"); + scope.Start(); + try + { + var response = _registryModelRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List model containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models + /// + /// + /// Operation Id + /// RegistryModelContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryModelRegistryModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryModelRegistryModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryModelResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, "RegistryModelCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List model containers. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models + /// + /// + /// Operation Id + /// RegistryModelContainers_List + /// + /// + /// + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryModelRegistryModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryModelRegistryModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryModelResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, "RegistryModelCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string modelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.Exists"); + scope.Start(); + try + { + var response = await _registryModelRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string modelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.Exists"); + scope.Start(); + try + { + var response = _registryModelRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelResource.cs new file mode 100644 index 000000000000..a87ad66328cd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelResource.cs @@ -0,0 +1,350 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryModel along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryModelResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryModel method. + /// + public partial class RegistryModelResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryModelRegistryModelContainersClientDiagnostics; + private readonly RegistryModelContainersRestOperations _registryModelRegistryModelContainersRestClient; + private readonly MachineLearningModelContainerData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryModelResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryModelResource(ArmClient client, MachineLearningModelContainerData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryModelResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryModelRegistryModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryModelRegistryModelContainersApiVersion); + _registryModelRegistryModelContainersRestClient = new RegistryModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryModelRegistryModelContainersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/models"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningModelContainerData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of RegistryModelVersionResources in the RegistryModel. + /// An object representing collection of RegistryModelVersionResources and their operations over a RegistryModelVersionResource. + public virtual RegistryModelVersionCollection GetRegistryModelVersions() + { + return GetCachedClient(Client => new RegistryModelVersionCollection(Client, Id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryModelVersionAsync(string version, CancellationToken cancellationToken = default) + { + return await GetRegistryModelVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryModelVersion(string version, CancellationToken cancellationToken = default) + { + return GetRegistryModelVersions().Get(version, cancellationToken); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Get"); + scope.Start(); + try + { + var response = await _registryModelRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Get"); + scope.Start(); + try + { + var response = _registryModelRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Delete"); + scope.Start(); + try + { + var response = await _registryModelRegistryModelContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Delete"); + scope.Start(); + try + { + var response = _registryModelRegistryModelContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update model container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Update"); + scope.Start(); + try + { + var response = await _registryModelRegistryModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryModelOperationSource(Client), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update model container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Container entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Update"); + scope.Start(); + try + { + var response = _registryModelRegistryModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryModelOperationSource(Client), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionCollection.cs new file mode 100644 index 000000000000..bb64fb82eb2c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionCollection.cs @@ -0,0 +1,348 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetRegistryModelVersions method from an instance of . + /// + public partial class RegistryModelVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _registryModelVersionClientDiagnostics; + private readonly RegistryModelVersionsRestOperations _registryModelVersionRestClient; + + /// Initializes a new instance of the class for mocking. + protected RegistryModelVersionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal RegistryModelVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryModelVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryModelVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(RegistryModelVersionResource.ResourceType, out string registryModelVersionApiVersion); + _registryModelVersionRestClient = new RegistryModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryModelVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != RegistryModelResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryModelResource.ResourceType), nameof(id)); + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _registryModelVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryModelVersionOperationSource(Client), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _registryModelVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryModelVersionOperationSource(Client), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.Get"); + scope.Start(); + try + { + var response = await _registryModelVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.Get"); + scope.Start(); + try + { + var response = _registryModelVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions + /// + /// + /// Operation Id + /// RegistryModelVersions_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(RegistryModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new RegistryModelVersionCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryModelVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryModelVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _registryModelVersionClientDiagnostics, Pipeline, "RegistryModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions + /// + /// + /// Operation Id + /// RegistryModelVersions_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(RegistryModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new RegistryModelVersionCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _registryModelVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryModelVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _registryModelVersionClientDiagnostics, Pipeline, "RegistryModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.Exists"); + scope.Start(); + try + { + var response = await _registryModelVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Get + /// + /// + /// + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.Exists"); + scope.Start(); + try + { + var response = _registryModelVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionResource.cs new file mode 100644 index 000000000000..d1cc48091698 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionResource.cs @@ -0,0 +1,442 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a RegistryModelVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryModelVersionResource method. + /// Otherwise you can get one from its parent resource using the GetRegistryModelVersion method. + /// + public partial class RegistryModelVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryModelVersionClientDiagnostics; + private readonly RegistryModelVersionsRestOperations _registryModelVersionRestClient; + private readonly MachineLearningModelVersionData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryModelVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryModelVersionResource(ArmClient client, MachineLearningModelVersionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryModelVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryModelVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryModelVersionApiVersion); + _registryModelVersionRestClient = new RegistryModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryModelVersionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries/models/versions"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningModelVersionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Get"); + scope.Start(); + try + { + var response = await _registryModelVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Get"); + scope.Start(); + try + { + var response = _registryModelVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Delete"); + scope.Start(); + try + { + var response = await _registryModelVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Delete"); + scope.Start(); + try + { + var response = _registryModelVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Update"); + scope.Start(); + try + { + var response = await _registryModelVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryModelVersionOperationSource(Client), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version} + /// + /// + /// Operation Id + /// RegistryModelVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Update"); + scope.Start(); + try + { + var response = _registryModelVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryModelVersionOperationSource(Client), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Model Version Package operation. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/package + /// + /// + /// Operation Id + /// RegistryModelVersions_Package + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Package operation request body. + /// The cancellation token to use. + /// is null. + public virtual async Task> PackageAsync(WaitUntil waitUntil, PackageRequest body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Package"); + scope.Start(); + try + { + var response = await _registryModelVersionRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Model Version Package operation. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/package + /// + /// + /// Operation Id + /// RegistryModelVersions_Package + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Package operation request body. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Package(WaitUntil waitUntil, PackageRequest body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Package"); + scope.Start(); + try + { + var response = _registryModelVersionRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generate a storage location and credential for the client to upload a model asset to. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/startPendingUpload + /// + /// + /// Operation Id + /// RegistryModelVersions_CreateOrGetStartPendingUpload + /// + /// + /// + /// Pending upload request object. + /// The cancellation token to use. + /// is null. + public virtual async Task> CreateOrGetStartPendingUploadAsync(PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.CreateOrGetStartPendingUpload"); + scope.Start(); + try + { + var response = await _registryModelVersionRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generate a storage location and credential for the client to upload a model asset to. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/startPendingUpload + /// + /// + /// Operation Id + /// RegistryModelVersions_CreateOrGetStartPendingUpload + /// + /// + /// + /// Pending upload request object. + /// The cancellation token to use. + /// is null. + public virtual Response CreateOrGetStartPendingUpload(PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.CreateOrGetStartPendingUpload"); + scope.Start(); + try + { + var response = _registryModelVersionRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryResource.cs new file mode 100644 index 000000000000..84393bfe15a2 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryResource.cs @@ -0,0 +1,943 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a Registry along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetRegistryResource method. + /// Otherwise you can get one from its parent resource using the GetRegistry method. + /// + public partial class RegistryResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _registryClientDiagnostics; + private readonly RegistriesRestOperations _registryRestClient; + private readonly RegistryData _data; + + /// Initializes a new instance of the class for mocking. + protected RegistryResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal RegistryResource(ArmClient client, RegistryData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal RegistryResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _registryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string registryApiVersion); + _registryRestClient = new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/registries"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual RegistryData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of RegistryCodeResources in the Registry. + /// An object representing collection of RegistryCodeResources and their operations over a RegistryCodeResource. + public virtual RegistryCodeCollection GetRegistryCodes() + { + return GetCachedClient(Client => new RegistryCodeCollection(Client, Id)); + } + + /// + /// Get Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryCodeAsync(string codeName, CancellationToken cancellationToken = default) + { + return await GetRegistryCodes().GetAsync(codeName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get Code container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName} + /// + /// + /// Operation Id + /// RegistryCodeContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryCode(string codeName, CancellationToken cancellationToken = default) + { + return GetRegistryCodes().Get(codeName, cancellationToken); + } + + /// Gets a collection of RegistryComponentResources in the Registry. + /// An object representing collection of RegistryComponentResources and their operations over a RegistryComponentResource. + public virtual RegistryComponentCollection GetRegistryComponents() + { + return GetCachedClient(Client => new RegistryComponentCollection(Client, Id)); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryComponentAsync(string componentName, CancellationToken cancellationToken = default) + { + return await GetRegistryComponents().GetAsync(componentName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName} + /// + /// + /// Operation Id + /// RegistryComponentContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryComponent(string componentName, CancellationToken cancellationToken = default) + { + return GetRegistryComponents().Get(componentName, cancellationToken); + } + + /// Gets a collection of RegistryDataResources in the Registry. + /// An object representing collection of RegistryDataResources and their operations over a RegistryDataResource. + public virtual RegistryDataCollection GetAllRegistryData() + { + return GetCachedClient(Client => new RegistryDataCollection(Client, Id)); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryDataAsync(string name, CancellationToken cancellationToken = default) + { + return await GetAllRegistryData().GetAsync(name, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name} + /// + /// + /// Operation Id + /// RegistryDataContainers_Get + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryData(string name, CancellationToken cancellationToken = default) + { + return GetAllRegistryData().Get(name, cancellationToken); + } + + /// Gets a collection of RegistryEnvironmentResources in the Registry. + /// An object representing collection of RegistryEnvironmentResources and their operations over a RegistryEnvironmentResource. + public virtual RegistryEnvironmentCollection GetRegistryEnvironments() + { + return GetCachedClient(Client => new RegistryEnvironmentCollection(Client, Id)); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryEnvironmentAsync(string environmentName, CancellationToken cancellationToken = default) + { + return await GetRegistryEnvironments().GetAsync(environmentName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName} + /// + /// + /// Operation Id + /// RegistryEnvironmentContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryEnvironment(string environmentName, CancellationToken cancellationToken = default) + { + return GetRegistryEnvironments().Get(environmentName, cancellationToken); + } + + /// Gets a collection of RegistryModelResources in the Registry. + /// An object representing collection of RegistryModelResources and their operations over a RegistryModelResource. + public virtual RegistryModelCollection GetRegistryModels() + { + return GetCachedClient(Client => new RegistryModelCollection(Client, Id)); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetRegistryModelAsync(string modelName, CancellationToken cancellationToken = default) + { + return await GetRegistryModels().GetAsync(modelName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName} + /// + /// + /// Operation Id + /// RegistryModelContainers_Get + /// + /// + /// + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetRegistryModel(string modelName, CancellationToken cancellationToken = default) + { + return GetRegistryModels().Get(modelName, cancellationToken); + } + + /// + /// Get registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Get"); + scope.Start(); + try + { + var response = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Get"); + scope.Start(); + try + { + var response = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Delete"); + scope.Start(); + try + { + var response = await _registryRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_registryClientDiagnostics, Pipeline, _registryRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Delete"); + scope.Start(); + try + { + var response = _registryRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_registryClientDiagnostics, Pipeline, _registryRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update tags + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Update + /// + /// + /// + /// Details required to create the registry. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(RegistryPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Update"); + scope.Start(); + try + { + var response = await _registryRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update tags + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Update + /// + /// + /// + /// Details required to create the registry. + /// The cancellation token to use. + /// is null. + public virtual Response Update(RegistryPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Update"); + scope.Start(); + try + { + var response = _registryRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); + return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Remove regions from registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/removeRegions + /// + /// + /// Operation Id + /// Registries_RemoveRegions + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Details required to create the registry. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveRegionsAsync(WaitUntil waitUntil, RegistryData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.RemoveRegions"); + scope.Start(); + try + { + var response = await _registryRestClient.RemoveRegionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new RegistryOperationSource(Client), _registryClientDiagnostics, Pipeline, _registryRestClient.CreateRemoveRegionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Remove regions from registry + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/removeRegions + /// + /// + /// Operation Id + /// Registries_RemoveRegions + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Details required to create the registry. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation RemoveRegions(WaitUntil waitUntil, RegistryData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.RemoveRegions"); + scope.Start(); + try + { + var response = _registryRestClient.RemoveRegions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new RegistryOperationSource(Client), _registryClientDiagnostics, Pipeline, _registryRestClient.CreateRemoveRegionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new RegistryPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new RegistryPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new RegistryPatch(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new RegistryPatch(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new RegistryPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// + /// + /// Operation Id + /// Registries_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new RegistryPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchDeploymentsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchDeploymentsRestOperations.cs index 394b8b4ba5eb..0d3fbb1d67f1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchDeploymentsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchDeploymentsRestOperations.cs @@ -33,7 +33,7 @@ public BatchDeploymentsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchEndpointsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchEndpointsRestOperations.cs index 7f12870bf562..1e8ffed85938 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchEndpointsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchEndpointsRestOperations.cs @@ -33,7 +33,7 @@ public BatchEndpointsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeContainersRestOperations.cs index 12cdbac72261..c9e5d9b568c7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeContainersRestOperations.cs @@ -33,7 +33,7 @@ public CodeContainersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeVersionsRestOperations.cs index 8238aae9d08a..846d8be4f5b8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeVersionsRestOperations.cs @@ -33,11 +33,11 @@ public CodeVersionsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string hash, string hashVersion) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -66,6 +66,14 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro { uri.AppendQuery("$skip", skip, true); } + if (hash != null) + { + uri.AppendQuery("hash", hash, true); + } + if (hashVersion != null) + { + uri.AppendQuery("hashVersion", hashVersion, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -80,17 +88,19 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// Ordering of list. /// Maximum number of records to return. /// Continuation token for pagination. + /// If specified, return CodeVersion assets with specified content hash value, regardless of name. + /// Hash algorithm version when listing by hash. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -114,17 +124,19 @@ public async Task> ListAsync(str /// Ordering of list. /// Maximum number of records to return. /// Continuation token for pagination. + /// If specified, return CodeVersion assets with specified content hash value, regardless of name. + /// Hash algorithm version when listing by hash. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -416,7 +428,106 @@ public Response CreateOrUpdate(string subscripti } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip) + internal HttpMessage CreateCreateOrGetStartPendingUploadRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PendingUploadRequestDto body) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/startPendingUpload", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Generate a storage location and credential for the client to upload a code asset to. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Pending upload request object. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrGetStartPendingUploadAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateCreateOrGetStartPendingUploadRequest(subscriptionId, resourceGroupName, workspaceName, name, version, body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PendingUploadResponseDto value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = PendingUploadResponseDto.DeserializePendingUploadResponseDto(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Generate a storage location and credential for the client to upload a code asset to. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Pending upload request object. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrGetStartPendingUpload(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateCreateOrGetStartPendingUploadRequest(subscriptionId, resourceGroupName, workspaceName, name, version, body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PendingUploadResponseDto value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = PendingUploadResponseDto.DeserializePendingUploadResponseDto(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string hash, string hashVersion) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -439,10 +550,12 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Ordering of list. /// Maximum number of records to return. /// Continuation token for pagination. + /// If specified, return CodeVersion assets with specified content hash value, regardless of name. + /// Hash algorithm version when listing by hash. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -450,7 +563,7 @@ public async Task> ListNextPageA Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -475,10 +588,12 @@ public async Task> ListNextPageA /// Ordering of list. /// Maximum number of records to return. /// Continuation token for pagination. + /// If specified, return CodeVersion assets with specified content hash value, regardless of name. + /// Hash algorithm version when listing by hash. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -486,7 +601,7 @@ public Response ListNextPage(string nextL Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentContainersRestOperations.cs index d56b8d8598cb..f59c835a67f8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentContainersRestOperations.cs @@ -33,7 +33,7 @@ public ComponentContainersRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentVersionsRestOperations.cs index 7067ec8a3d35..d33b34ded736 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentVersionsRestOperations.cs @@ -33,11 +33,11 @@ public ComponentVersionsRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -70,6 +70,10 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro { uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -85,17 +89,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Component stage. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType, stage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -120,17 +125,18 @@ public async Task> ListAsyn /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Component stage. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType, stage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -422,7 +428,7 @@ public Response CreateOrUpdate(string subsc } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -446,10 +452,11 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Component stage. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -457,7 +464,7 @@ public async Task> ListNext Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType, stage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -483,10 +490,11 @@ public async Task> ListNext /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Component stage. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -494,7 +502,7 @@ public Response ListNextPage(string Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType, stage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComputeRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComputeRestOperations.cs index d30e269faa60..0f6e46908d17 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComputeRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComputeRestOperations.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -33,7 +34,7 @@ public ComputeRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -457,6 +458,94 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal HttpMessage CreateUpdateCustomServicesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IEnumerable customServices) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/customServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteStartArray(); + foreach (var item in customServices) + { + content.JsonWriter.WriteObjectValue(item); + } + content.JsonWriter.WriteEndArray(); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Updates the custom services list. The list of custom services provided shall be overwritten. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the Azure Machine Learning compute. + /// New list of Custom Services. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdateCustomServicesAsync(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IEnumerable customServices, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(computeName, nameof(computeName)); + Argument.AssertNotNull(customServices, nameof(customServices)); + + using var message = CreateUpdateCustomServicesRequest(subscriptionId, resourceGroupName, workspaceName, computeName, customServices); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Updates the custom services list. The list of custom services provided shall be overwritten. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the Azure Machine Learning compute. + /// New list of Custom Services. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response UpdateCustomServices(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IEnumerable customServices, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(computeName, nameof(computeName)); + Argument.AssertNotNull(customServices, nameof(customServices)); + + using var message = CreateUpdateCustomServicesRequest(subscriptionId, resourceGroupName, workspaceName, computeName, customServices); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListNodesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) { var message = _pipeline.CreateMessage(); @@ -852,6 +941,89 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal HttpMessage CreateUpdateIdleShutdownSettingRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IdleShutdownSetting idleShutdownSetting) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/updateIdleShutdownSetting", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(idleShutdownSetting); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Updates the idle shutdown setting of a compute instance. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the Azure Machine Learning compute. + /// The object for updating idle shutdown setting of specified ComputeInstance. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdateIdleShutdownSettingAsync(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IdleShutdownSetting idleShutdownSetting, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(computeName, nameof(computeName)); + Argument.AssertNotNull(idleShutdownSetting, nameof(idleShutdownSetting)); + + using var message = CreateUpdateIdleShutdownSettingRequest(subscriptionId, resourceGroupName, workspaceName, computeName, idleShutdownSetting); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Updates the idle shutdown setting of a compute instance. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the Azure Machine Learning compute. + /// The object for updating idle shutdown setting of specified ComputeInstance. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response UpdateIdleShutdownSetting(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IdleShutdownSetting idleShutdownSetting, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(computeName, nameof(computeName)); + Argument.AssertNotNull(idleShutdownSetting, nameof(idleShutdownSetting)); + + using var message = CreateUpdateIdleShutdownSettingRequest(subscriptionId, resourceGroupName, workspaceName, computeName, idleShutdownSetting); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataContainersRestOperations.cs index eb950c3864b6..1e17c706a6fd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataContainersRestOperations.cs @@ -33,7 +33,7 @@ public DataContainersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataVersionsRestOperations.cs index 536eed1f4f45..af0e6d6435b2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataVersionsRestOperations.cs @@ -33,11 +33,11 @@ public DataVersionsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -74,6 +74,10 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro { uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -93,17 +97,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// Continuation token for pagination. /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// data stage. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, tags, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, tags, listViewType, stage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -132,17 +137,18 @@ public async Task> ListAsync /// Continuation token for pagination. /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// data stage. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, tags, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, tags, listViewType, stage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -434,7 +440,7 @@ public Response CreateOrUpdate(string subscripti } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -462,10 +468,11 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Continuation token for pagination. /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// data stage. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -473,7 +480,7 @@ public async Task> ListNextP Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, tags, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, tags, listViewType, stage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -503,10 +510,11 @@ public async Task> ListNextP /// Continuation token for pagination. /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// data stage. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -514,7 +522,7 @@ public Response ListNextPage(string n Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, tags, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, tags, listViewType, stage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DatastoresRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DatastoresRestOperations.cs index 6aa91daee3b8..1cf870168778 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DatastoresRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DatastoresRestOperations.cs @@ -34,7 +34,7 @@ public DatastoresRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentContainersRestOperations.cs index 572c7e9711db..289ac30febf5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentContainersRestOperations.cs @@ -33,7 +33,7 @@ public EnvironmentContainersRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentVersionsRestOperations.cs index 10de117d5530..0ec04ac2286c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentVersionsRestOperations.cs @@ -33,11 +33,11 @@ public EnvironmentVersionsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -70,6 +70,10 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro { uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -85,17 +89,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType, stage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -120,17 +125,18 @@ public async Task> ListAs /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType, stage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -422,7 +428,7 @@ public Response CreateOrUpdate(string sub } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -446,10 +452,11 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -457,7 +464,7 @@ public async Task> ListNe Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType, stage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -483,10 +490,11 @@ public async Task> ListNe /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -494,7 +502,7 @@ public Response ListNextPage(strin Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, orderBy, top, skip, listViewType, stage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs new file mode 100644 index 000000000000..4dba18e028bc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs @@ -0,0 +1,347 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class FeaturesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of FeaturesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public FeaturesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip, string tags, string featureName, string description) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(featuresetName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(featuresetVersion, true); + uri.AppendPath("/features", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (featureName != null) + { + uri.AppendQuery("featureName", featureName, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List Features. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Featureset name. This is case-sensitive. + /// Featureset Version identifier. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// feature name. + /// Description of the featureset. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(featuresetName, nameof(featuresetName)); + Argument.AssertNotNullOrEmpty(featuresetVersion, nameof(featuresetVersion)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, skip, tags, featureName, description); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeatureResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeatureResourceArmPaginatedResult.DeserializeFeatureResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List Features. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Featureset name. This is case-sensitive. + /// Featureset Version identifier. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// feature name. + /// Description of the featureset. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(featuresetName, nameof(featuresetName)); + Argument.AssertNotNullOrEmpty(featuresetVersion, nameof(featuresetVersion)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, skip, tags, featureName, description); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeatureResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeatureResourceArmPaginatedResult.DeserializeFeatureResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(featuresetName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(featuresetVersion, true); + uri.AppendPath("/features/", false); + uri.AppendPath(featureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get feature. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Feature set name. This is case-sensitive. + /// Feature set version identifier. This is case-sensitive. + /// Feature Name. This is case-sensitive. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(featuresetName, nameof(featuresetName)); + Argument.AssertNotNullOrEmpty(featuresetVersion, nameof(featuresetVersion)); + Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, featureName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeatureData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeatureData.DeserializeFeatureData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeatureData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get feature. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Feature set name. This is case-sensitive. + /// Feature set version identifier. This is case-sensitive. + /// Feature Name. This is case-sensitive. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(featuresetName, nameof(featuresetName)); + Argument.AssertNotNullOrEmpty(featuresetVersion, nameof(featuresetVersion)); + Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, featureName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeatureData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeatureData.DeserializeFeatureData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeatureData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip, string tags, string featureName, string description) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List Features. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Featureset name. This is case-sensitive. + /// Featureset Version identifier. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// feature name. + /// Description of the featureset. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(featuresetName, nameof(featuresetName)); + Argument.AssertNotNullOrEmpty(featuresetVersion, nameof(featuresetVersion)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, skip, tags, featureName, description); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeatureResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeatureResourceArmPaginatedResult.DeserializeFeatureResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List Features. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Featureset name. This is case-sensitive. + /// Featureset Version identifier. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// feature name. + /// Description of the featureset. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(featuresetName, nameof(featuresetName)); + Argument.AssertNotNullOrEmpty(featuresetVersion, nameof(featuresetVersion)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, skip, tags, featureName, description); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeatureResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeatureResourceArmPaginatedResult.DeserializeFeatureResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs new file mode 100644 index 000000000000..ac4e9eecb29d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class FeaturesetContainersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of FeaturesetContainersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public FeaturesetContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (name != null) + { + uri.AppendQuery("name", name, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (createdBy != null) + { + uri.AppendQuery("createdBy", createdBy, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List featurestore entity containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featureset. + /// description for the feature set. + /// createdBy user name. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string name = null, string description = null, string createdBy = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, tags, listViewType, pageSize, name, description, createdBy); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturesetContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturesetContainerResourceArmPaginatedResult.DeserializeFeaturesetContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List featurestore entity containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featureset. + /// description for the feature set. + /// createdBy user name. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string name = null, string description = null, string createdBy = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, tags, listViewType, pageSize, name, description, createdBy); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturesetContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturesetContainerResourceArmPaginatedResult.DeserializeFeaturesetContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetEntityRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetEntityAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetEntityRequest(subscriptionId, resourceGroupName, workspaceName, name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturesetContainerData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturesetContainerData.DeserializeFeaturesetContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeaturesetContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetEntity(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetEntityRequest(subscriptionId, resourceGroupName, workspaceName, name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturesetContainerData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturesetContainerData.DeserializeFeaturesetContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeaturesetContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturesetContainerData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturesetContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, name, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturesetContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, name, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List featurestore entity containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featureset. + /// description for the feature set. + /// createdBy user name. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string name = null, string description = null, string createdBy = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, tags, listViewType, pageSize, name, description, createdBy); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturesetContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturesetContainerResourceArmPaginatedResult.DeserializeFeaturesetContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List featurestore entity containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featureset. + /// description for the feature set. + /// createdBy user name. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string name = null, string description = null, string createdBy = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, tags, listViewType, pageSize, name, description, createdBy); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturesetContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturesetContainerResourceArmPaginatedResult.DeserializeFeaturesetContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs new file mode 100644 index 000000000000..ca84cb347f4b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs @@ -0,0 +1,843 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class FeaturesetVersionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of FeaturesetVersionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public FeaturesetVersionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (versionName != null) + { + uri.AppendQuery("versionName", versionName, true); + } + if (version != null) + { + uri.AppendQuery("version", version, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (createdBy != null) + { + uri.AppendQuery("createdBy", createdBy, true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Featureset name. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featureset version. + /// featureset version. + /// description for the feature set version. + /// createdBy user name. + /// Specifies the featurestore stage. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string versionName = null, string version = null, string description = null, string createdBy = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, skip, tags, listViewType, pageSize, versionName, version, description, createdBy, stage); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturesetVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturesetVersionResourceArmPaginatedResult.DeserializeFeaturesetVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Featureset name. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featureset version. + /// featureset version. + /// description for the feature set version. + /// createdBy user name. + /// Specifies the featurestore stage. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string versionName = null, string version = null, string description = null, string createdBy = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, skip, tags, listViewType, pageSize, versionName, version, description, createdBy, stage); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturesetVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturesetVersionResourceArmPaginatedResult.DeserializeFeaturesetVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, name, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, name, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, name, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturesetVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturesetVersionData.DeserializeFeaturesetVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeaturesetVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, name, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturesetVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturesetVersionData.DeserializeFeaturesetVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeaturesetVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, name, version, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, name, version, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateBackfillRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionBackfillContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/backfill", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Backfill. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Feature set version backfill request entity. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task BackfillAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionBackfillContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateBackfillRequest(subscriptionId, resourceGroupName, workspaceName, name, version, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Backfill. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Feature set version backfill request entity. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Backfill(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionBackfillContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateBackfillRequest(subscriptionId, resourceGroupName, workspaceName, name, version, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListMaterializationJobsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip, string filters, string featureWindowStart, string featureWindowEnd) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/listMaterializationJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (filters != null) + { + uri.AppendQuery("filters", filters, true); + } + if (featureWindowStart != null) + { + uri.AppendQuery("featureWindowStart", featureWindowStart, true); + } + if (featureWindowEnd != null) + { + uri.AppendQuery("featureWindowEnd", featureWindowEnd, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List materialization Jobs. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Start time of the feature window to filter materialization jobs. + /// End time of the feature window to filter materialization jobs. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListMaterializationJobsAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateListMaterializationJobsRequest(subscriptionId, resourceGroupName, workspaceName, name, version, skip, filters, featureWindowStart, featureWindowEnd); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturesetJobArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturesetJobArmPaginatedResult.DeserializeFeaturesetJobArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List materialization Jobs. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Start time of the feature window to filter materialization jobs. + /// End time of the feature window to filter materialization jobs. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListMaterializationJobs(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateListMaterializationJobsRequest(subscriptionId, resourceGroupName, workspaceName, name, version, skip, filters, featureWindowStart, featureWindowEnd); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturesetJobArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturesetJobArmPaginatedResult.DeserializeFeaturesetJobArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Featureset name. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featureset version. + /// featureset version. + /// description for the feature set version. + /// createdBy user name. + /// Specifies the featurestore stage. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string versionName = null, string version = null, string description = null, string createdBy = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, skip, tags, listViewType, pageSize, versionName, version, description, createdBy, stage); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturesetVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturesetVersionResourceArmPaginatedResult.DeserializeFeaturesetVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Featureset name. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featureset version. + /// featureset version. + /// description for the feature set version. + /// createdBy user name. + /// Specifies the featurestore stage. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string versionName = null, string version = null, string description = null, string createdBy = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, skip, tags, listViewType, pageSize, versionName, version, description, createdBy, stage); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturesetVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturesetVersionResourceArmPaginatedResult.DeserializeFeaturesetVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListMaterializationJobsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip, string filters, string featureWindowStart, string featureWindowEnd) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List materialization Jobs. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Start time of the feature window to filter materialization jobs. + /// End time of the feature window to filter materialization jobs. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListMaterializationJobsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateListMaterializationJobsNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, version, skip, filters, featureWindowStart, featureWindowEnd); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturesetJobArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturesetJobArmPaginatedResult.DeserializeFeaturesetJobArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List materialization Jobs. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Start time of the feature window to filter materialization jobs. + /// End time of the feature window to filter materialization jobs. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListMaterializationJobsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateListMaterializationJobsNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, version, skip, filters, featureWindowStart, featureWindowEnd); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturesetJobArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturesetJobArmPaginatedResult.DeserializeFeaturesetJobArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs new file mode 100644 index 000000000000..8e50fc078a47 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class FeaturestoreEntityContainersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of FeaturestoreEntityContainersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public FeaturestoreEntityContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (name != null) + { + uri.AppendQuery("name", name, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (createdBy != null) + { + uri.AppendQuery("createdBy", createdBy, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List featurestore entity containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featurestore entity. + /// description for the featurestore entity. + /// createdBy user name. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string name = null, string description = null, string createdBy = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, tags, listViewType, pageSize, name, description, createdBy); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturestoreEntityContainerResourceArmPaginatedResult.DeserializeFeaturestoreEntityContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List featurestore entity containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featurestore entity. + /// description for the featurestore entity. + /// createdBy user name. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string name = null, string description = null, string createdBy = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, tags, listViewType, pageSize, name, description, createdBy); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturestoreEntityContainerResourceArmPaginatedResult.DeserializeFeaturestoreEntityContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetEntityRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetEntityAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetEntityRequest(subscriptionId, resourceGroupName, workspaceName, name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityContainerData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeaturestoreEntityContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetEntity(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetEntityRequest(subscriptionId, resourceGroupName, workspaceName, name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityContainerData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeaturestoreEntityContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturestoreEntityContainerData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, name, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, name, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List featurestore entity containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featurestore entity. + /// description for the featurestore entity. + /// createdBy user name. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string name = null, string description = null, string createdBy = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, tags, listViewType, pageSize, name, description, createdBy); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturestoreEntityContainerResourceArmPaginatedResult.DeserializeFeaturestoreEntityContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List featurestore entity containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featurestore entity. + /// description for the featurestore entity. + /// createdBy user name. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string name = null, string description = null, string createdBy = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, tags, listViewType, pageSize, name, description, createdBy); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturestoreEntityContainerResourceArmPaginatedResult.DeserializeFeaturestoreEntityContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs new file mode 100644 index 000000000000..ade54f8d255a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs @@ -0,0 +1,545 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class FeaturestoreEntityVersionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of FeaturestoreEntityVersionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public FeaturestoreEntityVersionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (versionName != null) + { + uri.AppendQuery("versionName", versionName, true); + } + if (version != null) + { + uri.AppendQuery("version", version, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (createdBy != null) + { + uri.AppendQuery("createdBy", createdBy, true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Feature entity name. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featurestore entity version. + /// featurestore entity version. + /// description for the feature entity version. + /// createdBy user name. + /// Specifies the featurestore stage. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string versionName = null, string version = null, string description = null, string createdBy = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, skip, tags, listViewType, pageSize, versionName, version, description, createdBy, stage); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturestoreEntityVersionResourceArmPaginatedResult.DeserializeFeaturestoreEntityVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Feature entity name. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featurestore entity version. + /// featurestore entity version. + /// description for the feature entity version. + /// createdBy user name. + /// Specifies the featurestore stage. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string versionName = null, string version = null, string description = null, string createdBy = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, skip, tags, listViewType, pageSize, versionName, version, description, createdBy, stage); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturestoreEntityVersionResourceArmPaginatedResult.DeserializeFeaturestoreEntityVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, name, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, name, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, name, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeaturestoreEntityVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, name, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((FeaturestoreEntityVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturestoreEntityVersionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, name, version, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, name, version, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Feature entity name. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featurestore entity version. + /// featurestore entity version. + /// description for the feature entity version. + /// createdBy user name. + /// Specifies the featurestore stage. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string versionName = null, string version = null, string description = null, string createdBy = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, skip, tags, listViewType, pageSize, versionName, version, description, createdBy, stage); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FeaturestoreEntityVersionResourceArmPaginatedResult.DeserializeFeaturestoreEntityVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Feature entity name. This is case-sensitive. + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// page size. + /// name for the featurestore entity version. + /// featurestore entity version. + /// description for the feature entity version. + /// createdBy user name. + /// Specifies the featurestore stage. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, int? pageSize = null, string versionName = null, string version = null, string description = null, string createdBy = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, skip, tags, listViewType, pageSize, versionName, version, description, createdBy, stage); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FeaturestoreEntityVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FeaturestoreEntityVersionResourceArmPaginatedResult.DeserializeFeaturestoreEntityVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/JobsRestOperations.cs index 825dac026f1f..13b5d54467ad 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/JobsRestOperations.cs @@ -33,11 +33,11 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string jobType, string tag, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string jobType, string tag, MachineLearningListViewType? listViewType, string assetName, bool? scheduled, string scheduleId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -68,6 +68,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro { uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); } + if (assetName != null) + { + uri.AppendQuery("assetName", assetName, true); + } + if (scheduled != null) + { + uri.AppendQuery("scheduled", scheduled.Value, true); + } + if (scheduleId != null) + { + uri.AppendQuery("scheduleId", scheduleId, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -82,16 +94,19 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// Type of job to be returned. /// Jobs returned will have this tag key. /// View type for including/excluding (for example) archived entities. + /// Asset name the job's named output is registered with. + /// Indicator whether the job is scheduled job. + /// The scheduled id for listing the job triggered from. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, string assetName = null, bool? scheduled = null, string scheduleId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, jobType, tag, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, jobType, tag, listViewType, assetName, scheduled, scheduleId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -115,16 +130,19 @@ public async Task> ListAsync(string /// Type of job to be returned. /// Jobs returned will have this tag key. /// View type for including/excluding (for example) archived entities. + /// Asset name the job's named output is registered with. + /// Indicator whether the job is scheduled job. + /// The scheduled id for listing the job triggered from. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, string assetName = null, bool? scheduled = null, string scheduleId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, jobType, tag, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, jobType, tag, listViewType, assetName, scheduled, scheduleId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -306,6 +324,98 @@ public Response Get(string subscriptionId, string resour } } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningJobPatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Updates a Job. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the Job. This is case-sensitive. + /// Job definition to apply during the operation. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningJobPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, workspaceName, id, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningJobData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningJobData.DeserializeMachineLearningJobData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Updates a Job. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the Job. This is case-sensitive. + /// Job definition to apply during the operation. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningJobPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, workspaceName, id, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningJobData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningJobData.DeserializeMachineLearningJobData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningJobData data) { var message = _pipeline.CreateMessage(); @@ -477,7 +587,7 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string w } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string jobType, string tag, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string jobType, string tag, MachineLearningListViewType? listViewType, string assetName, bool? scheduled, string scheduleId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -500,17 +610,20 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Type of job to be returned. /// Jobs returned will have this tag key. /// View type for including/excluding (for example) archived entities. + /// Asset name the job's named output is registered with. + /// Indicator whether the job is scheduled job. + /// The scheduled id for listing the job triggered from. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, string assetName = null, bool? scheduled = null, string scheduleId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, jobType, tag, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, jobType, tag, listViewType, assetName, scheduled, scheduleId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -535,17 +648,20 @@ public async Task> ListNextPageAsync /// Type of job to be returned. /// Jobs returned will have this tag key. /// View type for including/excluding (for example) archived entities. + /// Asset name the job's named output is registered with. + /// Indicator whether the job is scheduled job. + /// The scheduled id for listing the job triggered from. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, string jobType = null, string tag = null, MachineLearningListViewType? listViewType = null, string assetName = null, bool? scheduled = null, string scheduleId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, jobType, tag, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, jobType, tag, listViewType, assetName, scheduled, scheduleId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs new file mode 100644 index 000000000000..46fa27c6a6fe --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs @@ -0,0 +1,708 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class LabelingJobsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of LabelingJobsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public LabelingJobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists labeling jobs in the workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Number of labeling jobs to return. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, int? top = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + LabelingJobResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = LabelingJobResourceArmPaginatedResult.DeserializeLabelingJobResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists labeling jobs in the workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Number of labeling jobs to return. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, int? top = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, skip, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + LabelingJobResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = LabelingJobResourceArmPaginatedResult.DeserializeLabelingJobResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete a labeling job. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, id); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a labeling job. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string id, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, id); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions, bool? includeLabelCategories) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (includeJobInstructions != null) + { + uri.AppendQuery("includeJobInstructions", includeJobInstructions.Value, true); + } + if (includeLabelCategories != null) + { + uri.AppendQuery("includeLabelCategories", includeLabelCategories.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a labeling job by name/id. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, id, includeJobInstructions, includeLabelCategories); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + LabelingJobData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = LabelingJobData.DeserializeLabelingJobData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((LabelingJobData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a labeling job by name/id. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// Boolean value to indicate whether to include JobInstructions in response. + /// Boolean value to indicate Whether to include LabelCategories in response. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, id, includeJobInstructions, includeLabelCategories); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + LabelingJobData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = LabelingJobData.DeserializeLabelingJobData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((LabelingJobData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, LabelingJobData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a labeling job (asynchronous). + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// LabelingJob definition object. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, LabelingJobData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, id, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a labeling job (asynchronous). + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// LabelingJob definition object. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string id, LabelingJobData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, id, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateExportLabelsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, ExportSummary body) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendPath("/exportLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Export labels from a labeling job (asynchronous). + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// The export summary. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task ExportLabelsAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, ExportSummary body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateExportLabelsRequest(subscriptionId, resourceGroupName, workspaceName, id, body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Export labels from a labeling job (asynchronous). + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// The export summary. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ExportLabels(string subscriptionId, string resourceGroupName, string workspaceName, string id, ExportSummary body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateExportLabelsRequest(subscriptionId, resourceGroupName, workspaceName, id, body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreatePauseRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendPath("/pause", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Pause a labeling job. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task PauseAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var message = CreatePauseRequest(subscriptionId, resourceGroupName, workspaceName, id); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Pause a labeling job. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Pause(string subscriptionId, string resourceGroupName, string workspaceName, string id, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var message = CreatePauseRequest(subscriptionId, resourceGroupName, workspaceName, id); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Resume a labeling job (asynchronous). + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task ResumeAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var message = CreateResumeRequest(subscriptionId, resourceGroupName, workspaceName, id); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Resume a labeling job (asynchronous). + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The name and identifier for the LabelingJob. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Resume(string subscriptionId, string resourceGroupName, string workspaceName, string id, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(id, nameof(id)); + + using var message = CreateResumeRequest(subscriptionId, resourceGroupName, workspaceName, id); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists labeling jobs in the workspace. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Number of labeling jobs to return. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, int? top = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + LabelingJobResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = LabelingJobResourceArmPaginatedResult.DeserializeLabelingJobResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists labeling jobs in the workspace. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Number of labeling jobs to return. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip = null, int? top = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, skip, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + LabelingJobResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = LabelingJobResourceArmPaginatedResult.DeserializeLabelingJobResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkProvisionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkProvisionsRestOperations.cs new file mode 100644 index 000000000000..3a8b13d1f3e9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkProvisionsRestOperations.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class ManagedNetworkProvisionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ManagedNetworkProvisionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public ManagedNetworkProvisionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateProvisionManagedNetworkRequest(string subscriptionId, string resourceGroupName, string workspaceName, ManagedNetworkProvisionContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/provisionManagedNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + if (content != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + } + _userAgent.Apply(message); + return message; + } + + /// Provisions the managed network of a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Managed Network Provisioning Options for a machine learning workspace. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task ProvisionManagedNetworkAsync(string subscriptionId, string resourceGroupName, string workspaceName, ManagedNetworkProvisionContent content = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateProvisionManagedNetworkRequest(subscriptionId, resourceGroupName, workspaceName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Provisions the managed network of a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Managed Network Provisioning Options for a machine learning workspace. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ProvisionManagedNetwork(string subscriptionId, string resourceGroupName, string workspaceName, ManagedNetworkProvisionContent content = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateProvisionManagedNetworkRequest(subscriptionId, resourceGroupName, workspaceName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs new file mode 100644 index 000000000000..9dcfd64f9293 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs @@ -0,0 +1,445 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class ManagedNetworkSettingsRuleRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ManagedNetworkSettingsRuleRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public ManagedNetworkSettingsRuleRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the managed network outbound rules for a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OutboundRuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = OutboundRuleListResult.DeserializeOutboundRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the managed network outbound rules for a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OutboundRuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = OutboundRuleListResult.DeserializeOutboundRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes an outbound rule from the managed network of a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, ruleName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes an outbound rule from the managed network of a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, ruleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets an outbound rule from the managed network of a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, ruleName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OutboundRuleBasicResourceData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((OutboundRuleBasicResourceData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets an outbound rule from the managed network of a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the workspace managed network outbound rule. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, ruleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OutboundRuleBasicResourceData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((OutboundRuleBasicResourceData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, OutboundRuleBasicResourceData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates an outbound rule in the managed network of a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the workspace managed network outbound rule. + /// Outbound Rule to be created or updated in the managed network of a machine learning workspace. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, ruleName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates an outbound rule in the managed network of a machine learning workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Name of the workspace managed network outbound rule. + /// Outbound Rule to be created or updated in the managed network of a machine learning workspace. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, ruleName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the managed network outbound rules for a machine learning workspace. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OutboundRuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = OutboundRuleListResult.DeserializeOutboundRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the managed network outbound rules for a machine learning workspace. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OutboundRuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = OutboundRuleListResult.DeserializeOutboundRuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelContainersRestOperations.cs index 70fc667300dc..1894153b7ec7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelContainersRestOperations.cs @@ -33,7 +33,7 @@ public ModelContainersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs index f564cba2f564..ebab19966f36 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs @@ -33,11 +33,11 @@ public ModelVersionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -94,6 +94,10 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro { uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -115,17 +119,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. /// Name of the feed. /// View type for including/excluding (for example) archived entities. + /// Model stage. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, skip, orderBy, top, version, description, offset, tags, properties, feed, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, skip, orderBy, top, version, description, offset, tags, properties, feed, listViewType, stage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -156,17 +161,18 @@ public async Task> ListAsync(st /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. /// Name of the feed. /// View type for including/excluding (for example) archived entities. + /// Model stage. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, skip, orderBy, top, version, description, offset, tags, properties, feed, listViewType); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, name, skip, orderBy, top, version, description, offset, tags, properties, feed, listViewType, stage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -458,7 +464,98 @@ public Response CreateOrUpdate(string subscript } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType) + internal HttpMessage CreatePackageRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PackageRequest body) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/package", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Model Version Package operation. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Package operation request body. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task PackageAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PackageRequest body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreatePackageRequest(subscriptionId, resourceGroupName, workspaceName, name, version, body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Model Version Package operation. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Package operation request body. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Package(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PackageRequest body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreatePackageRequest(subscriptionId, resourceGroupName, workspaceName, name, version, body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -488,10 +585,11 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. /// Name of the feed. /// View type for including/excluding (for example) archived entities. + /// Model stage. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -499,7 +597,7 @@ public async Task> ListNextPage Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, skip, orderBy, top, version, description, offset, tags, properties, feed, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, skip, orderBy, top, version, description, offset, tags, properties, feed, listViewType, stage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -531,10 +629,11 @@ public async Task> ListNextPage /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. /// Name of the feed. /// View type for including/excluding (for example) archived entities. + /// Model stage. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, int? offset = null, string tags = null, string properties = null, string feed = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -542,7 +641,7 @@ public Response ListNextPage(string next Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, skip, orderBy, top, version, description, offset, tags, properties, feed, listViewType); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, workspaceName, name, skip, orderBy, top, version, description, offset, tags, properties, feed, listViewType, stage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineDeploymentsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineDeploymentsRestOperations.cs index 9cb09f963161..b02db4f157e9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineDeploymentsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineDeploymentsRestOperations.cs @@ -33,7 +33,7 @@ public OnlineDeploymentsRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineEndpointsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineEndpointsRestOperations.cs index 4f1b90cb4833..1855d9af4735 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineEndpointsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineEndpointsRestOperations.cs @@ -33,7 +33,7 @@ public OnlineEndpointsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -685,7 +685,7 @@ internal HttpMessage CreateGetTokenRequest(string subscriptionId, string resourc return message; } - /// Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + /// Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. @@ -716,7 +716,7 @@ public async Task> GetTokenAsync(stri } } - /// Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + /// Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index d1092f42dc58..f4815068568a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -58,7 +58,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List all the private endpoint connections associated with the workspace. + /// Called by end-users to get all PE connections. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. @@ -87,7 +87,7 @@ public async Task> } } - /// List all the private endpoint connections associated with the workspace. + /// Called by end-users to get all PE connections. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. @@ -116,11 +116,11 @@ public Response List(string } } - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -138,77 +138,65 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Gets the specified private endpoint connection associated with the workspace. + /// Called by end-users to delete a PE connection. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// The name of the private endpoint connection associated with the workspace. + /// NRP Private Endpoint Connection Name. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - MachineLearningPrivateEndpointConnectionData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = MachineLearningPrivateEndpointConnectionData.DeserializeMachineLearningPrivateEndpointConnectionData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((MachineLearningPrivateEndpointConnectionData)null, message.Response); + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Gets the specified private endpoint connection associated with the workspace. + /// Called by end-users to delete a PE connection. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// The name of the private endpoint connection associated with the workspace. + /// NRP Private Endpoint Connection Name. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - MachineLearningPrivateEndpointConnectionData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = MachineLearningPrivateEndpointConnectionData.DeserializeMachineLearningPrivateEndpointConnectionData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((MachineLearningPrivateEndpointConnectionData)null, message.Response); + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, MachineLearningPrivateEndpointConnectionData data) + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -222,32 +210,26 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data); - request.Content = content; _userAgent.Apply(message); return message; } - /// Update the state of specified private endpoint connection associated with the workspace. + /// Called by end-users to get a PE connection. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// The name of the private endpoint connection associated with the workspace. - /// The private endpoint connection properties. + /// NRP Private Endpoint Connection Name. /// The cancellation token to use. - /// , , , or is null. + /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, MachineLearningPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName, data); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -258,29 +240,29 @@ public async Task> Create value = MachineLearningPrivateEndpointConnectionData.DeserializeMachineLearningPrivateEndpointConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((MachineLearningPrivateEndpointConnectionData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Update the state of specified private endpoint connection associated with the workspace. + /// Called by end-users to get a PE connection. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// The name of the private endpoint connection associated with the workspace. - /// The private endpoint connection properties. + /// NRP Private Endpoint Connection Name. /// The cancellation token to use. - /// , , , or is null. + /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, MachineLearningPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName, data); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -291,16 +273,18 @@ public Response CreateOrUpdate(str value = MachineLearningPrivateEndpointConnectionData.DeserializeMachineLearningPrivateEndpointConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((MachineLearningPrivateEndpointConnectionData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, MachineLearningPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -314,59 +298,81 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; _userAgent.Apply(message); return message; } - /// 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. + /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// The name of the private endpoint connection associated with the workspace. + /// NRP Private Endpoint Connection Name. + /// PrivateEndpointConnection object. /// The cancellation token to use. - /// , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, MachineLearningPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 204: - return message.Response; + { + MachineLearningPrivateEndpointConnectionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningPrivateEndpointConnectionData.DeserializeMachineLearningPrivateEndpointConnectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// 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. + /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// The name of the private endpoint connection associated with the workspace. + /// NRP Private Endpoint Connection Name. + /// PrivateEndpointConnection object. /// The cancellation token to use. - /// , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, MachineLearningPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 204: - return message.Response; + { + MachineLearningPrivateEndpointConnectionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningPrivateEndpointConnectionData.DeserializeMachineLearningPrivateEndpointConnectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index eea18a9ce778..a62b50c0eb5c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -58,7 +58,13 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// 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". + /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. @@ -87,7 +93,13 @@ public async Task> ListAs } } - /// 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". + /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/QuotasRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/QuotasRestOperations.cs index 7ac1a77e6a72..754746dbb8e2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/QuotasRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/QuotasRestOperations.cs @@ -33,7 +33,7 @@ public QuotasRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs new file mode 100644 index 000000000000..10de37f697d0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs @@ -0,0 +1,717 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistriesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistriesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistriesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List registries by subscription. + /// The ID of the target subscription. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RegistryTrackedResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RegistryTrackedResourceArmPaginatedResult.DeserializeRegistryTrackedResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List registries by subscription. + /// The ID of the target subscription. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RegistryTrackedResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RegistryTrackedResourceArmPaginatedResult.DeserializeRegistryTrackedResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List registries. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RegistryTrackedResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RegistryTrackedResourceArmPaginatedResult.DeserializeRegistryTrackedResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List registries. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RegistryTrackedResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RegistryTrackedResourceArmPaginatedResult.DeserializeRegistryTrackedResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete registry. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete registry. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get registry. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RegistryData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RegistryData.DeserializeRegistryData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((RegistryData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get registry. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RegistryData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RegistryData.DeserializeRegistryData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((RegistryData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, RegistryPatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update tags. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Details required to create the registry. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string registryName, RegistryPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, registryName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RegistryData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RegistryData.DeserializeRegistryData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update tags. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Details required to create the registry. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string registryName, RegistryPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, registryName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RegistryData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RegistryData.DeserializeRegistryData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, RegistryData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update registry. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Details required to create the registry. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, RegistryData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update registry. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Details required to create the registry. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, RegistryData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateRemoveRegionsRequest(string subscriptionId, string resourceGroupName, string registryName, RegistryData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/removeRegions", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Remove regions from registry. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Details required to create the registry. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task RemoveRegionsAsync(string subscriptionId, string resourceGroupName, string registryName, RegistryData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateRemoveRegionsRequest(subscriptionId, resourceGroupName, registryName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Remove regions from registry. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Details required to create the registry. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response RemoveRegions(string subscriptionId, string resourceGroupName, string registryName, RegistryData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateRemoveRegionsRequest(subscriptionId, resourceGroupName, registryName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List registries by subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RegistryTrackedResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RegistryTrackedResourceArmPaginatedResult.DeserializeRegistryTrackedResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List registries by subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RegistryTrackedResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RegistryTrackedResourceArmPaginatedResult.DeserializeRegistryTrackedResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List registries. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RegistryTrackedResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RegistryTrackedResourceArmPaginatedResult.DeserializeRegistryTrackedResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List registries. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RegistryTrackedResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RegistryTrackedResourceArmPaginatedResult.DeserializeRegistryTrackedResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeContainersRestOperations.cs new file mode 100644 index 000000000000..2b6ad62d16ae --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeContainersRestOperations.cs @@ -0,0 +1,453 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryCodeContainersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryCodeContainersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryCodeContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CodeContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CodeContainerResourceArmPaginatedResult.DeserializeCodeContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CodeContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CodeContainerResourceArmPaginatedResult.DeserializeCodeContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete Code container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string codeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, codeName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete Code container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string codeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, codeName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get Code container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string codeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, codeName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningCodeContainerData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningCodeContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get Code container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string codeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, codeName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningCodeContainerData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningCodeContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, MachineLearningCodeContainerData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update Code container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string codeName, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, codeName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update Code container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string codeName, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, codeName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CodeContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CodeContainerResourceArmPaginatedResult.DeserializeCodeContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CodeContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CodeContainerResourceArmPaginatedResult.DeserializeCodeContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeVersionsRestOperations.cs new file mode 100644 index 000000000000..2b64dcca6897 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeVersionsRestOperations.cs @@ -0,0 +1,596 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryCodeVersionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryCodeVersionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryCodeVersionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy, int? top, string skip) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, codeName, orderBy, top, skip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CodeVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CodeVersionResourceArmPaginatedResult.DeserializeCodeVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, codeName, orderBy, top, skip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CodeVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CodeVersionResourceArmPaginatedResult.DeserializeCodeVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, codeName, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, codeName, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, codeName, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningCodeVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningCodeVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, codeName, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningCodeVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningCodeVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, MachineLearningCodeVersionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, codeName, version, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, codeName, version, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrGetStartPendingUploadRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, PendingUploadRequestDto body) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/startPendingUpload", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Generate a storage location and credential for the client to upload a code asset to. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Pending upload name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Pending upload request object. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrGetStartPendingUploadAsync(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateCreateOrGetStartPendingUploadRequest(subscriptionId, resourceGroupName, registryName, codeName, version, body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PendingUploadResponseDto value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = PendingUploadResponseDto.DeserializePendingUploadResponseDto(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Generate a storage location and credential for the client to upload a code asset to. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Pending upload name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Pending upload request object. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrGetStartPendingUpload(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateCreateOrGetStartPendingUploadRequest(subscriptionId, resourceGroupName, registryName, codeName, version, body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PendingUploadResponseDto value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = PendingUploadResponseDto.DeserializePendingUploadResponseDto(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy, int? top, string skip) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, codeName, orderBy, top, skip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CodeVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CodeVersionResourceArmPaginatedResult.DeserializeCodeVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, codeName, orderBy, top, skip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CodeVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CodeVersionResourceArmPaginatedResult.DeserializeCodeVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentContainersRestOperations.cs new file mode 100644 index 000000000000..a86c0387f41e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentContainersRestOperations.cs @@ -0,0 +1,453 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryComponentContainersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryComponentContainersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryComponentContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ComponentContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ComponentContainerResourceArmPaginatedResult.DeserializeComponentContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ComponentContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ComponentContainerResourceArmPaginatedResult.DeserializeComponentContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string componentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, componentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string componentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, componentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string componentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, componentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningComponentContainerData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningComponentContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string componentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, componentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningComponentContainerData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningComponentContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, MachineLearningComponentContainerData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string componentName, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, componentName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string componentName, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, componentName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ComponentContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ComponentContainerResourceArmPaginatedResult.DeserializeComponentContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ComponentContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ComponentContainerResourceArmPaginatedResult.DeserializeComponentContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentVersionsRestOperations.cs new file mode 100644 index 000000000000..573a2dd67ac6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentVersionsRestOperations.cs @@ -0,0 +1,505 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryComponentVersionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryComponentVersionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryComponentVersionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy, int? top, string skip, string stage) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// Component stage. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, componentName, orderBy, top, skip, stage); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ComponentVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ComponentVersionResourceArmPaginatedResult.DeserializeComponentVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// Component stage. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, componentName, orderBy, top, skip, stage); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ComponentVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ComponentVersionResourceArmPaginatedResult.DeserializeComponentVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, componentName, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, componentName, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, componentName, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningComponentVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningComponentVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, componentName, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningComponentVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningComponentVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, MachineLearningComponentVersionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, componentName, version, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, componentName, version, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy, int? top, string skip, string stage) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// Component stage. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, componentName, orderBy, top, skip, stage); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ComponentVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ComponentVersionResourceArmPaginatedResult.DeserializeComponentVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// Component stage. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, componentName, orderBy, top, skip, stage); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ComponentVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ComponentVersionResourceArmPaginatedResult.DeserializeComponentVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataContainersRestOperations.cs new file mode 100644 index 000000000000..ddfbc3561b72 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataContainersRestOperations.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryDataContainersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryDataContainersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryDataContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List Data containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DataContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DataContainerResourceArmPaginatedResult.DeserializeDataContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List Data containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DataContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DataContainerResourceArmPaginatedResult.DeserializeDataContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningDataContainerData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningDataContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningDataContainerData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningDataContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string name, MachineLearningDataContainerData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, name, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, name, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List Data containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DataContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DataContainerResourceArmPaginatedResult.DeserializeDataContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List Data containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DataContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DataContainerResourceArmPaginatedResult.DeserializeDataContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataVersionsRestOperations.cs new file mode 100644 index 000000000000..01b7a5076827 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataVersionsRestOperations.cs @@ -0,0 +1,624 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryDataVersionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryDataVersionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryDataVersionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("$tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List data versions in the data container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Data container's name. + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + /// + /// 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 + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, name, orderBy, top, skip, tags, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DataVersionBaseResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DataVersionBaseResourceArmPaginatedResult.DeserializeDataVersionBaseResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List data versions in the data container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Data container's name. + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + /// + /// 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 + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, name, orderBy, top, skip, tags, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DataVersionBaseResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DataVersionBaseResourceArmPaginatedResult.DeserializeDataVersionBaseResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, name, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, name, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, name, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningDataVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningDataVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string name, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, name, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningDataVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningDataVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string version, MachineLearningDataVersionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string name, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, name, version, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string name, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, name, version, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrGetStartPendingUploadRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string version, PendingUploadRequestDto body) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/startPendingUpload", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Generate a storage location and credential for the client to upload a data asset to. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Data asset name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Pending upload request object. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrGetStartPendingUploadAsync(string subscriptionId, string resourceGroupName, string registryName, string name, string version, PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateCreateOrGetStartPendingUploadRequest(subscriptionId, resourceGroupName, registryName, name, version, body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PendingUploadResponseDto value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = PendingUploadResponseDto.DeserializePendingUploadResponseDto(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Generate a storage location and credential for the client to upload a data asset to. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Data asset name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Pending upload request object. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrGetStartPendingUpload(string subscriptionId, string resourceGroupName, string registryName, string name, string version, PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateCreateOrGetStartPendingUploadRequest(subscriptionId, resourceGroupName, registryName, name, version, body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PendingUploadResponseDto value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = PendingUploadResponseDto.DeserializePendingUploadResponseDto(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List data versions in the data container. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Data container's name. + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + /// + /// 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 + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, name, orderBy, top, skip, tags, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DataVersionBaseResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DataVersionBaseResourceArmPaginatedResult.DeserializeDataVersionBaseResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List data versions in the data container. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Data container's name. + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + /// + /// 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 + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, name, orderBy, top, skip, tags, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DataVersionBaseResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DataVersionBaseResourceArmPaginatedResult.DeserializeDataVersionBaseResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentContainersRestOperations.cs new file mode 100644 index 000000000000..39f40c62ebfd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentContainersRestOperations.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryEnvironmentContainersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryEnvironmentContainersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryEnvironmentContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List environment containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EnvironmentContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EnvironmentContainerResourceArmPaginatedResult.DeserializeEnvironmentContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List environment containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EnvironmentContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EnvironmentContainerResourceArmPaginatedResult.DeserializeEnvironmentContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string environmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, environmentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string environmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, environmentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string environmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, environmentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningEnvironmentContainerData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningEnvironmentContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string environmentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, environmentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningEnvironmentContainerData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningEnvironmentContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, MachineLearningEnvironmentContainerData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string environmentName, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, environmentName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string environmentName, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, environmentName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List environment containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EnvironmentContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EnvironmentContainerResourceArmPaginatedResult.DeserializeEnvironmentContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List environment containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EnvironmentContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EnvironmentContainerResourceArmPaginatedResult.DeserializeEnvironmentContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentVersionsRestOperations.cs new file mode 100644 index 000000000000..6f7995269aa0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentVersionsRestOperations.cs @@ -0,0 +1,513 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryEnvironmentVersionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryEnvironmentVersionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryEnvironmentVersionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, environmentName, orderBy, top, skip, listViewType, stage); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EnvironmentVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EnvironmentVersionResourceArmPaginatedResult.DeserializeEnvironmentVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, environmentName, orderBy, top, skip, listViewType, stage); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EnvironmentVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EnvironmentVersionResourceArmPaginatedResult.DeserializeEnvironmentVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, environmentName, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, environmentName, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, environmentName, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningEnvironmentVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningEnvironmentVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, environmentName, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningEnvironmentVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningEnvironmentVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, MachineLearningEnvironmentVersionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, environmentName, version, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, environmentName, version, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, environmentName, orderBy, top, skip, listViewType, stage); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EnvironmentVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EnvironmentVersionResourceArmPaginatedResult.DeserializeEnvironmentVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, environmentName, orderBy, top, skip, listViewType, stage); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EnvironmentVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EnvironmentVersionResourceArmPaginatedResult.DeserializeEnvironmentVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelContainersRestOperations.cs new file mode 100644 index 000000000000..ae45fa2925e6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelContainersRestOperations.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryModelContainersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryModelContainersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryModelContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List model containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ModelContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ModelContainerResourceArmPaginatedResult.DeserializeModelContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List model containers. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, skip, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ModelContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ModelContainerResourceArmPaginatedResult.DeserializeModelContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, modelName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string modelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, modelName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, modelName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningModelContainerData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningModelContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string modelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, modelName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningModelContainerData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningModelContainerData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, MachineLearningModelContainerData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update model container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, modelName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update model container. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Container entity to create or update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string modelName, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, modelName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List model containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ModelContainerResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ModelContainerResourceArmPaginatedResult.DeserializeModelContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List model containers. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, skip, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ModelContainerResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ModelContainerResourceArmPaginatedResult.DeserializeModelContainerResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs new file mode 100644 index 000000000000..2e58d37f40c0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs @@ -0,0 +1,727 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal partial class RegistryModelVersionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of RegistryModelVersionsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public RegistryModelVersionsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-06-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip, string orderBy, int? top, string version, string description, string tags, string properties, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (version != null) + { + uri.AppendQuery("version", version, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (properties != null) + { + uri.AppendQuery("properties", properties, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Continuation token for pagination. + /// Ordering of list. + /// Maximum number of records to return. + /// Version identifier. + /// Model description. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, string tags = null, string properties = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, modelName, skip, orderBy, top, version, description, tags, properties, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ModelVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ModelVersionResourceArmPaginatedResult.DeserializeModelVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Continuation token for pagination. + /// Ordering of list. + /// Maximum number of records to return. + /// Version identifier. + /// Model description. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, string tags = null, string properties = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, registryName, modelName, skip, orderBy, top, version, description, tags, properties, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ModelVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ModelVersionResourceArmPaginatedResult.DeserializeModelVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, modelName, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, registryName, modelName, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, modelName, version); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MachineLearningModelVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningModelVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, registryName, modelName, version); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MachineLearningModelVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningModelVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, MachineLearningModelVersionData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, modelName, version, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update version. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, registryName, modelName, version, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreatePackageRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PackageRequest body) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/package", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Model Version Package operation. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Package operation request body. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task PackageAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PackageRequest body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreatePackageRequest(subscriptionId, resourceGroupName, registryName, modelName, version, body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Model Version Package operation. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Package operation request body. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Package(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PackageRequest body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreatePackageRequest(subscriptionId, resourceGroupName, registryName, modelName, version, body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrGetStartPendingUploadRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PendingUploadRequestDto body) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/startPendingUpload", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Generate a storage location and credential for the client to upload a model asset to. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Model name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Pending upload request object. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrGetStartPendingUploadAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateCreateOrGetStartPendingUploadRequest(subscriptionId, resourceGroupName, registryName, modelName, version, body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PendingUploadResponseDto value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = PendingUploadResponseDto.DeserializePendingUploadResponseDto(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Generate a storage location and credential for the client to upload a model asset to. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Model name. This is case-sensitive. + /// Version identifier. This is case-sensitive. + /// Pending upload request object. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response CreateOrGetStartPendingUpload(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateCreateOrGetStartPendingUploadRequest(subscriptionId, resourceGroupName, registryName, modelName, version, body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PendingUploadResponseDto value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = PendingUploadResponseDto.DeserializePendingUploadResponseDto(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip, string orderBy, int? top, string version, string description, string tags, string properties, MachineLearningListViewType? listViewType) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Continuation token for pagination. + /// Ordering of list. + /// Maximum number of records to return. + /// Version identifier. + /// Model description. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, string tags = null, string properties = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, modelName, skip, orderBy, top, version, description, tags, properties, listViewType); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ModelVersionResourceArmPaginatedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ModelVersionResourceArmPaginatedResult.DeserializeModelVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List versions. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Container name. This is case-sensitive. + /// Continuation token for pagination. + /// Ordering of list. + /// Maximum number of records to return. + /// Version identifier. + /// Model description. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip = null, string orderBy = null, int? top = null, string version = null, string description = null, string tags = null, string properties = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); + Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, registryName, modelName, skip, orderBy, top, version, description, tags, properties, listViewType); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ModelVersionResourceArmPaginatedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ModelVersionResourceArmPaginatedResult.DeserializeModelVersionResourceArmPaginatedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/SchedulesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/SchedulesRestOperations.cs index 87a7f92ac68e..eaf4e35b1b13 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/SchedulesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/SchedulesRestOperations.cs @@ -33,7 +33,7 @@ public SchedulesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/UsagesRestOperations.cs index c557fbf54806..8a6933333d85 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/UsagesRestOperations.cs @@ -33,7 +33,7 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs index f9280ac62241..944e0169bc87 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineSizesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceConnectionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceConnectionsRestOperations.cs index 277e1192912f..b867f83c85de 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceConnectionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceConnectionsRestOperations.cs @@ -33,15 +33,15 @@ public WorkspaceConnectionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionData data) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string target, string category) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -50,44 +50,46 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); - uri.AppendPath("/connections/", false); - uri.AppendPath(connectionName, true); + uri.AppendPath("/connections", false); + if (target != null) + { + uri.AppendQuery("target", target, true); + } + if (category != null) + { + uri.AppendQuery("category", category, true); + } uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data); - request.Content = content; _userAgent.Apply(message); return message; } + /// Lists all the available machine learning workspaces connections under the specified workspace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// Friendly name of the workspace connection. - /// The object for creating or updating a new workspace connection. + /// Target of the workspace connection. + /// Category of the workspace connection. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionData data, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string target = null, string category = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, workspaceName, connectionName, data); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, target, category); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - MachineLearningWorkspaceConnectionData value = default; + WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = MachineLearningWorkspaceConnectionData.DeserializeMachineLearningWorkspaceConnectionData(document.RootElement); + value = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.DeserializeWorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -95,31 +97,30 @@ public async Task> CreateAsync( } } + /// Lists all the available machine learning workspaces connections under the specified workspace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// Friendly name of the workspace connection. - /// The object for creating or updating a new workspace connection. + /// Target of the workspace connection. + /// Category of the workspace connection. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionData data, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string target = null, string category = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, workspaceName, connectionName, data); + using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, target, category); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - MachineLearningWorkspaceConnectionData value = default; + WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = MachineLearningWorkspaceConnectionData.DeserializeMachineLearningWorkspaceConnectionData(document.RootElement); + value = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.DeserializeWorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -127,6 +128,82 @@ public Response Create(string subscripti } } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete machine learning workspaces connections by name. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Friendly name of the workspace connection. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, connectionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete machine learning workspaces connections by name. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Friendly name of the workspace connection. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, connectionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -149,6 +226,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } + /// Lists machine learning workspaces connections by name. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. @@ -181,6 +259,7 @@ public async Task> GetAsync(str } } + /// Lists machine learning workspaces connections by name. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. @@ -213,11 +292,11 @@ public Response Get(string subscriptionI } } - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -231,67 +310,85 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch); + request.Content = content; _userAgent.Apply(message); return message; } + /// Update machine learning workspaces connections under the specified workspace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// Friendly name of the workspace connection. + /// Parameters for workspace connection update. /// The cancellation token to use. - /// , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, connectionName); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, workspaceName, connectionName, patch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 204: - return message.Response; + { + MachineLearningWorkspaceConnectionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningWorkspaceConnectionData.DeserializeMachineLearningWorkspaceConnectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } + /// Update machine learning workspaces connections under the specified workspace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// Friendly name of the workspace connection. + /// Parameters for workspace connection update. /// The cancellation token to use. - /// , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, connectionName); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, workspaceName, connectionName, patch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 204: - return message.Response; + { + MachineLearningWorkspaceConnectionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningWorkspaceConnectionData.DeserializeMachineLearningWorkspaceConnectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string target, string category) + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -300,15 +397,101 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); - uri.AppendPath("/connections", false); - if (target != null) + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update machine learning workspaces connections under the specified workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Friendly name of the workspace connection. + /// The object for creating or updating a new workspace connection. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, workspaceName, connectionName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) { - uri.AppendQuery("target", target, true); + case 200: + { + MachineLearningWorkspaceConnectionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningWorkspaceConnectionData.DeserializeMachineLearningWorkspaceConnectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); } - if (category != null) + } + + /// Create or update machine learning workspaces connections under the specified workspace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of Azure Machine Learning workspace. + /// Friendly name of the workspace connection. + /// The object for creating or updating a new workspace connection. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Create(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, workspaceName, connectionName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) { - uri.AppendQuery("category", category, true); + case 200: + { + MachineLearningWorkspaceConnectionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningWorkspaceConnectionData.DeserializeMachineLearningWorkspaceConnectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); } + } + + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/listsecrets", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -316,29 +499,30 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } + /// List all the secrets of a machine learning workspaces connections. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// Target of the workspace connection. - /// Category of the workspace connection. + /// Friendly name of the workspace connection. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string workspaceName, string target = null, string category = null, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListSecretsAsync(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, target, category); + using var message = CreateListSecretsRequest(subscriptionId, resourceGroupName, workspaceName, connectionName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult value = default; + MachineLearningWorkspaceConnectionData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.DeserializeWorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult(document.RootElement); + value = MachineLearningWorkspaceConnectionData.DeserializeMachineLearningWorkspaceConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -346,29 +530,30 @@ public async Task List all the secrets of a machine learning workspaces connections. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// Target of the workspace connection. - /// Category of the workspace connection. + /// Friendly name of the workspace connection. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string workspaceName, string target = null, string category = null, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListSecrets(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, workspaceName, target, category); + using var message = CreateListSecretsRequest(subscriptionId, resourceGroupName, workspaceName, connectionName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult value = default; + MachineLearningWorkspaceConnectionData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.DeserializeWorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult(document.RootElement); + value = MachineLearningWorkspaceConnectionData.DeserializeMachineLearningWorkspaceConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -390,6 +575,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } + /// Lists all the available machine learning workspaces connections under the specified workspace. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -422,6 +608,7 @@ public async Task Lists all the available machine learning workspaces connections under the specified workspace. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceFeaturesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceFeaturesRestOperations.cs index 9a2b88202293..4cdec98dd621 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceFeaturesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceFeaturesRestOperations.cs @@ -33,7 +33,7 @@ public WorkspaceFeaturesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspacesRestOperations.cs index 24d772523a6c..d62e672e023d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -33,11 +33,90 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-06-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string skip, string kind) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (kind != null) + { + uri.AppendQuery("kind", kind, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the available machine learning workspaces under the specified subscription. + /// The ID of the target subscription. + /// Continuation token for pagination. + /// Kind of workspace. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionAsync(string subscriptionId, string skip = null, string kind = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId, skip, kind); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + WorkspaceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkspaceListResult.DeserializeWorkspaceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the available machine learning workspaces under the specified subscription. + /// The ID of the target subscription. + /// Continuation token for pagination. + /// Kind of workspace. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscription(string subscriptionId, string skip = null, string kind = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId, skip, kind); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + WorkspaceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkspaceListResult.DeserializeWorkspaceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string skip, string kind) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -48,82 +127,85 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou uri.AppendPath(subscriptionId, true); uri.AppendPath("/resourceGroups/", false); uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); - uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces", false); uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (kind != null) + { + uri.AppendQuery("kind", kind, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); return message; } - /// Gets the properties of the specified machine learning workspace. + /// Lists all the available machine learning workspaces under the specified resource group. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Kind of workspace. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, string skip = null, string kind = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, skip, kind); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - MachineLearningWorkspaceData value = default; + WorkspaceListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(document.RootElement); + value = WorkspaceListResult.DeserializeWorkspaceListResult(document.RootElement); return Response.FromValue(value, message.Response); } - case 404: - return Response.FromValue((MachineLearningWorkspaceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Gets the properties of the specified machine learning workspace. + /// Lists all the available machine learning workspaces under the specified resource group. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of Azure Machine Learning workspace. + /// Continuation token for pagination. + /// Kind of workspace. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, string skip = null, string kind = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, skip, kind); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - MachineLearningWorkspaceData value = default; + WorkspaceListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(document.RootElement); + value = WorkspaceListResult.DeserializeWorkspaceListResult(document.RootElement); return Response.FromValue(value, message.Response); } - case 404: - return Response.FromValue((MachineLearningWorkspaceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceData data) + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, bool? forceToPurge) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -133,75 +215,75 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); uri.AppendQuery("api-version", _apiVersion, true); + if (forceToPurge != null) + { + uri.AppendQuery("forceToPurge", forceToPurge.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data); - request.Content = content; _userAgent.Apply(message); return message; } - /// Creates or updates a workspace with the specified parameters. + /// Deletes a machine learning workspace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// The parameters for creating or updating a machine learning workspace. + /// Flag to indicate delete is a purge request. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceData data, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, bool? forceToPurge = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, data); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, forceToPurge); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: case 202: + case 204: return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Creates or updates a workspace with the specified parameters. + /// Deletes a machine learning workspace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. - /// The parameters for creating or updating a machine learning workspace. + /// Flag to indicate delete is a purge request. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceData data, CancellationToken cancellationToken = default) + public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, bool? forceToPurge = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, data); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName, forceToPurge); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: case 202: + case 204: return message.Response; default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -217,53 +299,63 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Deletes a machine learning workspace. + /// Gets the properties of the specified machine learning workspace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - case 204: - return message.Response; + { + MachineLearningWorkspaceData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningWorkspaceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Deletes a machine learning workspace. + /// Gets the properties of the specified machine learning workspace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, workspaceName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - case 204: - return message.Response; + { + MachineLearningWorkspaceData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MachineLearningWorkspaceData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -347,80 +439,79 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string skip) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); uri.AppendPath("/resourceGroups/", false); uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces", false); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); uri.AppendQuery("api-version", _apiVersion, true); - if (skip != null) - { - uri.AppendQuery("$skip", skip, true); - } request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; _userAgent.Apply(message); return message; } - /// Lists all the available machine learning workspaces under the specified resource group. + /// Creates or updates a workspace with the specified parameters. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Continuation token for pagination. + /// Name of Azure Machine Learning workspace. + /// The parameters for creating or updating a machine learning workspace. /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, string skip = null, CancellationToken cancellationToken = default) + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, skip); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - WorkspaceListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkspaceListResult.DeserializeWorkspaceListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Lists all the available machine learning workspaces under the specified resource group. + /// Creates or updates a workspace with the specified parameters. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Continuation token for pagination. + /// Name of Azure Machine Learning workspace. + /// The parameters for creating or updating a machine learning workspace. /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, string skip = null, CancellationToken cancellationToken = default) + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, skip); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, workspaceName, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - WorkspaceListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkspaceListResult.DeserializeWorkspaceListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } @@ -585,7 +676,7 @@ public Response ListKeys(string subscript } } - internal HttpMessage CreateResyncKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) + internal HttpMessage CreateListNotebookAccessTokenRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -598,7 +689,7 @@ internal HttpMessage CreateResyncKeysRequest(string subscriptionId, string resou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); - uri.AppendPath("/resyncKeys", false); + uri.AppendPath("/listNotebookAccessToken", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -606,122 +697,57 @@ internal HttpMessage CreateResyncKeysRequest(string subscriptionId, string resou return message; } - /// 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. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task ResyncKeysAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task> ListNotebookAccessTokenAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateResyncKeysRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListNotebookAccessTokenRequest(subscriptionId, resourceGroupName, workspaceName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + MachineLearningWorkspaceNotebookAccessTokenResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningWorkspaceNotebookAccessTokenResult.DeserializeMachineLearningWorkspaceNotebookAccessTokenResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// 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. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ResyncKeys(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response ListNotebookAccessToken(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateResyncKeysRequest(subscriptionId, resourceGroupName, workspaceName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string skip) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (skip != null) - { - uri.AppendQuery("$skip", skip, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Lists all the available machine learning workspaces under the specified subscription. - /// The ID of the target subscription. - /// Continuation token for pagination. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, string skip = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListBySubscriptionRequest(subscriptionId, skip); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - WorkspaceListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkspaceListResult.DeserializeWorkspaceListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Lists all the available machine learning workspaces under the specified subscription. - /// The ID of the target subscription. - /// Continuation token for pagination. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, string skip = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListBySubscriptionRequest(subscriptionId, skip); + using var message = CreateListNotebookAccessTokenRequest(subscriptionId, resourceGroupName, workspaceName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkspaceListResult value = default; + MachineLearningWorkspaceNotebookAccessTokenResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkspaceListResult.DeserializeWorkspaceListResult(document.RootElement); + value = MachineLearningWorkspaceNotebookAccessTokenResult.DeserializeMachineLearningWorkspaceNotebookAccessTokenResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -729,7 +755,7 @@ public Response ListBySubscription(string subscriptionId, s } } - internal HttpMessage CreateListNotebookAccessTokenRequest(string subscriptionId, string resourceGroupName, string workspaceName) + internal HttpMessage CreateListNotebookKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -742,7 +768,7 @@ internal HttpMessage CreateListNotebookAccessTokenRequest(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); - uri.AppendPath("/listNotebookAccessToken", false); + uri.AppendPath("/listNotebookKeys", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -750,28 +776,28 @@ internal HttpMessage CreateListNotebookAccessTokenRequest(string subscriptionId, return message; } - /// return notebook access token and refresh token. + /// Lists keys of Azure Machine Learning Workspaces notebook. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNotebookAccessTokenAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task> ListNotebookKeysAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListNotebookAccessTokenRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListNotebookKeysRequest(subscriptionId, resourceGroupName, workspaceName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - MachineLearningWorkspaceNotebookAccessTokenResult value = default; + MachineLearningWorkspaceGetNotebookKeysResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = MachineLearningWorkspaceNotebookAccessTokenResult.DeserializeMachineLearningWorkspaceNotebookAccessTokenResult(document.RootElement); + value = MachineLearningWorkspaceGetNotebookKeysResult.DeserializeMachineLearningWorkspaceGetNotebookKeysResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -779,28 +805,28 @@ public async Task> L } } - /// return notebook access token and refresh token. + /// Lists keys of Azure Machine Learning Workspaces notebook. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNotebookAccessToken(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response ListNotebookKeys(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListNotebookAccessTokenRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListNotebookKeysRequest(subscriptionId, resourceGroupName, workspaceName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - MachineLearningWorkspaceNotebookAccessTokenResult value = default; + MachineLearningWorkspaceGetNotebookKeysResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = MachineLearningWorkspaceNotebookAccessTokenResult.DeserializeMachineLearningWorkspaceNotebookAccessTokenResult(document.RootElement); + value = MachineLearningWorkspaceGetNotebookKeysResult.DeserializeMachineLearningWorkspaceGetNotebookKeysResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -808,7 +834,7 @@ public Response ListNotebookA } } - internal HttpMessage CreatePrepareNotebookRequest(string subscriptionId, string resourceGroupName, string workspaceName) + internal HttpMessage CreateListStorageAccountKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -821,7 +847,7 @@ internal HttpMessage CreatePrepareNotebookRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); - uri.AppendPath("/prepareNotebook", false); + uri.AppendPath("/listStorageAccountKeys", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -829,61 +855,69 @@ internal HttpMessage CreatePrepareNotebookRequest(string subscriptionId, string return message; } - /// Prepare a notebook. + /// Lists keys of Azure Machine Learning Workspace's storage account. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task PrepareNotebookAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task> ListStorageAccountKeysAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreatePrepareNotebookRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListStorageAccountKeysRequest(subscriptionId, resourceGroupName, workspaceName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + MachineLearningWorkspaceGetStorageAccountKeysResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MachineLearningWorkspaceGetStorageAccountKeysResult.DeserializeMachineLearningWorkspaceGetStorageAccountKeysResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Prepare a notebook. + /// Lists keys of Azure Machine Learning Workspace's storage account. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response PrepareNotebook(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response ListStorageAccountKeys(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreatePrepareNotebookRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListStorageAccountKeysRequest(subscriptionId, resourceGroupName, workspaceName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + MachineLearningWorkspaceGetStorageAccountKeysResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MachineLearningWorkspaceGetStorageAccountKeysResult.DeserializeMachineLearningWorkspaceGetStorageAccountKeysResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateListStorageAccountKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Post; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -892,7 +926,7 @@ internal HttpMessage CreateListStorageAccountKeysRequest(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); - uri.AppendPath("/listStorageAccountKeys", false); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -900,28 +934,28 @@ internal HttpMessage CreateListStorageAccountKeysRequest(string subscriptionId, return message; } - /// List storage account keys of a workspace. + /// Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListStorageAccountKeysAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task> ListOutboundNetworkDependenciesEndpointsAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListStorageAccountKeysRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListOutboundNetworkDependenciesEndpointsRequest(subscriptionId, resourceGroupName, workspaceName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - MachineLearningWorkspaceGetStorageAccountKeysResult value = default; + ExternalFqdnResponse value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = MachineLearningWorkspaceGetStorageAccountKeysResult.DeserializeMachineLearningWorkspaceGetStorageAccountKeysResult(document.RootElement); + value = ExternalFqdnResponse.DeserializeExternalFqdnResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -929,28 +963,28 @@ public async Task> } } - /// List storage account keys of a workspace. + /// Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListStorageAccountKeys(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response ListOutboundNetworkDependenciesEndpoints(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListStorageAccountKeysRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateListOutboundNetworkDependenciesEndpointsRequest(subscriptionId, resourceGroupName, workspaceName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - MachineLearningWorkspaceGetStorageAccountKeysResult value = default; + ExternalFqdnResponse value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = MachineLearningWorkspaceGetStorageAccountKeysResult.DeserializeMachineLearningWorkspaceGetStorageAccountKeysResult(document.RootElement); + value = ExternalFqdnResponse.DeserializeExternalFqdnResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -958,7 +992,7 @@ public Response ListStorage } } - internal HttpMessage CreateListNotebookKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) + internal HttpMessage CreatePrepareNotebookRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -971,7 +1005,7 @@ internal HttpMessage CreateListNotebookKeysRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); - uri.AppendPath("/listNotebookKeys", false); + uri.AppendPath("/prepareNotebook", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -979,69 +1013,61 @@ internal HttpMessage CreateListNotebookKeysRequest(string subscriptionId, string return message; } - /// List keys of a notebook. + /// Prepare Azure Machine Learning Workspace's notebook resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNotebookKeysAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task PrepareNotebookAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListNotebookKeysRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreatePrepareNotebookRequest(subscriptionId, resourceGroupName, workspaceName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - MachineLearningWorkspaceGetNotebookKeysResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = MachineLearningWorkspaceGetNotebookKeysResult.DeserializeMachineLearningWorkspaceGetNotebookKeysResult(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// List keys of a notebook. + /// Prepare Azure Machine Learning Workspace's notebook resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNotebookKeys(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response PrepareNotebook(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListNotebookKeysRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreatePrepareNotebookRequest(subscriptionId, resourceGroupName, workspaceName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - MachineLearningWorkspaceGetNotebookKeysResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = MachineLearningWorkspaceGetNotebookKeysResult.DeserializeMachineLearningWorkspaceGetNotebookKeysResult(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string workspaceName) + internal HttpMessage CreateResyncKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -1050,7 +1076,7 @@ internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(strin uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); uri.AppendPath(workspaceName, true); - uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendPath("/resyncKeys", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1058,65 +1084,57 @@ internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(strin return message; } - /// 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. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListOutboundNetworkDependenciesEndpointsAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task ResyncKeysAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListOutboundNetworkDependenciesEndpointsRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateResyncKeysRequest(subscriptionId, resourceGroupName, workspaceName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - ExternalFqdnResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ExternalFqdnResponse.DeserializeExternalFqdnResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// 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. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of Azure Machine Learning workspace. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListOutboundNetworkDependenciesEndpoints(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response ResyncKeys(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - using var message = CreateListOutboundNetworkDependenciesEndpointsRequest(subscriptionId, resourceGroupName, workspaceName); + using var message = CreateResyncKeysRequest(subscriptionId, resourceGroupName, workspaceName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - ExternalFqdnResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ExternalFqdnResponse.DeserializeExternalFqdnResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skip) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string skip, string kind) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1130,21 +1148,20 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s return message; } - /// Lists all the available machine learning workspaces under the specified resource group. + /// Lists all the available machine learning workspaces under the specified subscription. /// The URL to the next page of results. /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. /// Continuation token for pagination. + /// Kind of workspace. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string skip = null, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, string skip = null, string kind = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, skip); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, skip, kind); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1160,21 +1177,20 @@ public async Task> ListByResourceGroupNextPageAsyn } } - /// Lists all the available machine learning workspaces under the specified resource group. + /// Lists all the available machine learning workspaces under the specified subscription. /// The URL to the next page of results. /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. /// Continuation token for pagination. + /// Kind of workspace. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, string skip = null, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, string skip = null, string kind = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, skip); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, skip, kind); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1190,7 +1206,7 @@ public Response ListByResourceGroupNextPage(string nextLink } } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string skip) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skip, string kind) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1204,19 +1220,22 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st return message; } - /// Lists all the available machine learning workspaces under the specified subscription. + /// Lists all the available machine learning workspaces under the specified resource group. /// The URL to the next page of results. /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// Continuation token for pagination. + /// Kind of workspace. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, string skip = null, CancellationToken cancellationToken = default) + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string skip = null, string kind = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, skip); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, skip, kind); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1232,19 +1251,22 @@ public async Task> ListBySubscriptionNextPageAsync } } - /// Lists all the available machine learning workspaces under the specified subscription. + /// Lists all the available machine learning workspaces under the specified resource group. /// The URL to the next page of results. /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// Continuation token for pagination. + /// Kind of workspace. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, string skip = null, CancellationToken cancellationToken = default) + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, string skip = null, string kind = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, skip); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, skip, kind); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeCollection.cs index 22fa214ac73d..8007aa9c96b0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningCodeContainers method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceCodes method from an instance of . /// - public partial class MachineLearningCodeContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceCodeCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningCodeContainerCodeContainersClientDiagnostics; - private readonly CodeContainersRestOperations _machineLearningCodeContainerCodeContainersRestClient; + private readonly ClientDiagnostics _workspaceCodeCodeContainersClientDiagnostics; + private readonly CodeContainersRestOperations _workspaceCodeCodeContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningCodeContainerCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceCodeCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningCodeContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceCodeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningCodeContainerCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningCodeContainerResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningCodeContainerResource.ResourceType, out string machineLearningCodeContainerCodeContainersApiVersion); - _machineLearningCodeContainerCodeContainersRestClient = new CodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningCodeContainerCodeContainersApiVersion); + _workspaceCodeCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceCodeResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceCodeResource.ResourceType, out string workspaceCodeCodeContainersApiVersion); + _workspaceCodeCodeContainersRestClient = new CodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceCodeCodeContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.CreateOrUpdate"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceCodeCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> Cr /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.CreateOrUpdate"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceCodeCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.Get"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.Get"); scope.Start(); try { - var response = await _machineLearningCodeContainerCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceCodeCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.Get"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.Get"); scope.Start(); try { - var response = _machineLearningCodeContainerCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _workspaceCodeCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -224,12 +224,12 @@ public virtual Response Get(string name, C /// /// Continuation token for pagination. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningCodeContainerCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningCodeContainerCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningCodeContainerResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _machineLearningCodeContainerCodeContainersClientDiagnostics, Pipeline, "MachineLearningCodeContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceCodeCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceCodeCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceCodeResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _workspaceCodeCodeContainersClientDiagnostics, Pipeline, "WorkspaceCodeCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -247,12 +247,12 @@ public virtual AsyncPageable GetAllAsync(s /// /// Continuation token for pagination. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningCodeContainerCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningCodeContainerCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningCodeContainerResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _machineLearningCodeContainerCodeContainersClientDiagnostics, Pipeline, "MachineLearningCodeContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceCodeCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceCodeCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceCodeResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _workspaceCodeCodeContainersClientDiagnostics, Pipeline, "WorkspaceCodeCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -276,11 +276,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.Exists"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.Exists"); scope.Start(); try { - var response = await _machineLearningCodeContainerCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceCodeCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -311,11 +311,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.Exists"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.Exists"); scope.Start(); try { - var response = _machineLearningCodeContainerCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _workspaceCodeCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -325,7 +325,7 @@ public virtual Response Exists(string name, CancellationToken cancellation } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -335,7 +335,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeResource.cs index e6bb135fbd4a..f81ef37063e5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningCodeContainer along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningCodeContainerResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningCodeContainer method. + /// A Class representing a WorkspaceCode along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceCodeResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceCode method. /// - public partial class MachineLearningCodeContainerResource : ArmResource + public partial class WorkspaceCodeResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningCodeContainerCodeContainersClientDiagnostics; - private readonly CodeContainersRestOperations _machineLearningCodeContainerCodeContainersRestClient; + private readonly ClientDiagnostics _workspaceCodeCodeContainersClientDiagnostics; + private readonly CodeContainersRestOperations _workspaceCodeCodeContainersRestClient; private readonly MachineLearningCodeContainerData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningCodeContainerResource() + /// Initializes a new instance of the class for mocking. + protected WorkspaceCodeResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningCodeContainerResource(ArmClient client, MachineLearningCodeContainerData data) : this(client, data.Id) + internal WorkspaceCodeResource(ArmClient client, MachineLearningCodeContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningCodeContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceCodeResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningCodeContainerCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningCodeContainerCodeContainersApiVersion); - _machineLearningCodeContainerCodeContainersRestClient = new CodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningCodeContainerCodeContainersApiVersion); + _workspaceCodeCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceCodeCodeContainersApiVersion); + _workspaceCodeCodeContainersRestClient = new CodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceCodeCodeContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of MachineLearningCodeVersionResources in the MachineLearningCodeContainer. - /// An object representing collection of MachineLearningCodeVersionResources and their operations over a MachineLearningCodeVersionResource. - public virtual MachineLearningCodeVersionCollection GetMachineLearningCodeVersions() + /// Gets a collection of WorkspaceCodeVersionResources in the WorkspaceCode. + /// An object representing collection of WorkspaceCodeVersionResources and their operations over a WorkspaceCodeVersionResource. + public virtual WorkspaceCodeVersionCollection GetWorkspaceCodeVersions() { - return GetCachedClient(Client => new MachineLearningCodeVersionCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceCodeVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual MachineLearningCodeVersionCollection GetMachineLearningCodeVersio /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningCodeVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceCodeVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetMachineLearningCodeVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceCodeVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetMachi /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningCodeVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceCodeVersion(string version, CancellationToken cancellationToken = default) { - return GetMachineLearningCodeVersions().Get(version, cancellationToken); + return GetWorkspaceCodeVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetMachineLearningCo /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Get"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Get"); scope.Start(); try { - var response = await _machineLearningCodeContainerCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceCodeCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsy /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Get"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Get"); scope.Start(); try { - var response = _machineLearningCodeContainerCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceCodeCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(CancellationTo /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Delete"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Delete"); scope.Start(); try { - var response = await _machineLearningCodeContainerCodeContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceCodeCodeContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Delete"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Delete"); scope.Start(); try { - var response = _machineLearningCodeContainerCodeContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceCodeCodeContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Update"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Update"); scope.Start(); try { - var response = await _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceCodeCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> Up /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Update"); + using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Update"); scope.Start(); try { - var response = _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceCodeCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionCollection.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionCollection.cs index f361e6e9d59b..c0bd94e49e3c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningCodeVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceCodeVersions method from an instance of . /// - public partial class MachineLearningCodeVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceCodeVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningCodeVersionCodeVersionsClientDiagnostics; - private readonly CodeVersionsRestOperations _machineLearningCodeVersionCodeVersionsRestClient; + private readonly ClientDiagnostics _workspaceCodeVersionCodeVersionsClientDiagnostics; + private readonly CodeVersionsRestOperations _workspaceCodeVersionCodeVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningCodeVersionCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceCodeVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningCodeVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceCodeVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningCodeVersionCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningCodeVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningCodeVersionResource.ResourceType, out string machineLearningCodeVersionCodeVersionsApiVersion); - _machineLearningCodeVersionCodeVersionsRestClient = new CodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningCodeVersionCodeVersionsApiVersion); + _workspaceCodeVersionCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceCodeVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceCodeVersionResource.ResourceType, out string workspaceCodeVersionCodeVersionsApiVersion); + _workspaceCodeVersionCodeVersionsRestClient = new CodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceCodeVersionCodeVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -49,8 +49,8 @@ internal MachineLearningCodeVersionCollection(ArmClient client, ResourceIdentifi internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != MachineLearningCodeContainerResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningCodeContainerResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkspaceCodeResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceCodeResource.ResourceType), nameof(id)); } /// @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.CreateOrUpdate"); + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); + var response = await _workspaceCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> Crea /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.CreateOrUpdate"); + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); + var response = _workspaceCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(W /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.Get"); + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.Get"); scope.Start(); try { - var response = await _machineLearningCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _workspaceCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.Get"); + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.Get"); scope.Start(); try { - var response = _machineLearningCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _workspaceCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,13 +225,15 @@ public virtual Response Get(string version, /// Ordering of list. /// Maximum number of records to return. /// Continuation token for pagination. + /// If specified, return CodeVersion assets with specified content hash value, regardless of name. + /// Hash algorithm version when listing by hash. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningCodeVersionCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningCodeVersionCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _machineLearningCodeVersionCodeVersionsClientDiagnostics, Pipeline, "MachineLearningCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceCodeVersionCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceCodeVersionCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _workspaceCodeVersionCodeVersionsClientDiagnostics, Pipeline, "WorkspaceCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,13 +252,15 @@ public virtual AsyncPageable GetAllAsync(str /// Ordering of list. /// Maximum number of records to return. /// Continuation token for pagination. + /// If specified, return CodeVersion assets with specified content hash value, regardless of name. + /// Hash algorithm version when listing by hash. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningCodeVersionCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningCodeVersionCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _machineLearningCodeVersionCodeVersionsClientDiagnostics, Pipeline, "MachineLearningCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceCodeVersionCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceCodeVersionCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _workspaceCodeVersionCodeVersionsClientDiagnostics, Pipeline, "WorkspaceCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -280,11 +284,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.Exists"); + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.Exists"); scope.Start(); try { - var response = await _machineLearningCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -315,11 +319,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.Exists"); + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.Exists"); scope.Start(); try { - var response = _machineLearningCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _workspaceCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -329,7 +333,7 @@ public virtual Response Exists(string version, CancellationToken cancellat } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -339,7 +343,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionResource.cs new file mode 100644 index 000000000000..8e44773138ef --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionResource.cs @@ -0,0 +1,366 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a WorkspaceCodeVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceCodeVersionResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceCodeVersion method. + /// + public partial class WorkspaceCodeVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _workspaceCodeVersionCodeVersionsClientDiagnostics; + private readonly CodeVersionsRestOperations _workspaceCodeVersionCodeVersionsRestClient; + private readonly MachineLearningCodeVersionData _data; + + /// Initializes a new instance of the class for mocking. + protected WorkspaceCodeVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal WorkspaceCodeVersionResource(ArmClient client, MachineLearningCodeVersionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal WorkspaceCodeVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _workspaceCodeVersionCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceCodeVersionCodeVersionsApiVersion); + _workspaceCodeVersionCodeVersionsRestClient = new CodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceCodeVersionCodeVersionsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/codes/versions"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningCodeVersionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// + /// + /// Operation Id + /// CodeVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Get"); + scope.Start(); + try + { + var response = await _workspaceCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// + /// + /// Operation Id + /// CodeVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Get"); + scope.Start(); + try + { + var response = _workspaceCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// + /// + /// Operation Id + /// CodeVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Delete"); + scope.Start(); + try + { + var response = await _workspaceCodeVersionCodeVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(response); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// + /// + /// Operation Id + /// CodeVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Delete"); + scope.Start(); + try + { + var response = _workspaceCodeVersionCodeVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(response); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// + /// + /// Operation Id + /// CodeVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Update"); + scope.Start(); + try + { + var response = await _workspaceCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeVersionResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version} + /// + /// + /// Operation Id + /// CodeVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Update"); + scope.Start(); + try + { + var response = _workspaceCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeVersionResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generate a storage location and credential for the client to upload a code asset to. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/startPendingUpload + /// + /// + /// Operation Id + /// CodeVersions_CreateOrGetStartPendingUpload + /// + /// + /// + /// Pending upload request object. + /// The cancellation token to use. + /// is null. + public virtual async Task> CreateOrGetStartPendingUploadAsync(PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.CreateOrGetStartPendingUpload"); + scope.Start(); + try + { + var response = await _workspaceCodeVersionCodeVersionsRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generate a storage location and credential for the client to upload a code asset to. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/startPendingUpload + /// + /// + /// Operation Id + /// CodeVersions_CreateOrGetStartPendingUpload + /// + /// + /// + /// Pending upload request object. + /// The cancellation token to use. + /// is null. + public virtual Response CreateOrGetStartPendingUpload(PendingUploadRequestDto body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.CreateOrGetStartPendingUpload"); + scope.Start(); + try + { + var response = _workspaceCodeVersionCodeVersionsRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentCollection.cs index 305a950b6319..990a10238027 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningComponentContainers method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceComponents method from an instance of . /// - public partial class MachineLearningComponentContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceComponentCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningComponentContainerComponentContainersClientDiagnostics; - private readonly ComponentContainersRestOperations _machineLearningComponentContainerComponentContainersRestClient; + private readonly ClientDiagnostics _workspaceComponentComponentContainersClientDiagnostics; + private readonly ComponentContainersRestOperations _workspaceComponentComponentContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningComponentContainerCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceComponentCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningComponentContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceComponentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningComponentContainerComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningComponentContainerResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningComponentContainerResource.ResourceType, out string machineLearningComponentContainerComponentContainersApiVersion); - _machineLearningComponentContainerComponentContainersRestClient = new ComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningComponentContainerComponentContainersApiVersion); + _workspaceComponentComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceComponentResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceComponentResource.ResourceType, out string workspaceComponentComponentContainersApiVersion); + _workspaceComponentComponentContainersRestClient = new ComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceComponentComponentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.CreateOrUpdate"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceComponentComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.CreateOrUpdate"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceComponentComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrU /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.Get"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.Get"); scope.Start(); try { - var response = await _machineLearningComponentContainerComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceComponentComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> G /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.Get"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.Get"); scope.Start(); try { - var response = _machineLearningComponentContainerComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _workspaceComponentComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string na /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningComponentContainerComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningComponentContainerComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningComponentContainerResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _machineLearningComponentContainerComponentContainersClientDiagnostics, Pipeline, "MachineLearningComponentContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceComponentComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceComponentComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceComponentResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _workspaceComponentComponentContainersClientDiagnostics, Pipeline, "WorkspaceComponentCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAllAs /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningComponentContainerComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningComponentContainerComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningComponentContainerResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _machineLearningComponentContainerComponentContainersClientDiagnostics, Pipeline, "MachineLearningComponentContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceComponentComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceComponentComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceComponentResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _workspaceComponentComponentContainersClientDiagnostics, Pipeline, "WorkspaceComponentCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.Exists"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.Exists"); scope.Start(); try { - var response = await _machineLearningComponentContainerComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceComponentComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.Exists"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.Exists"); scope.Start(); try { - var response = _machineLearningComponentContainerComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _workspaceComponentComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -328,7 +328,7 @@ public virtual Response Exists(string name, CancellationToken cancellation } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -338,7 +338,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentResource.cs index bc4a355d9221..7c01837c81cf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningComponentContainer along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningComponentContainerResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningComponentContainer method. + /// A Class representing a WorkspaceComponent along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceComponentResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceComponent method. /// - public partial class MachineLearningComponentContainerResource : ArmResource + public partial class WorkspaceComponentResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningComponentContainerComponentContainersClientDiagnostics; - private readonly ComponentContainersRestOperations _machineLearningComponentContainerComponentContainersRestClient; + private readonly ClientDiagnostics _workspaceComponentComponentContainersClientDiagnostics; + private readonly ComponentContainersRestOperations _workspaceComponentComponentContainersRestClient; private readonly MachineLearningComponentContainerData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningComponentContainerResource() + /// Initializes a new instance of the class for mocking. + protected WorkspaceComponentResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningComponentContainerResource(ArmClient client, MachineLearningComponentContainerData data) : this(client, data.Id) + internal WorkspaceComponentResource(ArmClient client, MachineLearningComponentContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningComponentContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceComponentResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningComponentContainerComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningComponentContainerComponentContainersApiVersion); - _machineLearningComponentContainerComponentContainersRestClient = new ComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningComponentContainerComponentContainersApiVersion); + _workspaceComponentComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceComponentComponentContainersApiVersion); + _workspaceComponentComponentContainersRestClient = new ComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceComponentComponentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of MachineLearningComponentVersionResources in the MachineLearningComponentContainer. - /// An object representing collection of MachineLearningComponentVersionResources and their operations over a MachineLearningComponentVersionResource. - public virtual MachineLearningComponentVersionCollection GetMachineLearningComponentVersions() + /// Gets a collection of WorkspaceComponentVersionResources in the WorkspaceComponent. + /// An object representing collection of WorkspaceComponentVersionResources and their operations over a WorkspaceComponentVersionResource. + public virtual WorkspaceComponentVersionCollection GetWorkspaceComponentVersions() { - return GetCachedClient(Client => new MachineLearningComponentVersionCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceComponentVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual MachineLearningComponentVersionCollection GetMachineLearningCompo /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningComponentVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceComponentVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetMachineLearningComponentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceComponentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> Get /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningComponentVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceComponentVersion(string version, CancellationToken cancellationToken = default) { - return GetMachineLearningComponentVersions().Get(version, cancellationToken); + return GetWorkspaceComponentVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetMachineLearn /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Get"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Get"); scope.Start(); try { - var response = await _machineLearningComponentContainerComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceComponentComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> G /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Get"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Get"); scope.Start(); try { - var response = _machineLearningComponentContainerComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceComponentComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(Cancellat /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Delete"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Delete"); scope.Start(); try { - var response = await _machineLearningComponentContainerComponentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceComponentComponentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Delete"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Delete"); scope.Start(); try { - var response = _machineLearningComponentContainerComponentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceComponentComponentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Update"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Update"); scope.Start(); try { - var response = await _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceComponentComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Update"); + using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Update"); scope.Start(); try { - var response = _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceComponentComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionCollection.cs index 638d2b0c793d..ea6826e6cef7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningComponentVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceComponentVersions method from an instance of . /// - public partial class MachineLearningComponentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceComponentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningComponentVersionComponentVersionsClientDiagnostics; - private readonly ComponentVersionsRestOperations _machineLearningComponentVersionComponentVersionsRestClient; + private readonly ClientDiagnostics _workspaceComponentVersionComponentVersionsClientDiagnostics; + private readonly ComponentVersionsRestOperations _workspaceComponentVersionComponentVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningComponentVersionCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceComponentVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningComponentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceComponentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningComponentVersionComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningComponentVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningComponentVersionResource.ResourceType, out string machineLearningComponentVersionComponentVersionsApiVersion); - _machineLearningComponentVersionComponentVersionsRestClient = new ComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningComponentVersionComponentVersionsApiVersion); + _workspaceComponentVersionComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceComponentVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceComponentVersionResource.ResourceType, out string workspaceComponentVersionComponentVersionsApiVersion); + _workspaceComponentVersionComponentVersionsRestClient = new ComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceComponentVersionComponentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal MachineLearningComponentVersionCollection(ArmClient client, ResourceIde internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != MachineLearningComponentContainerResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningComponentContainerResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkspaceComponentResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceComponentResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.CreateOrUpdate"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); + var response = await _workspaceComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.CreateOrUpdate"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); + var response = _workspaceComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpd /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.Get"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.Get"); scope.Start(); try { - var response = await _machineLearningComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _workspaceComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> Get /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.Get"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.Get"); scope.Start(); try { - var response = _machineLearningComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _workspaceComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -227,13 +227,14 @@ public virtual Response Get(string vers /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Component stage. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningComponentVersionComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningComponentVersionComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _machineLearningComponentVersionComponentVersionsClientDiagnostics, Pipeline, "MachineLearningComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceComponentVersionComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceComponentVersionComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _workspaceComponentVersionComponentVersionsClientDiagnostics, Pipeline, "WorkspaceComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -253,13 +254,14 @@ public virtual AsyncPageable GetAllAsyn /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Component stage. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningComponentVersionComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningComponentVersionComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _machineLearningComponentVersionComponentVersionsClientDiagnostics, Pipeline, "MachineLearningComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceComponentVersionComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceComponentVersionComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _workspaceComponentVersionComponentVersionsClientDiagnostics, Pipeline, "WorkspaceComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -283,11 +285,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.Exists"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.Exists"); scope.Start(); try { - var response = await _machineLearningComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -318,11 +320,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.Exists"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.Exists"); scope.Start(); try { - var response = _machineLearningComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _workspaceComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -332,7 +334,7 @@ public virtual Response Exists(string version, CancellationToken cancellat } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -342,7 +344,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionResource.cs index 1169e2baba8e..d47cb0587b65 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningComponentVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningComponentVersionResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningComponentVersion method. + /// A Class representing a WorkspaceComponentVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceComponentVersionResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceComponentVersion method. /// - public partial class MachineLearningComponentVersionResource : ArmResource + public partial class WorkspaceComponentVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningComponentVersionComponentVersionsClientDiagnostics; - private readonly ComponentVersionsRestOperations _machineLearningComponentVersionComponentVersionsRestClient; + private readonly ClientDiagnostics _workspaceComponentVersionComponentVersionsClientDiagnostics; + private readonly ComponentVersionsRestOperations _workspaceComponentVersionComponentVersionsRestClient; private readonly MachineLearningComponentVersionData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningComponentVersionResource() + /// Initializes a new instance of the class for mocking. + protected WorkspaceComponentVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningComponentVersionResource(ArmClient client, MachineLearningComponentVersionData data) : this(client, data.Id) + internal WorkspaceComponentVersionResource(ArmClient client, MachineLearningComponentVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningComponentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceComponentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningComponentVersionComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningComponentVersionComponentVersionsApiVersion); - _machineLearningComponentVersionComponentVersionsRestClient = new ComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningComponentVersionComponentVersionsApiVersion); + _workspaceComponentVersionComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceComponentVersionComponentVersionsApiVersion); + _workspaceComponentVersionComponentVersionsRestClient = new ComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceComponentVersionComponentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Get"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Get"); scope.Start(); try { - var response = await _machineLearningComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> Get /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Get"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Get"); scope.Start(); try { - var response = _machineLearningComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,11 +167,11 @@ public virtual Response Get(Cancellatio /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Delete"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Delete"); scope.Start(); try { - var response = await _machineLearningComponentVersionComponentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceComponentVersionComponentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -201,11 +201,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Delete"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Delete"); scope.Start(); try { - var response = _machineLearningComponentVersionComponentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceComponentVersionComponentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Update"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Update"); scope.Start(); try { - var response = await _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); + var response = await _workspaceComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Update"); + using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Update"); scope.Start(); try { - var response = _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); + var response = _workspaceComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataCollection.cs index 18f50c5f1757..db165b85e839 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningDataContainers method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceData method from an instance of . /// - public partial class MachineLearningDataContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceDataCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningDataContainerDataContainersClientDiagnostics; - private readonly DataContainersRestOperations _machineLearningDataContainerDataContainersRestClient; + private readonly ClientDiagnostics _workspaceDataDataContainersClientDiagnostics; + private readonly DataContainersRestOperations _workspaceDataDataContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningDataContainerCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceDataCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningDataContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceDataCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningDataContainerDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningDataContainerResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningDataContainerResource.ResourceType, out string machineLearningDataContainerDataContainersApiVersion); - _machineLearningDataContainerDataContainersRestClient = new DataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningDataContainerDataContainersApiVersion); + _workspaceDataDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceDataResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceDataResource.ResourceType, out string workspaceDataDataContainersApiVersion); + _workspaceDataDataContainersRestClient = new DataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceDataDataContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.CreateOrUpdate"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningDataContainerDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceDataDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> Cr /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.CreateOrUpdate"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningDataContainerDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceDataDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.Get"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.Get"); scope.Start(); try { - var response = await _machineLearningDataContainerDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceDataDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.Get"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.Get"); scope.Start(); try { - var response = _machineLearningDataContainerDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _workspaceDataDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string name, C /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataContainerDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataContainerDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningDataContainerResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _machineLearningDataContainerDataContainersClientDiagnostics, Pipeline, "MachineLearningDataContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceDataDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceDataDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceDataResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _workspaceDataDataContainersClientDiagnostics, Pipeline, "WorkspaceDataCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAllAsync(s /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataContainerDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataContainerDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningDataContainerResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _machineLearningDataContainerDataContainersClientDiagnostics, Pipeline, "MachineLearningDataContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceDataDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceDataDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceDataResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _workspaceDataDataContainersClientDiagnostics, Pipeline, "WorkspaceDataCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.Exists"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.Exists"); scope.Start(); try { - var response = await _machineLearningDataContainerDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceDataDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.Exists"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.Exists"); scope.Start(); try { - var response = _machineLearningDataContainerDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _workspaceDataDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -328,7 +328,7 @@ public virtual Response Exists(string name, CancellationToken cancellation } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -338,7 +338,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataResource.cs index ad3cbeb4ead5..bc50ac5a6fd9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningDataContainer along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningDataContainerResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningDataContainer method. + /// A Class representing a WorkspaceData along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceDataResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceData method. /// - public partial class MachineLearningDataContainerResource : ArmResource + public partial class WorkspaceDataResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningDataContainerDataContainersClientDiagnostics; - private readonly DataContainersRestOperations _machineLearningDataContainerDataContainersRestClient; + private readonly ClientDiagnostics _workspaceDataDataContainersClientDiagnostics; + private readonly DataContainersRestOperations _workspaceDataDataContainersRestClient; private readonly MachineLearningDataContainerData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningDataContainerResource() + /// Initializes a new instance of the class for mocking. + protected WorkspaceDataResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningDataContainerResource(ArmClient client, MachineLearningDataContainerData data) : this(client, data.Id) + internal WorkspaceDataResource(ArmClient client, MachineLearningDataContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningDataContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceDataResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningDataContainerDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningDataContainerDataContainersApiVersion); - _machineLearningDataContainerDataContainersRestClient = new DataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningDataContainerDataContainersApiVersion); + _workspaceDataDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceDataDataContainersApiVersion); + _workspaceDataDataContainersRestClient = new DataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceDataDataContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of MachineLearningDataVersionResources in the MachineLearningDataContainer. - /// An object representing collection of MachineLearningDataVersionResources and their operations over a MachineLearningDataVersionResource. - public virtual MachineLearningDataVersionCollection GetMachineLearningDataVersions() + /// Gets a collection of WorkspaceDataVersionResources in the WorkspaceData. + /// An object representing collection of WorkspaceDataVersionResources and their operations over a WorkspaceDataVersionResource. + public virtual WorkspaceDataVersionCollection GetWorkspaceDataVersions() { - return GetCachedClient(Client => new MachineLearningDataVersionCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceDataVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual MachineLearningDataVersionCollection GetMachineLearningDataVersio /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningDataVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceDataVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetMachineLearningDataVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceDataVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetMachi /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningDataVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceDataVersion(string version, CancellationToken cancellationToken = default) { - return GetMachineLearningDataVersions().Get(version, cancellationToken); + return GetWorkspaceDataVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetMachineLearningDa /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Get"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Get"); scope.Start(); try { - var response = await _machineLearningDataContainerDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceDataDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsy /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Get"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Get"); scope.Start(); try { - var response = _machineLearningDataContainerDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceDataDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(CancellationTo /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Delete"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Delete"); scope.Start(); try { - var response = await _machineLearningDataContainerDataContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceDataDataContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Delete"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Delete"); scope.Start(); try { - var response = _machineLearningDataContainerDataContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceDataDataContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Update"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Update"); scope.Start(); try { - var response = await _machineLearningDataContainerDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceDataDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> Up /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Update"); + using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Update"); scope.Start(); try { - var response = _machineLearningDataContainerDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceDataDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionCollection.cs new file mode 100644 index 000000000000..f7d1857b906f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionCollection.cs @@ -0,0 +1,348 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceDataVersions method from an instance of . + /// + public partial class WorkspaceDataVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _workspaceDataVersionDataVersionsClientDiagnostics; + private readonly DataVersionsRestOperations _workspaceDataVersionDataVersionsRestClient; + + /// Initializes a new instance of the class for mocking. + protected WorkspaceDataVersionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal WorkspaceDataVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _workspaceDataVersionDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceDataVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceDataVersionResource.ResourceType, out string workspaceDataVersionDataVersionsApiVersion); + _workspaceDataVersionDataVersionsRestClient = new DataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceDataVersionDataVersionsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != WorkspaceDataResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceDataResource.ResourceType), nameof(id)); + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// DataVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _workspaceDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataVersionResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// DataVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version identifier. + /// Version entity to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _workspaceDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataVersionResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// DataVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.Get"); + scope.Start(); + try + { + var response = await _workspaceDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// DataVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.Get"); + scope.Start(); + try + { + var response = _workspaceDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List data versions in the data container + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions + /// + /// + /// Operation Id + /// DataVersions_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(WorkspaceDataVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new WorkspaceDataVersionCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _workspaceDataVersionDataVersionsClientDiagnostics, Pipeline, "WorkspaceDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List data versions in the data container + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions + /// + /// + /// Operation Id + /// DataVersions_List + /// + /// + /// + /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(WorkspaceDataVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + { + options ??= new WorkspaceDataVersionCollectionGetAllOptions(); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _workspaceDataVersionDataVersionsClientDiagnostics, Pipeline, "WorkspaceDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// DataVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.Exists"); + scope.Start(); + try + { + var response = await _workspaceDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version} + /// + /// + /// Operation Id + /// DataVersions_Get + /// + /// + /// + /// Version identifier. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string version, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(version, nameof(version)); + + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.Exists"); + scope.Start(); + try + { + var response = _workspaceDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll(options: null).GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionResource.cs similarity index 70% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionResource.cs index e2a94e95efc7..cfe021ada00b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningDataVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningDataVersionResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningDataVersion method. + /// A Class representing a WorkspaceDataVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceDataVersionResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceDataVersion method. /// - public partial class MachineLearningDataVersionResource : ArmResource + public partial class WorkspaceDataVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningDataVersionDataVersionsClientDiagnostics; - private readonly DataVersionsRestOperations _machineLearningDataVersionDataVersionsRestClient; + private readonly ClientDiagnostics _workspaceDataVersionDataVersionsClientDiagnostics; + private readonly DataVersionsRestOperations _workspaceDataVersionDataVersionsRestClient; private readonly MachineLearningDataVersionData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningDataVersionResource() + /// Initializes a new instance of the class for mocking. + protected WorkspaceDataVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningDataVersionResource(ArmClient client, MachineLearningDataVersionData data) : this(client, data.Id) + internal WorkspaceDataVersionResource(ArmClient client, MachineLearningDataVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningDataVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceDataVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningDataVersionDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningDataVersionDataVersionsApiVersion); - _machineLearningDataVersionDataVersionsRestClient = new DataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningDataVersionDataVersionsApiVersion); + _workspaceDataVersionDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceDataVersionDataVersionsApiVersion); + _workspaceDataVersionDataVersionsRestClient = new DataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceDataVersionDataVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Get"); + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Get"); scope.Start(); try { - var response = await _machineLearningDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Get"); + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Get"); scope.Start(); try { - var response = _machineLearningDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,11 +167,11 @@ public virtual Response Get(CancellationToke /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Delete"); + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Delete"); scope.Start(); try { - var response = await _machineLearningDataVersionDataVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceDataVersionDataVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -201,11 +201,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Delete"); + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Delete"); scope.Start(); try { - var response = _machineLearningDataVersionDataVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceDataVersionDataVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Update"); + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Update"); scope.Start(); try { - var response = await _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); + var response = await _workspaceDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> Upda /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Update"); + using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Update"); scope.Start(); try { - var response = _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); + var response = _workspaceDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentCollection.cs index 93f0b91b645d..682db512e227 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningEnvironmentContainers method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceEnvironments method from an instance of . /// - public partial class MachineLearningEnvironmentContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceEnvironmentCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics; - private readonly EnvironmentContainersRestOperations _machineLearningEnvironmentContainerEnvironmentContainersRestClient; + private readonly ClientDiagnostics _workspaceEnvironmentEnvironmentContainersClientDiagnostics; + private readonly EnvironmentContainersRestOperations _workspaceEnvironmentEnvironmentContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningEnvironmentContainerCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceEnvironmentCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningEnvironmentContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceEnvironmentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningEnvironmentContainerResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningEnvironmentContainerResource.ResourceType, out string machineLearningEnvironmentContainerEnvironmentContainersApiVersion); - _machineLearningEnvironmentContainerEnvironmentContainersRestClient = new EnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningEnvironmentContainerEnvironmentContainersApiVersion); + _workspaceEnvironmentEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceEnvironmentResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceEnvironmentResource.ResourceType, out string workspaceEnvironmentEnvironmentContainersApiVersion); + _workspaceEnvironmentEnvironmentContainersRestClient = new EnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceEnvironmentEnvironmentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.CreateOrUpdate"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceEnvironmentEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.CreateOrUpdate"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceEnvironmentEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateO /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.Get"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.Get"); scope.Start(); try { - var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceEnvironmentEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.Get"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.Get"); scope.Start(); try { - var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _workspaceEnvironmentEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningEnvironmentContainerResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics, Pipeline, "MachineLearningEnvironmentContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceEnvironmentEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceEnvironmentEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceEnvironmentResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _workspaceEnvironmentEnvironmentContainersClientDiagnostics, Pipeline, "WorkspaceEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAll /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningEnvironmentContainerResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics, Pipeline, "MachineLearningEnvironmentContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceEnvironmentEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceEnvironmentEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceEnvironmentResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _workspaceEnvironmentEnvironmentContainersClientDiagnostics, Pipeline, "WorkspaceEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.Exists"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.Exists"); scope.Start(); try { - var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceEnvironmentEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.Exists"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.Exists"); scope.Start(); try { - var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _workspaceEnvironmentEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -328,7 +328,7 @@ public virtual Response Exists(string name, CancellationToken cancellation } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -338,7 +338,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentResource.cs index 21abbbb167a2..1d17c1286b9a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningEnvironmentContainer along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningEnvironmentContainerResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningEnvironmentContainer method. + /// A Class representing a WorkspaceEnvironment along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceEnvironmentResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceEnvironment method. /// - public partial class MachineLearningEnvironmentContainerResource : ArmResource + public partial class WorkspaceEnvironmentResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics; - private readonly EnvironmentContainersRestOperations _machineLearningEnvironmentContainerEnvironmentContainersRestClient; + private readonly ClientDiagnostics _workspaceEnvironmentEnvironmentContainersClientDiagnostics; + private readonly EnvironmentContainersRestOperations _workspaceEnvironmentEnvironmentContainersRestClient; private readonly MachineLearningEnvironmentContainerData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningEnvironmentContainerResource() + /// Initializes a new instance of the class for mocking. + protected WorkspaceEnvironmentResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningEnvironmentContainerResource(ArmClient client, MachineLearningEnvironmentContainerData data) : this(client, data.Id) + internal WorkspaceEnvironmentResource(ArmClient client, MachineLearningEnvironmentContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningEnvironmentContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceEnvironmentResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningEnvironmentContainerEnvironmentContainersApiVersion); - _machineLearningEnvironmentContainerEnvironmentContainersRestClient = new EnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningEnvironmentContainerEnvironmentContainersApiVersion); + _workspaceEnvironmentEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceEnvironmentEnvironmentContainersApiVersion); + _workspaceEnvironmentEnvironmentContainersRestClient = new EnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceEnvironmentEnvironmentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of MachineLearningEnvironmentVersionResources in the MachineLearningEnvironmentContainer. - /// An object representing collection of MachineLearningEnvironmentVersionResources and their operations over a MachineLearningEnvironmentVersionResource. - public virtual MachineLearningEnvironmentVersionCollection GetMachineLearningEnvironmentVersions() + /// Gets a collection of WorkspaceEnvironmentVersionResources in the WorkspaceEnvironment. + /// An object representing collection of WorkspaceEnvironmentVersionResources and their operations over a WorkspaceEnvironmentVersionResource. + public virtual WorkspaceEnvironmentVersionCollection GetWorkspaceEnvironmentVersions() { - return GetCachedClient(Client => new MachineLearningEnvironmentVersionCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceEnvironmentVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual MachineLearningEnvironmentVersionCollection GetMachineLearningEnv /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningEnvironmentVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceEnvironmentVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetMachineLearningEnvironmentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceEnvironmentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> G /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningEnvironmentVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceEnvironmentVersion(string version, CancellationToken cancellationToken = default) { - return GetMachineLearningEnvironmentVersions().Get(version, cancellationToken); + return GetWorkspaceEnvironmentVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetMachineLea /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Get"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Get"); scope.Start(); try { - var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceEnvironmentEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Get"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Get"); scope.Start(); try { - var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceEnvironmentEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(Cancell /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Delete"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Delete"); scope.Start(); try { - var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceEnvironmentEnvironmentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Delete"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Delete"); scope.Start(); try { - var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceEnvironmentEnvironmentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Update"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Update"); scope.Start(); try { - var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceEnvironmentEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Update"); + using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Update"); scope.Start(); try { - var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceEnvironmentEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionCollection.cs index 21f4b502070b..273f45912f9f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningEnvironmentVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceEnvironmentVersions method from an instance of . /// - public partial class MachineLearningEnvironmentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceEnvironmentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics; - private readonly EnvironmentVersionsRestOperations _machineLearningEnvironmentVersionEnvironmentVersionsRestClient; + private readonly ClientDiagnostics _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics; + private readonly EnvironmentVersionsRestOperations _workspaceEnvironmentVersionEnvironmentVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningEnvironmentVersionCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceEnvironmentVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningEnvironmentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceEnvironmentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningEnvironmentVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningEnvironmentVersionResource.ResourceType, out string machineLearningEnvironmentVersionEnvironmentVersionsApiVersion); - _machineLearningEnvironmentVersionEnvironmentVersionsRestClient = new EnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningEnvironmentVersionEnvironmentVersionsApiVersion); + _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceEnvironmentVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceEnvironmentVersionResource.ResourceType, out string workspaceEnvironmentVersionEnvironmentVersionsApiVersion); + _workspaceEnvironmentVersionEnvironmentVersionsRestClient = new EnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceEnvironmentVersionEnvironmentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal MachineLearningEnvironmentVersionCollection(ArmClient client, ResourceI internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != MachineLearningEnvironmentContainerResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningEnvironmentContainerResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkspaceEnvironmentResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceEnvironmentResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.CreateOrUpdate"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.CreateOrUpdate"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrU /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.Get"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.Get"); scope.Start(); try { - var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> G /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.Get"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.Get"); scope.Start(); try { - var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -227,13 +227,14 @@ public virtual Response Get(string ve /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics, Pipeline, "MachineLearningEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics, Pipeline, "WorkspaceEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -253,13 +254,14 @@ public virtual AsyncPageable GetAllAs /// Maximum number of records to return. /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. + /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics, Pipeline, "MachineLearningEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics, Pipeline, "WorkspaceEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -283,11 +285,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.Exists"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.Exists"); scope.Start(); try { - var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -318,11 +320,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.Exists"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.Exists"); scope.Start(); try { - var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -332,7 +334,7 @@ public virtual Response Exists(string version, CancellationToken cancellat } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -342,7 +344,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionResource.cs index a89af9543db0..40209918dacb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningEnvironmentVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningEnvironmentVersionResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningEnvironmentVersion method. + /// A Class representing a WorkspaceEnvironmentVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceEnvironmentVersionResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceEnvironmentVersion method. /// - public partial class MachineLearningEnvironmentVersionResource : ArmResource + public partial class WorkspaceEnvironmentVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics; - private readonly EnvironmentVersionsRestOperations _machineLearningEnvironmentVersionEnvironmentVersionsRestClient; + private readonly ClientDiagnostics _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics; + private readonly EnvironmentVersionsRestOperations _workspaceEnvironmentVersionEnvironmentVersionsRestClient; private readonly MachineLearningEnvironmentVersionData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningEnvironmentVersionResource() + /// Initializes a new instance of the class for mocking. + protected WorkspaceEnvironmentVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningEnvironmentVersionResource(ArmClient client, MachineLearningEnvironmentVersionData data) : this(client, data.Id) + internal WorkspaceEnvironmentVersionResource(ArmClient client, MachineLearningEnvironmentVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningEnvironmentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceEnvironmentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningEnvironmentVersionEnvironmentVersionsApiVersion); - _machineLearningEnvironmentVersionEnvironmentVersionsRestClient = new EnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningEnvironmentVersionEnvironmentVersionsApiVersion); + _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceEnvironmentVersionEnvironmentVersionsApiVersion); + _workspaceEnvironmentVersionEnvironmentVersionsRestClient = new EnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceEnvironmentVersionEnvironmentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Get"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Get"); scope.Start(); try { - var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> G /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Get"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Get"); scope.Start(); try { - var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,11 +167,11 @@ public virtual Response Get(Cancellat /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Delete"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Delete"); scope.Start(); try { - var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -201,11 +201,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Delete"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Delete"); scope.Start(); try { - var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Definition of EnvironmentVersion. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Update"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Update"); scope.Start(); try { - var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task Definition of EnvironmentVersion. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Update"); + using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Update"); scope.Start(); try { - var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelCollection.cs index 1e6c3a9f5c19..fd41828dee58 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningModelContainers method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceModels method from an instance of . /// - public partial class MachineLearningModelContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceModelCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningModelContainerModelContainersClientDiagnostics; - private readonly ModelContainersRestOperations _machineLearningModelContainerModelContainersRestClient; + private readonly ClientDiagnostics _workspaceModelModelContainersClientDiagnostics; + private readonly ModelContainersRestOperations _workspaceModelModelContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningModelContainerCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceModelCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningModelContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceModelCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningModelContainerModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningModelContainerResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningModelContainerResource.ResourceType, out string machineLearningModelContainerModelContainersApiVersion); - _machineLearningModelContainerModelContainersRestClient = new ModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningModelContainerModelContainersApiVersion); + _workspaceModelModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceModelResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceModelResource.ResourceType, out string workspaceModelModelContainersApiVersion); + _workspaceModelModelContainersRestClient = new ModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceModelModelContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.CreateOrUpdate"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningModelContainerModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceModelModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> C /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.CreateOrUpdate"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningModelContainerModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceModelModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.Get"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.Get"); scope.Start(); try { - var response = await _machineLearningModelContainerModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceModelModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAs /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.Get"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.Get"); scope.Start(); try { - var response = _machineLearningModelContainerModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _workspaceModelModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -227,12 +227,12 @@ public virtual Response Get(string name, /// Maximum number of results to return. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, int? count = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, int? count = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningModelContainerModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningModelContainerModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningModelContainerResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _machineLearningModelContainerModelContainersClientDiagnostics, Pipeline, "MachineLearningModelContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceModelModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceModelModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceModelResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _workspaceModelModelContainersClientDiagnostics, Pipeline, "WorkspaceModelCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -252,12 +252,12 @@ public virtual AsyncPageable GetAllAsync( /// Maximum number of results to return. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, int? count = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, int? count = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningModelContainerModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningModelContainerModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningModelContainerResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _machineLearningModelContainerModelContainersClientDiagnostics, Pipeline, "MachineLearningModelContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceModelModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceModelModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceModelResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _workspaceModelModelContainersClientDiagnostics, Pipeline, "WorkspaceModelCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.Exists"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.Exists"); scope.Start(); try { - var response = await _machineLearningModelContainerModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceModelModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.Exists"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.Exists"); scope.Start(); try { - var response = _machineLearningModelContainerModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _workspaceModelModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -330,7 +330,7 @@ public virtual Response Exists(string name, CancellationToken cancellation } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -340,7 +340,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelResource.cs index a9a9c60468bf..5be5e22b6626 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a MachineLearningModelContainer along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetMachineLearningModelContainerResource method. - /// Otherwise you can get one from its parent resource using the GetMachineLearningModelContainer method. + /// A Class representing a WorkspaceModel along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceModelResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceModel method. /// - public partial class MachineLearningModelContainerResource : ArmResource + public partial class WorkspaceModelResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _machineLearningModelContainerModelContainersClientDiagnostics; - private readonly ModelContainersRestOperations _machineLearningModelContainerModelContainersRestClient; + private readonly ClientDiagnostics _workspaceModelModelContainersClientDiagnostics; + private readonly ModelContainersRestOperations _workspaceModelModelContainersRestClient; private readonly MachineLearningModelContainerData _data; - /// Initializes a new instance of the class for mocking. - protected MachineLearningModelContainerResource() + /// Initializes a new instance of the class for mocking. + protected WorkspaceModelResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal MachineLearningModelContainerResource(ArmClient client, MachineLearningModelContainerData data) : this(client, data.Id) + internal WorkspaceModelResource(ArmClient client, MachineLearningModelContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal MachineLearningModelContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceModelResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningModelContainerModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string machineLearningModelContainerModelContainersApiVersion); - _machineLearningModelContainerModelContainersRestClient = new ModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningModelContainerModelContainersApiVersion); + _workspaceModelModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceModelModelContainersApiVersion); + _workspaceModelModelContainersRestClient = new ModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceModelModelContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of MachineLearningModelVersionResources in the MachineLearningModelContainer. - /// An object representing collection of MachineLearningModelVersionResources and their operations over a MachineLearningModelVersionResource. - public virtual MachineLearningModelVersionCollection GetMachineLearningModelVersions() + /// Gets a collection of WorkspaceModelVersionResources in the WorkspaceModel. + /// An object representing collection of WorkspaceModelVersionResources and their operations over a WorkspaceModelVersionResource. + public virtual WorkspaceModelVersionCollection GetWorkspaceModelVersions() { - return GetCachedClient(Client => new MachineLearningModelVersionCollection(Client, Id)); + return GetCachedClient(Client => new WorkspaceModelVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual MachineLearningModelVersionCollection GetMachineLearningModelVers /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningModelVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetWorkspaceModelVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetMachineLearningModelVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetWorkspaceModelVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetMach /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetMachineLearningModelVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetWorkspaceModelVersion(string version, CancellationToken cancellationToken = default) { - return GetMachineLearningModelVersions().Get(version, cancellationToken); + return GetWorkspaceModelVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetMachineLearningM /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Get"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Get"); scope.Start(); try { - var response = await _machineLearningModelContainerModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceModelModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAs /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Get"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Get"); scope.Start(); try { - var response = _machineLearningModelContainerModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceModelModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(CancellationT /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Delete"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Delete"); scope.Start(); try { - var response = await _machineLearningModelContainerModelContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workspaceModelModelContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Delete"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Delete"); scope.Start(); try { - var response = _machineLearningModelContainerModelContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workspaceModelModelContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Update"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Update"); scope.Start(); try { - var response = await _machineLearningModelContainerModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); + var response = await _workspaceModelModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> U /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Update"); + using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Update"); scope.Start(); try { - var response = _machineLearningModelContainerModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); + var response = _workspaceModelModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionCollection.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionCollection.cs index 5868a3b07c89..9da0a48f1520 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetMachineLearningModelVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkspaceModelVersions method from an instance of . /// - public partial class MachineLearningModelVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class WorkspaceModelVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _machineLearningModelVersionModelVersionsClientDiagnostics; - private readonly ModelVersionsRestOperations _machineLearningModelVersionModelVersionsRestClient; + private readonly ClientDiagnostics _workspaceModelVersionModelVersionsClientDiagnostics; + private readonly ModelVersionsRestOperations _workspaceModelVersionModelVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected MachineLearningModelVersionCollection() + /// Initializes a new instance of the class for mocking. + protected WorkspaceModelVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal MachineLearningModelVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal WorkspaceModelVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _machineLearningModelVersionModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningModelVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(MachineLearningModelVersionResource.ResourceType, out string machineLearningModelVersionModelVersionsApiVersion); - _machineLearningModelVersionModelVersionsRestClient = new ModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningModelVersionModelVersionsApiVersion); + _workspaceModelVersionModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceModelVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(WorkspaceModelVersionResource.ResourceType, out string workspaceModelVersionModelVersionsApiVersion); + _workspaceModelVersionModelVersionsRestClient = new ModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceModelVersionModelVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal MachineLearningModelVersionCollection(ArmClient client, ResourceIdentif internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != MachineLearningModelContainerResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningModelContainerResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkspaceModelResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceModelResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.CreateOrUpdate"); + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); + var response = await _workspaceModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> Cre /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.CreateOrUpdate"); + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); + var response = _workspaceModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.Get"); + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.Get"); scope.Start(); try { - var response = await _machineLearningModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _workspaceModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsyn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.Get"); + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.Get"); scope.Start(); try { - var response = _machineLearningModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _workspaceModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ public virtual Response Get(string version, /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(MachineLearningModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(WorkspaceModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new MachineLearningModelVersionCollectionGetAllOptions(); + options ??= new WorkspaceModelVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningModelVersionModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningModelVersionModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, "MachineLearningModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceModelVersionModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceModelVersionModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _workspaceModelVersionModelVersionsClientDiagnostics, Pipeline, "WorkspaceModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,14 +250,14 @@ public virtual AsyncPageable GetAllAsync(Ma /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(MachineLearningModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(WorkspaceModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new MachineLearningModelVersionCollectionGetAllOptions(); + options ??= new WorkspaceModelVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningModelVersionModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningModelVersionModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, "MachineLearningModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceModelVersionModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceModelVersionModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _workspaceModelVersionModelVersionsClientDiagnostics, Pipeline, "WorkspaceModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.Exists"); + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.Exists"); scope.Start(); try { - var response = await _machineLearningModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workspaceModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.Exists"); + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.Exists"); scope.Start(); try { - var response = _machineLearningModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _workspaceModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -330,7 +330,7 @@ public virtual Response Exists(string version, CancellationToken cancellat } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll(options: null).GetEnumerator(); } @@ -340,7 +340,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll(options: null).GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionResource.cs new file mode 100644 index 000000000000..2574d4bd40dc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionResource.cs @@ -0,0 +1,374 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a WorkspaceModelVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkspaceModelVersionResource method. + /// Otherwise you can get one from its parent resource using the GetWorkspaceModelVersion method. + /// + public partial class WorkspaceModelVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _workspaceModelVersionModelVersionsClientDiagnostics; + private readonly ModelVersionsRestOperations _workspaceModelVersionModelVersionsRestClient; + private readonly MachineLearningModelVersionData _data; + + /// Initializes a new instance of the class for mocking. + protected WorkspaceModelVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal WorkspaceModelVersionResource(ArmClient client, MachineLearningModelVersionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal WorkspaceModelVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _workspaceModelVersionModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string workspaceModelVersionModelVersionsApiVersion); + _workspaceModelVersionModelVersionsRestClient = new ModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceModelVersionModelVersionsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.MachineLearningServices/workspaces/models/versions"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MachineLearningModelVersionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// + /// + /// Operation Id + /// ModelVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Get"); + scope.Start(); + try + { + var response = await _workspaceModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// + /// + /// Operation Id + /// ModelVersions_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Get"); + scope.Start(); + try + { + var response = _workspaceModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// + /// + /// Operation Id + /// ModelVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Delete"); + scope.Start(); + try + { + var response = await _workspaceModelVersionModelVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(response); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// + /// + /// Operation Id + /// ModelVersions_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Delete"); + scope.Start(); + try + { + var response = _workspaceModelVersionModelVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(response); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// + /// + /// Operation Id + /// ModelVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Update"); + scope.Start(); + try + { + var response = await _workspaceModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelVersionResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version} + /// + /// + /// Operation Id + /// ModelVersions_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Version entity to create or update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Update"); + scope.Start(); + try + { + var response = _workspaceModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelVersionResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Model Version Package operation. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/package + /// + /// + /// Operation Id + /// ModelVersions_Package + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Package operation request body. + /// The cancellation token to use. + /// is null. + public virtual async Task> PackageAsync(WaitUntil waitUntil, PackageRequest body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Package"); + scope.Start(); + try + { + var response = await _workspaceModelVersionModelVersionsRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _workspaceModelVersionModelVersionsClientDiagnostics, Pipeline, _workspaceModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Model Version Package operation. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/package + /// + /// + /// Operation Id + /// ModelVersions_Package + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Package operation request body. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Package(WaitUntil waitUntil, PackageRequest body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Package"); + scope.Start(); + try + { + var response = _workspaceModelVersionModelVersionsRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _workspaceModelVersionModelVersionsClientDiagnostics, Pipeline, _workspaceModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index 524ba33350b3..556bcb17dfde 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -7,8 +7,8 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: MachineLearning namespace: Azure.ResourceManager.MachineLearning -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b32e1896f30e6ea155449cb49719a6286e32b961/specification/machinelearningservices/resource-manager/readme.md -tag: package-2022-10 +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/79d4b87b6632452bf83711814faa5b71e4761544/specification/machinelearningservices/resource-manager/readme.md +tag: package-preview-2023-06 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -413,6 +413,10 @@ rename-mapping: Forecasting: MachineLearningForecasting EndpointAuthToken.expiryTimeUtc: ExpireOn|unixtime # this temporarily does not work EndpointAuthToken.refreshAfterTimeUtc: RefreshOn|unixtime # this temporarily does not work + SystemCreatedAcrAccount.armResourceId: ArmResourceIdentifier|arm-id + SystemCreatedStorageAccount.armResourceId: ArmResourceIdentifier|arm-id + UserCreatedAcrAccount.armResourceId: ArmResourceIdentifier|arm-id + UserCreatedStorageAccount.armResourceId: ArmResourceIdentifier|arm-id directive: - from: swagger-document From 01e0456d9dbd9977fd13ed288314c2ae509683df Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros Date: Tue, 19 Sep 2023 12:34:08 -0700 Subject: [PATCH 02/13] bumping major version to work around app compat issues --- .../src/Azure.ResourceManager.MachineLearning.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj index 1acfe4224c1b..4262b9b7f9c5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj @@ -1,6 +1,6 @@ - 1.2.0-beta.2 + 2.0.0-alpha.1 1.1.1 Microsoft Azure management client SDK for Azure resource provider Microsoft.MachineLearningServices. From 423571a173208aabece7400262bb86e89c9dfcbe Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros Date: Tue, 19 Sep 2023 16:54:12 -0700 Subject: [PATCH 03/13] updates --- .../src/Generated/ArmMachineLearningModelFactory.cs | 10 +++++----- .../src/Generated/Models/LabelingJobProperties.cs | 4 ++-- .../src/Generated/Models/MachineLearningJobService.cs | 4 ++-- .../src/Generated/Models/PackageRequest.cs | 6 +++--- .../src/Generated/Models/PackageResponse.cs | 8 ++++---- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs index 397dc6bc0006..7d8d3d54fad9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs @@ -273,7 +273,7 @@ public static PendingUploadResponseDto PendingUploadResponseDto(BlobReferenceFor /// /// Credential info to access storage account /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// The available derived classes include . /// /// Arm ID of the storage account to use. /// A new instance for mocking. @@ -694,8 +694,8 @@ public static MachineLearningBatchDeploymentProperties MachineLearningBatchDeplo /// The systemData. /// /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . /// /// A new instance for mocking. public static MachineLearningDatastoreData MachineLearningDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDatastoreProperties properties = null) @@ -885,8 +885,8 @@ public static FeaturestoreEntityVersionProperties FeaturestoreEntityVersionPrope /// The systemData. /// /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . /// /// A new instance for mocking. public static MachineLearningJobData MachineLearningJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningJobProperties properties = null) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs index 0361477bbece..d35a46486b73 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs @@ -51,7 +51,7 @@ public LabelingJobProperties() /// Label categories of the job. /// /// Media type specific properties in the job. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// @@ -100,7 +100,7 @@ public Uri JobInstructionsUri public IDictionary LabelCategories { get; set; } /// /// Media type specific properties in the job. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// public LabelingJobMediaProperties LabelingJobMediaProperties { get; set; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs index 997b384be6c0..1089319f266c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs @@ -26,7 +26,7 @@ public MachineLearningJobService() /// /// 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. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// /// Port for endpoint set by user. @@ -52,7 +52,7 @@ internal MachineLearningJobService(string endpoint, string errorMessage, string /// /// 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. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// public Nodes Nodes { get; set; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs index 29d84e240aea..490f2de3d005 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs @@ -17,7 +17,7 @@ public partial class PackageRequest /// Initializes a new instance of PackageRequest. /// /// [Required] Inferencing server configurations. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// /// [Required] Arm ID of the target environment to be created by package operation. @@ -36,7 +36,7 @@ public PackageRequest(InferencingServer inferencingServer, string targetEnvironm /// /// Base environment to start with. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// public BaseEnvironmentSource BaseEnvironmentSource { get; set; } @@ -44,7 +44,7 @@ public PackageRequest(InferencingServer inferencingServer, string targetEnvironm public IDictionary EnvironmentVariables { get; set; } /// /// [Required] Inferencing server configurations. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// public InferencingServer InferencingServer { get; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs index a143d13f1683..7dbb3283d235 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs @@ -25,7 +25,7 @@ internal PackageResponse() /// Initializes a new instance of PackageResponse. /// /// Base environment to start with. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// /// Build id of the image build operation. @@ -33,7 +33,7 @@ internal PackageResponse() /// Collection of environment variables. /// /// Inferencing server configurations. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// /// Collection of inputs. @@ -57,7 +57,7 @@ internal PackageResponse(BaseEnvironmentSource baseEnvironmentSource, string bui /// /// Base environment to start with. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// public BaseEnvironmentSource BaseEnvironmentSource { get; } @@ -69,7 +69,7 @@ internal PackageResponse(BaseEnvironmentSource baseEnvironmentSource, string bui public IReadOnlyDictionary EnvironmentVariables { get; } /// /// Inferencing server configurations. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// public InferencingServer InferencingServer { get; } From 03d96774cca44d3f94e4547aadbc01abd862c963 Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros Date: Tue, 26 Sep 2023 12:53:42 -0700 Subject: [PATCH 04/13] feedback --- .../src/Azure.ResourceManager.MachineLearning.csproj | 2 +- .../Azure.ResourceManager.MachineLearning/src/autorest.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj index 4262b9b7f9c5..72aba2d0e152 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj @@ -1,6 +1,6 @@ - 2.0.0-alpha.1 + 1.3.0-alpha.1 1.1.1 Microsoft Azure management client SDK for Azure resource provider Microsoft.MachineLearningServices. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index 556bcb17dfde..ac238718830c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -393,6 +393,7 @@ rename-mapping: WorkspaceConnectionUsernamePassword: MachineLearningWorkspaceConnectionUsernamePassword Workspace.properties.hbiWorkspace: IsHbiWorkspace AllocationState: MachineLearningAllocationState + FeatureResource: MachineLearningFeatureResource ResourceId.id: -|arm-id JobBase.componentId: -|arm-id JobBase.computeId: -|arm-id From 8bb0710f98e54ef223b2db525f5c91cf9b4ddeb8 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Thu, 28 Sep 2023 03:12:56 +0800 Subject: [PATCH 05/13] update --- ...eManager.MachineLearning.netstandard2.0.cs | 1013 +++++++++-------- ...MachineLearningCodeContainerCollection.cs} | 34 +- ...e_MachineLearningCodeContainerResource.cs} | 34 +- ...e_MachineLearningCodeVersionCollection.cs} | 74 +- ...ple_MachineLearningCodeVersionResource.cs} | 44 +- ...neLearningComponentContainerCollection.cs} | 34 +- ...hineLearningComponentContainerResource.cs} | 34 +- ...hineLearningComponentVersionCollection.cs} | 74 +- ...achineLearningComponentVersionResource.cs} | 34 +- ...Sample_MachineLearningComputeCollection.cs | 15 - ...MachineLearningDataContainerCollection.cs} | 34 +- ...e_MachineLearningDataContainerResource.cs} | 34 +- ...e_MachineLearningDataVersionCollection.cs} | 76 +- ...ple_MachineLearningDataVersionResource.cs} | 34 +- ...LearningEnvironmentContainerCollection.cs} | 34 +- ...neLearningEnvironmentContainerResource.cs} | 34 +- ...neLearningEnvironmentVersionCollection.cs} | 74 +- ...hineLearningEnvironmentVersionResource.cs} | 34 +- ...achineLearningModelContainerCollection.cs} | 34 +- ..._MachineLearningModelContainerResource.cs} | 34 +- ..._MachineLearningModelVersionCollection.cs} | 76 +- ...le_MachineLearningModelVersionResource.cs} | 44 +- ...ningPrivateEndpointConnectionCollection.cs | 2 +- ...arningPrivateEndpointConnectionResource.cs | 2 +- ...mple_MachineLearningWorkspaceCollection.cs | 4 +- ...Sample_MachineLearningWorkspaceResource.cs | 4 +- .../Samples/Sample_RegistryCollection.cs | 259 +---- .../Samples/Sample_RegistryResource.cs | 91 +- .../Extensions/MachineLearningExtensions.cs | 57 + .../MachineLearningCodeVersionCollection.cs | 62 + ...chineLearningComponentVersionCollection.cs | 66 ++ .../MachineLearningDataVersionCollection.cs | 74 ++ ...ineLearningEnvironmentVersionCollection.cs | 66 ++ .../MachineLearningJobCollection.cs | 66 ++ .../Customized/MachineLearningJobResource.cs | 100 ++ .../MachineLearningModelVersionCollection.cs | 75 ++ .../MachineLearningWorkspaceCollection.cs | 60 + ...hineLearningWorkspaceConnectionResource.cs | 98 ++ .../MachineLearningWorkspaceData.cs | 31 + .../MachineLearningWorkspaceResource.cs | 60 + .../Models/ComputeSchedules.Serialization.cs | 23 +- .../Models/ComputeSchedules.cs | 9 +- .../EncryptionUpdateProperties.cs | 0 ...MachineLearningComputeStartStopSchedule.cs | 32 + ...ineLearningEncryptionKeyVaultProperties.cs | 41 + .../MachineLearningEncryptionSetting.cs | 40 + ...ialManagedServiceIdentity.Serialization.cs | 0 ...neLearningPartialManagedServiceIdentity.cs | 0 .../MachineLearningPublicNetworkAccess.cs | 49 + .../Models/MachineLearningValueFormat.cs | 47 + ...neLearningWorkspaceConnectionProperties.cs | 24 + .../Models/MachineLearningWorkspacePatch.cs | 29 + .../ArmMachineLearningModelFactory.cs | 94 +- .../Extensions/MachineLearningExtensions.cs | 140 +-- ...MachineLearningCodeContainerCollection.cs} | 110 +- ...> MachineLearningCodeContainerResource.cs} | 90 +- ...> MachineLearningCodeVersionCollection.cs} | 114 +- ... => MachineLearningCodeVersionResource.cs} | 82 +- ...neLearningComponentContainerCollection.cs} | 110 +- ...hineLearningComponentContainerResource.cs} | 90 +- ...hineLearningComponentVersionCollection.cs} | 114 +- ...achineLearningComponentVersionResource.cs} | 74 +- ...MachineLearningDataContainerCollection.cs} | 110 +- ...> MachineLearningDataContainerResource.cs} | 90 +- ...> MachineLearningDataVersionCollection.cs} | 118 +- ... => MachineLearningDataVersionResource.cs} | 74 +- ...LearningEnvironmentContainerCollection.cs} | 110 +- ...neLearningEnvironmentContainerResource.cs} | 90 +- ...neLearningEnvironmentVersionCollection.cs} | 114 +- ...hineLearningEnvironmentVersionResource.cs} | 74 +- ...achineLearningModelContainerCollection.cs} | 110 +- ... MachineLearningModelContainerResource.cs} | 90 +- ... MachineLearningModelVersionCollection.cs} | 118 +- ...=> MachineLearningModelVersionResource.cs} | 86 +- ...neLearningPrivateEndpointConnectionData.cs | 4 +- .../Generated/MachineLearningWorkspaceData.cs | 8 +- .../MachineLearningWorkspaceResource.cs | 92 +- .../src/Generated/Models/AcrDetails.cs | 4 +- ...uteStartStopCronSchedule.Serialization.cs} | 6 +- ...ron.cs => ComputeStartStopCronSchedule.cs} | 10 +- ...rtStopRecurrenceSchedule.Serialization.cs} | 6 +- ... => ComputeStartStopRecurrenceSchedule.cs} | 10 +- .../Models/EndpointServiceConnectionStatus.cs | 60 - .../ExternalFqdnResponse.Serialization.cs | 6 +- .../Generated/Models/ExternalFqdnResponse.cs | 6 +- .../FqdnEndpointsPropertyBag.Serialization.cs | 37 - .../Models/FqdnEndpointsPropertyBag.cs | 28 - ...achineLearningComputeInstanceProperties.cs | 2 +- ...gComputeStartStopSchedule.Serialization.cs | 16 +- ...MachineLearningComputeStartStopSchedule.cs | 14 +- ...ningDataVersionCollectionGetAllOptions.cs} | 8 +- ...yptionKeyVaultProperties.Serialization.cs} | 10 +- ...neLearningEncryptionKeyVaultProperties.cs} | 12 +- ...LearningEncryptionSetting.Serialization.cs | 4 +- .../MachineLearningEncryptionSetting.cs | 6 +- ...hineLearningFqdnEndpoints.Serialization.cs | 20 +- .../Models/MachineLearningFqdnEndpoints.cs | 20 +- ...ngFqdnEndpointsProperties.Serialization.cs | 49 + .../MachineLearningFqdnEndpointsProperties.cs | 36 + ...ingModelVersionCollectionGetAllOptions.cs} | 8 +- ...neLearningPrivateEndpoint.Serialization.cs | 12 +- .../Models/MachineLearningPrivateEndpoint.cs | 10 +- ...ateEndpointConnectionData.Serialization.cs | 4 +- ...gPrivateEndpointServiceConnectionStatus.cs | 60 + ...arningPrivateLinkResource.Serialization.cs | 17 +- .../MachineLearningPrivateLinkResource.cs | 6 +- ...inkServiceConnectionState.Serialization.cs | 4 +- ...arningPrivateLinkServiceConnectionState.cs | 4 +- ...SharedPrivateLinkResource.Serialization.cs | 4 +- ...achineLearningSharedPrivateLinkResource.cs | 4 +- ...hineLearningWorkspaceData.Serialization.cs | 4 +- .../MachineLearningWorkspaceGetKeysResult.cs | 8 +- ...ineLearningWorkspacePatch.Serialization.cs | 4 +- .../Models/MachineLearningWorkspacePatch.cs | 2 +- ...on.cs => PrivateEndpoint.Serialization.cs} | 12 +- .../src/Generated/Models/PrivateEndpoint.cs | 28 + .../PrivateEndpointResource.Serialization.cs | 8 +- .../Models/PrivateEndpointResource.cs | 6 +- ...inkServiceConnectionState.Serialization.cs | 4 +- ...gistryPrivateLinkServiceConnectionState.cs | 4 +- .../Generated/Models/StorageAccountDetails.cs | 4 +- .../WorkspacePrivateEndpointResource.cs | 32 - .../src/autorest.md | 47 +- 123 files changed, 3576 insertions(+), 2799 deletions(-) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceCodeCollection.cs => Sample_MachineLearningCodeContainerCollection.cs} (87%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceCodeResource.cs => Sample_MachineLearningCodeContainerResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceCodeVersionCollection.cs => Sample_MachineLearningCodeVersionCollection.cs} (65%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceCodeVersionResource.cs => Sample_MachineLearningCodeVersionResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceComponentCollection.cs => Sample_MachineLearningComponentContainerCollection.cs} (86%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceComponentResource.cs => Sample_MachineLearningComponentContainerResource.cs} (67%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceComponentVersionCollection.cs => Sample_MachineLearningComponentVersionCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceComponentVersionResource.cs => Sample_MachineLearningComponentVersionResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceDataCollection.cs => Sample_MachineLearningDataContainerCollection.cs} (87%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceDataResource.cs => Sample_MachineLearningDataContainerResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceDataVersionCollection.cs => Sample_MachineLearningDataVersionCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceDataVersionResource.cs => Sample_MachineLearningDataVersionResource.cs} (70%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceEnvironmentCollection.cs => Sample_MachineLearningEnvironmentContainerCollection.cs} (86%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceEnvironmentResource.cs => Sample_MachineLearningEnvironmentContainerResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceEnvironmentVersionCollection.cs => Sample_MachineLearningEnvironmentVersionCollection.cs} (65%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceEnvironmentVersionResource.cs => Sample_MachineLearningEnvironmentVersionResource.cs} (71%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceModelCollection.cs => Sample_MachineLearningModelContainerCollection.cs} (87%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceModelResource.cs => Sample_MachineLearningModelContainerResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceModelVersionCollection.cs => Sample_MachineLearningModelVersionCollection.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_WorkspaceModelVersionResource.cs => Sample_MachineLearningModelVersionResource.cs} (71%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Extensions/MachineLearningExtensions.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningCodeVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningComponentVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningDataVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningEnvironmentVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningJobCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningJobResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningModelVersionCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceCollection.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceConnectionResource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceData.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceResource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/{Generated => Customized}/Models/ComputeSchedules.Serialization.cs (65%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/{Generated => Customized}/Models/ComputeSchedules.cs (75%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/{ => Models}/EncryptionUpdateProperties.cs (100%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningComputeStartStopSchedule.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningEncryptionKeyVaultProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningEncryptionSetting.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/{ => Models}/MachineLearningPartialManagedServiceIdentity.Serialization.cs (100%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/{ => Models}/MachineLearningPartialManagedServiceIdentity.cs (100%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningPublicNetworkAccess.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningValueFormat.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningWorkspaceConnectionProperties.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningWorkspacePatch.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceCodeCollection.cs => MachineLearningCodeContainerCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceCodeResource.cs => MachineLearningCodeContainerResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceCodeVersionCollection.cs => MachineLearningCodeVersionCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceCodeVersionResource.cs => MachineLearningCodeVersionResource.cs} (71%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceComponentCollection.cs => MachineLearningComponentContainerCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceComponentResource.cs => MachineLearningComponentContainerResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceComponentVersionCollection.cs => MachineLearningComponentVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceComponentVersionResource.cs => MachineLearningComponentVersionResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceDataCollection.cs => MachineLearningDataContainerCollection.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceDataResource.cs => MachineLearningDataContainerResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceDataVersionCollection.cs => MachineLearningDataVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceDataVersionResource.cs => MachineLearningDataVersionResource.cs} (70%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceEnvironmentCollection.cs => MachineLearningEnvironmentContainerCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceEnvironmentResource.cs => MachineLearningEnvironmentContainerResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceEnvironmentVersionCollection.cs => MachineLearningEnvironmentVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceEnvironmentVersionResource.cs => MachineLearningEnvironmentVersionResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceModelCollection.cs => MachineLearningModelContainerCollection.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceModelResource.cs => MachineLearningModelContainerResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceModelVersionCollection.cs => MachineLearningModelVersionCollection.cs} (61%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{WorkspaceModelVersionResource.cs => MachineLearningModelVersionResource.cs} (71%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Cron.Serialization.cs => ComputeStartStopCronSchedule.Serialization.cs} (88%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Cron.cs => ComputeStartStopCronSchedule.cs} (81%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Recurrence.Serialization.cs => ComputeStartStopRecurrenceSchedule.Serialization.cs} (90%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Recurrence.cs => ComputeStartStopRecurrenceSchedule.cs} (80%) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EndpointServiceConnectionStatus.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.Serialization.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{WorkspaceDataVersionCollectionGetAllOptions.cs => MachineLearningDataVersionCollectionGetAllOptions.cs} (78%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{KeyVaultProperties.Serialization.cs => MachineLearningEncryptionKeyVaultProperties.Serialization.cs} (76%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{KeyVaultProperties.cs => MachineLearningEncryptionKeyVaultProperties.cs} (76%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.Serialization.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{WorkspaceModelVersionCollectionGetAllOptions.cs => MachineLearningModelVersionCollectionGetAllOptions.cs} (81%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointServiceConnectionStatus.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{WorkspacePrivateEndpointResource.Serialization.cs => PrivateEndpoint.Serialization.cs} (61%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs index c4dc57e3a9b6..834ae37c6ec9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs @@ -324,26 +324,166 @@ protected MachineLearningBatchEndpointResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatchWithIdentity body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatchWithIdentity body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class MachineLearningCodeContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningCodeContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningCodeContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningCodeContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningCodeContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningCodeContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningCodeVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningCodeVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionCollection GetMachineLearningCodeVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningCodeVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningCodeVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string hash = null, string hashVersion = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetAll(string orderBy, int? top, string skip, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string hash = null, string hashVersion = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetAllAsync(string orderBy, int? top, string skip, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningCodeVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningCodeVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningCodeVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningCodeVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningComponentContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningComponentContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningComponentContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningComponentContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningComponentContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningComponentContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningComponentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningComponentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionCollection GetMachineLearningComponentVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningComponentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningComponentVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetAll(string orderBy, int? top, string skip, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetAllAsync(string orderBy, int? top, string skip, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningComponentVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningComponentVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningComponentVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningComponentVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class MachineLearningComputeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningComputeCollection() { } @@ -396,11 +536,45 @@ protected MachineLearningComputeResource() { } public virtual Azure.Response UpdateIdleShutdownSetting(Azure.ResourceManager.MachineLearning.Models.IdleShutdownSetting idleShutdownSetting, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task UpdateIdleShutdownSettingAsync(Azure.ResourceManager.MachineLearning.Models.IdleShutdownSetting idleShutdownSetting, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class MachineLearningDataContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningDataContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningDataContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningDataContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningDataContainerProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningDataContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningDataContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningDataVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningDataVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionCollection GetMachineLearningDataVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class MachineLearningDatastoreCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningDatastoreCollection() { } @@ -441,21 +615,125 @@ protected MachineLearningDatastoreResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDatastoreData data, bool? skipValidation = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDatastoreData data, bool? skipValidation = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class MachineLearningDataVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningDataVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetAll(string orderBy, int? top, string skip, string tags, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetAllAsync(string orderBy, int? top, string skip, string tags, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningDataVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningDataVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningDataVersionProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningDataVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningDataVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningEnvironmentContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningEnvironmentContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningEnvironmentContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningEnvironmentContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningEnvironmentContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningEnvironmentContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningEnvironmentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningEnvironmentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionCollection GetMachineLearningEnvironmentVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningEnvironmentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningEnvironmentVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetAll(string orderBy, int? top, string skip, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetAllAsync(string orderBy, int? top, string skip, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningEnvironmentVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningEnvironmentVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningEnvironmentVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningEnvironmentVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public static partial class MachineLearningExtensions { public static Azure.ResourceManager.MachineLearning.FeatureResource GetFeatureResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -466,9 +744,19 @@ public static partial class MachineLearningExtensions public static Azure.ResourceManager.MachineLearning.LabelingJobResource GetLabelingJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningBatchDeploymentResource GetMachineLearningBatchDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningBatchEndpointResource GetMachineLearningBatchEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerResource GetMachineLearningCodeContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionResource GetMachineLearningCodeVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerResource GetMachineLearningComponentContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionResource GetMachineLearningComponentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComputeResource GetMachineLearningComputeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningDataContainerResource GetMachineLearningDataContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningDatastoreResource GetMachineLearningDatastoreResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningDataVersionResource GetMachineLearningDataVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerResource GetMachineLearningEnvironmentContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionResource GetMachineLearningEnvironmentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningJobResource GetMachineLearningJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningModelContainerResource GetMachineLearningModelContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningModelVersionResource GetMachineLearningModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineDeploymentResource GetMachineLearningOnlineDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointResource GetMachineLearningOnlineEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -485,7 +773,11 @@ public static partial class MachineLearningExtensions public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceResource GetMachineLearningWorkspaceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceCollection GetMachineLearningWorkspaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetMachineLearningWorkspaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Pageable GetMachineLearningWorkspaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip, System.Threading.CancellationToken cancellationToken) { throw null; } public static Azure.AsyncPageable GetMachineLearningWorkspacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.AsyncPageable GetMachineLearningWorkspacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip, System.Threading.CancellationToken cancellationToken) { throw null; } public static Azure.ResourceManager.MachineLearning.OutboundRuleBasicResource GetOutboundRuleBasicResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.RegistryCollection GetRegistries(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetRegistries(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -503,16 +795,6 @@ public static partial class MachineLearningExtensions public static Azure.ResourceManager.MachineLearning.RegistryModelResource GetRegistryModelResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.RegistryModelVersionResource GetRegistryModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.RegistryResource GetRegistryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceCodeResource GetWorkspaceCodeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceCodeVersionResource GetWorkspaceCodeVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceComponentResource GetWorkspaceComponentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceComponentVersionResource GetWorkspaceComponentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceDataResource GetWorkspaceDataResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceDataVersionResource GetWorkspaceDataVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceEnvironmentResource GetWorkspaceEnvironmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceEnvironmentVersionResource GetWorkspaceEnvironmentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceModelResource GetWorkspaceModelResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.WorkspaceModelVersionResource GetWorkspaceModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable UpdateMachineLearningQuotas(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable UpdateMachineLearningQuotasAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -525,7 +807,11 @@ protected MachineLearningJobCollection() { } public virtual System.Threading.Tasks.Task> ExistsAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetAll(string skip, string jobType, string tag, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetAllAsync(string skip, string jobType, string tag, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.NullableResponse GetIfExists(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -552,18 +838,91 @@ protected MachineLearningJobResource() { } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Update(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningJobData data, System.Threading.CancellationToken cancellationToken) { throw null; } + } + public partial class MachineLearningModelContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningModelContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, int? count = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, int? count = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } public partial class MachineLearningModelContainerData : Azure.ResourceManager.Models.ResourceData { public MachineLearningModelContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningModelContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningModelContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningModelVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningModelVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionCollection GetMachineLearningModelVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningModelVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningModelVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial class MachineLearningModelVersionData : Azure.ResourceManager.Models.ResourceData { public MachineLearningModelVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties properties) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties Properties { get { throw null; } set { } } } + public partial class MachineLearningModelVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningModelVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class MachineLearningOnlineDeploymentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningOnlineDeploymentCollection() { } @@ -691,7 +1050,7 @@ public partial class MachineLearningPrivateEndpointConnectionData : Azure.Resour public MachineLearningPrivateEndpointConnectionData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.WorkspacePrivateEndpointResource PrivateEndpoint { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint PrivateEndpoint { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } } @@ -760,7 +1119,11 @@ protected MachineLearningWorkspaceCollection() { } public virtual System.Threading.Tasks.Task> ExistsAsync(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAll(string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetAll(string skip, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.AsyncPageable GetAllAsync(string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetAllAsync(string skip, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.NullableResponse GetIfExists(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -804,7 +1167,11 @@ protected MachineLearningWorkspaceConnectionResource() { } public virtual Azure.Response GetSecrets(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetSecretsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Update(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class MachineLearningWorkspaceData : Azure.ResourceManager.Models.TrackedResourceData { @@ -838,7 +1205,9 @@ public MachineLearningWorkspaceData(Azure.Core.AzureLocation location) : base (d public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } } public int? PrivateLinkCount { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? PublicNetworkAccessType { get { throw null; } set { } } public string ServiceProvisionedResourceGroup { get { throw null; } } public System.Collections.Generic.IList SharedPrivateLinkResources { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } @@ -860,11 +1229,14 @@ protected MachineLearningWorkspaceResource() { } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? forceToPurge = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? forceToPurge = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Diagnose(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> DiagnoseAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceDataCollection GetAllWorkspaceData() { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetFeaturesetContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetFeaturesetContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -880,15 +1252,30 @@ protected MachineLearningWorkspaceResource() { } public virtual Azure.Response GetMachineLearningBatchEndpoint(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningBatchEndpointAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningBatchEndpointCollection GetMachineLearningBatchEndpoints() { throw null; } + public virtual Azure.Response GetMachineLearningCodeContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningCodeContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerCollection GetMachineLearningCodeContainers() { throw null; } + public virtual Azure.Response GetMachineLearningComponentContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningComponentContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerCollection GetMachineLearningComponentContainers() { throw null; } public virtual Azure.Response GetMachineLearningCompute(string computeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningComputeAsync(string computeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningComputeCollection GetMachineLearningComputes() { throw null; } + public virtual Azure.Response GetMachineLearningDataContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningDataContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerCollection GetMachineLearningDataContainers() { throw null; } public virtual Azure.Response GetMachineLearningDatastore(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningDatastoreAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningDatastoreCollection GetMachineLearningDatastores() { throw null; } + public virtual Azure.Response GetMachineLearningEnvironmentContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningEnvironmentContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerCollection GetMachineLearningEnvironmentContainers() { throw null; } public virtual Azure.Response GetMachineLearningJob(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningJobAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningJobCollection GetMachineLearningJobs() { throw null; } + public virtual Azure.Response GetMachineLearningModelContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningModelContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerCollection GetMachineLearningModelContainers() { throw null; } public virtual Azure.Response GetMachineLearningOnlineEndpoint(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningOnlineEndpointAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointCollection GetMachineLearningOnlineEndpoints() { throw null; } @@ -905,8 +1292,8 @@ protected MachineLearningWorkspaceResource() { } public virtual System.Threading.Tasks.Task> GetNotebookAccessTokenAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetNotebookKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNotebookKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetOutboundRuleBasicResource(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetOutboundRuleBasicResourceAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceCollection GetOutboundRuleBasicResources() { throw null; } @@ -914,22 +1301,8 @@ protected MachineLearningWorkspaceResource() { } public virtual Azure.AsyncPageable GetPrivateLinkResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetStorageAccountKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetStorageAccountKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetWorkspaceCode(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceCodeAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceCodeCollection GetWorkspaceCodes() { throw null; } - public virtual Azure.Response GetWorkspaceComponent(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceComponentAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceComponentCollection GetWorkspaceComponents() { throw null; } - public virtual Azure.Response GetWorkspaceData(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceDataAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetWorkspaceEnvironment(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceEnvironmentAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceEnvironmentCollection GetWorkspaceEnvironments() { throw null; } public virtual Azure.Pageable GetWorkspaceFeatures(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetWorkspaceFeaturesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetWorkspaceModel(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceModelAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceModelCollection GetWorkspaceModels() { throw null; } public virtual Azure.ResourceManager.ArmOperation PrepareNotebook(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> PrepareNotebookAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation ProvisionManagedNetworkManagedNetworkProvision(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1380,335 +1753,6 @@ protected RegistryResource() { } public virtual Azure.Response Update(Azure.ResourceManager.MachineLearning.Models.RegistryPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.MachineLearning.Models.RegistryPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class WorkspaceCodeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceCodeCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceCodeResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceCodeResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetWorkspaceCodeVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceCodeVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceCodeVersionCollection GetWorkspaceCodeVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceCodeVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceCodeVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string hash = null, string hashVersion = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string hash = null, string hashVersion = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceCodeVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceCodeVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceComponentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceComponentCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceComponentResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceComponentResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetWorkspaceComponentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceComponentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceComponentVersionCollection GetWorkspaceComponentVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceComponentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceComponentVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceComponentVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceComponentVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceDataCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceDataCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceDataResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceDataResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetWorkspaceDataVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceDataVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceDataVersionCollection GetWorkspaceDataVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceDataVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceDataVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.WorkspaceDataVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.WorkspaceDataVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceDataVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceDataVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceEnvironmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceEnvironmentCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceEnvironmentResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceEnvironmentResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetWorkspaceEnvironmentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceEnvironmentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceEnvironmentVersionCollection GetWorkspaceEnvironmentVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceEnvironmentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceEnvironmentVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceEnvironmentVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceEnvironmentVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceModelCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceModelCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, int? count = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, int? count = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceModelResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceModelResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetWorkspaceModelVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWorkspaceModelVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.WorkspaceModelVersionCollection GetWorkspaceModelVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class WorkspaceModelVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected WorkspaceModelVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.WorkspaceModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.WorkspaceModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class WorkspaceModelVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected WorkspaceModelVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } } namespace Azure.ResourceManager.MachineLearning.Models { @@ -1808,7 +1852,6 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties FeaturestoreEntityContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData FeaturestoreEntityVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties FeaturestoreEntityVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable indexColumns = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.FqdnEndpointsPropertyBag FqdnEndpointsPropertyBag(Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.HdfsDatastore HdfsDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), string hdfsServerCertificate = null, string nameNodeAddress = null, string protocol = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ImageMetadata ImageMetadata(string currentImageVersion = null, string latestImageVersion = null, bool? isLatestOSImageVersion = default(bool?)) { throw null; } public static Azure.ResourceManager.MachineLearning.LabelingJobData LabelingJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties properties = null) { throw null; } @@ -1844,10 +1887,9 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceDataMount MachineLearningComputeInstanceDataMount(string source = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType? sourceType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningSourceType?), string mountName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction? mountAction = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountAction?), string createdBy = null, string mountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState? mountState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningMountState?), System.DateTimeOffset? mountedOn = default(System.DateTimeOffset?), string error = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceEnvironmentInfo MachineLearningComputeInstanceEnvironmentInfo(string name = null, string version = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation MachineLearningComputeInstanceLastOperation(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName? operationName = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationName?), System.DateTimeOffset? operationOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus? operationStatus = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger? operationTrigger = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperationTrigger?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceProperties MachineLearningComputeInstanceProperties(string vmSize = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy? applicationSharingPolicy = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningApplicationSharingPolicy?), Azure.ResourceManager.MachineLearning.Models.MlflowAutologger? mlflowAutologger = default(Azure.ResourceManager.MachineLearning.Models.MlflowAutologger?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings sshSettings = null, System.Collections.Generic.IEnumerable customServices = null, Azure.ResourceManager.MachineLearning.Models.ImageMetadata osImageMetadata = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceConnectivityEndpoints connectivityEndpoints = null, System.Collections.Generic.IEnumerable applications = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceCreatedBy createdBy = null, System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState? state = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType? computeInstanceAuthorizationType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAuthorizationType?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAssignedUser personalComputeInstanceAssignedUser = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptsToExecute scripts = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation lastOperation = null, System.Collections.Generic.IEnumerable schedulesComputeStartStop = null, string idleTimeBeforeShutdown = null, bool? enableNodePublicIP = default(bool?), System.Collections.Generic.IEnumerable containers = null, System.Collections.Generic.IEnumerable dataDisks = null, System.Collections.Generic.IEnumerable dataMounts = null, string versionsRuntime = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings MachineLearningComputeInstanceSshSettings(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess? sshPublicAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess?), string adminUserName = null, int? sshPort = default(int?), string adminPublicKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties MachineLearningComputeProperties(string computeType = "Unknown", string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus? provisioningStatus = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction? action = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction?), Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType? triggerType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType?), Azure.ResourceManager.MachineLearning.Models.Recurrence recurrence = null, Azure.ResourceManager.MachineLearning.Models.Cron cron = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleBase schedule = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus? provisioningStatus = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction? action = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction?), Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType? triggerType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType?), Azure.ResourceManager.MachineLearning.Models.ComputeStartStopRecurrenceSchedule recurrenceSchedule = null, Azure.ResourceManager.MachineLearning.Models.ComputeStartStopCronSchedule cronSchedule = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleBase schedule = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeSystemService MachineLearningComputeSystemService(string systemServiceType = null, string publicIPAddress = null, string version = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials MachineLearningContainerRegistryCredentials(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable passwords = null, string username = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningDatabricksCompute MachineLearningDatabricksCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningDatabricksProperties properties = null) { throw null; } @@ -1873,7 +1915,8 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices MachineLearningEstimatedVmPrices(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency billingCurrency = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency), Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure unitOfMeasure = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure), System.Collections.Generic.IEnumerable values = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoint MachineLearningFqdnEndpoint(string domainName = null, System.Collections.Generic.IEnumerable endpointDetails = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetail(int? port = default(int?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(string category = null, System.Collections.Generic.IEnumerable endpoints = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointsProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointsProperties MachineLearningFqdnEndpointsProperties(string category = null, System.Collections.Generic.IEnumerable endpoints = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningHDInsightCompute MachineLearningHDInsightCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningHDInsightProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningJobData MachineLearningJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties MachineLearningJobProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), string jobType = "Unknown", Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?)) { throw null; } @@ -1894,8 +1937,8 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode), string description = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = null, System.Collections.Generic.IDictionary properties = null, System.Uri scoringUri = null, System.Uri swaggerUri = null, string compute = null, System.Collections.Generic.IDictionary mirrorTraffic = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), System.Collections.Generic.IDictionary traffic = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPasswordDetail MachineLearningPasswordDetail(string name = null, string value = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPipelineJob MachineLearningPipelineJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IDictionary inputs = null, System.Collections.Generic.IDictionary jobs = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData settings = null, Azure.Core.ResourceIdentifier sourceJobId = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(Azure.Core.ResourceIdentifier id = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, Azure.ResourceManager.MachineLearning.Models.WorkspacePrivateEndpointResource privateEndpoint = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier subnetArmId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint privateEndpoint = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkResource MachineLearningPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName MachineLearningResourceName(string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceQuota MachineLearningResourceQuota(string id = null, string amlWorkspaceLocation = null, string resourceQuotaType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName name = null, long? limit = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? unit = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit?)) { throw null; } @@ -1913,9 +1956,9 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVirtualMachineSecrets MachineLearningVirtualMachineSecrets(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials administratorAccount = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSize MachineLearningVmSize(string name = null, string family = null, int? vCpus = default(int?), int? gpus = default(int?), int? osVhdSizeMB = default(int?), int? maxResourceVolumeMB = default(int?), double? memoryGB = default(double?), bool? lowPriorityCapable = default(bool?), bool? isPremiumIOSupported = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices estimatedVmPrices = null, System.Collections.Generic.IEnumerable supportedComputeTypes = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionData MachineLearningWorkspaceConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceData MachineLearningWorkspaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = default(bool?), string applicationInsights = null, System.Collections.Generic.IEnumerable associatedWorkspaces = null, System.Collections.Generic.IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, System.Uri discoveryUri = null, bool? enableDataIsolation = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionSetting encryption = null, System.Collections.Generic.IEnumerable existingWorkspaces = null, Azure.ResourceManager.MachineLearning.Models.FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = default(bool?), string hubResourceId = null, string imageBuildCompute = null, string keyVault = null, System.Collections.Generic.IEnumerable keyVaults = null, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings managedNetwork = null, System.Uri mlFlowTrackingUri = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, int? privateLinkCount = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), int? cosmosDbCollectionsThroughput = default(int?), string serviceProvisionedResourceGroup = null, System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = default(int?), string storageAccount = null, System.Collections.Generic.IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = default(bool?), string systemDatastoresAuthMode = null, System.Guid? tenantId = default(System.Guid?), bool? isV1LegacyMode = default(bool?), Azure.ResourceManager.MachineLearning.Models.WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceData MachineLearningWorkspaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = default(bool?), string applicationInsights = null, System.Collections.Generic.IEnumerable associatedWorkspaces = null, System.Collections.Generic.IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, System.Uri discoveryUri = null, bool? enableDataIsolation = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionSetting encryption = null, System.Collections.Generic.IEnumerable existingWorkspaces = null, Azure.ResourceManager.MachineLearning.Models.FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = default(bool?), string hubResourceId = null, string imageBuildCompute = null, string keyVault = null, System.Collections.Generic.IEnumerable keyVaults = null, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings managedNetwork = null, System.Uri mlFlowTrackingUri = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, int? privateLinkCount = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccessType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), int? cosmosDbCollectionsThroughput = default(int?), string serviceProvisionedResourceGroup = null, System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = default(int?), string storageAccount = null, System.Collections.Generic.IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = default(bool?), string systemDatastoresAuthMode = null, System.Guid? tenantId = default(System.Guid?), bool? isV1LegacyMode = default(bool?), Azure.ResourceManager.MachineLearning.Models.WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseResult MachineLearningWorkspaceDiagnoseResult(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultValue value = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null, string userStorageArmId = null, string userStorageKey = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null, string userStorageResourceId = null, string userStorageKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult MachineLearningWorkspaceGetNotebookKeysResult(string primaryAccessKey = null, string secondaryAccessKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetStorageAccountKeysResult MachineLearningWorkspaceGetStorageAccountKeysResult(string userStorageKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceNotebookAccessTokenResult MachineLearningWorkspaceNotebookAccessTokenResult(string accessToken = null, int? expiresIn = default(int?), string hostName = null, string notebookResourceId = null, string publicDns = null, string refreshToken = null, string scope = null, string tokenType = null) { throw null; } @@ -1925,7 +1968,8 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData OutboundRuleBasicResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.OutboundRule properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.PackageResponse PackageResponse(Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource baseEnvironmentSource = null, string buildId = null, Azure.ResourceManager.MachineLearning.Models.PackageBuildState? buildState = default(Azure.ResourceManager.MachineLearning.Models.PackageBuildState?), System.Collections.Generic.IReadOnlyDictionary environmentVariables = null, Azure.ResourceManager.MachineLearning.Models.InferencingServer inferencingServer = null, System.Collections.Generic.IEnumerable inputs = null, System.Uri logUri = null, Azure.ResourceManager.MachineLearning.Models.ModelConfiguration modelConfiguration = null, System.Collections.Generic.IReadOnlyDictionary tags = null, string targetEnvironmentId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.PendingUploadResponseDto PendingUploadResponseDto(Azure.ResourceManager.MachineLearning.Models.BlobReferenceForConsumptionDto blobReferenceForConsumption = null, string pendingUploadId = null, Azure.ResourceManager.MachineLearning.Models.PendingUploadType? pendingUploadType = default(Azure.ResourceManager.MachineLearning.Models.PendingUploadType?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpointResource PrivateEndpointResource(Azure.Core.ResourceIdentifier id = null, string subnetArmId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpoint PrivateEndpoint(string id = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpointResource PrivateEndpointResource(string id = null, string subnetArmId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ProgressMetrics ProgressMetrics(long? completedDatapointCount = default(long?), System.DateTimeOffset? incrementalDataLastRefreshOn = default(System.DateTimeOffset?), long? skippedDatapointCount = default(long?), long? totalDatapointCount = default(long?)) { throw null; } public static Azure.ResourceManager.MachineLearning.RegistryData RegistryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, System.Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, System.Uri mlFlowRegistryUri = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, System.Collections.Generic.IEnumerable regionDetails = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.SasCredentialDto SasCredentialDto(System.Uri sasUri = null) { throw null; } @@ -1934,7 +1978,6 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.StatusMessage StatusMessage(string code = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel? level = default(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel?), string message = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.TextClassificationMultilabel TextClassificationMultilabel(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? logVerbosity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity?), string targetColumnName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData = null, Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric? primaryMetric = default(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric?), string featurizationDatasetLanguage = null, Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters fixedParameters = null, Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings limitSettings = null, System.Collections.Generic.IEnumerable searchSpace = null, Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings sweepSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput validationData = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.TextNer TextNer(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? logVerbosity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity?), string targetColumnName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData = null, Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? primaryMetric = default(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric?), string featurizationDatasetLanguage = null, Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters fixedParameters = null, Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings limitSettings = null, System.Collections.Generic.IEnumerable searchSpace = null, Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings sweepSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput validationData = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.WorkspacePrivateEndpointResource WorkspacePrivateEndpointResource(string id = null, string subnetArmId = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AssetProvisioningState : System.IEquatable @@ -2403,18 +2446,27 @@ public ColumnTransformer() { } public System.Collections.Generic.IList Fields { get { throw null; } set { } } public System.BinaryData Parameters { get { throw null; } set { } } } - public partial class CreateMonitorAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction + public partial class ComputeStartStopCronSchedule { - public CreateMonitorAction(Azure.ResourceManager.MachineLearning.Models.MonitorDefinition monitorDefinition) { } - public Azure.ResourceManager.MachineLearning.Models.MonitorDefinition MonitorDefinition { get { throw null; } set { } } + public ComputeStartStopCronSchedule() { } + public string Expression { get { throw null; } set { } } + public string StartTime { get { throw null; } set { } } + public string TimeZone { get { throw null; } set { } } } - public partial class Cron + public partial class ComputeStartStopRecurrenceSchedule { - public Cron() { } - public string Expression { get { throw null; } set { } } + public ComputeStartStopRecurrenceSchedule() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceFrequency? Frequency { get { throw null; } set { } } + public int? Interval { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceSchedule Schedule { get { throw null; } set { } } public string StartTime { get { throw null; } set { } } public string TimeZone { get { throw null; } set { } } } + public partial class CreateMonitorAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction + { + public CreateMonitorAction(Azure.ResourceManager.MachineLearning.Models.MonitorDefinition monitorDefinition) { } + public Azure.ResourceManager.MachineLearning.Models.MonitorDefinition MonitorDefinition { get { throw null; } set { } } + } public partial class CronTrigger : Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerBase { public CronTrigger(string expression) { } @@ -2615,27 +2667,6 @@ public Endpoint() { } public int? Published { get { throw null; } set { } } public int? Target { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EndpointServiceConnectionStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public EndpointServiceConnectionStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Approved { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Disconnected { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Pending { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Rejected { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus Timeout { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus left, Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus left, Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus right) { throw null; } - public override string ToString() { throw null; } - } public partial class EnvironmentVariable { public EnvironmentVariable() { } @@ -2957,11 +2988,6 @@ public ForecastingTrainingSettings() { } public System.Collections.Generic.IList AllowedTrainingAlgorithms { get { throw null; } set { } } public System.Collections.Generic.IList BlockedTrainingAlgorithms { get { throw null; } set { } } } - public partial class FqdnEndpointsPropertyBag - { - internal FqdnEndpointsPropertyBag() { } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints Properties { get { throw null; } } - } public partial class FqdnOutboundRule : Azure.ResourceManager.MachineLearning.Models.OutboundRule { public FqdnOutboundRule() { } @@ -3447,13 +3473,6 @@ public partial class KerberosPasswordSecrets : Azure.ResourceManager.MachineLear public KerberosPasswordSecrets() { } public string KerberosPassword { get { throw null; } set { } } } - public partial class KeyVaultProperties - { - public KeyVaultProperties(string keyIdentifier, string keyVaultArmId) { } - public string IdentityClientId { get { throw null; } set { } } - public string KeyIdentifier { get { throw null; } set { } } - public string KeyVaultArmId { get { throw null; } set { } } - } public partial class LabelCategory { public LabelCategory() { } @@ -4037,7 +4056,7 @@ public MachineLearningComputeInstanceProperties() { } public Azure.ResourceManager.MachineLearning.Models.MlflowAutologger? MlflowAutologger { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ImageMetadata OSImageMetadata { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAssignedUser PersonalComputeInstanceAssignedUser { get { throw null; } set { } } - public System.Collections.Generic.IList SchedulesComputeStartStop { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SchedulesComputeStartStop { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningScriptsToExecute Scripts { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings SshSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceState? State { get { throw null; } } @@ -4147,10 +4166,14 @@ public partial class MachineLearningComputeStartStopSchedule { public MachineLearningComputeStartStopSchedule() { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputePowerAction? Action { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.Cron Cron { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public Azure.ResourceManager.MachineLearning.Models.CronTrigger Cron { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.ComputeStartStopCronSchedule CronSchedule { get { throw null; } set { } } public string Id { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProvisioningStatus? ProvisioningStatus { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.Recurrence Recurrence { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceTrigger Recurrence { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.ComputeStartStopRecurrenceSchedule RecurrenceSchedule { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleBase Schedule { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleStatus? Status { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningTriggerType? TriggerType { get { throw null; } set { } } @@ -4329,6 +4352,16 @@ protected MachineLearningDatastoreSecrets() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningDataType right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningDataVersionCollectionGetAllOptions + { + public MachineLearningDataVersionCollectionGetAllOptions() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public string OrderBy { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public int? Top { get { throw null; } set { } } + } public partial class MachineLearningDataVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { public MachineLearningDataVersionProperties(System.Uri dataUri) { } @@ -4468,11 +4501,22 @@ protected MachineLearningEarlyTerminationPolicy() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningEncryptionKeyVaultProperties + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public MachineLearningEncryptionKeyVaultProperties(Azure.Core.ResourceIdentifier keyVaultArmId, string keyIdentifier) { } + public MachineLearningEncryptionKeyVaultProperties(string keyIdentifier, Azure.Core.ResourceIdentifier keyVaultArmId) { } + public string IdentityClientId { get { throw null; } set { } } + public string KeyIdentifier { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier KeyVaultArmId { get { throw null; } set { } } + } public partial class MachineLearningEncryptionSetting { - public MachineLearningEncryptionSetting(Azure.ResourceManager.MachineLearning.Models.KeyVaultProperties keyVaultProperties, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus status) { } + public MachineLearningEncryptionSetting(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionKeyVaultProperties keyVaultProperties, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus status) { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public MachineLearningEncryptionSetting(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus status, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionKeyVaultProperties keyVaultProperties) { } public string CosmosDbResourceId { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.KeyVaultProperties KeyVaultProperties { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } public string SearchAccountResourceId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus Status { get { throw null; } set { } } public string StorageAccountResourceId { get { throw null; } set { } } @@ -4751,6 +4795,11 @@ internal MachineLearningFqdnEndpointDetail() { } public partial class MachineLearningFqdnEndpoints { internal MachineLearningFqdnEndpoints() { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointsProperties Properties { get { throw null; } } + } + public partial class MachineLearningFqdnEndpointsProperties + { + internal MachineLearningFqdnEndpointsProperties() { } public string Category { get { throw null; } } public System.Collections.Generic.IReadOnlyList Endpoints { get { throw null; } } } @@ -5084,6 +5133,21 @@ public MachineLearningModelContainerProperties() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize left, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelSize right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningModelVersionCollectionGetAllOptions + { + public MachineLearningModelVersionCollectionGetAllOptions() { } + public string Description { get { throw null; } set { } } + public string Feed { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public int? Offset { get { throw null; } set { } } + public string OrderBy { get { throw null; } set { } } + public string Properties { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public int? Top { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } public partial class MachineLearningModelVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { public MachineLearningModelVersionProperties() { } @@ -5440,6 +5504,7 @@ public partial class MachineLearningPrivateEndpoint { public MachineLearningPrivateEndpoint() { } public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public Azure.Core.ResourceIdentifier SubnetArmId { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningPrivateEndpointConnectionProvisioningState : System.IEquatable @@ -5461,12 +5526,33 @@ public MachineLearningPrivateEndpoint() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningPrivateEndpointServiceConnectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningPrivateEndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Disconnected { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus Timeout { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus right) { throw null; } + public override string ToString() { throw null; } + } public partial class MachineLearningPrivateLinkResource : Azure.ResourceManager.Models.TrackedResourceData { public MachineLearningPrivateLinkResource(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public string GroupId { get { throw null; } set { } } + public string GroupId { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public System.Collections.Generic.IList RequiredMembers { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } } @@ -5475,7 +5561,7 @@ public partial class MachineLearningPrivateLinkServiceConnectionState public MachineLearningPrivateLinkServiceConnectionState() { } public string ActionsRequired { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus? Status { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } } public partial class MachineLearningProbeSettings { @@ -5510,6 +5596,24 @@ public MachineLearningProbeSettings() { } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningPublicNetworkAccess : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningPublicNetworkAccess(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess left, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningPublicNetworkAccessType : System.IEquatable { private readonly object _dummy; @@ -5822,7 +5926,7 @@ public MachineLearningSharedPrivateLinkResource() { } public string Name { get { throw null; } set { } } public Azure.Core.ResourceIdentifier PrivateLinkResourceId { get { throw null; } set { } } public string RequestMessage { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.EndpointServiceConnectionStatus? Status { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningShortSeriesHandlingConfiguration : System.IEquatable @@ -6302,6 +6406,24 @@ public MachineLearningUsernamePasswordAuthTypeWorkspaceConnection() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl left, Azure.ResourceManager.MachineLearning.Models.MachineLearningUseStl right) { throw null; } public override string ToString() { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningValueFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningValueFormat(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat Json { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat left, Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat left, Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat right) { throw null; } + public override string ToString() { throw null; } + } public partial class MachineLearningVirtualMachineCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { public MachineLearningVirtualMachineCompute() { } @@ -6418,6 +6540,10 @@ protected MachineLearningWorkspaceConnectionProperties() { } public System.DateTimeOffset? ExpiryOn { get { throw null; } set { } } public System.BinaryData Metadata { get { throw null; } set { } } public string Target { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string Value { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public Azure.ResourceManager.MachineLearning.Models.MachineLearningValueFormat? ValueFormat { get { throw null; } set { } } } public partial class MachineLearningWorkspaceConnectionUsernamePassword { @@ -6454,8 +6580,8 @@ internal MachineLearningWorkspaceGetKeysResult() { } public string AppInsightsInstrumentationKey { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials ContainerRegistryCredentials { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult NotebookAccessKeys { get { throw null; } } - public string UserStorageArmId { get { throw null; } } public string UserStorageKey { get { throw null; } } + public string UserStorageResourceId { get { throw null; } } } public partial class MachineLearningWorkspaceGetNotebookKeysResult { @@ -6495,7 +6621,9 @@ public MachineLearningWorkspacePatch() { } public string KeyIdentifier { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings ManagedNetwork { get { throw null; } set { } } public string PrimaryUserAssignedIdentity { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? PublicNetworkAccessType { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } public int? SoftDeleteRetentionInDays { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } @@ -7193,6 +7321,11 @@ public PredictionDriftMonitoringSignal(System.Collections.Generic.IEnumerable AdditionalWorkspaceStorageAccounts { get { throw null; } } public string DefaultWorkspaceResourceGroup { get { throw null; } set { } } } - public partial class WorkspaceModelVersionCollectionGetAllOptions - { - public WorkspaceModelVersionCollectionGetAllOptions() { } - public string Description { get { throw null; } set { } } - public string Feed { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } - public int? Offset { get { throw null; } set { } } - public string OrderBy { get { throw null; } set { } } - public string Properties { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } - public string Stage { get { throw null; } set { } } - public string Tags { get { throw null; } set { } } - public int? Top { get { throw null; } set { } } - public string Version { get { throw null; } set { } } - } - public partial class WorkspacePrivateEndpointResource - { - public WorkspacePrivateEndpointResource() { } - public string Id { get { throw null; } } - public string SubnetArmId { get { throw null; } } - } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs similarity index 87% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs index cf2923416fd7..b831eea70d72 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceCodeCollection + public partial class Sample_MachineLearningCodeContainerCollection { // List Workspace Code Container. [NUnit.Framework.Test] @@ -39,11 +39,11 @@ public async Task GetAll_ListWorkspaceCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceCodeResource - WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); + // get the collection of this MachineLearningCodeContainerResource + MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); // invoke the operation and iterate over the result - await foreach (WorkspaceCodeResource item in collection.GetAllAsync()) + await foreach (MachineLearningCodeContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -76,12 +76,12 @@ public async Task Get_GetWorkspaceCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceCodeResource - WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); + // get the collection of this MachineLearningCodeContainerResource + MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); // invoke the operation string name = "testContainer"; - WorkspaceCodeResource result = await collection.GetAsync(name); + MachineLearningCodeContainerResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -111,8 +111,8 @@ public async Task Exists_GetWorkspaceCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceCodeResource - WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); + // get the collection of this MachineLearningCodeContainerResource + MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); // invoke the operation string name = "testContainer"; @@ -142,13 +142,13 @@ public async Task GetIfExists_GetWorkspaceCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceCodeResource - WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); + // get the collection of this MachineLearningCodeContainerResource + MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); // invoke the operation string name = "testContainer"; - NullableResponse response = await collection.GetIfExistsAsync(name); - WorkspaceCodeResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(name); + MachineLearningCodeContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -185,8 +185,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceCodeContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceCodeResource - WorkspaceCodeCollection collection = machineLearningWorkspace.GetWorkspaceCodes(); + // get the collection of this MachineLearningCodeContainerResource + MachineLearningCodeContainerCollection collection = machineLearningWorkspace.GetMachineLearningCodeContainers(); // invoke the operation string name = "testContainer"; @@ -199,8 +199,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceCodeContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - WorkspaceCodeResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + MachineLearningCodeContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs index c63ab6437074..4aff395b3e32 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceCodeResource + public partial class Sample_MachineLearningCodeContainerResource { // Delete Workspace Code Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteWorkspaceCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeResource created on azure - // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource + // this example assumes you already have this MachineLearningCodeContainerResource created on azure + // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testContainer"; - ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); + ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); // invoke the operation - await workspaceCode.DeleteAsync(WaitUntil.Completed); + await machineLearningCodeContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetWorkspaceCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeResource created on azure - // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource + // this example assumes you already have this MachineLearningCodeContainerResource created on azure + // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testContainer"; - ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); + ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); // invoke the operation - WorkspaceCodeResource result = await workspaceCode.GetAsync(); + MachineLearningCodeContainerResource result = await machineLearningCodeContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateWorkspaceCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeResource created on azure - // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource + // this example assumes you already have this MachineLearningCodeContainerResource created on azure + // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testContainer"; - ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); + ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); // invoke the operation MachineLearningCodeContainerData data = new MachineLearningCodeContainerData(new MachineLearningCodeContainerProperties() @@ -110,8 +110,8 @@ public async Task Update_CreateOrUpdateWorkspaceCodeContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await workspaceCode.UpdateAsync(WaitUntil.Completed, data); - WorkspaceCodeResource result = lro.Value; + ArmOperation lro = await machineLearningCodeContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningCodeContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs index 4388b667e39a..e381822dc632 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceCodeVersionCollection + public partial class Sample_MachineLearningCodeVersionCollection { // List Workspace Code Version. [NUnit.Framework.Test] @@ -31,22 +31,22 @@ public async Task GetAll_ListWorkspaceCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeResource created on azure - // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource + // this example assumes you already have this MachineLearningCodeContainerResource created on azure + // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); + ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); - // get the collection of this WorkspaceCodeVersionResource - WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); + // get the collection of this MachineLearningCodeVersionResource + MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (WorkspaceCodeVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (MachineLearningCodeVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -71,21 +71,21 @@ public async Task Get_GetWorkspaceCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeResource created on azure - // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource + // this example assumes you already have this MachineLearningCodeContainerResource created on azure + // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); + ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); - // get the collection of this WorkspaceCodeVersionResource - WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); + // get the collection of this MachineLearningCodeVersionResource + MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); // invoke the operation string version = "string"; - WorkspaceCodeVersionResource result = await collection.GetAsync(version); + MachineLearningCodeVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -107,17 +107,17 @@ public async Task Exists_GetWorkspaceCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeResource created on azure - // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource + // this example assumes you already have this MachineLearningCodeContainerResource created on azure + // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); + ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); - // get the collection of this WorkspaceCodeVersionResource - WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); + // get the collection of this MachineLearningCodeVersionResource + MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); // invoke the operation string version = "string"; @@ -139,22 +139,22 @@ public async Task GetIfExists_GetWorkspaceCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeResource created on azure - // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource + // this example assumes you already have this MachineLearningCodeContainerResource created on azure + // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); + ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); - // get the collection of this WorkspaceCodeVersionResource - WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); + // get the collection of this MachineLearningCodeVersionResource + MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - WorkspaceCodeVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningCodeVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -183,17 +183,17 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeResource created on azure - // for more information of creating WorkspaceCodeResource, please refer to the document of WorkspaceCodeResource + // this example assumes you already have this MachineLearningCodeContainerResource created on azure + // for more information of creating MachineLearningCodeContainerResource, please refer to the document of MachineLearningCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceCodeResourceId = WorkspaceCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceCodeResource workspaceCode = client.GetWorkspaceCodeResource(workspaceCodeResourceId); + ResourceIdentifier machineLearningCodeContainerResourceId = MachineLearningCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningCodeContainerResource machineLearningCodeContainer = client.GetMachineLearningCodeContainerResource(machineLearningCodeContainerResourceId); - // get the collection of this WorkspaceCodeVersionResource - WorkspaceCodeVersionCollection collection = workspaceCode.GetWorkspaceCodeVersions(); + // get the collection of this MachineLearningCodeVersionResource + MachineLearningCodeVersionCollection collection = machineLearningCodeContainer.GetMachineLearningCodeVersions(); // invoke the operation string version = "string"; @@ -211,8 +211,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceCodeVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - WorkspaceCodeVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningCodeVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs index 8ec0980c7021..1a490899955d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceCodeVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceCodeVersionResource + public partial class Sample_MachineLearningCodeVersionResource { // Delete Workspace Code Version. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteWorkspaceCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeVersionResource created on azure - // for more information of creating WorkspaceCodeVersionResource, please refer to the document of WorkspaceCodeVersionResource + // this example assumes you already have this MachineLearningCodeVersionResource created on azure + // for more information of creating MachineLearningCodeVersionResource, please refer to the document of MachineLearningCodeVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceCodeVersionResourceId = WorkspaceCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceCodeVersionResource workspaceCodeVersion = client.GetWorkspaceCodeVersionResource(workspaceCodeVersionResourceId); + ResourceIdentifier machineLearningCodeVersionResourceId = MachineLearningCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningCodeVersionResource machineLearningCodeVersion = client.GetMachineLearningCodeVersionResource(machineLearningCodeVersionResourceId); // invoke the operation - await workspaceCodeVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningCodeVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,18 +60,18 @@ public async Task Get_GetWorkspaceCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeVersionResource created on azure - // for more information of creating WorkspaceCodeVersionResource, please refer to the document of WorkspaceCodeVersionResource + // this example assumes you already have this MachineLearningCodeVersionResource created on azure + // for more information of creating MachineLearningCodeVersionResource, please refer to the document of MachineLearningCodeVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceCodeVersionResourceId = WorkspaceCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceCodeVersionResource workspaceCodeVersion = client.GetWorkspaceCodeVersionResource(workspaceCodeVersionResourceId); + ResourceIdentifier machineLearningCodeVersionResourceId = MachineLearningCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningCodeVersionResource machineLearningCodeVersion = client.GetMachineLearningCodeVersionResource(machineLearningCodeVersionResourceId); // invoke the operation - WorkspaceCodeVersionResource result = await workspaceCodeVersion.GetAsync(); + MachineLearningCodeVersionResource result = await machineLearningCodeVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateWorkspaceCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeVersionResource created on azure - // for more information of creating WorkspaceCodeVersionResource, please refer to the document of WorkspaceCodeVersionResource + // this example assumes you already have this MachineLearningCodeVersionResource created on azure + // for more information of creating MachineLearningCodeVersionResource, please refer to the document of MachineLearningCodeVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceCodeVersionResourceId = WorkspaceCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceCodeVersionResource workspaceCodeVersion = client.GetWorkspaceCodeVersionResource(workspaceCodeVersionResourceId); + ResourceIdentifier machineLearningCodeVersionResourceId = MachineLearningCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningCodeVersionResource machineLearningCodeVersion = client.GetMachineLearningCodeVersionResource(machineLearningCodeVersionResourceId); // invoke the operation MachineLearningCodeVersionData data = new MachineLearningCodeVersionData(new MachineLearningCodeVersionProperties() @@ -118,8 +118,8 @@ public async Task Update_CreateOrUpdateWorkspaceCodeVersion() ["string"] = "string", }, }); - ArmOperation lro = await workspaceCodeVersion.UpdateAsync(WaitUntil.Completed, data); - WorkspaceCodeVersionResource result = lro.Value; + ArmOperation lro = await machineLearningCodeVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningCodeVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -141,15 +141,15 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadWor // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceCodeVersionResource created on azure - // for more information of creating WorkspaceCodeVersionResource, please refer to the document of WorkspaceCodeVersionResource + // this example assumes you already have this MachineLearningCodeVersionResource created on azure + // for more information of creating MachineLearningCodeVersionResource, please refer to the document of MachineLearningCodeVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceCodeVersionResourceId = WorkspaceCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceCodeVersionResource workspaceCodeVersion = client.GetWorkspaceCodeVersionResource(workspaceCodeVersionResourceId); + ResourceIdentifier machineLearningCodeVersionResourceId = MachineLearningCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningCodeVersionResource machineLearningCodeVersion = client.GetMachineLearningCodeVersionResource(machineLearningCodeVersionResourceId); // invoke the operation PendingUploadRequestDto body = new PendingUploadRequestDto() @@ -157,7 +157,7 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadWor PendingUploadId = "string", PendingUploadType = PendingUploadType.TemporaryBlobReference, }; - PendingUploadResponseDto result = await workspaceCodeVersion.CreateOrGetStartPendingUploadAsync(body); + PendingUploadResponseDto result = await machineLearningCodeVersion.CreateOrGetStartPendingUploadAsync(body); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs similarity index 86% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs index 0af8874c522e..6add5fae5b6c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceComponentCollection + public partial class Sample_MachineLearningComponentContainerCollection { // List Workspace Component Container. [NUnit.Framework.Test] @@ -39,11 +39,11 @@ public async Task GetAll_ListWorkspaceComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceComponentResource - WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); + // get the collection of this MachineLearningComponentContainerResource + MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); // invoke the operation and iterate over the result - await foreach (WorkspaceComponentResource item in collection.GetAllAsync()) + await foreach (MachineLearningComponentContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -76,12 +76,12 @@ public async Task Get_GetWorkspaceComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceComponentResource - WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); + // get the collection of this MachineLearningComponentContainerResource + MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); // invoke the operation string name = "string"; - WorkspaceComponentResource result = await collection.GetAsync(name); + MachineLearningComponentContainerResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -111,8 +111,8 @@ public async Task Exists_GetWorkspaceComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceComponentResource - WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); + // get the collection of this MachineLearningComponentContainerResource + MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); // invoke the operation string name = "string"; @@ -142,13 +142,13 @@ public async Task GetIfExists_GetWorkspaceComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceComponentResource - WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); + // get the collection of this MachineLearningComponentContainerResource + MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); // invoke the operation string name = "string"; - NullableResponse response = await collection.GetIfExistsAsync(name); - WorkspaceComponentResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(name); + MachineLearningComponentContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -185,8 +185,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceComponentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceComponentResource - WorkspaceComponentCollection collection = machineLearningWorkspace.GetWorkspaceComponents(); + // get the collection of this MachineLearningComponentContainerResource + MachineLearningComponentContainerCollection collection = machineLearningWorkspace.GetMachineLearningComponentContainers(); // invoke the operation string name = "string"; @@ -202,8 +202,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceComponentContainer() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - WorkspaceComponentResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + MachineLearningComponentContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs similarity index 67% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs index c8eabd7313df..82ca47313064 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceComponentResource + public partial class Sample_MachineLearningComponentContainerResource { // Delete Workspace Component Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteWorkspaceComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentResource created on azure - // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource + // this example assumes you already have this MachineLearningComponentContainerResource created on azure + // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); + ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); // invoke the operation - await workspaceComponent.DeleteAsync(WaitUntil.Completed); + await machineLearningComponentContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetWorkspaceComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentResource created on azure - // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource + // this example assumes you already have this MachineLearningComponentContainerResource created on azure + // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); + ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); // invoke the operation - WorkspaceComponentResource result = await workspaceComponent.GetAsync(); + MachineLearningComponentContainerResource result = await machineLearningComponentContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateWorkspaceComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentResource created on azure - // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource + // this example assumes you already have this MachineLearningComponentContainerResource created on azure + // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); + ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); // invoke the operation MachineLearningComponentContainerData data = new MachineLearningComponentContainerData(new MachineLearningComponentContainerProperties() @@ -113,8 +113,8 @@ public async Task Update_CreateOrUpdateWorkspaceComponentContainer() ["string"] = "string", }, }); - ArmOperation lro = await workspaceComponent.UpdateAsync(WaitUntil.Completed, data); - WorkspaceComponentResource result = lro.Value; + ArmOperation lro = await machineLearningComponentContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningComponentContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs index 31722b9d1083..b960c0a19a8b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceComponentVersionCollection + public partial class Sample_MachineLearningComponentVersionCollection { // List Workspace Component Version. [NUnit.Framework.Test] @@ -32,22 +32,22 @@ public async Task GetAll_ListWorkspaceComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentResource created on azure - // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource + // this example assumes you already have this MachineLearningComponentContainerResource created on azure + // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); + ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); - // get the collection of this WorkspaceComponentVersionResource - WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); + // get the collection of this MachineLearningComponentVersionResource + MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (WorkspaceComponentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (MachineLearningComponentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -72,21 +72,21 @@ public async Task Get_GetWorkspaceComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentResource created on azure - // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource + // this example assumes you already have this MachineLearningComponentContainerResource created on azure + // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); + ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); - // get the collection of this WorkspaceComponentVersionResource - WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); + // get the collection of this MachineLearningComponentVersionResource + MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); // invoke the operation string version = "string"; - WorkspaceComponentVersionResource result = await collection.GetAsync(version); + MachineLearningComponentVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -108,17 +108,17 @@ public async Task Exists_GetWorkspaceComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentResource created on azure - // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource + // this example assumes you already have this MachineLearningComponentContainerResource created on azure + // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); + ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); - // get the collection of this WorkspaceComponentVersionResource - WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); + // get the collection of this MachineLearningComponentVersionResource + MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); // invoke the operation string version = "string"; @@ -140,22 +140,22 @@ public async Task GetIfExists_GetWorkspaceComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentResource created on azure - // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource + // this example assumes you already have this MachineLearningComponentContainerResource created on azure + // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); + ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); - // get the collection of this WorkspaceComponentVersionResource - WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); + // get the collection of this MachineLearningComponentVersionResource + MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - WorkspaceComponentVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningComponentVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -184,17 +184,17 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentResource created on azure - // for more information of creating WorkspaceComponentResource, please refer to the document of WorkspaceComponentResource + // this example assumes you already have this MachineLearningComponentContainerResource created on azure + // for more information of creating MachineLearningComponentContainerResource, please refer to the document of MachineLearningComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceComponentResourceId = WorkspaceComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceComponentResource workspaceComponent = client.GetWorkspaceComponentResource(workspaceComponentResourceId); + ResourceIdentifier machineLearningComponentContainerResourceId = MachineLearningComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningComponentContainerResource machineLearningComponentContainer = client.GetMachineLearningComponentContainerResource(machineLearningComponentContainerResourceId); - // get the collection of this WorkspaceComponentVersionResource - WorkspaceComponentVersionCollection collection = workspaceComponent.GetWorkspaceComponentVersions(); + // get the collection of this MachineLearningComponentVersionResource + MachineLearningComponentVersionCollection collection = machineLearningComponentContainer.GetMachineLearningComponentVersions(); // invoke the operation string version = "string"; @@ -215,8 +215,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceComponentVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - WorkspaceComponentVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningComponentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs index aee9a5319242..b1d4bd2c28d8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceComponentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceComponentVersionResource + public partial class Sample_MachineLearningComponentVersionResource { // Delete Workspace Component Version. [NUnit.Framework.Test] @@ -32,18 +32,18 @@ public async Task Delete_DeleteWorkspaceComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentVersionResource created on azure - // for more information of creating WorkspaceComponentVersionResource, please refer to the document of WorkspaceComponentVersionResource + // this example assumes you already have this MachineLearningComponentVersionResource created on azure + // for more information of creating MachineLearningComponentVersionResource, please refer to the document of MachineLearningComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceComponentVersionResourceId = WorkspaceComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceComponentVersionResource workspaceComponentVersion = client.GetWorkspaceComponentVersionResource(workspaceComponentVersionResourceId); + ResourceIdentifier machineLearningComponentVersionResourceId = MachineLearningComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningComponentVersionResource machineLearningComponentVersion = client.GetMachineLearningComponentVersionResource(machineLearningComponentVersionResourceId); // invoke the operation - await workspaceComponentVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningComponentVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -61,18 +61,18 @@ public async Task Get_GetWorkspaceComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentVersionResource created on azure - // for more information of creating WorkspaceComponentVersionResource, please refer to the document of WorkspaceComponentVersionResource + // this example assumes you already have this MachineLearningComponentVersionResource created on azure + // for more information of creating MachineLearningComponentVersionResource, please refer to the document of MachineLearningComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceComponentVersionResourceId = WorkspaceComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceComponentVersionResource workspaceComponentVersion = client.GetWorkspaceComponentVersionResource(workspaceComponentVersionResourceId); + ResourceIdentifier machineLearningComponentVersionResourceId = MachineLearningComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningComponentVersionResource machineLearningComponentVersion = client.GetMachineLearningComponentVersionResource(machineLearningComponentVersionResourceId); // invoke the operation - WorkspaceComponentVersionResource result = await workspaceComponentVersion.GetAsync(); + MachineLearningComponentVersionResource result = await machineLearningComponentVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -94,15 +94,15 @@ public async Task Update_CreateOrUpdateWorkspaceComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceComponentVersionResource created on azure - // for more information of creating WorkspaceComponentVersionResource, please refer to the document of WorkspaceComponentVersionResource + // this example assumes you already have this MachineLearningComponentVersionResource created on azure + // for more information of creating MachineLearningComponentVersionResource, please refer to the document of MachineLearningComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceComponentVersionResourceId = WorkspaceComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceComponentVersionResource workspaceComponentVersion = client.GetWorkspaceComponentVersionResource(workspaceComponentVersionResourceId); + ResourceIdentifier machineLearningComponentVersionResourceId = MachineLearningComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningComponentVersionResource machineLearningComponentVersion = client.GetMachineLearningComponentVersionResource(machineLearningComponentVersionResourceId); // invoke the operation MachineLearningComponentVersionData data = new MachineLearningComponentVersionData(new MachineLearningComponentVersionProperties() @@ -122,8 +122,8 @@ public async Task Update_CreateOrUpdateWorkspaceComponentVersion() ["string"] = "string", }, }); - ArmOperation lro = await workspaceComponentVersion.UpdateAsync(WaitUntil.Completed, data); - WorkspaceComponentVersionResource result = lro.Value; + ArmOperation lro = await machineLearningComponentVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningComponentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs index ebc019c8a32e..b1cf633e691d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs @@ -842,21 +842,6 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithSchedules() }, ComputeInstanceAuthorizationType = MachineLearningComputeInstanceAuthorizationType.Personal, PersonalComputeInstanceAssignedUser = new MachineLearningComputeInstanceAssignedUser("00000000-0000-0000-0000-000000000000", Guid.Parse("00000000-0000-0000-0000-000000000000")), - SchedulesComputeStartStop = -{ -new MachineLearningComputeStartStopSchedule() -{ -Status = MachineLearningScheduleStatus.Enabled, -Action = MachineLearningComputePowerAction.Stop, -TriggerType = MachineLearningTriggerType.Cron, -Cron = new Cron() -{ -StartTime = "2021-04-23T01:30:00", -TimeZone = "Pacific Standard Time", -Expression = "0 18 * * *", -}, -} -}, }, }, }; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs similarity index 87% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs index 782e563e7ea5..84e5184d54f8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceDataCollection + public partial class Sample_MachineLearningDataContainerCollection { // List Workspace Data Container. [NUnit.Framework.Test] @@ -39,11 +39,11 @@ public async Task GetAll_ListWorkspaceDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceDataResource - WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); + // get the collection of this MachineLearningDataContainerResource + MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); // invoke the operation and iterate over the result - await foreach (WorkspaceDataResource item in collection.GetAllAsync()) + await foreach (MachineLearningDataContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -76,12 +76,12 @@ public async Task Get_GetWorkspaceDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceDataResource - WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); + // get the collection of this MachineLearningDataContainerResource + MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); // invoke the operation string name = "datacontainer123"; - WorkspaceDataResource result = await collection.GetAsync(name); + MachineLearningDataContainerResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -111,8 +111,8 @@ public async Task Exists_GetWorkspaceDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceDataResource - WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); + // get the collection of this MachineLearningDataContainerResource + MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); // invoke the operation string name = "datacontainer123"; @@ -142,13 +142,13 @@ public async Task GetIfExists_GetWorkspaceDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceDataResource - WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); + // get the collection of this MachineLearningDataContainerResource + MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); // invoke the operation string name = "datacontainer123"; - NullableResponse response = await collection.GetIfExistsAsync(name); - WorkspaceDataResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(name); + MachineLearningDataContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -185,8 +185,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceDataContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceDataResource - WorkspaceDataCollection collection = machineLearningWorkspace.GetAllWorkspaceData(); + // get the collection of this MachineLearningDataContainerResource + MachineLearningDataContainerCollection collection = machineLearningWorkspace.GetMachineLearningDataContainers(); // invoke the operation string name = "datacontainer123"; @@ -204,8 +204,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceDataContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - WorkspaceDataResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + MachineLearningDataContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs index 502e9f72749a..601fcd8e178f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceDataResource + public partial class Sample_MachineLearningDataContainerResource { // Delete Workspace Data Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteWorkspaceDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataResource created on azure - // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource + // this example assumes you already have this MachineLearningDataContainerResource created on azure + // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "datacontainer123"; - ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); + ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); // invoke the operation - await workspaceData.DeleteAsync(WaitUntil.Completed); + await machineLearningDataContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetWorkspaceDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataResource created on azure - // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource + // this example assumes you already have this MachineLearningDataContainerResource created on azure + // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "datacontainer123"; - ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); + ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); // invoke the operation - WorkspaceDataResource result = await workspaceData.GetAsync(); + MachineLearningDataContainerResource result = await machineLearningDataContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateWorkspaceDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataResource created on azure - // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource + // this example assumes you already have this MachineLearningDataContainerResource created on azure + // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "datacontainer123"; - ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); + ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); // invoke the operation MachineLearningDataContainerData data = new MachineLearningDataContainerData(new MachineLearningDataContainerProperties(new MachineLearningDataType("UriFile")) @@ -115,8 +115,8 @@ public async Task Update_CreateOrUpdateWorkspaceDataContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await workspaceData.UpdateAsync(WaitUntil.Completed, data); - WorkspaceDataResource result = lro.Value; + ArmOperation lro = await machineLearningDataContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningDataContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs index 16ae2e87e8c4..eff59dfe1a0d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceDataVersionCollection + public partial class Sample_MachineLearningDataVersionCollection { // List Workspace Data Version Base. [NUnit.Framework.Test] @@ -31,21 +31,21 @@ public async Task GetAll_ListWorkspaceDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataResource created on azure - // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource + // this example assumes you already have this MachineLearningDataContainerResource created on azure + // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); + ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); - // get the collection of this WorkspaceDataVersionResource - WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); + // get the collection of this MachineLearningDataVersionResource + MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); // invoke the operation and iterate over the result - WorkspaceDataVersionCollectionGetAllOptions options = new WorkspaceDataVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Tags = "string" }; - await foreach (WorkspaceDataVersionResource item in collection.GetAllAsync(options)) + MachineLearningDataVersionCollectionGetAllOptions options = new MachineLearningDataVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Tags = "string" }; + await foreach (MachineLearningDataVersionResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -70,21 +70,21 @@ public async Task Get_GetWorkspaceDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataResource created on azure - // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource + // this example assumes you already have this MachineLearningDataContainerResource created on azure + // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); + ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); - // get the collection of this WorkspaceDataVersionResource - WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); + // get the collection of this MachineLearningDataVersionResource + MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); // invoke the operation string version = "string"; - WorkspaceDataVersionResource result = await collection.GetAsync(version); + MachineLearningDataVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -106,17 +106,17 @@ public async Task Exists_GetWorkspaceDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataResource created on azure - // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource + // this example assumes you already have this MachineLearningDataContainerResource created on azure + // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); + ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); - // get the collection of this WorkspaceDataVersionResource - WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); + // get the collection of this MachineLearningDataVersionResource + MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); // invoke the operation string version = "string"; @@ -138,22 +138,22 @@ public async Task GetIfExists_GetWorkspaceDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataResource created on azure - // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource + // this example assumes you already have this MachineLearningDataContainerResource created on azure + // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); + ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); - // get the collection of this WorkspaceDataVersionResource - WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); + // get the collection of this MachineLearningDataVersionResource + MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - WorkspaceDataVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningDataVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -182,17 +182,17 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataResource created on azure - // for more information of creating WorkspaceDataResource, please refer to the document of WorkspaceDataResource + // this example assumes you already have this MachineLearningDataContainerResource created on azure + // for more information of creating MachineLearningDataContainerResource, please refer to the document of MachineLearningDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceDataResourceId = WorkspaceDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceDataResource workspaceData = client.GetWorkspaceDataResource(workspaceDataResourceId); + ResourceIdentifier machineLearningDataContainerResourceId = MachineLearningDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningDataContainerResource machineLearningDataContainer = client.GetMachineLearningDataContainerResource(machineLearningDataContainerResourceId); - // get the collection of this WorkspaceDataVersionResource - WorkspaceDataVersionCollection collection = workspaceData.GetWorkspaceDataVersions(); + // get the collection of this MachineLearningDataVersionResource + MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions(); // invoke the operation string version = "string"; @@ -209,8 +209,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceDataVersionBase() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - WorkspaceDataVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningDataVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs similarity index 70% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs index bd377e5eafdc..5c5c034ed067 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceDataVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceDataVersionResource + public partial class Sample_MachineLearningDataVersionResource { // Delete Workspace Data Version Base. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteWorkspaceDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataVersionResource created on azure - // for more information of creating WorkspaceDataVersionResource, please refer to the document of WorkspaceDataVersionResource + // this example assumes you already have this MachineLearningDataVersionResource created on azure + // for more information of creating MachineLearningDataVersionResource, please refer to the document of MachineLearningDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceDataVersionResourceId = WorkspaceDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceDataVersionResource workspaceDataVersion = client.GetWorkspaceDataVersionResource(workspaceDataVersionResourceId); + ResourceIdentifier machineLearningDataVersionResourceId = MachineLearningDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningDataVersionResource machineLearningDataVersion = client.GetMachineLearningDataVersionResource(machineLearningDataVersionResourceId); // invoke the operation - await workspaceDataVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningDataVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,18 +60,18 @@ public async Task Get_GetWorkspaceDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataVersionResource created on azure - // for more information of creating WorkspaceDataVersionResource, please refer to the document of WorkspaceDataVersionResource + // this example assumes you already have this MachineLearningDataVersionResource created on azure + // for more information of creating MachineLearningDataVersionResource, please refer to the document of MachineLearningDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceDataVersionResourceId = WorkspaceDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceDataVersionResource workspaceDataVersion = client.GetWorkspaceDataVersionResource(workspaceDataVersionResourceId); + ResourceIdentifier machineLearningDataVersionResourceId = MachineLearningDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningDataVersionResource machineLearningDataVersion = client.GetMachineLearningDataVersionResource(machineLearningDataVersionResourceId); // invoke the operation - WorkspaceDataVersionResource result = await workspaceDataVersion.GetAsync(); + MachineLearningDataVersionResource result = await machineLearningDataVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateWorkspaceDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceDataVersionResource created on azure - // for more information of creating WorkspaceDataVersionResource, please refer to the document of WorkspaceDataVersionResource + // this example assumes you already have this MachineLearningDataVersionResource created on azure + // for more information of creating MachineLearningDataVersionResource, please refer to the document of MachineLearningDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceDataVersionResourceId = WorkspaceDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceDataVersionResource workspaceDataVersion = client.GetWorkspaceDataVersionResource(workspaceDataVersionResourceId); + ResourceIdentifier machineLearningDataVersionResourceId = MachineLearningDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningDataVersionResource machineLearningDataVersion = client.GetMachineLearningDataVersionResource(machineLearningDataVersionResourceId); // invoke the operation MachineLearningDataVersionData data = new MachineLearningDataVersionData(new MachineLearningUriFileDataVersion(new Uri("string")) @@ -117,8 +117,8 @@ public async Task Update_CreateOrUpdateWorkspaceDataVersionBase() ["string"] = "string", }, }); - ArmOperation lro = await workspaceDataVersion.UpdateAsync(WaitUntil.Completed, data); - WorkspaceDataVersionResource result = lro.Value; + ArmOperation lro = await machineLearningDataVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningDataVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs similarity index 86% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs index 932910418408..0604985eec4a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceEnvironmentCollection + public partial class Sample_MachineLearningEnvironmentContainerCollection { // List Workspace Environment Container. [NUnit.Framework.Test] @@ -39,11 +39,11 @@ public async Task GetAll_ListWorkspaceEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceEnvironmentResource - WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); + // get the collection of this MachineLearningEnvironmentContainerResource + MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); // invoke the operation and iterate over the result - await foreach (WorkspaceEnvironmentResource item in collection.GetAllAsync()) + await foreach (MachineLearningEnvironmentContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -76,12 +76,12 @@ public async Task Get_GetWorkspaceEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceEnvironmentResource - WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); + // get the collection of this MachineLearningEnvironmentContainerResource + MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); // invoke the operation string name = "testEnvironment"; - WorkspaceEnvironmentResource result = await collection.GetAsync(name); + MachineLearningEnvironmentContainerResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -111,8 +111,8 @@ public async Task Exists_GetWorkspaceEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceEnvironmentResource - WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); + // get the collection of this MachineLearningEnvironmentContainerResource + MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); // invoke the operation string name = "testEnvironment"; @@ -142,13 +142,13 @@ public async Task GetIfExists_GetWorkspaceEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceEnvironmentResource - WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); + // get the collection of this MachineLearningEnvironmentContainerResource + MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); // invoke the operation string name = "testEnvironment"; - NullableResponse response = await collection.GetIfExistsAsync(name); - WorkspaceEnvironmentResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(name); + MachineLearningEnvironmentContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -185,8 +185,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceEnvironmentContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceEnvironmentResource - WorkspaceEnvironmentCollection collection = machineLearningWorkspace.GetWorkspaceEnvironments(); + // get the collection of this MachineLearningEnvironmentContainerResource + MachineLearningEnvironmentContainerCollection collection = machineLearningWorkspace.GetMachineLearningEnvironmentContainers(); // invoke the operation string name = "testEnvironment"; @@ -206,8 +206,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceEnvironmentContainer() ["additionalProp3"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - WorkspaceEnvironmentResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + MachineLearningEnvironmentContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs index bd1099c016c3..72c2622d9bc4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceEnvironmentResource + public partial class Sample_MachineLearningEnvironmentContainerResource { // Delete Workspace Environment Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteWorkspaceEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentResource created on azure - // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource + // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure + // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testContainer"; - ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); + ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); // invoke the operation - await workspaceEnvironment.DeleteAsync(WaitUntil.Completed); + await machineLearningEnvironmentContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetWorkspaceEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentResource created on azure - // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource + // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure + // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testEnvironment"; - ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); + ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); // invoke the operation - WorkspaceEnvironmentResource result = await workspaceEnvironment.GetAsync(); + MachineLearningEnvironmentContainerResource result = await machineLearningEnvironmentContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateWorkspaceEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentResource created on azure - // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource + // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure + // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "testworkspace"; string name = "testEnvironment"; - ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); + ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); // invoke the operation MachineLearningEnvironmentContainerData data = new MachineLearningEnvironmentContainerData(new MachineLearningEnvironmentContainerProperties() @@ -117,8 +117,8 @@ public async Task Update_CreateOrUpdateWorkspaceEnvironmentContainer() ["additionalProp3"] = "string", }, }); - ArmOperation lro = await workspaceEnvironment.UpdateAsync(WaitUntil.Completed, data); - WorkspaceEnvironmentResource result = lro.Value; + ArmOperation lro = await machineLearningEnvironmentContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningEnvironmentContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs index 26ee47ce2703..56be920403ee 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceEnvironmentVersionCollection + public partial class Sample_MachineLearningEnvironmentVersionCollection { // List Workspace Environment Version. [NUnit.Framework.Test] @@ -31,22 +31,22 @@ public async Task GetAll_ListWorkspaceEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentResource created on azure - // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource + // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure + // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); + ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); - // get the collection of this WorkspaceEnvironmentVersionResource - WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); + // get the collection of this MachineLearningEnvironmentVersionResource + MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (WorkspaceEnvironmentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (MachineLearningEnvironmentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -71,21 +71,21 @@ public async Task Get_GetWorkspaceEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentResource created on azure - // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource + // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure + // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); + ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); - // get the collection of this WorkspaceEnvironmentVersionResource - WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); + // get the collection of this MachineLearningEnvironmentVersionResource + MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); // invoke the operation string version = "string"; - WorkspaceEnvironmentVersionResource result = await collection.GetAsync(version); + MachineLearningEnvironmentVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -107,17 +107,17 @@ public async Task Exists_GetWorkspaceEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentResource created on azure - // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource + // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure + // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); + ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); - // get the collection of this WorkspaceEnvironmentVersionResource - WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); + // get the collection of this MachineLearningEnvironmentVersionResource + MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); // invoke the operation string version = "string"; @@ -139,22 +139,22 @@ public async Task GetIfExists_GetWorkspaceEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentResource created on azure - // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource + // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure + // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); + ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); - // get the collection of this WorkspaceEnvironmentVersionResource - WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); + // get the collection of this MachineLearningEnvironmentVersionResource + MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - WorkspaceEnvironmentVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningEnvironmentVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -183,17 +183,17 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentResource created on azure - // for more information of creating WorkspaceEnvironmentResource, please refer to the document of WorkspaceEnvironmentResource + // this example assumes you already have this MachineLearningEnvironmentContainerResource created on azure + // for more information of creating MachineLearningEnvironmentContainerResource, please refer to the document of MachineLearningEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceEnvironmentResourceId = WorkspaceEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceEnvironmentResource workspaceEnvironment = client.GetWorkspaceEnvironmentResource(workspaceEnvironmentResourceId); + ResourceIdentifier machineLearningEnvironmentContainerResourceId = MachineLearningEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningEnvironmentContainerResource machineLearningEnvironmentContainer = client.GetMachineLearningEnvironmentContainerResource(machineLearningEnvironmentContainerResourceId); - // get the collection of this WorkspaceEnvironmentVersionResource - WorkspaceEnvironmentVersionCollection collection = workspaceEnvironment.GetWorkspaceEnvironmentVersions(); + // get the collection of this MachineLearningEnvironmentVersionResource + MachineLearningEnvironmentVersionCollection collection = machineLearningEnvironmentContainer.GetMachineLearningEnvironmentVersions(); // invoke the operation string version = "string"; @@ -222,8 +222,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceEnvironmentVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - WorkspaceEnvironmentVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningEnvironmentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs similarity index 71% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs index 2f720b10eff9..65354764bdbd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEnvironmentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceEnvironmentVersionResource + public partial class Sample_MachineLearningEnvironmentVersionResource { // Delete Workspace Environment Version. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteWorkspaceEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentVersionResource created on azure - // for more information of creating WorkspaceEnvironmentVersionResource, please refer to the document of WorkspaceEnvironmentVersionResource + // this example assumes you already have this MachineLearningEnvironmentVersionResource created on azure + // for more information of creating MachineLearningEnvironmentVersionResource, please refer to the document of MachineLearningEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceEnvironmentVersionResourceId = WorkspaceEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceEnvironmentVersionResource workspaceEnvironmentVersion = client.GetWorkspaceEnvironmentVersionResource(workspaceEnvironmentVersionResourceId); + ResourceIdentifier machineLearningEnvironmentVersionResourceId = MachineLearningEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningEnvironmentVersionResource machineLearningEnvironmentVersion = client.GetMachineLearningEnvironmentVersionResource(machineLearningEnvironmentVersionResourceId); // invoke the operation - await workspaceEnvironmentVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningEnvironmentVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,18 +60,18 @@ public async Task Get_GetWorkspaceEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentVersionResource created on azure - // for more information of creating WorkspaceEnvironmentVersionResource, please refer to the document of WorkspaceEnvironmentVersionResource + // this example assumes you already have this MachineLearningEnvironmentVersionResource created on azure + // for more information of creating MachineLearningEnvironmentVersionResource, please refer to the document of MachineLearningEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceEnvironmentVersionResourceId = WorkspaceEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceEnvironmentVersionResource workspaceEnvironmentVersion = client.GetWorkspaceEnvironmentVersionResource(workspaceEnvironmentVersionResourceId); + ResourceIdentifier machineLearningEnvironmentVersionResourceId = MachineLearningEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningEnvironmentVersionResource machineLearningEnvironmentVersion = client.GetMachineLearningEnvironmentVersionResource(machineLearningEnvironmentVersionResourceId); // invoke the operation - WorkspaceEnvironmentVersionResource result = await workspaceEnvironmentVersion.GetAsync(); + MachineLearningEnvironmentVersionResource result = await machineLearningEnvironmentVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateWorkspaceEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceEnvironmentVersionResource created on azure - // for more information of creating WorkspaceEnvironmentVersionResource, please refer to the document of WorkspaceEnvironmentVersionResource + // this example assumes you already have this MachineLearningEnvironmentVersionResource created on azure + // for more information of creating MachineLearningEnvironmentVersionResource, please refer to the document of MachineLearningEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceEnvironmentVersionResourceId = WorkspaceEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceEnvironmentVersionResource workspaceEnvironmentVersion = client.GetWorkspaceEnvironmentVersionResource(workspaceEnvironmentVersionResourceId); + ResourceIdentifier machineLearningEnvironmentVersionResourceId = MachineLearningEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningEnvironmentVersionResource machineLearningEnvironmentVersion = client.GetMachineLearningEnvironmentVersionResource(machineLearningEnvironmentVersionResourceId); // invoke the operation MachineLearningEnvironmentVersionData data = new MachineLearningEnvironmentVersionData(new MachineLearningEnvironmentVersionProperties() @@ -129,8 +129,8 @@ public async Task Update_CreateOrUpdateWorkspaceEnvironmentVersion() ["string"] = "string", }, }); - ArmOperation lro = await workspaceEnvironmentVersion.UpdateAsync(WaitUntil.Completed, data); - WorkspaceEnvironmentVersionResource result = lro.Value; + ArmOperation lro = await machineLearningEnvironmentVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningEnvironmentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs similarity index 87% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs index c2487356b644..63fbb3224d4b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceModelCollection + public partial class Sample_MachineLearningModelContainerCollection { // List Workspace Model Container. [NUnit.Framework.Test] @@ -39,11 +39,11 @@ public async Task GetAll_ListWorkspaceModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceModelResource - WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); + // get the collection of this MachineLearningModelContainerResource + MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); // invoke the operation and iterate over the result - await foreach (WorkspaceModelResource item in collection.GetAllAsync()) + await foreach (MachineLearningModelContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -76,12 +76,12 @@ public async Task Get_GetWorkspaceModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceModelResource - WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); + // get the collection of this MachineLearningModelContainerResource + MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); // invoke the operation string name = "testContainer"; - WorkspaceModelResource result = await collection.GetAsync(name); + MachineLearningModelContainerResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -111,8 +111,8 @@ public async Task Exists_GetWorkspaceModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceModelResource - WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); + // get the collection of this MachineLearningModelContainerResource + MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); // invoke the operation string name = "testContainer"; @@ -142,13 +142,13 @@ public async Task GetIfExists_GetWorkspaceModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceModelResource - WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); + // get the collection of this MachineLearningModelContainerResource + MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); // invoke the operation string name = "testContainer"; - NullableResponse response = await collection.GetIfExistsAsync(name); - WorkspaceModelResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(name); + MachineLearningModelContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -185,8 +185,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceModelContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this WorkspaceModelResource - WorkspaceModelCollection collection = machineLearningWorkspace.GetWorkspaceModels(); + // get the collection of this MachineLearningModelContainerResource + MachineLearningModelContainerCollection collection = machineLearningWorkspace.GetMachineLearningModelContainers(); // invoke the operation string name = "testContainer"; @@ -199,8 +199,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceModelContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - WorkspaceModelResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + MachineLearningModelContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs index 272e35860a26..d379dc04e308 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceModelResource + public partial class Sample_MachineLearningModelContainerResource { // Delete Workspace Model Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteWorkspaceModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelResource created on azure - // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource + // this example assumes you already have this MachineLearningModelContainerResource created on azure + // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "testContainer"; - ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); + ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); // invoke the operation - await workspaceModel.DeleteAsync(WaitUntil.Completed); + await machineLearningModelContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetWorkspaceModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelResource created on azure - // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource + // this example assumes you already have this MachineLearningModelContainerResource created on azure + // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "testContainer"; - ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); + ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); // invoke the operation - WorkspaceModelResource result = await workspaceModel.GetAsync(); + MachineLearningModelContainerResource result = await machineLearningModelContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateWorkspaceModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelResource created on azure - // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource + // this example assumes you already have this MachineLearningModelContainerResource created on azure + // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string workspaceName = "workspace123"; string name = "testContainer"; - ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); + ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); // invoke the operation MachineLearningModelContainerData data = new MachineLearningModelContainerData(new MachineLearningModelContainerProperties() @@ -110,8 +110,8 @@ public async Task Update_CreateOrUpdateWorkspaceModelContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await workspaceModel.UpdateAsync(WaitUntil.Completed, data); - WorkspaceModelResource result = lro.Value; + ArmOperation lro = await machineLearningModelContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningModelContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs index 94798bf8face..30dbc0e20c58 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceModelVersionCollection + public partial class Sample_MachineLearningModelVersionCollection { // List Workspace Model Version. [NUnit.Framework.Test] @@ -31,21 +31,21 @@ public async Task GetAll_ListWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelResource created on azure - // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource + // this example assumes you already have this MachineLearningModelContainerResource created on azure + // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); + ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); - // get the collection of this WorkspaceModelVersionResource - WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); + // get the collection of this MachineLearningModelVersionResource + MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); // invoke the operation and iterate over the result - WorkspaceModelVersionCollectionGetAllOptions options = new WorkspaceModelVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Version = "string", Description = "string", Offset = 1, Tags = "string", Properties = "string" }; - await foreach (WorkspaceModelVersionResource item in collection.GetAllAsync(options)) + MachineLearningModelVersionCollectionGetAllOptions options = new MachineLearningModelVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Version = "string", Description = "string", Offset = 1, Tags = "string", Properties = "string" }; + await foreach (MachineLearningModelVersionResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -70,21 +70,21 @@ public async Task Get_GetWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelResource created on azure - // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource + // this example assumes you already have this MachineLearningModelContainerResource created on azure + // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); + ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); - // get the collection of this WorkspaceModelVersionResource - WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); + // get the collection of this MachineLearningModelVersionResource + MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); // invoke the operation string version = "string"; - WorkspaceModelVersionResource result = await collection.GetAsync(version); + MachineLearningModelVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -106,17 +106,17 @@ public async Task Exists_GetWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelResource created on azure - // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource + // this example assumes you already have this MachineLearningModelContainerResource created on azure + // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); + ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); - // get the collection of this WorkspaceModelVersionResource - WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); + // get the collection of this MachineLearningModelVersionResource + MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); // invoke the operation string version = "string"; @@ -138,22 +138,22 @@ public async Task GetIfExists_GetWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelResource created on azure - // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource + // this example assumes you already have this MachineLearningModelContainerResource created on azure + // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); + ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); - // get the collection of this WorkspaceModelVersionResource - WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); + // get the collection of this MachineLearningModelVersionResource + MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - WorkspaceModelVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningModelVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -182,17 +182,17 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelResource created on azure - // for more information of creating WorkspaceModelResource, please refer to the document of WorkspaceModelResource + // this example assumes you already have this MachineLearningModelContainerResource created on azure + // for more information of creating MachineLearningModelContainerResource, please refer to the document of MachineLearningModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier workspaceModelResourceId = WorkspaceModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - WorkspaceModelResource workspaceModel = client.GetWorkspaceModelResource(workspaceModelResourceId); + ResourceIdentifier machineLearningModelContainerResourceId = MachineLearningModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningModelContainerResource machineLearningModelContainer = client.GetMachineLearningModelContainerResource(machineLearningModelContainerResourceId); - // get the collection of this WorkspaceModelVersionResource - WorkspaceModelVersionCollection collection = workspaceModel.GetWorkspaceModelVersions(); + // get the collection of this MachineLearningModelVersionResource + MachineLearningModelVersionCollection collection = machineLearningModelContainer.GetMachineLearningModelVersions(); // invoke the operation string version = "string"; @@ -221,8 +221,8 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceModelVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - WorkspaceModelVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningModelVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs similarity index 71% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs index 5017fa46ffc9..1db10ec4e12a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_WorkspaceModelVersionResource + public partial class Sample_MachineLearningModelVersionResource { // Delete Workspace Model Version. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelVersionResource created on azure - // for more information of creating WorkspaceModelVersionResource, please refer to the document of WorkspaceModelVersionResource + // this example assumes you already have this MachineLearningModelVersionResource created on azure + // for more information of creating MachineLearningModelVersionResource, please refer to the document of MachineLearningModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceModelVersionResourceId = WorkspaceModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceModelVersionResource workspaceModelVersion = client.GetWorkspaceModelVersionResource(workspaceModelVersionResourceId); + ResourceIdentifier machineLearningModelVersionResourceId = MachineLearningModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId); // invoke the operation - await workspaceModelVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningModelVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,18 +60,18 @@ public async Task Get_GetWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelVersionResource created on azure - // for more information of creating WorkspaceModelVersionResource, please refer to the document of WorkspaceModelVersionResource + // this example assumes you already have this MachineLearningModelVersionResource created on azure + // for more information of creating MachineLearningModelVersionResource, please refer to the document of MachineLearningModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceModelVersionResourceId = WorkspaceModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceModelVersionResource workspaceModelVersion = client.GetWorkspaceModelVersionResource(workspaceModelVersionResourceId); + ResourceIdentifier machineLearningModelVersionResourceId = MachineLearningModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId); // invoke the operation - WorkspaceModelVersionResource result = await workspaceModelVersion.GetAsync(); + MachineLearningModelVersionResource result = await machineLearningModelVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelVersionResource created on azure - // for more information of creating WorkspaceModelVersionResource, please refer to the document of WorkspaceModelVersionResource + // this example assumes you already have this MachineLearningModelVersionResource created on azure + // for more information of creating MachineLearningModelVersionResource, please refer to the document of MachineLearningModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceModelVersionResourceId = WorkspaceModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceModelVersionResource workspaceModelVersion = client.GetWorkspaceModelVersionResource(workspaceModelVersionResourceId); + ResourceIdentifier machineLearningModelVersionResourceId = MachineLearningModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId); // invoke the operation MachineLearningModelVersionData data = new MachineLearningModelVersionData(new MachineLearningModelVersionProperties() @@ -129,8 +129,8 @@ public async Task Update_CreateOrUpdateWorkspaceModelVersion() ["string"] = "string", }, }); - ArmOperation lro = await workspaceModelVersion.UpdateAsync(WaitUntil.Completed, data); - WorkspaceModelVersionResource result = lro.Value; + ArmOperation lro = await machineLearningModelVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningModelVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -152,15 +152,15 @@ public async Task Package_PackageWorkspaceModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this WorkspaceModelVersionResource created on azure - // for more information of creating WorkspaceModelVersionResource, please refer to the document of WorkspaceModelVersionResource + // this example assumes you already have this MachineLearningModelVersionResource created on azure + // for more information of creating MachineLearningModelVersionResource, please refer to the document of MachineLearningModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier workspaceModelVersionResourceId = WorkspaceModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - WorkspaceModelVersionResource workspaceModelVersion = client.GetWorkspaceModelVersionResource(workspaceModelVersionResourceId); + ResourceIdentifier machineLearningModelVersionResourceId = MachineLearningModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId); // invoke the operation PackageRequest body = new PackageRequest(new AzureMLBatchInferencingServer() @@ -197,7 +197,7 @@ public async Task Package_PackageWorkspaceModelVersion() ["string"] = "string", }, }; - ArmOperation lro = await workspaceModelVersion.PackageAsync(WaitUntil.Completed, body); + ArmOperation lro = await machineLearningModelVersion.PackageAsync(WaitUntil.Completed, body); PackageResponse result = lro.Value; Console.WriteLine($"Succeeded: {result}"); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs index d630ef67dbe7..80fcca87269a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs @@ -195,7 +195,7 @@ public async Task CreateOrUpdate_WorkspacePutPrivateEndpointConnection() ConnectionState = new MachineLearningPrivateLinkServiceConnectionState() { Description = "Auto-Approved", - Status = EndpointServiceConnectionStatus.Approved, + Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, privateEndpointConnectionName, data); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs index 67cfc87408bf..82a3a4d5f999 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs @@ -106,7 +106,7 @@ public async Task Update_WorkspacePutPrivateEndpointConnection() ConnectionState = new MachineLearningPrivateLinkServiceConnectionState() { Description = "Auto-Approved", - Status = EndpointServiceConnectionStatus.Approved, + Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved, }, }; ArmOperation lro = await machineLearningPrivateEndpointConnection.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs index 0dfa7908ac26..5045844f360c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_CreateWorkspace() ApplicationInsights = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights", ContainerRegistry = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry", Description = "test description", - Encryption = new MachineLearningEncryptionSetting(new Models.KeyVaultProperties("https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv") + Encryption = new MachineLearningEncryptionSetting(new MachineLearningEncryptionKeyVaultProperties("https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb", new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")) { IdentityClientId = "", }, MachineLearningEncryptionStatus.Enabled) @@ -217,7 +217,7 @@ public async Task CreateOrUpdate_CreateWorkspace() GroupId = "Sql", PrivateLinkResourceId = new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql"), RequestMessage = "Please approve", -Status = EndpointServiceConnectionStatus.Approved, +Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved, } }, StorageAccount = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount", diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs index c366925059bf..dd31c7ab2d60 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs @@ -165,7 +165,7 @@ public async Task Update_UpdateWorkspace() { Description = "new description", FriendlyName = "New friendly name", - PublicNetworkAccess = MachineLearningPublicNetworkAccessType.Disabled, + PublicNetworkAccessType = MachineLearningPublicNetworkAccessType.Disabled, }; ArmOperation lro = await machineLearningWorkspace.UpdateAsync(WaitUntil.Completed, patch); MachineLearningWorkspaceResource result = lro.Value; @@ -368,7 +368,7 @@ public async Task GetOutboundNetworkDependenciesEndpoints_ListOutboundNetworkDep MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); // invoke the operation and iterate over the result - await foreach (FqdnEndpointsPropertyBag item in machineLearningWorkspace.GetOutboundNetworkDependenciesEndpointsAsync()) + await foreach (MachineLearningFqdnEndpoints item in machineLearningWorkspace.GetOutboundNetworkDependenciesEndpointsAsync()) { Console.WriteLine($"Succeeded: {item}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs index 980b9c2f2ca3..cadef0a6bddf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs @@ -25,43 +25,7 @@ public partial class Sample_RegistryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRegistriesWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/list-SystemCreated.json - // this example is just showing the usage of "Registries_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); - - // invoke the operation and iterate over the result - await foreach (RegistryResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RegistryData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // List registries with user created accounts. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListRegistriesWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/list-UserCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/list.json // this example is just showing the usage of "Registries_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +61,7 @@ public async Task GetAll_ListRegistriesWithUserCreatedAccounts() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-SystemCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get.json // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +95,7 @@ public async Task Get_GetRegistryWithSystemCreatedAccounts() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-SystemCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get.json // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,113 +125,7 @@ public async Task Exists_GetRegistryWithSystemCreatedAccounts() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-SystemCreated.json - // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); - - // invoke the operation - string registryName = "string"; - NullableResponse response = await collection.GetIfExistsAsync(registryName); - RegistryResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine($"Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - - // Get Registry with user created accounts. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-UserCreated.json - // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); - - // invoke the operation - string registryName = "string"; - RegistryResource result = await collection.GetAsync(registryName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Registry with user created accounts. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-UserCreated.json - // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); - - // invoke the operation - string registryName = "string"; - bool result = await collection.ExistsAsync(registryName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Get Registry with user created accounts. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetIfExists_GetRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-UserCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get.json // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -309,7 +167,7 @@ public async Task GetIfExists_GetRegistryWithUserCreatedAccounts() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/createOrUpdate-SystemCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/createOrUpdate.json // this example is just showing the usage of "Registries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -368,7 +226,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts { ActionsRequired = "string", Description = "string", -Status = EndpointServiceConnectionStatus.Approved, +Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved, }, ProvisioningState = "string", } @@ -420,110 +278,5 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - - // CreateOrUpdate Registry with user created accounts. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/createOrUpdate-UserCreated.json - // this example is just showing the usage of "Registries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); - - // invoke the operation - string registryName = "string"; - RegistryData data = new RegistryData(new AzureLocation("string")) - { - Identity = new ManagedServiceIdentity("None") - { - UserAssignedIdentities = -{ -[new ResourceIdentifier("string")] = new UserAssignedIdentity(), -}, - }, - Kind = "string", - Sku = new MachineLearningSku("string") - { - Tier = MachineLearningSkuTier.Free, - Size = "string", - Family = "string", - Capacity = 1, - }, - DiscoveryUri = new Uri("string"), - IntellectualPropertyPublisher = "string", - ManagedResourceId = "string", - MlFlowRegistryUri = new Uri("string"), - PrivateEndpointConnections = -{ -new RegistryPrivateEndpointConnection() -{ -Id = "string", -Location = new AzureLocation("string"), -GroupIds = -{ -"string" -}, -PrivateEndpoint = new PrivateEndpointResource() -{ -SubnetArmId = "string", -}, -PrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState() -{ -ActionsRequired = "string", -Description = "string", -Status = EndpointServiceConnectionStatus.Approved, -}, -ProvisioningState = "string", -} -}, - PublicNetworkAccess = "string", - RegionDetails = -{ -new RegistryRegionArmDetails() -{ -AcrDetails = -{ -new AcrDetails() -{ -ArmResourceId = "string", -} -}, -Location = new AzureLocation("string"), -StorageAccountDetails = -{ -new StorageAccountDetails() -{ -ArmResourceId = "string", -} -}, -} -}, - Tags = -{ -}, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, registryName, data); - RegistryResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs index b87f5b5d9f6b..56cb0777c199 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs @@ -84,38 +84,7 @@ public async Task Delete_DeleteRegistry() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-SystemCreated.json - // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - string registryName = "string"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); - - // invoke the operation - RegistryResource result = await registry.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Registry with user created accounts. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get-UserCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get.json // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +115,7 @@ public async Task Get_GetRegistryWithUserCreatedAccounts() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/update-SystemCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/update.json // this example is just showing the usage of "Registries_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,58 +162,6 @@ public async Task Update_UpdateRegistryWithSystemCreatedAccounts() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Update Registry with user created accounts. - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_UpdateRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/update-UserCreated.json - // this example is just showing the usage of "Registries_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - string registryName = "string"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); - - // invoke the operation - RegistryPatch patch = new RegistryPatch() - { - Identity = new ManagedServiceIdentity("UserAssigned") - { - UserAssignedIdentities = -{ -[new ResourceIdentifier("string")] = new UserAssignedIdentity(), -}, - }, - Sku = new MachineLearningSkuPatch() - { - Capacity = 1, - Family = "string", - Name = "string", - Size = "string", - Tier = MachineLearningSkuTier.Basic, - }, - Tags = -{ -}, - }; - RegistryResource result = await registry.UpdateAsync(patch); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - // Remove regions from registry [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] @@ -306,7 +223,7 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() { ActionsRequired = "string", Description = "string", -Status = EndpointServiceConnectionStatus.Approved, +Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved, }, ProvisioningState = "string", } @@ -326,7 +243,6 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() AcrAccountSku = "string", ArmResourceId = "string", }, -ArmResourceId = "string", } }, Location = new AzureLocation("string"), @@ -342,7 +258,6 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() StorageAccountName = "string", StorageAccountType = "string", }, -ArmResourceId = "string", } }, } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Extensions/MachineLearningExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Extensions/MachineLearningExtensions.cs new file mode 100644 index 000000000000..1b08c5ad790b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Extensions/MachineLearningExtensions.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Threading; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.MachineLearning +{ + /// A class to add extension methods to Azure.ResourceManager.MachineLearning. + public static partial class MachineLearningExtensions + { + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// Continuation token for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AsyncPageable GetMachineLearningWorkspacesAsync(this SubscriptionResource subscriptionResource, string skip, CancellationToken cancellationToken) + => GetMachineLearningWorkspacesAsync(subscriptionResource, skip, null, cancellationToken); + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// Continuation token for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public static Pageable GetMachineLearningWorkspaces(this SubscriptionResource subscriptionResource, string skip, CancellationToken cancellationToken) + => GetMachineLearningWorkspaces(subscriptionResource, skip, null, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningCodeVersionCollection.cs new file mode 100644 index 000000000000..5e22ea48f1ab --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningCodeVersionCollection.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using System.Threading; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningCodeVersions method from an instance of . + /// + public partial class MachineLearningCodeVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions + /// + /// + /// Operation Id + /// CodeVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(string orderBy, int? top, string skip, CancellationToken cancellationToken) => GetAllAsync(orderBy, top, skip, null, null, cancellationToken); + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions + /// + /// + /// Operation Id + /// CodeVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(string orderBy, int? top, string skip, CancellationToken cancellationToken) => GetAll(orderBy, top, skip, null, null, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningComponentVersionCollection.cs new file mode 100644 index 000000000000..9566800156b0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningComponentVersionCollection.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using System.Threading; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningComponentVersions method from an instance of . + /// + public partial class MachineLearningComponentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List component versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions + /// + /// + /// Operation Id + /// ComponentVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAllAsync(orderBy, top, skip, listViewType, null, cancellationToken); + + /// + /// List component versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions + /// + /// + /// Operation Id + /// ComponentVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAll(orderBy, top, skip, listViewType, null, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningDataVersionCollection.cs new file mode 100644 index 000000000000..5eb65646106d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningDataVersionCollection.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using System.Threading; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningDataVersions method from an instance of . + /// + public partial class MachineLearningDataVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List data versions in the data container + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions + /// + /// + /// Operation Id + /// DataVersions_List + /// + /// + /// + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + /// + /// 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 + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAllAsync(new MachineLearningDataVersionCollectionGetAllOptions() { OrderBy = orderBy, Top = top, Skip = skip, Tags = tags, ListViewType = listViewType, Stage = null}, cancellationToken); + + /// + /// List data versions in the data container + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions + /// + /// + /// Operation Id + /// DataVersions_List + /// + /// + /// + /// Please choose OrderBy value from ['createdtime', 'modifiedtime']. + /// + /// 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 + /// + /// Continuation token for pagination. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAll(new MachineLearningDataVersionCollectionGetAllOptions() { OrderBy = orderBy, Top = top, Skip = skip, Tags = tags, ListViewType = listViewType, Stage = null}, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningEnvironmentVersionCollection.cs new file mode 100644 index 000000000000..6894a0327a22 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningEnvironmentVersionCollection.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using System.Threading; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningEnvironmentVersions method from an instance of . + /// + public partial class MachineLearningEnvironmentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions + /// + /// + /// Operation Id + /// EnvironmentVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAllAsync(orderBy, top, skip, listViewType, null, cancellationToken); + + /// + /// List versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions + /// + /// + /// Operation Id + /// EnvironmentVersions_List + /// + /// + /// + /// Ordering of list. + /// Maximum number of records to return. + /// Continuation token for pagination. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAll(orderBy, top, skip, listViewType, null, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningJobCollection.cs new file mode 100644 index 000000000000..a18ddf043e66 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningJobCollection.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using System.Threading; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningJobs method from an instance of . + /// + public partial class MachineLearningJobCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// Lists Jobs in the workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs + /// + /// + /// Operation Id + /// Jobs_List + /// + /// + /// + /// Continuation token for pagination. + /// Type of job to be returned. + /// Jobs returned will have this tag key. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(string skip, string jobType, string tag, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAllAsync(new MachineLearningJobCollectionGetAllOptions() { Skip = skip, JobType = jobType, Tag = tag, ListViewType = listViewType, AssetName = null, Scheduled = null, ScheduleId = null }, cancellationToken); + + /// + /// Lists Jobs in the workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs + /// + /// + /// Operation Id + /// Jobs_List + /// + /// + /// + /// Continuation token for pagination. + /// Type of job to be returned. + /// Jobs returned will have this tag key. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(string skip, string jobType, string tag, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAll(new MachineLearningJobCollectionGetAllOptions() { Skip = skip, JobType = jobType, Tag = tag, ListViewType = listViewType, AssetName = null, Scheduled = null, ScheduleId = null }, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningJobResource.cs new file mode 100644 index 000000000000..435863f96d3d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningJobResource.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a MachineLearningJob along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningJobResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningJob method. + /// + public partial class MachineLearningJobResource : ArmResource + { + /// + /// Creates and executes a Job. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id} + /// + /// + /// Operation Id + /// Jobs_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Job definition object. + /// The cancellation token to use. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningJobData data, CancellationToken cancellationToken) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _machineLearningJobJobsClientDiagnostics.CreateScope("MachineLearningJobResource.Update"); + scope.Start(); + try + { + var response = await _machineLearningJobJobsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningJobResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates and executes a Job. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id} + /// + /// + /// Operation Id + /// Jobs_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Job definition object. + /// The cancellation token to use. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningJobData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _machineLearningJobJobsClientDiagnostics.CreateScope("MachineLearningJobResource.Update"); + scope.Start(); + try + { + var response = _machineLearningJobJobsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningJobResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningModelVersionCollection.cs new file mode 100644 index 000000000000..f30c5f1ecedd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningModelVersionCollection.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.Threading; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningModelVersions method from an instance of . + /// + public partial class MachineLearningModelVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List model versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions + /// + /// + /// Operation Id + /// ModelVersions_List + /// + /// + /// + /// Continuation token for pagination. + /// Ordering of list. + /// Maximum number of records to return. + /// Model version. + /// Model description. + /// Number of initial results to skip. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. + /// Name of the feed. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAllAsync(new MachineLearningModelVersionCollectionGetAllOptions() { Skip = skip, OrderBy = orderBy, Top = top, Version = version, Description = description, Offset = offset, Tags = tags, Properties = properties, Feed = feed, ListViewType = listViewType, Stage = null }, cancellationToken); + + /// + /// List model versions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions + /// + /// + /// Operation Id + /// ModelVersions_List + /// + /// + /// + /// Continuation token for pagination. + /// Ordering of list. + /// Maximum number of records to return. + /// Model version. + /// Model description. + /// Number of initial results to skip. + /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. + /// Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2. + /// Name of the feed. + /// View type for including/excluding (for example) archived entities. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, CancellationToken cancellationToken) + => GetAll(new MachineLearningModelVersionCollectionGetAllOptions() { Skip = skip, OrderBy = orderBy, Top = top, Version = version, Description = description, Offset = offset, Tags = tags, Properties = properties, Feed = feed, ListViewType = listViewType, Stage = null }, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceCollection.cs new file mode 100644 index 000000000000..b5d2e0221cad --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceCollection.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using System.Threading; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningWorkspaces method from an instance of . + /// + public partial class MachineLearningWorkspaceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// Lists all the available machine learning workspaces under the specified resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListByResourceGroup + /// + /// + /// + /// Continuation token for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(string skip, CancellationToken cancellationToken) + => GetAllAsync(skip, null, cancellationToken); + + /// + /// Lists all the available machine learning workspaces under the specified resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListByResourceGroup + /// + /// + /// + /// Continuation token for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(string skip, CancellationToken cancellationToken) + => GetAll(skip, null, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceConnectionResource.cs new file mode 100644 index 000000000000..58db479559f6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceConnectionResource.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a MachineLearningWorkspaceConnection along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningWorkspaceConnectionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningWorkspaceConnection method. + /// + public partial class MachineLearningWorkspaceConnectionResource : ArmResource + { + /// + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} + /// + /// + /// Operation Id + /// WorkspaceConnections_Create + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The object for creating or updating a new workspace connection. + /// The cancellation token to use. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningWorkspaceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _machineLearningWorkspaceConnectionWorkspaceConnectionsClientDiagnostics.CreateScope("MachineLearningWorkspaceConnectionResource.Update"); + scope.Start(); + try + { + var response = await _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} + /// + /// + /// Operation Id + /// WorkspaceConnections_Create + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The object for creating or updating a new workspace connection. + /// The cancellation token to use. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningWorkspaceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _machineLearningWorkspaceConnectionWorkspaceConnectionsClientDiagnostics.CreateScope("MachineLearningWorkspaceConnectionResource.Update"); + scope.Start(); + try + { + var response = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceData.cs new file mode 100644 index 000000000000..45a77a52bb09 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceData.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using Azure.ResourceManager.MachineLearning.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A class representing the MachineLearningWorkspace data model. + /// An object that represents a machine learning workspace. + /// + public partial class MachineLearningWorkspaceData : TrackedResourceData + { + [EditorBrowsable(EditorBrowsableState.Never)] + public MachineLearningPublicNetworkAccess? PublicNetworkAccess + { + get + { + return PublicNetworkAccessType.ToString(); + } + set + { + PublicNetworkAccessType = value.ToString(); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceResource.cs new file mode 100644 index 000000000000..3989f0364b74 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceResource.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.MachineLearning +{ + /// + /// A Class representing a MachineLearningWorkspace along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningWorkspaceResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningWorkspace method. + /// + public partial class MachineLearningWorkspaceResource : ArmResource + { + /// + /// Deletes a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// + /// + /// Operation Id + /// Workspaces_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + => await DeleteAsync(waitUntil, null, cancellationToken).ConfigureAwait(false); + + /// + /// Deletes a machine learning workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// + /// + /// Operation Id + /// Workspaces_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + => Delete(waitUntil, null, cancellationToken); + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/ComputeSchedules.Serialization.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/ComputeSchedules.Serialization.cs index afbf2ebb99e2..7bf017c36f4f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/ComputeSchedules.Serialization.cs @@ -1,41 +1,24 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; +[assembly: CodeGenSuppressType("ComputeSchedules")] namespace Azure.ResourceManager.MachineLearning.Models { - internal partial class ComputeSchedules : IUtf8JsonSerializable + internal partial class ComputeSchedules { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsCollectionDefined(ComputeStartStop)) - { - writer.WritePropertyName("computeStartStop"u8); - writer.WriteStartArray(); - foreach (var item in ComputeStartStop) - { - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - } - writer.WriteEndObject(); - } - internal static ComputeSchedules DeserializeComputeSchedules(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional> computeStartStop = default; + Optional> computeStartStop = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("computeStartStop"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/ComputeSchedules.cs similarity index 75% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/ComputeSchedules.cs index 8d6d9ac92e79..84ba7477a9cf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeSchedules.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/ComputeSchedules.cs @@ -1,32 +1,31 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System.Collections.Generic; using Azure.Core; +[assembly: CodeGenSuppressType("ComputeSchedules")] namespace Azure.ResourceManager.MachineLearning.Models { /// The list of schedules to be applied on the computes. internal partial class ComputeSchedules { /// Initializes a new instance of ComputeSchedules. - public ComputeSchedules() + internal ComputeSchedules() { ComputeStartStop = new ChangeTrackingList(); } /// Initializes a new instance of ComputeSchedules. /// The list of compute start stop schedules to be applied. - internal ComputeSchedules(IList computeStartStop) + internal ComputeSchedules(IReadOnlyList computeStartStop) { ComputeStartStop = computeStartStop; } /// The list of compute start stop schedules to be applied. - public IList ComputeStartStop { get; } + public IReadOnlyList ComputeStartStop { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/EncryptionUpdateProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/EncryptionUpdateProperties.cs similarity index 100% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/EncryptionUpdateProperties.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/EncryptionUpdateProperties.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningComputeStartStopSchedule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningComputeStartStopSchedule.cs new file mode 100644 index 000000000000..a72b3c014dfd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningComputeStartStopSchedule.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Compute start stop schedule properties. + public partial class MachineLearningComputeStartStopSchedule + { + /// Required if triggerType is Recurrence. + [EditorBrowsable(EditorBrowsableState.Never)] + public MachineLearningRecurrenceTrigger Recurrence + { + get + { + return new MachineLearningRecurrenceTrigger(RecurrenceSchedule.Frequency.Value, RecurrenceSchedule.Interval.Value); + } + } + /// Required if triggerType is Cron. + [EditorBrowsable(EditorBrowsableState.Never)] + public CronTrigger Cron + { + get + { + return new CronTrigger(CronSchedule.Expression); + } + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningEncryptionKeyVaultProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningEncryptionKeyVaultProperties.cs new file mode 100644 index 000000000000..e794d52a1753 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningEncryptionKeyVaultProperties.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MachineLearningEncryptionKeyVaultProperties. + public partial class MachineLearningEncryptionKeyVaultProperties + { + /// Initializes a new instance of MachineLearningEncryptionKeyVaultProperties. + /// The ArmId of the keyVault where the customer owned encryption key is present. + /// Key vault uri to access the encryption key. + /// or is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public MachineLearningEncryptionKeyVaultProperties(ResourceIdentifier keyVaultArmId, string keyIdentifier) + { + Argument.AssertNotNull(keyVaultArmId, nameof(keyVaultArmId)); + Argument.AssertNotNull(keyIdentifier, nameof(keyIdentifier)); + + KeyVaultArmId = keyVaultArmId; + KeyIdentifier = keyIdentifier; + } + + /// Initializes a new instance of MachineLearningEncryptionKeyVaultProperties. + /// The ArmId of the keyVault where the customer owned encryption key is present. + /// Key vault uri to access the encryption key. + /// For future use - The client id of the identity which will be used to access key vault. + [EditorBrowsable(EditorBrowsableState.Never)] + internal MachineLearningEncryptionKeyVaultProperties(ResourceIdentifier keyVaultArmId, string keyIdentifier, string identityClientId) + { + KeyVaultArmId = keyVaultArmId; + KeyIdentifier = keyIdentifier; + IdentityClientId = identityClientId; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningEncryptionSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningEncryptionSetting.cs new file mode 100644 index 000000000000..4ae628815b91 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningEncryptionSetting.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MachineLearningEncryptionSetting. + public partial class MachineLearningEncryptionSetting + { + /// Initializes a new instance of MachineLearningEncryptionSetting. + /// Indicates whether or not the encryption is enabled for the workspace. + /// Customer Key vault properties. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public MachineLearningEncryptionSetting(MachineLearningEncryptionStatus status, MachineLearningEncryptionKeyVaultProperties keyVaultProperties) + { + Argument.AssertNotNull(keyVaultProperties, nameof(keyVaultProperties)); + + Status = status; + KeyVaultProperties = keyVaultProperties; + } + + /// Initializes a new instance of MachineLearningEncryptionSetting. + /// Indicates whether or not the encryption is enabled for the workspace. + /// The identity that will be used to access the key vault for encryption at rest. + /// Customer Key vault properties. + [EditorBrowsable(EditorBrowsableState.Never)] + internal MachineLearningEncryptionSetting(MachineLearningEncryptionStatus status, MachineLearningCmkIdentity identity, MachineLearningEncryptionKeyVaultProperties keyVaultProperties) + { + Status = status; + Identity = identity; + KeyVaultProperties = keyVaultProperties; + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningPartialManagedServiceIdentity.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningPartialManagedServiceIdentity.Serialization.cs similarity index 100% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningPartialManagedServiceIdentity.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningPartialManagedServiceIdentity.Serialization.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningPartialManagedServiceIdentity.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningPartialManagedServiceIdentity.cs similarity index 100% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningPartialManagedServiceIdentity.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningPartialManagedServiceIdentity.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningPublicNetworkAccess.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningPublicNetworkAccess.cs new file mode 100644 index 000000000000..a1692384daf1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningPublicNetworkAccess.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Whether requests from Public Network are allowed. + public readonly partial struct MachineLearningPublicNetworkAccess : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MachineLearningPublicNetworkAccess(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MachineLearningPublicNetworkAccess Enabled { get; } = new MachineLearningPublicNetworkAccess(EnabledValue); + /// Disabled. + public static MachineLearningPublicNetworkAccess Disabled { get; } = new MachineLearningPublicNetworkAccess(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MachineLearningPublicNetworkAccess left, MachineLearningPublicNetworkAccess right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MachineLearningPublicNetworkAccess left, MachineLearningPublicNetworkAccess right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MachineLearningPublicNetworkAccess(string value) => new MachineLearningPublicNetworkAccess(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MachineLearningPublicNetworkAccess other && Equals(other); + /// + public bool Equals(MachineLearningPublicNetworkAccess other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningValueFormat.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningValueFormat.cs new file mode 100644 index 000000000000..589a1a147242 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningValueFormat.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// format for the workspace connection value. + [EditorBrowsable(EditorBrowsableState.Never)] + public readonly partial struct MachineLearningValueFormat : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MachineLearningValueFormat(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string JsonValue = "JSON"; + + /// JSON. + public static MachineLearningValueFormat Json { get; } = new MachineLearningValueFormat(JsonValue); + /// Determines if two values are the same. + public static bool operator ==(MachineLearningValueFormat left, MachineLearningValueFormat right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MachineLearningValueFormat left, MachineLearningValueFormat right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MachineLearningValueFormat(string value) => new MachineLearningValueFormat(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MachineLearningValueFormat other && Equals(other); + /// + public bool Equals(MachineLearningValueFormat other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningWorkspaceConnectionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningWorkspaceConnectionProperties.cs new file mode 100644 index 000000000000..a873d2d0557f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningWorkspaceConnectionProperties.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// The MachineLearningWorkspaceConnectionProperties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + public abstract partial class MachineLearningWorkspaceConnectionProperties + { + /// Value details of the workspace connection. + [EditorBrowsable(EditorBrowsableState.Never)] + public string Value { get; set; } + /// format for the workspace connection value. + [EditorBrowsable(EditorBrowsableState.Never)] + public MachineLearningValueFormat? ValueFormat { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningWorkspacePatch.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningWorkspacePatch.cs new file mode 100644 index 000000000000..319bdf1b4fd9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/Models/MachineLearningWorkspacePatch.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The parameters for updating a machine learning workspace. + public partial class MachineLearningWorkspacePatch + { + [EditorBrowsable(EditorBrowsableState.Never)] + public MachineLearningPublicNetworkAccess? PublicNetworkAccess + { + get + { + return PublicNetworkAccessType.ToString(); + } + set + { + PublicNetworkAccessType = value.ToString(); + } + } + } +} \ No newline at end of file diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs index 7d8d3d54fad9..68156ceb0953 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs @@ -1273,17 +1273,17 @@ public static RegistryData RegistryData(ResourceIdentifier id = null, string nam /// The ARM identifier for Private Endpoint. /// The subnetId that the private endpoint is connected to. /// A new instance for mocking. - public static PrivateEndpointResource PrivateEndpointResource(ResourceIdentifier id = null, string subnetArmId = null) + public static PrivateEndpointResource PrivateEndpointResource(string id = null, string subnetArmId = null) { return new PrivateEndpointResource(id, subnetArmId); } - /// Initializes a new instance of MachineLearningPrivateEndpoint. + /// Initializes a new instance of PrivateEndpoint. /// The ARM identifier for Private Endpoint. - /// A new instance for mocking. - public static MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(ResourceIdentifier id = null) + /// A new instance for mocking. + public static PrivateEndpoint PrivateEndpoint(string id = null) { - return new MachineLearningPrivateEndpoint(id); + return new PrivateEndpoint(id); } /// Initializes a new instance of MachineLearningUserFeature. @@ -1330,7 +1330,7 @@ public static MachineLearningUserFeature MachineLearningUserFeature(string id = /// The list of private endpoint connections in the workspace. /// Count of private connections in the workspace. /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. - /// Whether requests from Public Network are allowed. + /// Whether requests from Public Network are allowed. /// The service managed resource settings. /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. /// The list of shared private link resources in this workspace. @@ -1344,7 +1344,7 @@ public static MachineLearningUserFeature MachineLearningUserFeature(string id = /// WorkspaceHub's configuration object. /// The immutable id associated with this workspace. /// A new instance for mocking. - public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = null, string applicationInsights = null, IEnumerable associatedWorkspaces = null, IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, Uri discoveryUri = null, bool? enableDataIsolation = null, MachineLearningEncryptionSetting encryption = null, IEnumerable existingWorkspaces = null, FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = null, string hubResourceId = null, string imageBuildCompute = null, string keyVault = null, IEnumerable keyVaults = null, ManagedNetworkSettings managedNetwork = null, Uri mlFlowTrackingUri = null, MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, IEnumerable privateEndpointConnections = null, int? privateLinkCount = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccess = null, int? cosmosDbCollectionsThroughput = null, string serviceProvisionedResourceGroup = null, IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = null, string storageAccount = null, IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = null, string systemDatastoresAuthMode = null, Guid? tenantId = null, bool? isV1LegacyMode = null, WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) + public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = null, string applicationInsights = null, IEnumerable associatedWorkspaces = null, IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, Uri discoveryUri = null, bool? enableDataIsolation = null, MachineLearningEncryptionSetting encryption = null, IEnumerable existingWorkspaces = null, FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = null, string hubResourceId = null, string imageBuildCompute = null, string keyVault = null, IEnumerable keyVaults = null, ManagedNetworkSettings managedNetwork = null, Uri mlFlowTrackingUri = null, MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, IEnumerable privateEndpointConnections = null, int? privateLinkCount = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccessType = null, int? cosmosDbCollectionsThroughput = null, string serviceProvisionedResourceGroup = null, IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = null, string storageAccount = null, IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = null, string systemDatastoresAuthMode = null, Guid? tenantId = null, bool? isV1LegacyMode = null, WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) { tags ??= new Dictionary(); associatedWorkspaces ??= new List(); @@ -1355,7 +1355,7 @@ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(Resource sharedPrivateLinkResources ??= new List(); storageAccounts ??= new List(); - return new MachineLearningWorkspaceData(id, name, resourceType, systemData, tags, location, identity, kind, sku, allowPublicAccessWhenBehindVnet, applicationInsights, associatedWorkspaces?.ToList(), containerRegistries?.ToList(), containerRegistry, description, discoveryUri, enableDataIsolation, encryption, existingWorkspaces?.ToList(), featureStoreSettings, friendlyName, isHbiWorkspace, hubResourceId, imageBuildCompute, keyVault, keyVaults?.ToList(), managedNetwork, mlFlowTrackingUri, notebookInfo, primaryUserAssignedIdentity, privateEndpointConnections?.ToList(), privateLinkCount, provisioningState, publicNetworkAccess, cosmosDbCollectionsThroughput != null ? new ServiceManagedResourcesSettings(new CosmosDbSettings(cosmosDbCollectionsThroughput)) : null, serviceProvisionedResourceGroup, sharedPrivateLinkResources?.ToList(), softDeleteRetentionInDays, storageAccount, storageAccounts?.ToList(), isStorageHnsEnabled, systemDatastoresAuthMode, tenantId, isV1LegacyMode, workspaceHubConfig, workspaceId); + return new MachineLearningWorkspaceData(id, name, resourceType, systemData, tags, location, identity, kind, sku, allowPublicAccessWhenBehindVnet, applicationInsights, associatedWorkspaces?.ToList(), containerRegistries?.ToList(), containerRegistry, description, discoveryUri, enableDataIsolation, encryption, existingWorkspaces?.ToList(), featureStoreSettings, friendlyName, isHbiWorkspace, hubResourceId, imageBuildCompute, keyVault, keyVaults?.ToList(), managedNetwork, mlFlowTrackingUri, notebookInfo, primaryUserAssignedIdentity, privateEndpointConnections?.ToList(), privateLinkCount, provisioningState, publicNetworkAccessType, cosmosDbCollectionsThroughput != null ? new ServiceManagedResourcesSettings(new CosmosDbSettings(cosmosDbCollectionsThroughput)) : null, serviceProvisionedResourceGroup, sharedPrivateLinkResources?.ToList(), softDeleteRetentionInDays, storageAccount, storageAccounts?.ToList(), isStorageHnsEnabled, systemDatastoresAuthMode, tenantId, isV1LegacyMode, workspaceHubConfig, workspaceId); } /// Initializes a new instance of ManagedNetworkSettings. @@ -1408,20 +1408,20 @@ public static MachineLearningNotebookPreparationError MachineLearningNotebookPre /// The connection state. /// The current provisioning state. /// A new instance for mocking. - public static MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, WorkspacePrivateEndpointResource privateEndpoint = null, MachineLearningPrivateLinkServiceConnectionState connectionState = null, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = null) + public static MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, MachineLearningPrivateEndpoint privateEndpoint = null, MachineLearningPrivateLinkServiceConnectionState connectionState = null, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = null) { tags ??= new Dictionary(); return new MachineLearningPrivateEndpointConnectionData(id, name, resourceType, systemData, tags, location, identity, sku, privateEndpoint, connectionState, provisioningState); } - /// Initializes a new instance of WorkspacePrivateEndpointResource. + /// Initializes a new instance of MachineLearningPrivateEndpoint. /// e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}. /// The subnetId that the private endpoint is connected to. - /// A new instance for mocking. - public static WorkspacePrivateEndpointResource WorkspacePrivateEndpointResource(string id = null, string subnetArmId = null) + /// A new instance for mocking. + public static MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(ResourceIdentifier id = null, ResourceIdentifier subnetArmId = null) { - return new WorkspacePrivateEndpointResource(id, subnetArmId); + return new MachineLearningPrivateEndpoint(id, subnetArmId); } /// Initializes a new instance of MachineLearningWorkspaceConnectionData. @@ -1487,12 +1487,12 @@ public static MachineLearningDiagnoseResult MachineLearningDiagnoseResult(string /// The access key of the workspace app insights. /// /// - /// The arm Id key of the workspace storage. + /// The arm Id key of the workspace storage. /// The access key of the workspace storage. /// A new instance for mocking. - public static MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey = null, MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null, string userStorageArmId = null, string userStorageKey = null) + public static MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey = null, MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null, string userStorageResourceId = null, string userStorageKey = null) { - return new MachineLearningWorkspaceGetKeysResult(appInsightsInstrumentationKey, containerRegistryCredentials, notebookAccessKeys, userStorageArmId, userStorageKey); + return new MachineLearningWorkspaceGetKeysResult(appInsightsInstrumentationKey, containerRegistryCredentials, notebookAccessKeys, userStorageResourceId, userStorageKey); } /// Initializes a new instance of MachineLearningContainerRegistryCredentials. @@ -1548,23 +1548,23 @@ public static MachineLearningWorkspaceGetStorageAccountKeysResult MachineLearnin return new MachineLearningWorkspaceGetStorageAccountKeysResult(userStorageKey); } - /// Initializes a new instance of FqdnEndpointsPropertyBag. + /// Initializes a new instance of MachineLearningFqdnEndpoints. /// - /// A new instance for mocking. - public static FqdnEndpointsPropertyBag FqdnEndpointsPropertyBag(MachineLearningFqdnEndpoints properties = null) + /// A new instance for mocking. + public static MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(MachineLearningFqdnEndpointsProperties properties = null) { - return new FqdnEndpointsPropertyBag(properties); + return new MachineLearningFqdnEndpoints(properties); } - /// Initializes a new instance of MachineLearningFqdnEndpoints. + /// Initializes a new instance of MachineLearningFqdnEndpointsProperties. /// /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(string category = null, IEnumerable endpoints = null) + /// A new instance for mocking. + public static MachineLearningFqdnEndpointsProperties MachineLearningFqdnEndpointsProperties(string category = null, IEnumerable endpoints = null) { endpoints ??= new List(); - return new MachineLearningFqdnEndpoints(category, endpoints?.ToList()); + return new MachineLearningFqdnEndpointsProperties(category, endpoints?.ToList()); } /// Initializes a new instance of MachineLearningFqdnEndpoint. @@ -1748,44 +1748,6 @@ public static AmlCompute AmlCompute(string computeLocation = null, MachineLearni return new AmlCompute(ComputeType.AmlCompute, computeLocation, provisioningState, description, createdOn, modifiedOn, resourceId, provisioningErrors?.ToList(), isAttachedCompute, disableLocalAuth, properties); } - /// Initializes a new instance of MachineLearningComputeInstanceProperties. - /// Virtual Machine Size. - /// Virtual network subnet resource ID the compute nodes belong to. - /// 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. - /// Specifies settings for autologger. - /// Specifies policy and settings for SSH access. - /// List of Custom Services added to the compute. - /// Returns metadata about the operating system image for this compute instance. - /// Describes all connectivity endpoints available for this ComputeInstance. - /// Describes available applications and their endpoints on this ComputeInstance. - /// Describes information on user who created this ComputeInstance. - /// Collection of errors encountered on this ComputeInstance. - /// The current state of this ComputeInstance. - /// The Compute Instance Authorization type. Available values are personal (default). - /// Settings for a personal compute instance. - /// Details of customized scripts to execute for setting up the cluster. - /// The last operation on ComputeInstance. - /// The list of schedules to be applied on the computes. - /// Stops compute instance after user defined period of inactivity. Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. - /// 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. - /// Describes informations of containers on this ComputeInstance. - /// Describes informations of dataDisks on this ComputeInstance. - /// Describes informations of dataMounts on this ComputeInstance. - /// ComputeInstance version. - /// A new instance for mocking. - public static MachineLearningComputeInstanceProperties MachineLearningComputeInstanceProperties(string vmSize = null, ResourceIdentifier subnetId = null, MachineLearningApplicationSharingPolicy? applicationSharingPolicy = null, MlflowAutologger? mlflowAutologger = null, MachineLearningComputeInstanceSshSettings sshSettings = null, IEnumerable customServices = null, ImageMetadata osImageMetadata = null, MachineLearningComputeInstanceConnectivityEndpoints connectivityEndpoints = null, IEnumerable applications = null, MachineLearningComputeInstanceCreatedBy createdBy = null, IEnumerable errors = null, MachineLearningComputeInstanceState? state = null, MachineLearningComputeInstanceAuthorizationType? computeInstanceAuthorizationType = null, MachineLearningComputeInstanceAssignedUser personalComputeInstanceAssignedUser = null, MachineLearningScriptsToExecute scripts = null, MachineLearningComputeInstanceLastOperation lastOperation = null, IEnumerable schedulesComputeStartStop = null, string idleTimeBeforeShutdown = null, bool? enableNodePublicIP = null, IEnumerable containers = null, IEnumerable dataDisks = null, IEnumerable dataMounts = null, string versionsRuntime = null) - { - customServices ??= new List(); - applications ??= new List(); - errors ??= new List(); - schedulesComputeStartStop ??= new List(); - containers ??= new List(); - dataDisks ??= new List(); - dataMounts ??= new List(); - - return new MachineLearningComputeInstanceProperties(vmSize, subnetId != null ? new ResourceId(subnetId) : null, applicationSharingPolicy, mlflowAutologger != null ? new ComputeInstanceAutologgerSettings(mlflowAutologger) : null, sshSettings, customServices?.ToList(), osImageMetadata, connectivityEndpoints, applications?.ToList(), createdBy, errors?.ToList(), state, computeInstanceAuthorizationType, personalComputeInstanceAssignedUser != null ? new PersonalComputeInstanceSettings(personalComputeInstanceAssignedUser) : null, scripts != null ? new SetupScripts(scripts) : null, lastOperation, schedulesComputeStartStop != null ? new ComputeSchedules(schedulesComputeStartStop?.ToList()) : null, idleTimeBeforeShutdown, enableNodePublicIP, containers?.ToList(), dataDisks?.ToList(), dataMounts?.ToList(), versionsRuntime != null ? new ComputeInstanceVersion(versionsRuntime) : null); - } - /// Initializes a new instance of MachineLearningComputeInstanceSshSettings. /// 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. /// Describes the admin user name. @@ -1852,13 +1814,13 @@ public static MachineLearningComputeInstanceLastOperation MachineLearningCompute /// Is the schedule enabled or disabled?. /// [Required] The compute power action. /// [Required] The schedule trigger type. - /// Required if triggerType is Recurrence. - /// Required if triggerType is Cron. + /// Required if triggerType is Recurrence. + /// Required if triggerType is Cron. /// [Deprecated] Not used any more. /// A new instance for mocking. - public static MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, MachineLearningComputeProvisioningStatus? provisioningStatus = null, MachineLearningScheduleStatus? status = null, MachineLearningComputePowerAction? action = null, MachineLearningTriggerType? triggerType = null, Recurrence recurrence = null, Cron cron = null, MachineLearningScheduleBase schedule = null) + public static MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, MachineLearningComputeProvisioningStatus? provisioningStatus = null, MachineLearningScheduleStatus? status = null, MachineLearningComputePowerAction? action = null, MachineLearningTriggerType? triggerType = null, ComputeStartStopRecurrenceSchedule recurrenceSchedule = null, ComputeStartStopCronSchedule cronSchedule = null, MachineLearningScheduleBase schedule = null) { - return new MachineLearningComputeStartStopSchedule(id, provisioningStatus, status, action, triggerType, recurrence, cron, schedule); + return new MachineLearningComputeStartStopSchedule(id, provisioningStatus, status, action, triggerType, recurrenceSchedule, cronSchedule, schedule); } /// Initializes a new instance of MachineLearningComputeInstanceContainer. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs index 7cd08777ef96..0a01815a2273 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs @@ -88,20 +88,20 @@ public static RegistryCodeResource GetRegistryCodeResource(this ArmClient client } #endregion - #region WorkspaceCodeResource + #region MachineLearningCodeContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceCodeResource GetWorkspaceCodeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningCodeContainerResource GetMachineLearningCodeContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceCodeResource.ValidateResourceId(id); - return new WorkspaceCodeResource(client, id); + MachineLearningCodeContainerResource.ValidateResourceId(id); + return new MachineLearningCodeContainerResource(client, id); } ); } @@ -126,20 +126,20 @@ public static RegistryCodeVersionResource GetRegistryCodeVersionResource(this Ar } #endregion - #region WorkspaceCodeVersionResource + #region MachineLearningCodeVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceCodeVersionResource GetWorkspaceCodeVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningCodeVersionResource GetMachineLearningCodeVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceCodeVersionResource.ValidateResourceId(id); - return new WorkspaceCodeVersionResource(client, id); + MachineLearningCodeVersionResource.ValidateResourceId(id); + return new MachineLearningCodeVersionResource(client, id); } ); } @@ -164,20 +164,20 @@ public static RegistryComponentResource GetRegistryComponentResource(this ArmCli } #endregion - #region WorkspaceComponentResource + #region MachineLearningComponentContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceComponentResource GetWorkspaceComponentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningComponentContainerResource GetMachineLearningComponentContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceComponentResource.ValidateResourceId(id); - return new WorkspaceComponentResource(client, id); + MachineLearningComponentContainerResource.ValidateResourceId(id); + return new MachineLearningComponentContainerResource(client, id); } ); } @@ -202,20 +202,20 @@ public static RegistryComponentVersionResource GetRegistryComponentVersionResour } #endregion - #region WorkspaceComponentVersionResource + #region MachineLearningComponentVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceComponentVersionResource GetWorkspaceComponentVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningComponentVersionResource GetMachineLearningComponentVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceComponentVersionResource.ValidateResourceId(id); - return new WorkspaceComponentVersionResource(client, id); + MachineLearningComponentVersionResource.ValidateResourceId(id); + return new MachineLearningComponentVersionResource(client, id); } ); } @@ -240,20 +240,20 @@ public static RegistryDataResource GetRegistryDataResource(this ArmClient client } #endregion - #region WorkspaceDataResource + #region MachineLearningDataContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceDataResource GetWorkspaceDataResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningDataContainerResource GetMachineLearningDataContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceDataResource.ValidateResourceId(id); - return new WorkspaceDataResource(client, id); + MachineLearningDataContainerResource.ValidateResourceId(id); + return new MachineLearningDataContainerResource(client, id); } ); } @@ -278,20 +278,20 @@ public static RegistryDataVersionResource GetRegistryDataVersionResource(this Ar } #endregion - #region WorkspaceDataVersionResource + #region MachineLearningDataVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceDataVersionResource GetWorkspaceDataVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningDataVersionResource GetMachineLearningDataVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceDataVersionResource.ValidateResourceId(id); - return new WorkspaceDataVersionResource(client, id); + MachineLearningDataVersionResource.ValidateResourceId(id); + return new MachineLearningDataVersionResource(client, id); } ); } @@ -316,20 +316,20 @@ public static RegistryEnvironmentResource GetRegistryEnvironmentResource(this Ar } #endregion - #region WorkspaceEnvironmentResource + #region MachineLearningEnvironmentContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceEnvironmentResource GetWorkspaceEnvironmentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningEnvironmentContainerResource GetMachineLearningEnvironmentContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceEnvironmentResource.ValidateResourceId(id); - return new WorkspaceEnvironmentResource(client, id); + MachineLearningEnvironmentContainerResource.ValidateResourceId(id); + return new MachineLearningEnvironmentContainerResource(client, id); } ); } @@ -354,20 +354,20 @@ public static RegistryEnvironmentVersionResource GetRegistryEnvironmentVersionRe } #endregion - #region WorkspaceEnvironmentVersionResource + #region MachineLearningEnvironmentVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceEnvironmentVersionResource GetWorkspaceEnvironmentVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningEnvironmentVersionResource GetMachineLearningEnvironmentVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceEnvironmentVersionResource.ValidateResourceId(id); - return new WorkspaceEnvironmentVersionResource(client, id); + MachineLearningEnvironmentVersionResource.ValidateResourceId(id); + return new MachineLearningEnvironmentVersionResource(client, id); } ); } @@ -392,20 +392,20 @@ public static RegistryModelResource GetRegistryModelResource(this ArmClient clie } #endregion - #region WorkspaceModelResource + #region MachineLearningModelContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceModelResource GetWorkspaceModelResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningModelContainerResource GetMachineLearningModelContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceModelResource.ValidateResourceId(id); - return new WorkspaceModelResource(client, id); + MachineLearningModelContainerResource.ValidateResourceId(id); + return new MachineLearningModelContainerResource(client, id); } ); } @@ -430,20 +430,20 @@ public static RegistryModelVersionResource GetRegistryModelVersionResource(this } #endregion - #region WorkspaceModelVersionResource + #region MachineLearningModelVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WorkspaceModelVersionResource GetWorkspaceModelVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningModelVersionResource GetMachineLearningModelVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WorkspaceModelVersionResource.ValidateResourceId(id); - return new WorkspaceModelVersionResource(client, id); + MachineLearningModelVersionResource.ValidateResourceId(id); + return new MachineLearningModelVersionResource(client, id); } ); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs index 96ee5111a029..e9b130798551 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceCodes method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningCodeContainers method from an instance of . /// - public partial class WorkspaceCodeCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningCodeContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceCodeCodeContainersClientDiagnostics; - private readonly CodeContainersRestOperations _workspaceCodeCodeContainersRestClient; + private readonly ClientDiagnostics _machineLearningCodeContainerCodeContainersClientDiagnostics; + private readonly CodeContainersRestOperations _machineLearningCodeContainerCodeContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceCodeCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningCodeContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceCodeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningCodeContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceCodeCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceCodeResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceCodeResource.ResourceType, out string workspaceCodeCodeContainersApiVersion); - _workspaceCodeCodeContainersRestClient = new CodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceCodeCodeContainersApiVersion); + _machineLearningCodeContainerCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningCodeContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningCodeContainerResource.ResourceType, out string machineLearningCodeContainerCodeContainersApiVersion); + _machineLearningCodeContainerCodeContainersRestClient = new CodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningCodeContainerCodeContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.CreateOrUpdate"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceCodeCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> CreateOrUpdateAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.CreateOrUpdate"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceCodeCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeResource(Client, response), response.GetRawResponse())); + var response = _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.Get"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.Get"); scope.Start(); try { - var response = await _workspaceCodeCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeContainerCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync(string name, /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.Get"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.Get"); scope.Start(); try { - var response = _workspaceCodeCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _machineLearningCodeContainerCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -224,12 +224,12 @@ public virtual Response Get(string name, CancellationToke /// /// Continuation token for pagination. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceCodeCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceCodeCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceCodeResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _workspaceCodeCodeContainersClientDiagnostics, Pipeline, "WorkspaceCodeCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningCodeContainerCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningCodeContainerCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningCodeContainerResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _machineLearningCodeContainerCodeContainersClientDiagnostics, Pipeline, "MachineLearningCodeContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -247,12 +247,12 @@ public virtual AsyncPageable GetAllAsync(string skip = nu /// /// Continuation token for pagination. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceCodeCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceCodeCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceCodeResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _workspaceCodeCodeContainersClientDiagnostics, Pipeline, "WorkspaceCodeCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningCodeContainerCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningCodeContainerCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningCodeContainerResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _machineLearningCodeContainerCodeContainersClientDiagnostics, Pipeline, "MachineLearningCodeContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -276,11 +276,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.Exists"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.Exists"); scope.Start(); try { - var response = await _workspaceCodeCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeContainerCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -311,11 +311,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.Exists"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.Exists"); scope.Start(); try { - var response = _workspaceCodeCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningCodeContainerCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -342,18 +342,18 @@ public virtual Response Exists(string name, CancellationToken cancellation /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.GetIfExists"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceCodeCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeContainerCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -379,18 +379,18 @@ public virtual async Task> GetIfExistsAs /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeCollection.GetIfExists"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceCodeCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningCodeContainerCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -399,7 +399,7 @@ public virtual NullableResponse GetIfExists(string name, } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -409,7 +409,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs index f81ef37063e5..e6bb135fbd4a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceCode along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceCodeResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceCode method. + /// A Class representing a MachineLearningCodeContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningCodeContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningCodeContainer method. /// - public partial class WorkspaceCodeResource : ArmResource + public partial class MachineLearningCodeContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceCodeCodeContainersClientDiagnostics; - private readonly CodeContainersRestOperations _workspaceCodeCodeContainersRestClient; + private readonly ClientDiagnostics _machineLearningCodeContainerCodeContainersClientDiagnostics; + private readonly CodeContainersRestOperations _machineLearningCodeContainerCodeContainersRestClient; private readonly MachineLearningCodeContainerData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceCodeResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningCodeContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceCodeResource(ArmClient client, MachineLearningCodeContainerData data) : this(client, data.Id) + internal MachineLearningCodeContainerResource(ArmClient client, MachineLearningCodeContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceCodeResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningCodeContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceCodeCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceCodeCodeContainersApiVersion); - _workspaceCodeCodeContainersRestClient = new CodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceCodeCodeContainersApiVersion); + _machineLearningCodeContainerCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningCodeContainerCodeContainersApiVersion); + _machineLearningCodeContainerCodeContainersRestClient = new CodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningCodeContainerCodeContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of WorkspaceCodeVersionResources in the WorkspaceCode. - /// An object representing collection of WorkspaceCodeVersionResources and their operations over a WorkspaceCodeVersionResource. - public virtual WorkspaceCodeVersionCollection GetWorkspaceCodeVersions() + /// Gets a collection of MachineLearningCodeVersionResources in the MachineLearningCodeContainer. + /// An object representing collection of MachineLearningCodeVersionResources and their operations over a MachineLearningCodeVersionResource. + public virtual MachineLearningCodeVersionCollection GetMachineLearningCodeVersions() { - return GetCachedClient(Client => new WorkspaceCodeVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningCodeVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual WorkspaceCodeVersionCollection GetWorkspaceCodeVersions() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceCodeVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningCodeVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetWorkspaceCodeVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningCodeVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetWorkspaceCo /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceCodeVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningCodeVersion(string version, CancellationToken cancellationToken = default) { - return GetWorkspaceCodeVersions().Get(version, cancellationToken); + return GetMachineLearningCodeVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetWorkspaceCodeVersion(st /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Get"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Get"); scope.Start(); try { - var response = await _workspaceCodeCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeContainerCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cancellation /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Get"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Get"); scope.Start(); try { - var response = _workspaceCodeCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningCodeContainerCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(CancellationToken cancellatio /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Delete"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Delete"); scope.Start(); try { - var response = await _workspaceCodeCodeContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeContainerCodeContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Delete"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Delete"); scope.Start(); try { - var response = _workspaceCodeCodeContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningCodeContainerCodeContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Update"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Update"); scope.Start(); try { - var response = await _workspaceCodeCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync(WaitU /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceCodeCodeContainersClientDiagnostics.CreateScope("WorkspaceCodeResource.Update"); + using var scope = _machineLearningCodeContainerCodeContainersClientDiagnostics.CreateScope("MachineLearningCodeContainerResource.Update"); scope.Start(); try { - var response = _workspaceCodeCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeResource(Client, response), response.GetRawResponse())); + var response = _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs index 20240208b131..5a7f5cb7c156 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceCodeVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningCodeVersions method from an instance of . /// - public partial class WorkspaceCodeVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningCodeVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceCodeVersionCodeVersionsClientDiagnostics; - private readonly CodeVersionsRestOperations _workspaceCodeVersionCodeVersionsRestClient; + private readonly ClientDiagnostics _machineLearningCodeVersionCodeVersionsClientDiagnostics; + private readonly CodeVersionsRestOperations _machineLearningCodeVersionCodeVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceCodeVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningCodeVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceCodeVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningCodeVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceCodeVersionCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceCodeVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceCodeVersionResource.ResourceType, out string workspaceCodeVersionCodeVersionsApiVersion); - _workspaceCodeVersionCodeVersionsRestClient = new CodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceCodeVersionCodeVersionsApiVersion); + _machineLearningCodeVersionCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningCodeVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningCodeVersionResource.ResourceType, out string machineLearningCodeVersionCodeVersionsApiVersion); + _machineLearningCodeVersionCodeVersionsRestClient = new CodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningCodeVersionCodeVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -49,8 +49,8 @@ internal WorkspaceCodeVersionCollection(ArmClient client, ResourceIdentifier id) internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != WorkspaceCodeResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceCodeResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningCodeContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningCodeContainerResource.ResourceType), nameof(id)); } /// @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> CreateOrUp /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.Get"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.Get"); scope.Start(); try { - var response = await _workspaceCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync(strin /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.Get"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.Get"); scope.Start(); try { - var response = _workspaceCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -228,12 +228,12 @@ public virtual Response Get(string version, Cancel /// If specified, return CodeVersion assets with specified content hash value, regardless of name. /// Hash algorithm version when listing by hash. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceCodeVersionCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceCodeVersionCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _workspaceCodeVersionCodeVersionsClientDiagnostics, Pipeline, "WorkspaceCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningCodeVersionCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningCodeVersionCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _machineLearningCodeVersionCodeVersionsClientDiagnostics, Pipeline, "MachineLearningCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -255,12 +255,12 @@ public virtual AsyncPageable GetAllAsync(string or /// If specified, return CodeVersion assets with specified content hash value, regardless of name. /// Hash algorithm version when listing by hash. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string hash = null, string hashVersion = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceCodeVersionCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceCodeVersionCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _workspaceCodeVersionCodeVersionsClientDiagnostics, Pipeline, "WorkspaceCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningCodeVersionCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningCodeVersionCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, hash, hashVersion); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _machineLearningCodeVersionCodeVersionsClientDiagnostics, Pipeline, "MachineLearningCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -284,11 +284,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.Exists"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.Exists"); scope.Start(); try { - var response = await _workspaceCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -319,11 +319,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.Exists"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.Exists"); scope.Start(); try { - var response = _workspaceCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -350,18 +350,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.GetIfExists"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -387,18 +387,18 @@ public virtual async Task> GetIfE /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionCollection.GetIfExists"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -407,7 +407,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -417,7 +417,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs similarity index 71% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs index 8e44773138ef..7ba137c50f49 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceCodeVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceCodeVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceCodeVersionResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceCodeVersion method. + /// A Class representing a MachineLearningCodeVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningCodeVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningCodeVersion method. /// - public partial class WorkspaceCodeVersionResource : ArmResource + public partial class MachineLearningCodeVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceCodeVersionCodeVersionsClientDiagnostics; - private readonly CodeVersionsRestOperations _workspaceCodeVersionCodeVersionsRestClient; + private readonly ClientDiagnostics _machineLearningCodeVersionCodeVersionsClientDiagnostics; + private readonly CodeVersionsRestOperations _machineLearningCodeVersionCodeVersionsRestClient; private readonly MachineLearningCodeVersionData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceCodeVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningCodeVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceCodeVersionResource(ArmClient client, MachineLearningCodeVersionData data) : this(client, data.Id) + internal MachineLearningCodeVersionResource(ArmClient client, MachineLearningCodeVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceCodeVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningCodeVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceCodeVersionCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceCodeVersionCodeVersionsApiVersion); - _workspaceCodeVersionCodeVersionsRestClient = new CodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceCodeVersionCodeVersionsApiVersion); + _machineLearningCodeVersionCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningCodeVersionCodeVersionsApiVersion); + _machineLearningCodeVersionCodeVersionsRestClient = new CodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningCodeVersionCodeVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -101,16 +101,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Get"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Get"); scope.Start(); try { - var response = await _workspaceCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeVersionCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -133,16 +133,16 @@ public virtual async Task> GetAsync(Cance /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Get"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Get"); scope.Start(); try { - var response = _workspaceCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningCodeVersionCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -168,11 +168,11 @@ public virtual Response Get(CancellationToken canc /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Delete"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Delete"); scope.Start(); try { - var response = await _workspaceCodeVersionCodeVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeVersionCodeVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -202,11 +202,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Delete"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Delete"); scope.Start(); try { - var response = _workspaceCodeVersionCodeVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningCodeVersionCodeVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -236,16 +236,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Update"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Update"); scope.Start(); try { - var response = await _workspaceCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -274,16 +274,16 @@ public virtual async Task> UpdateAsyn /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.Update"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.Update"); scope.Start(); try { - var response = _workspaceCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceCodeVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -315,11 +315,11 @@ public virtual async Task> CreateOrGetStartPe { Argument.AssertNotNull(body, nameof(body)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.CreateOrGetStartPendingUpload"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.CreateOrGetStartPendingUpload"); scope.Start(); try { - var response = await _workspaceCodeVersionCodeVersionsRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningCodeVersionCodeVersionsRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -349,11 +349,11 @@ public virtual Response CreateOrGetStartPendingUpload( { Argument.AssertNotNull(body, nameof(body)); - using var scope = _workspaceCodeVersionCodeVersionsClientDiagnostics.CreateScope("WorkspaceCodeVersionResource.CreateOrGetStartPendingUpload"); + using var scope = _machineLearningCodeVersionCodeVersionsClientDiagnostics.CreateScope("MachineLearningCodeVersionResource.CreateOrGetStartPendingUpload"); scope.Start(); try { - var response = _workspaceCodeVersionCodeVersionsRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + var response = _machineLearningCodeVersionCodeVersionsRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs index 102622f0610f..dae276f799c6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceComponents method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningComponentContainers method from an instance of . /// - public partial class WorkspaceComponentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningComponentContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceComponentComponentContainersClientDiagnostics; - private readonly ComponentContainersRestOperations _workspaceComponentComponentContainersRestClient; + private readonly ClientDiagnostics _machineLearningComponentContainerComponentContainersClientDiagnostics; + private readonly ComponentContainersRestOperations _machineLearningComponentContainerComponentContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceComponentCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningComponentContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceComponentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningComponentContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceComponentComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceComponentResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceComponentResource.ResourceType, out string workspaceComponentComponentContainersApiVersion); - _workspaceComponentComponentContainersRestClient = new ComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceComponentComponentContainersApiVersion); + _machineLearningComponentContainerComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningComponentContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningComponentContainerResource.ResourceType, out string machineLearningComponentContainerComponentContainersApiVersion); + _machineLearningComponentContainerComponentContainersRestClient = new ComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningComponentContainerComponentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.CreateOrUpdate"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceComponentComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpda /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.CreateOrUpdate"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceComponentComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentResource(Client, response), response.GetRawResponse())); + var response = _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.Get"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.Get"); scope.Start(); try { - var response = await _workspaceComponentComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentContainerComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.Get"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.Get"); scope.Start(); try { - var response = _workspaceComponentComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _machineLearningComponentContainerComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string name, Cancellatio /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceComponentComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceComponentComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceComponentResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _workspaceComponentComponentContainersClientDiagnostics, Pipeline, "WorkspaceComponentCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningComponentContainerComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningComponentContainerComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningComponentContainerResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _machineLearningComponentContainerComponentContainersClientDiagnostics, Pipeline, "MachineLearningComponentContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAllAsync(string skip /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceComponentComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceComponentComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceComponentResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _workspaceComponentComponentContainersClientDiagnostics, Pipeline, "WorkspaceComponentCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningComponentContainerComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningComponentContainerComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningComponentContainerResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _machineLearningComponentContainerComponentContainersClientDiagnostics, Pipeline, "MachineLearningComponentContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.Exists"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.Exists"); scope.Start(); try { - var response = await _workspaceComponentComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentContainerComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.Exists"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.Exists"); scope.Start(); try { - var response = _workspaceComponentComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningComponentContainerComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -345,18 +345,18 @@ public virtual Response Exists(string name, CancellationToken cancellation /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.GetIfExists"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceComponentComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentContainerComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -382,18 +382,18 @@ public virtual async Task> GetIfExi /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentCollection.GetIfExists"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceComponentComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningComponentContainerComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -402,7 +402,7 @@ public virtual NullableResponse GetIfExists(string n } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -412,7 +412,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs index 7c01837c81cf..bc4a355d9221 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceComponent along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceComponentResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceComponent method. + /// A Class representing a MachineLearningComponentContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningComponentContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningComponentContainer method. /// - public partial class WorkspaceComponentResource : ArmResource + public partial class MachineLearningComponentContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceComponentComponentContainersClientDiagnostics; - private readonly ComponentContainersRestOperations _workspaceComponentComponentContainersRestClient; + private readonly ClientDiagnostics _machineLearningComponentContainerComponentContainersClientDiagnostics; + private readonly ComponentContainersRestOperations _machineLearningComponentContainerComponentContainersRestClient; private readonly MachineLearningComponentContainerData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceComponentResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningComponentContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceComponentResource(ArmClient client, MachineLearningComponentContainerData data) : this(client, data.Id) + internal MachineLearningComponentContainerResource(ArmClient client, MachineLearningComponentContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceComponentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningComponentContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceComponentComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceComponentComponentContainersApiVersion); - _workspaceComponentComponentContainersRestClient = new ComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceComponentComponentContainersApiVersion); + _machineLearningComponentContainerComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningComponentContainerComponentContainersApiVersion); + _machineLearningComponentContainerComponentContainersRestClient = new ComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningComponentContainerComponentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of WorkspaceComponentVersionResources in the WorkspaceComponent. - /// An object representing collection of WorkspaceComponentVersionResources and their operations over a WorkspaceComponentVersionResource. - public virtual WorkspaceComponentVersionCollection GetWorkspaceComponentVersions() + /// Gets a collection of MachineLearningComponentVersionResources in the MachineLearningComponentContainer. + /// An object representing collection of MachineLearningComponentVersionResources and their operations over a MachineLearningComponentVersionResource. + public virtual MachineLearningComponentVersionCollection GetMachineLearningComponentVersions() { - return GetCachedClient(Client => new WorkspaceComponentVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningComponentVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual WorkspaceComponentVersionCollection GetWorkspaceComponentVersions /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceComponentVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningComponentVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetWorkspaceComponentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningComponentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetWorksp /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceComponentVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningComponentVersion(string version, CancellationToken cancellationToken = default) { - return GetWorkspaceComponentVersions().Get(version, cancellationToken); + return GetMachineLearningComponentVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetWorkspaceComponent /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Get"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Get"); scope.Start(); try { - var response = await _workspaceComponentComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentContainerComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cancell /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Get"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Get"); scope.Start(); try { - var response = _workspaceComponentComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningComponentContainerComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(CancellationToken cancel /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Delete"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Delete"); scope.Start(); try { - var response = await _workspaceComponentComponentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentContainerComponentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Delete"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Delete"); scope.Start(); try { - var response = _workspaceComponentComponentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningComponentContainerComponentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Update"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Update"); scope.Start(); try { - var response = await _workspaceComponentComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync( /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceComponentComponentContainersClientDiagnostics.CreateScope("WorkspaceComponentResource.Update"); + using var scope = _machineLearningComponentContainerComponentContainersClientDiagnostics.CreateScope("MachineLearningComponentContainerResource.Update"); scope.Start(); try { - var response = _workspaceComponentComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentResource(Client, response), response.GetRawResponse())); + var response = _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs index 0e32e8d443fb..98184c92485e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceComponentVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningComponentVersions method from an instance of . /// - public partial class WorkspaceComponentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningComponentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceComponentVersionComponentVersionsClientDiagnostics; - private readonly ComponentVersionsRestOperations _workspaceComponentVersionComponentVersionsRestClient; + private readonly ClientDiagnostics _machineLearningComponentVersionComponentVersionsClientDiagnostics; + private readonly ComponentVersionsRestOperations _machineLearningComponentVersionComponentVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceComponentVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningComponentVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceComponentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningComponentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceComponentVersionComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceComponentVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceComponentVersionResource.ResourceType, out string workspaceComponentVersionComponentVersionsApiVersion); - _workspaceComponentVersionComponentVersionsRestClient = new ComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceComponentVersionComponentVersionsApiVersion); + _machineLearningComponentVersionComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningComponentVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningComponentVersionResource.ResourceType, out string machineLearningComponentVersionComponentVersionsApiVersion); + _machineLearningComponentVersionComponentVersionsRestClient = new ComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningComponentVersionComponentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal WorkspaceComponentVersionCollection(ArmClient client, ResourceIdentifie internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != WorkspaceComponentResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceComponentResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningComponentContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningComponentContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> Creat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(Wa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.Get"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.Get"); scope.Start(); try { - var response = await _workspaceComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.Get"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.Get"); scope.Start(); try { - var response = _workspaceComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -229,12 +229,12 @@ public virtual Response Get(string version, C /// View type for including/excluding (for example) archived entities. /// Component stage. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceComponentVersionComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceComponentVersionComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _workspaceComponentVersionComponentVersionsClientDiagnostics, Pipeline, "WorkspaceComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningComponentVersionComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningComponentVersionComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _machineLearningComponentVersionComponentVersionsClientDiagnostics, Pipeline, "MachineLearningComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -256,12 +256,12 @@ public virtual AsyncPageable GetAllAsync(stri /// View type for including/excluding (for example) archived entities. /// Component stage. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceComponentVersionComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceComponentVersionComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _workspaceComponentVersionComponentVersionsClientDiagnostics, Pipeline, "WorkspaceComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningComponentVersionComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningComponentVersionComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _machineLearningComponentVersionComponentVersionsClientDiagnostics, Pipeline, "MachineLearningComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -285,11 +285,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.Exists"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.Exists"); scope.Start(); try { - var response = await _workspaceComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -320,11 +320,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.Exists"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.Exists"); scope.Start(); try { - var response = _workspaceComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -351,18 +351,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.GetIfExists"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -388,18 +388,18 @@ public virtual async Task> G /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionCollection.GetIfExists"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -408,7 +408,7 @@ public virtual NullableResponse GetIfExists(s } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -418,7 +418,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs index d47cb0587b65..1169e2baba8e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceComponentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceComponentVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceComponentVersionResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceComponentVersion method. + /// A Class representing a MachineLearningComponentVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningComponentVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningComponentVersion method. /// - public partial class WorkspaceComponentVersionResource : ArmResource + public partial class MachineLearningComponentVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceComponentVersionComponentVersionsClientDiagnostics; - private readonly ComponentVersionsRestOperations _workspaceComponentVersionComponentVersionsRestClient; + private readonly ClientDiagnostics _machineLearningComponentVersionComponentVersionsClientDiagnostics; + private readonly ComponentVersionsRestOperations _machineLearningComponentVersionComponentVersionsRestClient; private readonly MachineLearningComponentVersionData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceComponentVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningComponentVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceComponentVersionResource(ArmClient client, MachineLearningComponentVersionData data) : this(client, data.Id) + internal MachineLearningComponentVersionResource(ArmClient client, MachineLearningComponentVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceComponentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningComponentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceComponentVersionComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceComponentVersionComponentVersionsApiVersion); - _workspaceComponentVersionComponentVersionsRestClient = new ComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceComponentVersionComponentVersionsApiVersion); + _machineLearningComponentVersionComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningComponentVersionComponentVersionsApiVersion); + _machineLearningComponentVersionComponentVersionsRestClient = new ComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningComponentVersionComponentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Get"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Get"); scope.Start(); try { - var response = await _workspaceComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentVersionComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync( /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Get"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Get"); scope.Start(); try { - var response = _workspaceComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningComponentVersionComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,11 +167,11 @@ public virtual Response Get(CancellationToken /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Delete"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Delete"); scope.Start(); try { - var response = await _workspaceComponentVersionComponentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningComponentVersionComponentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -201,11 +201,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Delete"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Delete"); scope.Start(); try { - var response = _workspaceComponentVersionComponentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningComponentVersionComponentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Update"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Update"); scope.Start(); try { - var response = await _workspaceComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> Updat /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceComponentVersionComponentVersionsClientDiagnostics.CreateScope("WorkspaceComponentVersionResource.Update"); + using var scope = _machineLearningComponentVersionComponentVersionsClientDiagnostics.CreateScope("MachineLearningComponentVersionResource.Update"); scope.Start(); try { - var response = _workspaceComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceComponentVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs index ccabb48afba1..26339f74f455 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceData method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningDataContainers method from an instance of . /// - public partial class WorkspaceDataCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningDataContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceDataDataContainersClientDiagnostics; - private readonly DataContainersRestOperations _workspaceDataDataContainersRestClient; + private readonly ClientDiagnostics _machineLearningDataContainerDataContainersClientDiagnostics; + private readonly DataContainersRestOperations _machineLearningDataContainerDataContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceDataCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningDataContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceDataCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningDataContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceDataDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceDataResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceDataResource.ResourceType, out string workspaceDataDataContainersApiVersion); - _workspaceDataDataContainersRestClient = new DataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceDataDataContainersApiVersion); + _machineLearningDataContainerDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningDataContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningDataContainerResource.ResourceType, out string machineLearningDataContainerDataContainersApiVersion); + _machineLearningDataContainerDataContainersRestClient = new DataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningDataContainerDataContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.CreateOrUpdate"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceDataDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningDataContainerDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpdateAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.CreateOrUpdate"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceDataDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataResource(Client, response), response.GetRawResponse())); + var response = _machineLearningDataContainerDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.Get"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.Get"); scope.Start(); try { - var response = await _workspaceDataDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataContainerDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string name, /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.Get"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.Get"); scope.Start(); try { - var response = _workspaceDataDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _machineLearningDataContainerDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string name, CancellationToke /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceDataDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceDataDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceDataResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _workspaceDataDataContainersClientDiagnostics, Pipeline, "WorkspaceDataCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataContainerDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataContainerDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningDataContainerResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _machineLearningDataContainerDataContainersClientDiagnostics, Pipeline, "MachineLearningDataContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAllAsync(string skip = nu /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceDataDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceDataDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceDataResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _workspaceDataDataContainersClientDiagnostics, Pipeline, "WorkspaceDataCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataContainerDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataContainerDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningDataContainerResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _machineLearningDataContainerDataContainersClientDiagnostics, Pipeline, "MachineLearningDataContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.Exists"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.Exists"); scope.Start(); try { - var response = await _workspaceDataDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataContainerDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.Exists"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.Exists"); scope.Start(); try { - var response = _workspaceDataDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningDataContainerDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -345,18 +345,18 @@ public virtual Response Exists(string name, CancellationToken cancellation /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.GetIfExists"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceDataDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataContainerDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -382,18 +382,18 @@ public virtual async Task> GetIfExistsAs /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataCollection.GetIfExists"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceDataDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningDataContainerDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -402,7 +402,7 @@ public virtual NullableResponse GetIfExists(string name, } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -412,7 +412,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs index bc50ac5a6fd9..ad3cbeb4ead5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceData along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceDataResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceData method. + /// A Class representing a MachineLearningDataContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningDataContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningDataContainer method. /// - public partial class WorkspaceDataResource : ArmResource + public partial class MachineLearningDataContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceDataDataContainersClientDiagnostics; - private readonly DataContainersRestOperations _workspaceDataDataContainersRestClient; + private readonly ClientDiagnostics _machineLearningDataContainerDataContainersClientDiagnostics; + private readonly DataContainersRestOperations _machineLearningDataContainerDataContainersRestClient; private readonly MachineLearningDataContainerData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceDataResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningDataContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceDataResource(ArmClient client, MachineLearningDataContainerData data) : this(client, data.Id) + internal MachineLearningDataContainerResource(ArmClient client, MachineLearningDataContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceDataResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningDataContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceDataDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceDataDataContainersApiVersion); - _workspaceDataDataContainersRestClient = new DataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceDataDataContainersApiVersion); + _machineLearningDataContainerDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningDataContainerDataContainersApiVersion); + _machineLearningDataContainerDataContainersRestClient = new DataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningDataContainerDataContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of WorkspaceDataVersionResources in the WorkspaceData. - /// An object representing collection of WorkspaceDataVersionResources and their operations over a WorkspaceDataVersionResource. - public virtual WorkspaceDataVersionCollection GetWorkspaceDataVersions() + /// Gets a collection of MachineLearningDataVersionResources in the MachineLearningDataContainer. + /// An object representing collection of MachineLearningDataVersionResources and their operations over a MachineLearningDataVersionResource. + public virtual MachineLearningDataVersionCollection GetMachineLearningDataVersions() { - return GetCachedClient(Client => new WorkspaceDataVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningDataVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual WorkspaceDataVersionCollection GetWorkspaceDataVersions() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceDataVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningDataVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetWorkspaceDataVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningDataVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetWorkspaceDa /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceDataVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningDataVersion(string version, CancellationToken cancellationToken = default) { - return GetWorkspaceDataVersions().Get(version, cancellationToken); + return GetMachineLearningDataVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetWorkspaceDataVersion(st /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Get"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Get"); scope.Start(); try { - var response = await _workspaceDataDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataContainerDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cancellation /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Get"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Get"); scope.Start(); try { - var response = _workspaceDataDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningDataContainerDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(CancellationToken cancellatio /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Delete"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Delete"); scope.Start(); try { - var response = await _workspaceDataDataContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataContainerDataContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Delete"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Delete"); scope.Start(); try { - var response = _workspaceDataDataContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningDataContainerDataContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Update"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Update"); scope.Start(); try { - var response = await _workspaceDataDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningDataContainerDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync(WaitU /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceDataDataContainersClientDiagnostics.CreateScope("WorkspaceDataResource.Update"); + using var scope = _machineLearningDataContainerDataContainersClientDiagnostics.CreateScope("MachineLearningDataContainerResource.Update"); scope.Start(); try { - var response = _workspaceDataDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataResource(Client, response), response.GetRawResponse())); + var response = _machineLearningDataContainerDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs index bbc59d86c9e7..fd34e9d288e7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceDataVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningDataVersions method from an instance of . /// - public partial class WorkspaceDataVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningDataVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceDataVersionDataVersionsClientDiagnostics; - private readonly DataVersionsRestOperations _workspaceDataVersionDataVersionsRestClient; + private readonly ClientDiagnostics _machineLearningDataVersionDataVersionsClientDiagnostics; + private readonly DataVersionsRestOperations _machineLearningDataVersionDataVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceDataVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningDataVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceDataVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningDataVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceDataVersionDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceDataVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceDataVersionResource.ResourceType, out string workspaceDataVersionDataVersionsApiVersion); - _workspaceDataVersionDataVersionsRestClient = new DataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceDataVersionDataVersionsApiVersion); + _machineLearningDataVersionDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningDataVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningDataVersionResource.ResourceType, out string machineLearningDataVersionDataVersionsApiVersion); + _machineLearningDataVersionDataVersionsRestClient = new DataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningDataVersionDataVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal WorkspaceDataVersionCollection(ArmClient client, ResourceIdentifier id) internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != WorkspaceDataResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceDataResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningDataContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningDataContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUp /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.Get"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.Get"); scope.Start(); try { - var response = await _workspaceDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(strin /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.Get"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.Get"); scope.Start(); try { - var response = _workspaceDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ public virtual Response Get(string version, Cancel /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(WorkspaceDataVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(MachineLearningDataVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new WorkspaceDataVersionCollectionGetAllOptions(); + options ??= new MachineLearningDataVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _workspaceDataVersionDataVersionsClientDiagnostics, Pipeline, "WorkspaceDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _machineLearningDataVersionDataVersionsClientDiagnostics, Pipeline, "MachineLearningDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,14 +250,14 @@ public virtual AsyncPageable GetAllAsync(Workspace /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(WorkspaceDataVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(MachineLearningDataVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new WorkspaceDataVersionCollectionGetAllOptions(); + options ??= new MachineLearningDataVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _workspaceDataVersionDataVersionsClientDiagnostics, Pipeline, "WorkspaceDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningDataVersionDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningDataVersionDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.OrderBy, options.Top, options.Skip, options.Tags, options.ListViewType, options.Stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _machineLearningDataVersionDataVersionsClientDiagnostics, Pipeline, "MachineLearningDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.Exists"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.Exists"); scope.Start(); try { - var response = await _workspaceDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.Exists"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.Exists"); scope.Start(); try { - var response = _workspaceDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -347,18 +347,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.GetIfExists"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -384,18 +384,18 @@ public virtual async Task> GetIfE /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionCollection.GetIfExists"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,7 +404,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll(options: null).GetEnumerator(); } @@ -414,7 +414,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll(options: null).GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs similarity index 70% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs index cfe021ada00b..e2a94e95efc7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceDataVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceDataVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceDataVersionResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceDataVersion method. + /// A Class representing a MachineLearningDataVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningDataVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningDataVersion method. /// - public partial class WorkspaceDataVersionResource : ArmResource + public partial class MachineLearningDataVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceDataVersionDataVersionsClientDiagnostics; - private readonly DataVersionsRestOperations _workspaceDataVersionDataVersionsRestClient; + private readonly ClientDiagnostics _machineLearningDataVersionDataVersionsClientDiagnostics; + private readonly DataVersionsRestOperations _machineLearningDataVersionDataVersionsRestClient; private readonly MachineLearningDataVersionData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceDataVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningDataVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceDataVersionResource(ArmClient client, MachineLearningDataVersionData data) : this(client, data.Id) + internal MachineLearningDataVersionResource(ArmClient client, MachineLearningDataVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceDataVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningDataVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceDataVersionDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceDataVersionDataVersionsApiVersion); - _workspaceDataVersionDataVersionsRestClient = new DataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceDataVersionDataVersionsApiVersion); + _machineLearningDataVersionDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningDataVersionDataVersionsApiVersion); + _machineLearningDataVersionDataVersionsRestClient = new DataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningDataVersionDataVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Get"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Get"); scope.Start(); try { - var response = await _workspaceDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataVersionDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync(Cance /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Get"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Get"); scope.Start(); try { - var response = _workspaceDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningDataVersionDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,11 +167,11 @@ public virtual Response Get(CancellationToken canc /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Delete"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Delete"); scope.Start(); try { - var response = await _workspaceDataVersionDataVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningDataVersionDataVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -201,11 +201,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Delete"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Delete"); scope.Start(); try { - var response = _workspaceDataVersionDataVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningDataVersionDataVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Update"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Update"); scope.Start(); try { - var response = await _workspaceDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> UpdateAsyn /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceDataVersionDataVersionsClientDiagnostics.CreateScope("WorkspaceDataVersionResource.Update"); + using var scope = _machineLearningDataVersionDataVersionsClientDiagnostics.CreateScope("MachineLearningDataVersionResource.Update"); scope.Start(); try { - var response = _workspaceDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceDataVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs index 6d19f38fe070..55825ab3d4c0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceEnvironments method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningEnvironmentContainers method from an instance of . /// - public partial class WorkspaceEnvironmentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningEnvironmentContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceEnvironmentEnvironmentContainersClientDiagnostics; - private readonly EnvironmentContainersRestOperations _workspaceEnvironmentEnvironmentContainersRestClient; + private readonly ClientDiagnostics _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics; + private readonly EnvironmentContainersRestOperations _machineLearningEnvironmentContainerEnvironmentContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceEnvironmentCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningEnvironmentContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceEnvironmentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningEnvironmentContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceEnvironmentEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceEnvironmentResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceEnvironmentResource.ResourceType, out string workspaceEnvironmentEnvironmentContainersApiVersion); - _workspaceEnvironmentEnvironmentContainersRestClient = new EnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceEnvironmentEnvironmentContainersApiVersion); + _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningEnvironmentContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningEnvironmentContainerResource.ResourceType, out string machineLearningEnvironmentContainerEnvironmentContainersApiVersion); + _machineLearningEnvironmentContainerEnvironmentContainersRestClient = new EnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningEnvironmentContainerEnvironmentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.CreateOrUpdate"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceEnvironmentEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUp /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.CreateOrUpdate"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceEnvironmentEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentResource(Client, response), response.GetRawResponse())); + var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.Get"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.Get"); scope.Start(); try { - var response = await _workspaceEnvironmentEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(strin /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.Get"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.Get"); scope.Start(); try { - var response = _workspaceEnvironmentEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string name, Cancellat /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceEnvironmentEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceEnvironmentEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceEnvironmentResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _workspaceEnvironmentEnvironmentContainersClientDiagnostics, Pipeline, "WorkspaceEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningEnvironmentContainerResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics, Pipeline, "MachineLearningEnvironmentContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAllAsync(string sk /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceEnvironmentEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceEnvironmentEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceEnvironmentResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _workspaceEnvironmentEnvironmentContainersClientDiagnostics, Pipeline, "WorkspaceEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningEnvironmentContainerResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics, Pipeline, "MachineLearningEnvironmentContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.Exists"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.Exists"); scope.Start(); try { - var response = await _workspaceEnvironmentEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.Exists"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.Exists"); scope.Start(); try { - var response = _workspaceEnvironmentEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -345,18 +345,18 @@ public virtual Response Exists(string name, CancellationToken cancellation /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.GetIfExists"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceEnvironmentEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -382,18 +382,18 @@ public virtual async Task> GetIfE /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentCollection.GetIfExists"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceEnvironmentEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -402,7 +402,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -412,7 +412,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs index 1d17c1286b9a..21abbbb167a2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceEnvironment along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceEnvironmentResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceEnvironment method. + /// A Class representing a MachineLearningEnvironmentContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningEnvironmentContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningEnvironmentContainer method. /// - public partial class WorkspaceEnvironmentResource : ArmResource + public partial class MachineLearningEnvironmentContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceEnvironmentEnvironmentContainersClientDiagnostics; - private readonly EnvironmentContainersRestOperations _workspaceEnvironmentEnvironmentContainersRestClient; + private readonly ClientDiagnostics _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics; + private readonly EnvironmentContainersRestOperations _machineLearningEnvironmentContainerEnvironmentContainersRestClient; private readonly MachineLearningEnvironmentContainerData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceEnvironmentResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningEnvironmentContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceEnvironmentResource(ArmClient client, MachineLearningEnvironmentContainerData data) : this(client, data.Id) + internal MachineLearningEnvironmentContainerResource(ArmClient client, MachineLearningEnvironmentContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceEnvironmentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningEnvironmentContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceEnvironmentEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceEnvironmentEnvironmentContainersApiVersion); - _workspaceEnvironmentEnvironmentContainersRestClient = new EnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceEnvironmentEnvironmentContainersApiVersion); + _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningEnvironmentContainerEnvironmentContainersApiVersion); + _machineLearningEnvironmentContainerEnvironmentContainersRestClient = new EnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningEnvironmentContainerEnvironmentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of WorkspaceEnvironmentVersionResources in the WorkspaceEnvironment. - /// An object representing collection of WorkspaceEnvironmentVersionResources and their operations over a WorkspaceEnvironmentVersionResource. - public virtual WorkspaceEnvironmentVersionCollection GetWorkspaceEnvironmentVersions() + /// Gets a collection of MachineLearningEnvironmentVersionResources in the MachineLearningEnvironmentContainer. + /// An object representing collection of MachineLearningEnvironmentVersionResources and their operations over a MachineLearningEnvironmentVersionResource. + public virtual MachineLearningEnvironmentVersionCollection GetMachineLearningEnvironmentVersions() { - return GetCachedClient(Client => new WorkspaceEnvironmentVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningEnvironmentVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual WorkspaceEnvironmentVersionCollection GetWorkspaceEnvironmentVers /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceEnvironmentVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningEnvironmentVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetWorkspaceEnvironmentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningEnvironmentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetWork /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceEnvironmentVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningEnvironmentVersion(string version, CancellationToken cancellationToken = default) { - return GetWorkspaceEnvironmentVersions().Get(version, cancellationToken); + return GetMachineLearningEnvironmentVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetWorkspaceEnviron /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Get"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Get"); scope.Start(); try { - var response = await _workspaceEnvironmentEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cance /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Get"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Get"); scope.Start(); try { - var response = _workspaceEnvironmentEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(CancellationToken canc /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Delete"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Delete"); scope.Start(); try { - var response = await _workspaceEnvironmentEnvironmentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Delete"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Delete"); scope.Start(); try { - var response = _workspaceEnvironmentEnvironmentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Update"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Update"); scope.Start(); try { - var response = await _workspaceEnvironmentEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsyn /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceEnvironmentEnvironmentContainersClientDiagnostics.CreateScope("WorkspaceEnvironmentResource.Update"); + using var scope = _machineLearningEnvironmentContainerEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningEnvironmentContainerResource.Update"); scope.Start(); try { - var response = _workspaceEnvironmentEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentResource(Client, response), response.GetRawResponse())); + var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs index f984781e7128..948ff9ca802c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceEnvironmentVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningEnvironmentVersions method from an instance of . /// - public partial class WorkspaceEnvironmentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningEnvironmentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics; - private readonly EnvironmentVersionsRestOperations _workspaceEnvironmentVersionEnvironmentVersionsRestClient; + private readonly ClientDiagnostics _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics; + private readonly EnvironmentVersionsRestOperations _machineLearningEnvironmentVersionEnvironmentVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceEnvironmentVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningEnvironmentVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceEnvironmentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningEnvironmentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceEnvironmentVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceEnvironmentVersionResource.ResourceType, out string workspaceEnvironmentVersionEnvironmentVersionsApiVersion); - _workspaceEnvironmentVersionEnvironmentVersionsRestClient = new EnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceEnvironmentVersionEnvironmentVersionsApiVersion); + _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningEnvironmentVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningEnvironmentVersionResource.ResourceType, out string machineLearningEnvironmentVersionEnvironmentVersionsApiVersion); + _machineLearningEnvironmentVersionEnvironmentVersionsRestClient = new EnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningEnvironmentVersionEnvironmentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal WorkspaceEnvironmentVersionCollection(ArmClient client, ResourceIdentif internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != WorkspaceEnvironmentResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceEnvironmentResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningEnvironmentContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningEnvironmentContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> Cre /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.Get"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.Get"); scope.Start(); try { - var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsyn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.Get"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.Get"); scope.Start(); try { - var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -229,12 +229,12 @@ public virtual Response Get(string version, /// View type for including/excluding (for example) archived entities. /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics, Pipeline, "WorkspaceEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics, Pipeline, "MachineLearningEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -256,12 +256,12 @@ public virtual AsyncPageable GetAllAsync(st /// View type for including/excluding (for example) archived entities. /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics, Pipeline, "WorkspaceEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics, Pipeline, "MachineLearningEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -285,11 +285,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.Exists"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.Exists"); scope.Start(); try { - var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -320,11 +320,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.Exists"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.Exists"); scope.Start(); try { - var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -351,18 +351,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.GetIfExists"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -388,18 +388,18 @@ public virtual async Task> /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionCollection.GetIfExists"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -408,7 +408,7 @@ public virtual NullableResponse GetIfExists } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -418,7 +418,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs index 40209918dacb..a89af9543db0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceEnvironmentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceEnvironmentVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceEnvironmentVersionResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceEnvironmentVersion method. + /// A Class representing a MachineLearningEnvironmentVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningEnvironmentVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningEnvironmentVersion method. /// - public partial class WorkspaceEnvironmentVersionResource : ArmResource + public partial class MachineLearningEnvironmentVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics; - private readonly EnvironmentVersionsRestOperations _workspaceEnvironmentVersionEnvironmentVersionsRestClient; + private readonly ClientDiagnostics _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics; + private readonly EnvironmentVersionsRestOperations _machineLearningEnvironmentVersionEnvironmentVersionsRestClient; private readonly MachineLearningEnvironmentVersionData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceEnvironmentVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningEnvironmentVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceEnvironmentVersionResource(ArmClient client, MachineLearningEnvironmentVersionData data) : this(client, data.Id) + internal MachineLearningEnvironmentVersionResource(ArmClient client, MachineLearningEnvironmentVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceEnvironmentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningEnvironmentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceEnvironmentVersionEnvironmentVersionsApiVersion); - _workspaceEnvironmentVersionEnvironmentVersionsRestClient = new EnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceEnvironmentVersionEnvironmentVersionsApiVersion); + _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningEnvironmentVersionEnvironmentVersionsApiVersion); + _machineLearningEnvironmentVersionEnvironmentVersionsRestClient = new EnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningEnvironmentVersionEnvironmentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Get"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Get"); scope.Start(); try { - var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsyn /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Get"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Get"); scope.Start(); try { - var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,11 +167,11 @@ public virtual Response Get(CancellationTok /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Delete"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Delete"); scope.Start(); try { - var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -201,11 +201,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Delete"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Delete"); scope.Start(); try { - var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Definition of EnvironmentVersion. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Update"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Update"); scope.Start(); try { - var response = await _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> Upd /// Definition of EnvironmentVersion. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("WorkspaceEnvironmentVersionResource.Update"); + using var scope = _machineLearningEnvironmentVersionEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningEnvironmentVersionResource.Update"); scope.Start(); try { - var response = _workspaceEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs index 60bfa5f57b7e..055774282b38 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceModels method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningModelContainers method from an instance of . /// - public partial class WorkspaceModelCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningModelContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceModelModelContainersClientDiagnostics; - private readonly ModelContainersRestOperations _workspaceModelModelContainersRestClient; + private readonly ClientDiagnostics _machineLearningModelContainerModelContainersClientDiagnostics; + private readonly ModelContainersRestOperations _machineLearningModelContainerModelContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceModelCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningModelContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceModelCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningModelContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceModelModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceModelResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceModelResource.ResourceType, out string workspaceModelModelContainersApiVersion); - _workspaceModelModelContainersRestClient = new ModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceModelModelContainersApiVersion); + _machineLearningModelContainerModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningModelContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningModelContainerResource.ResourceType, out string machineLearningModelContainerModelContainersApiVersion); + _machineLearningModelContainerModelContainersRestClient = new ModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningModelContainerModelContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.CreateOrUpdate"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceModelModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningModelContainerModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpdateAs /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.CreateOrUpdate"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceModelModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelResource(Client, response), response.GetRawResponse())); + var response = _machineLearningModelContainerModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.Get"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.Get"); scope.Start(); try { - var response = await _workspaceModelModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelContainerModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string name /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.Get"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.Get"); scope.Start(); try { - var response = _workspaceModelModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _machineLearningModelContainerModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -227,12 +227,12 @@ public virtual Response Get(string name, CancellationTok /// Maximum number of results to return. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, int? count = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, int? count = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceModelModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceModelModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceModelResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _workspaceModelModelContainersClientDiagnostics, Pipeline, "WorkspaceModelCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningModelContainerModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningModelContainerModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningModelContainerResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _machineLearningModelContainerModelContainersClientDiagnostics, Pipeline, "MachineLearningModelContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -252,12 +252,12 @@ public virtual AsyncPageable GetAllAsync(string skip = n /// Maximum number of results to return. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, int? count = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, int? count = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceModelModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceModelModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceModelResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _workspaceModelModelContainersClientDiagnostics, Pipeline, "WorkspaceModelCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningModelContainerModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningModelContainerModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, count, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningModelContainerResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _machineLearningModelContainerModelContainersClientDiagnostics, Pipeline, "MachineLearningModelContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.Exists"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.Exists"); scope.Start(); try { - var response = await _workspaceModelModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelContainerModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.Exists"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.Exists"); scope.Start(); try { - var response = _workspaceModelModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningModelContainerModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -347,18 +347,18 @@ public virtual Response Exists(string name, CancellationToken cancellation /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.GetIfExists"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceModelModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelContainerModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -384,18 +384,18 @@ public virtual async Task> GetIfExistsA /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelCollection.GetIfExists"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceModelModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningModelContainerModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,7 +404,7 @@ public virtual NullableResponse GetIfExists(string name, } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -414,7 +414,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs index 5be5e22b6626..a9a9c60468bf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceModel along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceModelResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceModel method. + /// A Class representing a MachineLearningModelContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningModelContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningModelContainer method. /// - public partial class WorkspaceModelResource : ArmResource + public partial class MachineLearningModelContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceModelModelContainersClientDiagnostics; - private readonly ModelContainersRestOperations _workspaceModelModelContainersRestClient; + private readonly ClientDiagnostics _machineLearningModelContainerModelContainersClientDiagnostics; + private readonly ModelContainersRestOperations _machineLearningModelContainerModelContainersRestClient; private readonly MachineLearningModelContainerData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceModelResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningModelContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceModelResource(ArmClient client, MachineLearningModelContainerData data) : this(client, data.Id) + internal MachineLearningModelContainerResource(ArmClient client, MachineLearningModelContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceModelResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningModelContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceModelModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceModelModelContainersApiVersion); - _workspaceModelModelContainersRestClient = new ModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceModelModelContainersApiVersion); + _machineLearningModelContainerModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningModelContainerModelContainersApiVersion); + _machineLearningModelContainerModelContainersRestClient = new ModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningModelContainerModelContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of WorkspaceModelVersionResources in the WorkspaceModel. - /// An object representing collection of WorkspaceModelVersionResources and their operations over a WorkspaceModelVersionResource. - public virtual WorkspaceModelVersionCollection GetWorkspaceModelVersions() + /// Gets a collection of MachineLearningModelVersionResources in the MachineLearningModelContainer. + /// An object representing collection of MachineLearningModelVersionResources and their operations over a MachineLearningModelVersionResource. + public virtual MachineLearningModelVersionCollection GetMachineLearningModelVersions() { - return GetCachedClient(Client => new WorkspaceModelVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningModelVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual WorkspaceModelVersionCollection GetWorkspaceModelVersions() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceModelVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningModelVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetWorkspaceModelVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningModelVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetWorkspaceM /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceModelVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningModelVersion(string version, CancellationToken cancellationToken = default) { - return GetWorkspaceModelVersions().Get(version, cancellationToken); + return GetMachineLearningModelVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetWorkspaceModelVersion( /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Get"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Get"); scope.Start(); try { - var response = await _workspaceModelModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelContainerModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Get"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Get"); scope.Start(); try { - var response = _workspaceModelModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningModelContainerModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,11 +220,11 @@ public virtual Response Get(CancellationToken cancellati /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Delete"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Delete"); scope.Start(); try { - var response = await _workspaceModelModelContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelContainerModelContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -254,11 +254,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Delete"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Delete"); scope.Start(); try { - var response = _workspaceModelModelContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningModelContainerModelContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Update"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Update"); scope.Start(); try { - var response = await _workspaceModelModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningModelContainerModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync(Wait /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceModelModelContainersClientDiagnostics.CreateScope("WorkspaceModelResource.Update"); + using var scope = _machineLearningModelContainerModelContainersClientDiagnostics.CreateScope("MachineLearningModelContainerResource.Update"); scope.Start(); try { - var response = _workspaceModelModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelResource(Client, response), response.GetRawResponse())); + var response = _machineLearningModelContainerModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs index a8374f77af41..8f7e63380c59 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkspaceModelVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningModelVersions method from an instance of . /// - public partial class WorkspaceModelVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningModelVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _workspaceModelVersionModelVersionsClientDiagnostics; - private readonly ModelVersionsRestOperations _workspaceModelVersionModelVersionsRestClient; + private readonly ClientDiagnostics _machineLearningModelVersionModelVersionsClientDiagnostics; + private readonly ModelVersionsRestOperations _machineLearningModelVersionModelVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected WorkspaceModelVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningModelVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WorkspaceModelVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningModelVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceModelVersionModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", WorkspaceModelVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WorkspaceModelVersionResource.ResourceType, out string workspaceModelVersionModelVersionsApiVersion); - _workspaceModelVersionModelVersionsRestClient = new ModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceModelVersionModelVersionsApiVersion); + _machineLearningModelVersionModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningModelVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningModelVersionResource.ResourceType, out string machineLearningModelVersionModelVersionsApiVersion); + _machineLearningModelVersionModelVersionsRestClient = new ModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningModelVersionModelVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal WorkspaceModelVersionCollection(ArmClient client, ResourceIdentifier id internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != WorkspaceModelResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkspaceModelResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningModelContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningModelContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _workspaceModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrU /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _workspaceModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.Get"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.Get"); scope.Start(); try { - var response = await _workspaceModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(stri /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.Get"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.Get"); scope.Start(); try { - var response = _workspaceModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ public virtual Response Get(string version, Cance /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(WorkspaceModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(MachineLearningModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new WorkspaceModelVersionCollectionGetAllOptions(); + options ??= new MachineLearningModelVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceModelVersionModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceModelVersionModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkspaceModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _workspaceModelVersionModelVersionsClientDiagnostics, Pipeline, "WorkspaceModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningModelVersionModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningModelVersionModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, "MachineLearningModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,14 +250,14 @@ public virtual AsyncPageable GetAllAsync(Workspac /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(WorkspaceModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(MachineLearningModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new WorkspaceModelVersionCollectionGetAllOptions(); + options ??= new MachineLearningModelVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceModelVersionModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceModelVersionModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkspaceModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _workspaceModelVersionModelVersionsClientDiagnostics, Pipeline, "WorkspaceModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningModelVersionModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningModelVersionModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Offset, options.Tags, options.Properties, options.Feed, options.ListViewType, options.Stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, "MachineLearningModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.Exists"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.Exists"); scope.Start(); try { - var response = await _workspaceModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.Exists"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.Exists"); scope.Start(); try { - var response = _workspaceModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -347,18 +347,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.GetIfExists"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _workspaceModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -384,18 +384,18 @@ public virtual async Task> GetIf /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionCollection.GetIfExists"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionCollection.GetIfExists"); scope.Start(); try { - var response = _workspaceModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,7 +404,7 @@ public virtual NullableResponse GetIfExists(strin } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll(options: null).GetEnumerator(); } @@ -414,7 +414,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll(options: null).GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs similarity index 71% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs index 2574d4bd40dc..fc39886ce6d2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/WorkspaceModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a WorkspaceModelVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWorkspaceModelVersionResource method. - /// Otherwise you can get one from its parent resource using the GetWorkspaceModelVersion method. + /// A Class representing a MachineLearningModelVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningModelVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningModelVersion method. /// - public partial class WorkspaceModelVersionResource : ArmResource + public partial class MachineLearningModelVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _workspaceModelVersionModelVersionsClientDiagnostics; - private readonly ModelVersionsRestOperations _workspaceModelVersionModelVersionsRestClient; + private readonly ClientDiagnostics _machineLearningModelVersionModelVersionsClientDiagnostics; + private readonly ModelVersionsRestOperations _machineLearningModelVersionModelVersionsRestClient; private readonly MachineLearningModelVersionData _data; - /// Initializes a new instance of the class for mocking. - protected WorkspaceModelVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningModelVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WorkspaceModelVersionResource(ArmClient client, MachineLearningModelVersionData data) : this(client, data.Id) + internal MachineLearningModelVersionResource(ArmClient client, MachineLearningModelVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WorkspaceModelVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningModelVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _workspaceModelVersionModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string workspaceModelVersionModelVersionsApiVersion); - _workspaceModelVersionModelVersionsRestClient = new ModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, workspaceModelVersionModelVersionsApiVersion); + _machineLearningModelVersionModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningModelVersionModelVersionsApiVersion); + _machineLearningModelVersionModelVersionsRestClient = new ModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningModelVersionModelVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -101,16 +101,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Get"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Get"); scope.Start(); try { - var response = await _workspaceModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelVersionModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -133,16 +133,16 @@ public virtual async Task> GetAsync(Canc /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Get"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Get"); scope.Start(); try { - var response = _workspaceModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningModelVersionModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WorkspaceModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -168,11 +168,11 @@ public virtual Response Get(CancellationToken can /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Delete"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Delete"); scope.Start(); try { - var response = await _workspaceModelVersionModelVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningModelVersionModelVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -202,11 +202,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Delete"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Delete"); scope.Start(); try { - var response = _workspaceModelVersionModelVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningModelVersionModelVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -236,16 +236,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Update"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Update"); scope.Start(); try { - var response = await _workspaceModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelVersionResource(Client, response), response.GetRawResponse())); + var response = await _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -274,16 +274,16 @@ public virtual async Task> UpdateAsy /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Update"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Update"); scope.Start(); try { - var response = _workspaceModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new WorkspaceModelVersionResource(Client, response), response.GetRawResponse())); + var response = _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -316,12 +316,12 @@ public virtual async Task> PackageAsync(WaitUntil { Argument.AssertNotNull(body, nameof(body)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Package"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Package"); scope.Start(); try { - var response = await _workspaceModelVersionModelVersionsRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _workspaceModelVersionModelVersionsClientDiagnostics, Pipeline, _workspaceModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningModelVersionModelVersionsRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, _machineLearningModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -354,12 +354,12 @@ public virtual ArmOperation Package(WaitUntil waitUntil, Packag { Argument.AssertNotNull(body, nameof(body)); - using var scope = _workspaceModelVersionModelVersionsClientDiagnostics.CreateScope("WorkspaceModelVersionResource.Package"); + using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Package"); scope.Start(); try { - var response = _workspaceModelVersionModelVersionsRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); - var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _workspaceModelVersionModelVersionsClientDiagnostics, Pipeline, _workspaceModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningModelVersionModelVersionsRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, _machineLearningModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionData.cs index 486a36a53bcb..5ee82bfaf2ad 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionData.cs @@ -36,7 +36,7 @@ public MachineLearningPrivateEndpointConnectionData(AzureLocation location) : ba /// The Private Endpoint resource. /// The connection state. /// The current provisioning state. - internal MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, WorkspacePrivateEndpointResource privateEndpoint, MachineLearningPrivateLinkServiceConnectionState connectionState, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location) + internal MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, MachineLearningPrivateEndpoint privateEndpoint, MachineLearningPrivateLinkServiceConnectionState connectionState, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Sku = sku; @@ -50,7 +50,7 @@ internal MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id, str /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. public MachineLearningSku Sku { get; set; } /// The Private Endpoint resource. - public WorkspacePrivateEndpointResource PrivateEndpoint { get; set; } + public MachineLearningPrivateEndpoint PrivateEndpoint { get; set; } /// The connection state. public MachineLearningPrivateLinkServiceConnectionState ConnectionState { get; set; } /// The current provisioning state. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs index b275cf2e06fb..3e5a72c34115 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs @@ -66,7 +66,7 @@ public MachineLearningWorkspaceData(AzureLocation location) : base(location) /// The list of private endpoint connections in the workspace. /// Count of private connections in the workspace. /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. - /// Whether requests from Public Network are allowed. + /// Whether requests from Public Network are allowed. /// The service managed resource settings. /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. /// The list of shared private link resources in this workspace. @@ -79,7 +79,7 @@ public MachineLearningWorkspaceData(AzureLocation location) : base(location) /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. /// WorkspaceHub's configuration object. /// The immutable id associated with this workspace. - internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string kind, MachineLearningSku sku, bool? allowPublicAccessWhenBehindVnet, string applicationInsights, IList associatedWorkspaces, IList containerRegistries, string containerRegistry, string description, Uri discoveryUri, bool? enableDataIsolation, MachineLearningEncryptionSetting encryption, IList existingWorkspaces, FeatureStoreSettings featureStoreSettings, string friendlyName, bool? isHbiWorkspace, string hubResourceId, string imageBuildCompute, string keyVault, IList keyVaults, ManagedNetworkSettings managedNetwork, Uri mlFlowTrackingUri, MachineLearningNotebookResourceInfo notebookInfo, string primaryUserAssignedIdentity, IReadOnlyList privateEndpointConnections, int? privateLinkCount, MachineLearningProvisioningState? provisioningState, MachineLearningPublicNetworkAccessType? publicNetworkAccess, ServiceManagedResourcesSettings serviceManagedResourcesSettings, string serviceProvisionedResourceGroup, IList sharedPrivateLinkResources, int? softDeleteRetentionInDays, string storageAccount, IList storageAccounts, bool? isStorageHnsEnabled, string systemDatastoresAuthMode, Guid? tenantId, bool? isV1LegacyMode, WorkspaceHubConfig workspaceHubConfig, string workspaceId) : base(id, name, resourceType, systemData, tags, location) + internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string kind, MachineLearningSku sku, bool? allowPublicAccessWhenBehindVnet, string applicationInsights, IList associatedWorkspaces, IList containerRegistries, string containerRegistry, string description, Uri discoveryUri, bool? enableDataIsolation, MachineLearningEncryptionSetting encryption, IList existingWorkspaces, FeatureStoreSettings featureStoreSettings, string friendlyName, bool? isHbiWorkspace, string hubResourceId, string imageBuildCompute, string keyVault, IList keyVaults, ManagedNetworkSettings managedNetwork, Uri mlFlowTrackingUri, MachineLearningNotebookResourceInfo notebookInfo, string primaryUserAssignedIdentity, IReadOnlyList privateEndpointConnections, int? privateLinkCount, MachineLearningProvisioningState? provisioningState, MachineLearningPublicNetworkAccessType? publicNetworkAccessType, ServiceManagedResourcesSettings serviceManagedResourcesSettings, string serviceProvisionedResourceGroup, IList sharedPrivateLinkResources, int? softDeleteRetentionInDays, string storageAccount, IList storageAccounts, bool? isStorageHnsEnabled, string systemDatastoresAuthMode, Guid? tenantId, bool? isV1LegacyMode, WorkspaceHubConfig workspaceHubConfig, string workspaceId) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Kind = kind; @@ -108,7 +108,7 @@ internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, Resour PrivateEndpointConnections = privateEndpointConnections; PrivateLinkCount = privateLinkCount; ProvisioningState = provisioningState; - PublicNetworkAccess = publicNetworkAccess; + PublicNetworkAccessType = publicNetworkAccessType; ServiceManagedResourcesSettings = serviceManagedResourcesSettings; ServiceProvisionedResourceGroup = serviceProvisionedResourceGroup; SharedPrivateLinkResources = sharedPrivateLinkResources; @@ -178,7 +178,7 @@ internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, Resour /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. public MachineLearningProvisioningState? ProvisioningState { get; } /// Whether requests from Public Network are allowed. - public MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get; set; } + public MachineLearningPublicNetworkAccessType? PublicNetworkAccessType { get; set; } /// The service managed resource settings. internal ServiceManagedResourcesSettings ServiceManagedResourcesSettings { get; set; } /// Gets or sets the cosmos db collections throughput. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs index 2cbef638996e..95c7e6975d60 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs @@ -155,11 +155,11 @@ public virtual Response GetMachineLearningComput return GetMachineLearningComputes().Get(computeName, cancellationToken); } - /// Gets a collection of WorkspaceCodeResources in the MachineLearningWorkspace. - /// An object representing collection of WorkspaceCodeResources and their operations over a WorkspaceCodeResource. - public virtual WorkspaceCodeCollection GetWorkspaceCodes() + /// Gets a collection of MachineLearningCodeContainerResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningCodeContainerResources and their operations over a MachineLearningCodeContainerResource. + public virtual MachineLearningCodeContainerCollection GetMachineLearningCodeContainers() { - return GetCachedClient(Client => new WorkspaceCodeCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningCodeContainerCollection(Client, Id)); } /// @@ -180,9 +180,9 @@ public virtual WorkspaceCodeCollection GetWorkspaceCodes() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceCodeAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningCodeContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetWorkspaceCodes().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningCodeContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -203,16 +203,16 @@ public virtual async Task> GetWorkspaceCodeAsync /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceCode(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningCodeContainer(string name, CancellationToken cancellationToken = default) { - return GetWorkspaceCodes().Get(name, cancellationToken); + return GetMachineLearningCodeContainers().Get(name, cancellationToken); } - /// Gets a collection of WorkspaceComponentResources in the MachineLearningWorkspace. - /// An object representing collection of WorkspaceComponentResources and their operations over a WorkspaceComponentResource. - public virtual WorkspaceComponentCollection GetWorkspaceComponents() + /// Gets a collection of MachineLearningComponentContainerResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningComponentContainerResources and their operations over a MachineLearningComponentContainerResource. + public virtual MachineLearningComponentContainerCollection GetMachineLearningComponentContainers() { - return GetCachedClient(Client => new WorkspaceComponentCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningComponentContainerCollection(Client, Id)); } /// @@ -233,9 +233,9 @@ public virtual WorkspaceComponentCollection GetWorkspaceComponents() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceComponentAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningComponentContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetWorkspaceComponents().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningComponentContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -256,16 +256,16 @@ public virtual async Task> GetWorkspaceComp /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceComponent(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningComponentContainer(string name, CancellationToken cancellationToken = default) { - return GetWorkspaceComponents().Get(name, cancellationToken); + return GetMachineLearningComponentContainers().Get(name, cancellationToken); } - /// Gets a collection of WorkspaceDataResources in the MachineLearningWorkspace. - /// An object representing collection of WorkspaceDataResources and their operations over a WorkspaceDataResource. - public virtual WorkspaceDataCollection GetAllWorkspaceData() + /// Gets a collection of MachineLearningDataContainerResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningDataContainerResources and their operations over a MachineLearningDataContainerResource. + public virtual MachineLearningDataContainerCollection GetMachineLearningDataContainers() { - return GetCachedClient(Client => new WorkspaceDataCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningDataContainerCollection(Client, Id)); } /// @@ -286,9 +286,9 @@ public virtual WorkspaceDataCollection GetAllWorkspaceData() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceDataAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningDataContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetAllWorkspaceData().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningDataContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -309,16 +309,16 @@ public virtual async Task> GetWorkspaceDataAsync /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceData(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningDataContainer(string name, CancellationToken cancellationToken = default) { - return GetAllWorkspaceData().Get(name, cancellationToken); + return GetMachineLearningDataContainers().Get(name, cancellationToken); } - /// Gets a collection of WorkspaceEnvironmentResources in the MachineLearningWorkspace. - /// An object representing collection of WorkspaceEnvironmentResources and their operations over a WorkspaceEnvironmentResource. - public virtual WorkspaceEnvironmentCollection GetWorkspaceEnvironments() + /// Gets a collection of MachineLearningEnvironmentContainerResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningEnvironmentContainerResources and their operations over a MachineLearningEnvironmentContainerResource. + public virtual MachineLearningEnvironmentContainerCollection GetMachineLearningEnvironmentContainers() { - return GetCachedClient(Client => new WorkspaceEnvironmentCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningEnvironmentContainerCollection(Client, Id)); } /// @@ -339,9 +339,9 @@ public virtual WorkspaceEnvironmentCollection GetWorkspaceEnvironments() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceEnvironmentAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningEnvironmentContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetWorkspaceEnvironments().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningEnvironmentContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -362,16 +362,16 @@ public virtual async Task> GetWorkspaceEn /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceEnvironment(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningEnvironmentContainer(string name, CancellationToken cancellationToken = default) { - return GetWorkspaceEnvironments().Get(name, cancellationToken); + return GetMachineLearningEnvironmentContainers().Get(name, cancellationToken); } - /// Gets a collection of WorkspaceModelResources in the MachineLearningWorkspace. - /// An object representing collection of WorkspaceModelResources and their operations over a WorkspaceModelResource. - public virtual WorkspaceModelCollection GetWorkspaceModels() + /// Gets a collection of MachineLearningModelContainerResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningModelContainerResources and their operations over a MachineLearningModelContainerResource. + public virtual MachineLearningModelContainerCollection GetMachineLearningModelContainers() { - return GetCachedClient(Client => new WorkspaceModelCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningModelContainerCollection(Client, Id)); } /// @@ -392,9 +392,9 @@ public virtual WorkspaceModelCollection GetWorkspaceModels() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWorkspaceModelAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningModelContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetWorkspaceModels().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningModelContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -415,9 +415,9 @@ public virtual async Task> GetWorkspaceModelAsy /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWorkspaceModel(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningModelContainer(string name, CancellationToken cancellationToken = default) { - return GetWorkspaceModels().Get(name, cancellationToken); + return GetMachineLearningModelContainers().Get(name, cancellationToken); } /// Gets a collection of MachineLearningBatchEndpointResources in the MachineLearningWorkspace. @@ -1585,11 +1585,11 @@ public virtual Response Get /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListOutboundNetworkDependenciesEndpointsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, FqdnEndpointsPropertyBag.DeserializeFqdnEndpointsPropertyBag, _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetOutboundNetworkDependenciesEndpoints", "value", null, cancellationToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, MachineLearningFqdnEndpoints.DeserializeMachineLearningFqdnEndpoints, _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetOutboundNetworkDependenciesEndpoints", "value", null, cancellationToken); } /// @@ -1606,11 +1606,11 @@ public virtual AsyncPageable GetOutboundNetworkDepende /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetOutboundNetworkDependenciesEndpoints(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetOutboundNetworkDependenciesEndpoints(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningWorkspaceWorkspacesRestClient.CreateListOutboundNetworkDependenciesEndpointsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, FqdnEndpointsPropertyBag.DeserializeFqdnEndpointsPropertyBag, _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetOutboundNetworkDependenciesEndpoints", "value", null, cancellationToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, MachineLearningFqdnEndpoints.DeserializeMachineLearningFqdnEndpoints, _machineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetOutboundNetworkDependenciesEndpoints", "value", null, cancellationToken); } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs index 358a34b9b2d7..100cc78dc205 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs @@ -17,7 +17,7 @@ public AcrDetails() /// Initializes a new instance of AcrDetails. /// Details of system created ACR account to be used for the Registry. - /// Details of user created ACR account to be used for the Registry. + /// Details of user created ACR account to be used for the Registry. Not supported in most cases and will throw 400 error if provided. internal AcrDetails(SystemCreatedAcrAccount systemCreatedAcrAccount, UserCreatedAcrAccount userCreatedAcrAccount) { SystemCreatedAcrAccount = systemCreatedAcrAccount; @@ -26,7 +26,7 @@ internal AcrDetails(SystemCreatedAcrAccount systemCreatedAcrAccount, UserCreated /// Details of system created ACR account to be used for the Registry. public SystemCreatedAcrAccount SystemCreatedAcrAccount { get; set; } - /// Details of user created ACR account to be used for the Registry. + /// Details of user created ACR account to be used for the Registry. Not supported in most cases and will throw 400 error if provided. internal UserCreatedAcrAccount UserCreatedAcrAccount { get; set; } /// /// Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopCronSchedule.Serialization.cs similarity index 88% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopCronSchedule.Serialization.cs index 663b7ff82463..b5cde6c9ebbf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopCronSchedule.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Cron : IUtf8JsonSerializable + public partial class ComputeStartStopCronSchedule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,7 +40,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Cron DeserializeCron(JsonElement element) + internal static ComputeStartStopCronSchedule DeserializeComputeStartStopCronSchedule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -72,7 +72,7 @@ internal static Cron DeserializeCron(JsonElement element) continue; } } - return new Cron(startTime.Value, timeZone.Value, expression.Value); + return new ComputeStartStopCronSchedule(startTime.Value, timeZone.Value, expression.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopCronSchedule.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopCronSchedule.cs index 5a8de26578c5..338507934a53 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Cron.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopCronSchedule.cs @@ -8,14 +8,14 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// The workflow trigger cron for ComputeStartStop schedule type. - public partial class Cron + public partial class ComputeStartStopCronSchedule { - /// Initializes a new instance of Cron. - public Cron() + /// Initializes a new instance of ComputeStartStopCronSchedule. + public ComputeStartStopCronSchedule() { } - /// Initializes a new instance of Cron. + /// Initializes a new instance of ComputeStartStopCronSchedule. /// The start time in yyyy-MM-ddTHH:mm:ss format. /// /// Specifies time zone in which the schedule runs. @@ -25,7 +25,7 @@ public Cron() /// [Required] Specifies cron expression of schedule. /// The expression should follow NCronTab format. /// - internal Cron(string startTime, string timeZone, string expression) + internal ComputeStartStopCronSchedule(string startTime, string timeZone, string expression) { StartTime = startTime; TimeZone = timeZone; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopRecurrenceSchedule.Serialization.cs similarity index 90% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopRecurrenceSchedule.Serialization.cs index 4e656f6220fd..60e207c2e451 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopRecurrenceSchedule.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Recurrence : IUtf8JsonSerializable + public partial class ComputeStartStopRecurrenceSchedule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -50,7 +50,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Recurrence DeserializeRecurrence(JsonElement element) + internal static ComputeStartStopRecurrenceSchedule DeserializeComputeStartStopRecurrenceSchedule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -106,7 +106,7 @@ internal static Recurrence DeserializeRecurrence(JsonElement element) continue; } } - return new Recurrence(Optional.ToNullable(frequency), Optional.ToNullable(interval), startTime.Value, timeZone.Value, schedule.Value); + return new ComputeStartStopRecurrenceSchedule(Optional.ToNullable(frequency), Optional.ToNullable(interval), startTime.Value, timeZone.Value, schedule.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopRecurrenceSchedule.cs similarity index 80% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopRecurrenceSchedule.cs index 536d5e9e56d2..a8507d84f3c5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Recurrence.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeStartStopRecurrenceSchedule.cs @@ -8,14 +8,14 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// The workflow trigger recurrence for ComputeStartStop schedule type. - public partial class Recurrence + public partial class ComputeStartStopRecurrenceSchedule { - /// Initializes a new instance of Recurrence. - public Recurrence() + /// Initializes a new instance of ComputeStartStopRecurrenceSchedule. + public ComputeStartStopRecurrenceSchedule() { } - /// Initializes a new instance of Recurrence. + /// Initializes a new instance of ComputeStartStopRecurrenceSchedule. /// [Required] The frequency to trigger schedule. /// [Required] Specifies schedule interval in conjunction with frequency. /// The start time in yyyy-MM-ddTHH:mm:ss format. @@ -24,7 +24,7 @@ public Recurrence() /// TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 /// /// [Required] The recurrence schedule. - internal Recurrence(MachineLearningRecurrenceFrequency? frequency, int? interval, string startTime, string timeZone, MachineLearningRecurrenceSchedule schedule) + internal ComputeStartStopRecurrenceSchedule(MachineLearningRecurrenceFrequency? frequency, int? interval, string startTime, string timeZone, MachineLearningRecurrenceSchedule schedule) { Frequency = frequency; Interval = interval; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EndpointServiceConnectionStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EndpointServiceConnectionStatus.cs deleted file mode 100644 index 099461d73473..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EndpointServiceConnectionStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Connection status of the service consumer with the service provider. - public readonly partial struct EndpointServiceConnectionStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EndpointServiceConnectionStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ApprovedValue = "Approved"; - private const string PendingValue = "Pending"; - private const string RejectedValue = "Rejected"; - private const string DisconnectedValue = "Disconnected"; - private const string TimeoutValue = "Timeout"; - - /// Approved. - public static EndpointServiceConnectionStatus Approved { get; } = new EndpointServiceConnectionStatus(ApprovedValue); - /// Pending. - public static EndpointServiceConnectionStatus Pending { get; } = new EndpointServiceConnectionStatus(PendingValue); - /// Rejected. - public static EndpointServiceConnectionStatus Rejected { get; } = new EndpointServiceConnectionStatus(RejectedValue); - /// Disconnected. - public static EndpointServiceConnectionStatus Disconnected { get; } = new EndpointServiceConnectionStatus(DisconnectedValue); - /// Timeout. - public static EndpointServiceConnectionStatus Timeout { get; } = new EndpointServiceConnectionStatus(TimeoutValue); - /// Determines if two values are the same. - public static bool operator ==(EndpointServiceConnectionStatus left, EndpointServiceConnectionStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EndpointServiceConnectionStatus left, EndpointServiceConnectionStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EndpointServiceConnectionStatus(string value) => new EndpointServiceConnectionStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EndpointServiceConnectionStatus other && Equals(other); - /// - public bool Equals(EndpointServiceConnectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.Serialization.cs index 383ef773a560..42e58154ef78 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.Serialization.cs @@ -19,7 +19,7 @@ internal static ExternalFqdnResponse DeserializeExternalFqdnResponse(JsonElement { return null; } - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) @@ -28,10 +28,10 @@ internal static ExternalFqdnResponse DeserializeExternalFqdnResponse(JsonElement { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(FqdnEndpointsPropertyBag.DeserializeFqdnEndpointsPropertyBag(item)); + array.Add(MachineLearningFqdnEndpoints.DeserializeMachineLearningFqdnEndpoints(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs index 6b646fa5118f..1a90310b23b7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs @@ -16,17 +16,17 @@ internal partial class ExternalFqdnResponse /// Initializes a new instance of ExternalFqdnResponse. internal ExternalFqdnResponse() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ExternalFqdnResponse. /// - internal ExternalFqdnResponse(IReadOnlyList value) + internal ExternalFqdnResponse(IReadOnlyList value) { Value = value; } /// Gets the value. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.Serialization.cs deleted file mode 100644 index e6b5a1b7b74e..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.Serialization.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - public partial class FqdnEndpointsPropertyBag - { - internal static FqdnEndpointsPropertyBag DeserializeFqdnEndpointsPropertyBag(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - Optional properties = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = MachineLearningFqdnEndpoints.DeserializeMachineLearningFqdnEndpoints(property.Value); - continue; - } - } - return new FqdnEndpointsPropertyBag(properties.Value); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.cs deleted file mode 100644 index fe8b777b67e8..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnEndpointsPropertyBag.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Property bag for FQDN endpoints result. - public partial class FqdnEndpointsPropertyBag - { - /// Initializes a new instance of FqdnEndpointsPropertyBag. - internal FqdnEndpointsPropertyBag() - { - } - - /// Initializes a new instance of FqdnEndpointsPropertyBag. - /// - internal FqdnEndpointsPropertyBag(MachineLearningFqdnEndpoints properties) - { - Properties = properties; - } - - /// Gets the properties. - public MachineLearningFqdnEndpoints Properties { get; } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs index 4bd2a9b07110..4cd13d969160 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs @@ -153,7 +153,7 @@ public MachineLearningScriptsToExecute Scripts /// The list of schedules to be applied on the computes. internal ComputeSchedules Schedules { get; set; } /// The list of compute start stop schedules to be applied. - public IList SchedulesComputeStartStop + public IReadOnlyList SchedulesComputeStartStop { get { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.Serialization.cs index 0a9acc683e73..5aa965c91354 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.Serialization.cs @@ -30,15 +30,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("triggerType"u8); writer.WriteStringValue(TriggerType.Value.ToString()); } - if (Optional.IsDefined(Recurrence)) + if (Optional.IsDefined(RecurrenceSchedule)) { writer.WritePropertyName("recurrence"u8); - writer.WriteObjectValue(Recurrence); + writer.WriteObjectValue(RecurrenceSchedule); } - if (Optional.IsDefined(Cron)) + if (Optional.IsDefined(CronSchedule)) { writer.WritePropertyName("cron"u8); - writer.WriteObjectValue(Cron); + writer.WriteObjectValue(CronSchedule); } if (Optional.IsDefined(Schedule)) { @@ -59,8 +59,8 @@ internal static MachineLearningComputeStartStopSchedule DeserializeMachineLearni Optional status = default; Optional action = default; Optional triggerType = default; - Optional recurrence = default; - Optional cron = default; + Optional recurrence = default; + Optional cron = default; Optional schedule = default; foreach (var property in element.EnumerateObject()) { @@ -116,7 +116,7 @@ internal static MachineLearningComputeStartStopSchedule DeserializeMachineLearni { continue; } - recurrence = Recurrence.DeserializeRecurrence(property.Value); + recurrence = ComputeStartStopRecurrenceSchedule.DeserializeComputeStartStopRecurrenceSchedule(property.Value); continue; } if (property.NameEquals("cron"u8)) @@ -125,7 +125,7 @@ internal static MachineLearningComputeStartStopSchedule DeserializeMachineLearni { continue; } - cron = Cron.DeserializeCron(property.Value); + cron = ComputeStartStopCronSchedule.DeserializeComputeStartStopCronSchedule(property.Value); continue; } if (property.NameEquals("schedule"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.cs index 5537d47b700e..f19efb116ff1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeStartStopSchedule.cs @@ -21,18 +21,18 @@ public MachineLearningComputeStartStopSchedule() /// Is the schedule enabled or disabled?. /// [Required] The compute power action. /// [Required] The schedule trigger type. - /// Required if triggerType is Recurrence. - /// Required if triggerType is Cron. + /// Required if triggerType is Recurrence. + /// Required if triggerType is Cron. /// [Deprecated] Not used any more. - internal MachineLearningComputeStartStopSchedule(string id, MachineLearningComputeProvisioningStatus? provisioningStatus, MachineLearningScheduleStatus? status, MachineLearningComputePowerAction? action, MachineLearningTriggerType? triggerType, Recurrence recurrence, Cron cron, MachineLearningScheduleBase schedule) + internal MachineLearningComputeStartStopSchedule(string id, MachineLearningComputeProvisioningStatus? provisioningStatus, MachineLearningScheduleStatus? status, MachineLearningComputePowerAction? action, MachineLearningTriggerType? triggerType, ComputeStartStopRecurrenceSchedule recurrenceSchedule, ComputeStartStopCronSchedule cronSchedule, MachineLearningScheduleBase schedule) { Id = id; ProvisioningStatus = provisioningStatus; Status = status; Action = action; TriggerType = triggerType; - Recurrence = recurrence; - Cron = cron; + RecurrenceSchedule = recurrenceSchedule; + CronSchedule = cronSchedule; Schedule = schedule; } @@ -47,9 +47,9 @@ internal MachineLearningComputeStartStopSchedule(string id, MachineLearningCompu /// [Required] The schedule trigger type. public MachineLearningTriggerType? TriggerType { get; set; } /// Required if triggerType is Recurrence. - public Recurrence Recurrence { get; set; } + public ComputeStartStopRecurrenceSchedule RecurrenceSchedule { get; set; } /// Required if triggerType is Cron. - public Cron Cron { get; set; } + public ComputeStartStopCronSchedule CronSchedule { get; set; } /// [Deprecated] Not used any more. public MachineLearningScheduleBase Schedule { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceDataVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionCollectionGetAllOptions.cs similarity index 78% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceDataVersionCollectionGetAllOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionCollectionGetAllOptions.cs index f168e303f1da..23d154543d50 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceDataVersionCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionCollectionGetAllOptions.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The WorkspaceDataVersionCollectionGetAllOptions. - public partial class WorkspaceDataVersionCollectionGetAllOptions + /// The MachineLearningDataVersionCollectionGetAllOptions. + public partial class MachineLearningDataVersionCollectionGetAllOptions { - /// Initializes a new instance of WorkspaceDataVersionCollectionGetAllOptions. - public WorkspaceDataVersionCollectionGetAllOptions() + /// Initializes a new instance of MachineLearningDataVersionCollectionGetAllOptions. + public MachineLearningDataVersionCollectionGetAllOptions() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.Serialization.cs similarity index 76% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.Serialization.cs index 3ee5e0cb5bed..922ed3cd2378 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class KeyVaultProperties : IUtf8JsonSerializable + public partial class MachineLearningEncryptionKeyVaultProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -27,7 +27,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static KeyVaultProperties DeserializeKeyVaultProperties(JsonElement element) + internal static MachineLearningEncryptionKeyVaultProperties DeserializeMachineLearningEncryptionKeyVaultProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -35,7 +35,7 @@ internal static KeyVaultProperties DeserializeKeyVaultProperties(JsonElement ele } Optional identityClientId = default; string keyIdentifier = default; - string keyVaultArmId = default; + ResourceIdentifier keyVaultArmId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("identityClientId"u8)) @@ -50,11 +50,11 @@ internal static KeyVaultProperties DeserializeKeyVaultProperties(JsonElement ele } if (property.NameEquals("keyVaultArmId"u8)) { - keyVaultArmId = property.Value.GetString(); + keyVaultArmId = new ResourceIdentifier(property.Value.GetString()); continue; } } - return new KeyVaultProperties(identityClientId.Value, keyIdentifier, keyVaultArmId); + return new MachineLearningEncryptionKeyVaultProperties(identityClientId.Value, keyIdentifier, keyVaultArmId); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.cs similarity index 76% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.cs index 2cc7ed26dc40..c6618de43958 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/KeyVaultProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionKeyVaultProperties.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Customer Key vault properties. - public partial class KeyVaultProperties + public partial class MachineLearningEncryptionKeyVaultProperties { - /// Initializes a new instance of KeyVaultProperties. + /// Initializes a new instance of MachineLearningEncryptionKeyVaultProperties. /// KeyVault key identifier to encrypt the data. /// KeyVault Arm Id that contains the data encryption key. /// or is null. - public KeyVaultProperties(string keyIdentifier, string keyVaultArmId) + public MachineLearningEncryptionKeyVaultProperties(string keyIdentifier, ResourceIdentifier keyVaultArmId) { Argument.AssertNotNull(keyIdentifier, nameof(keyIdentifier)); Argument.AssertNotNull(keyVaultArmId, nameof(keyVaultArmId)); @@ -26,14 +26,14 @@ public KeyVaultProperties(string keyIdentifier, string keyVaultArmId) KeyVaultArmId = keyVaultArmId; } - /// Initializes a new instance of KeyVaultProperties. + /// Initializes a new instance of MachineLearningEncryptionKeyVaultProperties. /// /// Currently, we support only SystemAssigned MSI. /// We need this when we support UserAssignedIdentities /// /// KeyVault key identifier to encrypt the data. /// KeyVault Arm Id that contains the data encryption key. - internal KeyVaultProperties(string identityClientId, string keyIdentifier, string keyVaultArmId) + internal MachineLearningEncryptionKeyVaultProperties(string identityClientId, string keyIdentifier, ResourceIdentifier keyVaultArmId) { IdentityClientId = identityClientId; KeyIdentifier = keyIdentifier; @@ -48,6 +48,6 @@ internal KeyVaultProperties(string identityClientId, string keyIdentifier, strin /// KeyVault key identifier to encrypt the data. public string KeyIdentifier { get; set; } /// KeyVault Arm Id that contains the data encryption key. - public string KeyVaultArmId { get; set; } + public ResourceIdentifier KeyVaultArmId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs index 1c39aea9f305..76ddbdacbaed 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs @@ -50,7 +50,7 @@ internal static MachineLearningEncryptionSetting DeserializeMachineLearningEncry } Optional cosmosDbResourceId = default; Optional identity = default; - KeyVaultProperties keyVaultProperties = default; + MachineLearningEncryptionKeyVaultProperties keyVaultProperties = default; Optional searchAccountResourceId = default; MachineLearningEncryptionStatus status = default; Optional storageAccountResourceId = default; @@ -72,7 +72,7 @@ internal static MachineLearningEncryptionSetting DeserializeMachineLearningEncry } if (property.NameEquals("keyVaultProperties"u8)) { - keyVaultProperties = KeyVaultProperties.DeserializeKeyVaultProperties(property.Value); + keyVaultProperties = MachineLearningEncryptionKeyVaultProperties.DeserializeMachineLearningEncryptionKeyVaultProperties(property.Value); continue; } if (property.NameEquals("searchAccountResourceId"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs index 7a00e620ea07..139826069b8b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs @@ -17,7 +17,7 @@ public partial class MachineLearningEncryptionSetting /// KeyVault details to do the encryption. /// Indicates whether or not the encryption is enabled for the workspace. /// is null. - public MachineLearningEncryptionSetting(KeyVaultProperties keyVaultProperties, MachineLearningEncryptionStatus status) + public MachineLearningEncryptionSetting(MachineLearningEncryptionKeyVaultProperties keyVaultProperties, MachineLearningEncryptionStatus status) { Argument.AssertNotNull(keyVaultProperties, nameof(keyVaultProperties)); @@ -41,7 +41,7 @@ public MachineLearningEncryptionSetting(KeyVaultProperties keyVaultProperties, M /// The byok storage account that customer brings to store customer's data /// with encryption /// - internal MachineLearningEncryptionSetting(string cosmosDbResourceId, MachineLearningCmkIdentity identity, KeyVaultProperties keyVaultProperties, string searchAccountResourceId, MachineLearningEncryptionStatus status, string storageAccountResourceId) + internal MachineLearningEncryptionSetting(string cosmosDbResourceId, MachineLearningCmkIdentity identity, MachineLearningEncryptionKeyVaultProperties keyVaultProperties, string searchAccountResourceId, MachineLearningEncryptionStatus status, string storageAccountResourceId) { CosmosDbResourceId = cosmosDbResourceId; Identity = identity; @@ -71,7 +71,7 @@ public ResourceIdentifier UserAssignedIdentity } /// KeyVault details to do the encryption. - public KeyVaultProperties KeyVaultProperties { get; set; } + public MachineLearningEncryptionKeyVaultProperties KeyVaultProperties { get; set; } /// /// The byok search account that customer brings to store customer's data /// with encryption diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.Serialization.cs index ab51bdd40445..4516693bc7ea 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.Serialization.cs @@ -5,7 +5,6 @@ #nullable disable -using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -19,31 +18,20 @@ internal static MachineLearningFqdnEndpoints DeserializeMachineLearningFqdnEndpo { return null; } - Optional category = default; - Optional> endpoints = default; + Optional properties = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) - { - category = property.Value.GetString(); - continue; - } - if (property.NameEquals("endpoints"u8)) + if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(MachineLearningFqdnEndpoint.DeserializeMachineLearningFqdnEndpoint(item)); - } - endpoints = array; + properties = MachineLearningFqdnEndpointsProperties.DeserializeMachineLearningFqdnEndpointsProperties(property.Value); continue; } } - return new MachineLearningFqdnEndpoints(category.Value, Optional.ToList(endpoints)); + return new MachineLearningFqdnEndpoints(properties.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.cs index 03489cb624db..91d3b6255575 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoints.cs @@ -5,32 +5,24 @@ #nullable disable -using System.Collections.Generic; -using Azure.Core; - namespace Azure.ResourceManager.MachineLearning.Models { - /// The MachineLearningFqdnEndpoints. + /// Property bag for FQDN endpoints result. public partial class MachineLearningFqdnEndpoints { /// Initializes a new instance of MachineLearningFqdnEndpoints. internal MachineLearningFqdnEndpoints() { - Endpoints = new ChangeTrackingList(); } /// Initializes a new instance of MachineLearningFqdnEndpoints. - /// - /// - internal MachineLearningFqdnEndpoints(string category, IReadOnlyList endpoints) + /// + internal MachineLearningFqdnEndpoints(MachineLearningFqdnEndpointsProperties properties) { - Category = category; - Endpoints = endpoints; + Properties = properties; } - /// Gets the category. - public string Category { get; } - /// Gets the endpoints. - public IReadOnlyList Endpoints { get; } + /// Gets the properties. + public MachineLearningFqdnEndpointsProperties Properties { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.Serialization.cs new file mode 100644 index 000000000000..b9c3a38995a8 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + public partial class MachineLearningFqdnEndpointsProperties + { + internal static MachineLearningFqdnEndpointsProperties DeserializeMachineLearningFqdnEndpointsProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional category = default; + Optional> endpoints = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("category"u8)) + { + category = property.Value.GetString(); + continue; + } + if (property.NameEquals("endpoints"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MachineLearningFqdnEndpoint.DeserializeMachineLearningFqdnEndpoint(item)); + } + endpoints = array; + continue; + } + } + return new MachineLearningFqdnEndpointsProperties(category.Value, Optional.ToList(endpoints)); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs new file mode 100644 index 000000000000..05fcd406404c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The MachineLearningFqdnEndpointsProperties. + public partial class MachineLearningFqdnEndpointsProperties + { + /// Initializes a new instance of MachineLearningFqdnEndpointsProperties. + internal MachineLearningFqdnEndpointsProperties() + { + Endpoints = new ChangeTrackingList(); + } + + /// Initializes a new instance of MachineLearningFqdnEndpointsProperties. + /// + /// + internal MachineLearningFqdnEndpointsProperties(string category, IReadOnlyList endpoints) + { + Category = category; + Endpoints = endpoints; + } + + /// Gets the category. + public string Category { get; } + /// Gets the endpoints. + public IReadOnlyList Endpoints { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceModelVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionCollectionGetAllOptions.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceModelVersionCollectionGetAllOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionCollectionGetAllOptions.cs index 5724921ffec3..8280198f26cc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceModelVersionCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionCollectionGetAllOptions.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The WorkspaceModelVersionCollectionGetAllOptions. - public partial class WorkspaceModelVersionCollectionGetAllOptions + /// The MachineLearningModelVersionCollectionGetAllOptions. + public partial class MachineLearningModelVersionCollectionGetAllOptions { - /// Initializes a new instance of WorkspaceModelVersionCollectionGetAllOptions. - public WorkspaceModelVersionCollectionGetAllOptions() + /// Initializes a new instance of MachineLearningModelVersionCollectionGetAllOptions. + public MachineLearningModelVersionCollectionGetAllOptions() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.Serialization.cs index 0700c5164dc2..51e6dbd4e28f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.Serialization.cs @@ -25,6 +25,7 @@ internal static MachineLearningPrivateEndpoint DeserializeMachineLearningPrivate return null; } Optional id = default; + Optional subnetArmId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -36,8 +37,17 @@ internal static MachineLearningPrivateEndpoint DeserializeMachineLearningPrivate id = new ResourceIdentifier(property.Value.GetString()); continue; } + if (property.NameEquals("subnetArmId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + subnetArmId = new ResourceIdentifier(property.Value.GetString()); + continue; + } } - return new MachineLearningPrivateEndpoint(id.Value); + return new MachineLearningPrivateEndpoint(id.Value, subnetArmId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.cs index 949ea0467b3f..9325b6990d7e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpoint.cs @@ -18,13 +18,17 @@ public MachineLearningPrivateEndpoint() } /// Initializes a new instance of MachineLearningPrivateEndpoint. - /// The ARM identifier for Private Endpoint. - internal MachineLearningPrivateEndpoint(ResourceIdentifier id) + /// e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}. + /// The subnetId that the private endpoint is connected to. + internal MachineLearningPrivateEndpoint(ResourceIdentifier id, ResourceIdentifier subnetArmId) { Id = id; + SubnetArmId = subnetArmId; } - /// The ARM identifier for Private Endpoint. + /// e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}. public ResourceIdentifier Id { get; } + /// The subnetId that the private endpoint is connected to. + public ResourceIdentifier SubnetArmId { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionData.Serialization.cs index 912bcb4caad7..4356aa5e8785 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionData.Serialization.cs @@ -72,7 +72,7 @@ internal static MachineLearningPrivateEndpointConnectionData DeserializeMachineL string name = default; ResourceType type = default; Optional systemData = default; - Optional privateEndpoint = default; + Optional privateEndpoint = default; Optional privateLinkServiceConnectionState = default; Optional provisioningState = default; foreach (var property in element.EnumerateObject()) @@ -154,7 +154,7 @@ internal static MachineLearningPrivateEndpointConnectionData DeserializeMachineL { continue; } - privateEndpoint = WorkspacePrivateEndpointResource.DeserializeWorkspacePrivateEndpointResource(property0.Value); + privateEndpoint = MachineLearningPrivateEndpoint.DeserializeMachineLearningPrivateEndpoint(property0.Value); continue; } if (property0.NameEquals("privateLinkServiceConnectionState"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointServiceConnectionStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointServiceConnectionStatus.cs new file mode 100644 index 000000000000..bbbc56ecaabc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointServiceConnectionStatus.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Connection status of the service consumer with the service provider. + public readonly partial struct MachineLearningPrivateEndpointServiceConnectionStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MachineLearningPrivateEndpointServiceConnectionStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ApprovedValue = "Approved"; + private const string PendingValue = "Pending"; + private const string RejectedValue = "Rejected"; + private const string DisconnectedValue = "Disconnected"; + private const string TimeoutValue = "Timeout"; + + /// Approved. + public static MachineLearningPrivateEndpointServiceConnectionStatus Approved { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(ApprovedValue); + /// Pending. + public static MachineLearningPrivateEndpointServiceConnectionStatus Pending { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(PendingValue); + /// Rejected. + public static MachineLearningPrivateEndpointServiceConnectionStatus Rejected { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(RejectedValue); + /// Disconnected. + public static MachineLearningPrivateEndpointServiceConnectionStatus Disconnected { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(DisconnectedValue); + /// Timeout. + public static MachineLearningPrivateEndpointServiceConnectionStatus Timeout { get; } = new MachineLearningPrivateEndpointServiceConnectionStatus(TimeoutValue); + /// Determines if two values are the same. + public static bool operator ==(MachineLearningPrivateEndpointServiceConnectionStatus left, MachineLearningPrivateEndpointServiceConnectionStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MachineLearningPrivateEndpointServiceConnectionStatus left, MachineLearningPrivateEndpointServiceConnectionStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MachineLearningPrivateEndpointServiceConnectionStatus(string value) => new MachineLearningPrivateEndpointServiceConnectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MachineLearningPrivateEndpointServiceConnectionStatus other && Equals(other); + /// + public bool Equals(MachineLearningPrivateEndpointServiceConnectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.Serialization.cs index 38dd7b968def..f6e7244e0d66 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.Serialization.cs @@ -43,21 +43,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Location); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); - if (Optional.IsDefined(GroupId)) - { - writer.WritePropertyName("groupId"u8); - writer.WriteStringValue(GroupId); - } - if (Optional.IsCollectionDefined(RequiredMembers)) - { - writer.WritePropertyName("requiredMembers"u8); - writer.WriteStartArray(); - foreach (var item in RequiredMembers) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } if (Optional.IsCollectionDefined(RequiredZoneNames)) { writer.WritePropertyName("requiredZoneNames"u8); @@ -87,7 +72,7 @@ internal static MachineLearningPrivateLinkResource DeserializeMachineLearningPri ResourceType type = default; Optional systemData = default; Optional groupId = default; - Optional> requiredMembers = default; + Optional> requiredMembers = default; Optional> requiredZoneNames = default; foreach (var property in element.EnumerateObject()) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs index 44c0bd90f55a..1302619d7a7c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs @@ -34,7 +34,7 @@ public MachineLearningPrivateLinkResource(AzureLocation location) : base(locatio /// The private link resource group id. /// The private link resource required member names. /// The private link resource Private link DNS zone name. - internal MachineLearningPrivateLinkResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, string groupId, IList requiredMembers, IList requiredZoneNames) : base(id, name, resourceType, systemData, tags, location) + internal MachineLearningPrivateLinkResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, MachineLearningSku sku, string groupId, IReadOnlyList requiredMembers, IList requiredZoneNames) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Sku = sku; @@ -48,9 +48,9 @@ internal MachineLearningPrivateLinkResource(ResourceIdentifier id, string name, /// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier. public MachineLearningSku Sku { get; set; } /// The private link resource group id. - public string GroupId { get; set; } + public string GroupId { get; } /// The private link resource required member names. - public IList RequiredMembers { get; } + public IReadOnlyList RequiredMembers { get; } /// The private link resource Private link DNS zone name. public IList RequiredZoneNames { get; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.Serialization.cs index 67e8d3a756ac..ec4b3c3f72cd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.Serialization.cs @@ -41,7 +41,7 @@ internal static MachineLearningPrivateLinkServiceConnectionState DeserializeMach } Optional actionsRequired = default; Optional description = default; - Optional status = default; + Optional status = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("actionsRequired"u8)) @@ -60,7 +60,7 @@ internal static MachineLearningPrivateLinkServiceConnectionState DeserializeMach { continue; } - status = new EndpointServiceConnectionStatus(property.Value.GetString()); + status = new MachineLearningPrivateEndpointServiceConnectionStatus(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.cs index 51a49476f6fc..1dde6942dac8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkServiceConnectionState.cs @@ -19,7 +19,7 @@ public MachineLearningPrivateLinkServiceConnectionState() /// Some RP chose "None". Other RPs use this for region expansion. /// User-defined message that, per NRP doc, may be used for approval-related message. /// Connection status of the service consumer with the service provider. - internal MachineLearningPrivateLinkServiceConnectionState(string actionsRequired, string description, EndpointServiceConnectionStatus? status) + internal MachineLearningPrivateLinkServiceConnectionState(string actionsRequired, string description, MachineLearningPrivateEndpointServiceConnectionStatus? status) { ActionsRequired = actionsRequired; Description = description; @@ -31,6 +31,6 @@ internal MachineLearningPrivateLinkServiceConnectionState(string actionsRequired /// User-defined message that, per NRP doc, may be used for approval-related message. public string Description { get; set; } /// Connection status of the service consumer with the service provider. - public EndpointServiceConnectionStatus? Status { get; set; } + public MachineLearningPrivateEndpointServiceConnectionStatus? Status { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.Serialization.cs index 062e829eb803..d8a76f280278 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.Serialization.cs @@ -56,7 +56,7 @@ internal static MachineLearningSharedPrivateLinkResource DeserializeMachineLearn Optional groupId = default; Optional privateLinkResourceId = default; Optional requestMessage = default; - Optional status = default; + Optional status = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -98,7 +98,7 @@ internal static MachineLearningSharedPrivateLinkResource DeserializeMachineLearn { continue; } - status = new EndpointServiceConnectionStatus(property0.Value.GetString()); + status = new MachineLearningPrivateEndpointServiceConnectionStatus(property0.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.cs index 7729cfbcde04..c8e0325318c2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSharedPrivateLinkResource.cs @@ -23,7 +23,7 @@ public MachineLearningSharedPrivateLinkResource() /// the resource id that private link links to. /// Request message. /// Connection status of the service consumer with the service provider. - internal MachineLearningSharedPrivateLinkResource(string name, string groupId, ResourceIdentifier privateLinkResourceId, string requestMessage, EndpointServiceConnectionStatus? status) + internal MachineLearningSharedPrivateLinkResource(string name, string groupId, ResourceIdentifier privateLinkResourceId, string requestMessage, MachineLearningPrivateEndpointServiceConnectionStatus? status) { Name = name; GroupId = groupId; @@ -41,6 +41,6 @@ internal MachineLearningSharedPrivateLinkResource(string name, string groupId, R /// Request message. public string RequestMessage { get; set; } /// Connection status of the service consumer with the service provider. - public EndpointServiceConnectionStatus? Status { get; set; } + public MachineLearningPrivateEndpointServiceConnectionStatus? Status { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs index 4be2ed1167cc..e659a2d7619a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs @@ -165,10 +165,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("primaryUserAssignedIdentity"u8); writer.WriteStringValue(PrimaryUserAssignedIdentity); } - if (Optional.IsDefined(PublicNetworkAccess)) + if (Optional.IsDefined(PublicNetworkAccessType)) { writer.WritePropertyName("publicNetworkAccess"u8); - writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + writer.WriteStringValue(PublicNetworkAccessType.Value.ToString()); } if (Optional.IsDefined(ServiceManagedResourcesSettings)) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.cs index 6a4526c864a2..8c046f263528 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceGetKeysResult.cs @@ -19,14 +19,14 @@ internal MachineLearningWorkspaceGetKeysResult() /// The access key of the workspace app insights. /// /// - /// The arm Id key of the workspace storage. + /// The arm Id key of the workspace storage. /// The access key of the workspace storage. - internal MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey, MachineLearningContainerRegistryCredentials containerRegistryCredentials, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys, string userStorageArmId, string userStorageKey) + internal MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey, MachineLearningContainerRegistryCredentials containerRegistryCredentials, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys, string userStorageResourceId, string userStorageKey) { AppInsightsInstrumentationKey = appInsightsInstrumentationKey; ContainerRegistryCredentials = containerRegistryCredentials; NotebookAccessKeys = notebookAccessKeys; - UserStorageArmId = userStorageArmId; + UserStorageResourceId = userStorageResourceId; UserStorageKey = userStorageKey; } @@ -37,7 +37,7 @@ internal MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentation /// Gets the notebook access keys. public MachineLearningWorkspaceGetNotebookKeysResult NotebookAccessKeys { get; } /// The arm Id key of the workspace storage. - public string UserStorageArmId { get; } + public string UserStorageResourceId { get; } /// The access key of the workspace storage. public string UserStorageKey { get; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.Serialization.cs index 8892575b9c10..b886215a796f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.Serialization.cs @@ -90,10 +90,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("primaryUserAssignedIdentity"u8); writer.WriteStringValue(PrimaryUserAssignedIdentity); } - if (Optional.IsDefined(PublicNetworkAccess)) + if (Optional.IsDefined(PublicNetworkAccessType)) { writer.WritePropertyName("publicNetworkAccess"u8); - writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + writer.WriteStringValue(PublicNetworkAccessType.Value.ToString()); } if (Optional.IsDefined(ServiceManagedResourcesSettings)) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.cs index a92f861c5cb3..de0d518609a6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspacePatch.cs @@ -54,7 +54,7 @@ public string KeyIdentifier /// The user assigned identity resource id that represents the workspace identity. public string PrimaryUserAssignedIdentity { get; set; } /// Whether requests from Public Network are allowed. - public MachineLearningPublicNetworkAccessType? PublicNetworkAccess { get; set; } + public MachineLearningPublicNetworkAccessType? PublicNetworkAccessType { get; set; } /// The service managed resource settings. internal ServiceManagedResourcesSettings ServiceManagedResourcesSettings { get; set; } /// Gets or sets the cosmos db collections throughput. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.Serialization.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.Serialization.cs index 733deda107ea..df70f243d43c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class WorkspacePrivateEndpointResource : IUtf8JsonSerializable + public partial class PrivateEndpoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -18,14 +18,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static WorkspacePrivateEndpointResource DeserializeWorkspacePrivateEndpointResource(JsonElement element) + internal static PrivateEndpoint DeserializePrivateEndpoint(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } Optional id = default; - Optional subnetArmId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -33,13 +32,8 @@ internal static WorkspacePrivateEndpointResource DeserializeWorkspacePrivateEndp id = property.Value.GetString(); continue; } - if (property.NameEquals("subnetArmId"u8)) - { - subnetArmId = property.Value.GetString(); - continue; - } } - return new WorkspacePrivateEndpointResource(id.Value, subnetArmId.Value); + return new PrivateEndpoint(id.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.cs new file mode 100644 index 000000000000..58ad9036dcb1 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The Private Endpoint resource. + public partial class PrivateEndpoint + { + /// Initializes a new instance of PrivateEndpoint. + public PrivateEndpoint() + { + } + + /// Initializes a new instance of PrivateEndpoint. + /// The ARM identifier for Private Endpoint. + internal PrivateEndpoint(string id) + { + Id = id; + } + + /// The ARM identifier for Private Endpoint. + public string Id { get; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs index b9bccba812c1..7262178eac8b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs @@ -37,7 +37,7 @@ internal static PrivateEndpointResource DeserializePrivateEndpointResource(JsonE return null; } Optional subnetArmId = default; - Optional id = default; + Optional id = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("subnetArmId"u8)) @@ -52,11 +52,7 @@ internal static PrivateEndpointResource DeserializePrivateEndpointResource(JsonE } if (property.NameEquals("id"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - id = new ResourceIdentifier(property.Value.GetString()); + id = property.Value.GetString(); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs index f77b72158a9d..2842de9674b4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs @@ -5,12 +5,10 @@ #nullable disable -using Azure.Core; - namespace Azure.ResourceManager.MachineLearning.Models { /// The PE network resource that is linked to this PE connection. - public partial class PrivateEndpointResource : MachineLearningPrivateEndpoint + public partial class PrivateEndpointResource : PrivateEndpoint { /// Initializes a new instance of PrivateEndpointResource. public PrivateEndpointResource() @@ -20,7 +18,7 @@ public PrivateEndpointResource() /// Initializes a new instance of PrivateEndpointResource. /// The ARM identifier for Private Endpoint. /// The subnetId that the private endpoint is connected to. - internal PrivateEndpointResource(ResourceIdentifier id, string subnetArmId) : base(id) + internal PrivateEndpointResource(string id, string subnetArmId) : base(id) { SubnetArmId = subnetArmId; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.Serialization.cs index 8fff4389c5f5..0369d001f319 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.Serialization.cs @@ -55,7 +55,7 @@ internal static RegistryPrivateLinkServiceConnectionState DeserializeRegistryPri } Optional actionsRequired = default; Optional description = default; - Optional status = default; + Optional status = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("actionsRequired"u8)) @@ -84,7 +84,7 @@ internal static RegistryPrivateLinkServiceConnectionState DeserializeRegistryPri { continue; } - status = new EndpointServiceConnectionStatus(property.Value.GetString()); + status = new MachineLearningPrivateEndpointServiceConnectionStatus(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.cs index 2bd47217ca3b..38fe66af716f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateLinkServiceConnectionState.cs @@ -19,7 +19,7 @@ public RegistryPrivateLinkServiceConnectionState() /// Some RP chose "None". Other RPs use this for region expansion. /// User-defined message that, per NRP doc, may be used for approval-related message. /// Connection status of the service consumer with the service provider. - internal RegistryPrivateLinkServiceConnectionState(string actionsRequired, string description, EndpointServiceConnectionStatus? status) + internal RegistryPrivateLinkServiceConnectionState(string actionsRequired, string description, MachineLearningPrivateEndpointServiceConnectionStatus? status) { ActionsRequired = actionsRequired; Description = description; @@ -31,6 +31,6 @@ internal RegistryPrivateLinkServiceConnectionState(string actionsRequired, strin /// User-defined message that, per NRP doc, may be used for approval-related message. public string Description { get; set; } /// Connection status of the service consumer with the service provider. - public EndpointServiceConnectionStatus? Status { get; set; } + public MachineLearningPrivateEndpointServiceConnectionStatus? Status { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs index f328b3edbd4d..83e2bd3fe8a4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs @@ -17,7 +17,7 @@ public StorageAccountDetails() /// Initializes a new instance of StorageAccountDetails. /// Details of system created storage account to be used for the registry. - /// Details of user created storage account to be used for the registry. + /// Details of user created storage account to be used for the registry. Not supported in most cases and will throw 400 error if provided. internal StorageAccountDetails(SystemCreatedStorageAccount systemCreatedStorageAccount, UserCreatedStorageAccount userCreatedStorageAccount) { SystemCreatedStorageAccount = systemCreatedStorageAccount; @@ -26,7 +26,7 @@ internal StorageAccountDetails(SystemCreatedStorageAccount systemCreatedStorageA /// Details of system created storage account to be used for the registry. public SystemCreatedStorageAccount SystemCreatedStorageAccount { get; set; } - /// Details of user created storage account to be used for the registry. + /// Details of user created storage account to be used for the registry. Not supported in most cases and will throw 400 error if provided. internal UserCreatedStorageAccount UserCreatedStorageAccount { get; set; } /// /// Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.cs deleted file mode 100644 index 0d525342a4f4..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspacePrivateEndpointResource.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The Private Endpoint resource. - public partial class WorkspacePrivateEndpointResource - { - /// Initializes a new instance of WorkspacePrivateEndpointResource. - public WorkspacePrivateEndpointResource() - { - } - - /// Initializes a new instance of WorkspacePrivateEndpointResource. - /// e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}. - /// The subnetId that the private endpoint is connected to. - internal WorkspacePrivateEndpointResource(string id, string subnetArmId) - { - Id = id; - SubnetArmId = subnetArmId; - } - - /// e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}. - public string Id { get; } - /// The subnetId that the private endpoint is connected to. - public string SubnetArmId { get; } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index ac238718830c..d4a1e0fde54f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -7,8 +7,8 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: MachineLearning namespace: Azure.ResourceManager.MachineLearning -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/79d4b87b6632452bf83711814faa5b71e4761544/specification/machinelearningservices/resource-manager/readme.md -tag: package-preview-2023-06 +require: https://github.com/Azure/azure-rest-api-specs/blob/3eb9ec8e9c8f717c6b461c4c0f49a4662fb948fd/specification/machinelearningservices/resource-manager/readme.md +#tag: package-preview-2023-06 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -21,6 +21,9 @@ modelerfour: flatten-payloads: false deserialize-null-collection-as-null-value: true +#mgmt-debug: +# show-serialized-names: true + format-by-name-rules: 'tenantId': 'uuid' 'etag': 'etag' @@ -70,6 +73,18 @@ no-property-type-replacement: - ResourceId - VirtualMachineImage +request-path-to-resource-name: + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}: MachineLearningCodeContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}: MachineLearningCodeVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}: MachineLearningComponentContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}: MachineLearningComponentVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}: MachineLearningDataContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}: MachineLearningDataVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}: MachineLearningEnvironmentContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}: MachineLearningEnvironmentVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}: MachineLearningModelContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}: MachineLearningModelVersion + rename-mapping: ComputeInstanceProperties.setupScripts: SetupScriptsSettings Workspace: MachineLearningWorkspace @@ -95,6 +110,7 @@ rename-mapping: SynapseSparkProperties: MachineLearningSynapseSparkProperties ProvisioningState: MachineLearningProvisioningState ListWorkspaceKeysResult: MachineLearningWorkspaceGetKeysResult + ListWorkspaceKeysResult.userStorageArmId: UserStorageResourceId RegistryListCredentialsResult: MachineLearningContainerRegistryCredentials Password: MachineLearningPasswordDetail BatchDeploymentTrackedResource: MachineLearningBatchDeployment @@ -144,12 +160,11 @@ rename-mapping: QuotaUpdateParameters: MachineLearningQuotaUpdateContent EncryptionProperty: MachineLearningEncryptionSetting EncryptionStatus: MachineLearningEncryptionStatus - EncryptionKeyVaultProperties: MachineLearningEncryptionKeyVaultProperties - EncryptionKeyVaultProperties.keyVaultArmId: -|arm-id + KeyVaultProperties: MachineLearningEncryptionKeyVaultProperties + KeyVaultProperties.keyVaultArmId: -|arm-id IdentityForCmk: MachineLearningCmkIdentity IdentityForCmk.userAssignedIdentity: -|arm-id NotebookResourceInfo: MachineLearningNotebookResourceInfo - PublicNetworkAccess: MachineLearningPublicNetworkAccess SharedPrivateLinkResource: MachineLearningSharedPrivateLinkResource SharedPrivateLinkResource.properties.privateLinkResourceId: -|arm-id Workspace.properties.storageHnsEnabled: IsStorageHnsEnabled @@ -159,8 +174,8 @@ rename-mapping: DiagnoseRequestProperties: MachineLearningWorkspaceDiagnoseProperties NotebookAccessTokenResult: MachineLearningWorkspaceNotebookAccessTokenResult ListNotebookKeysResult: MachineLearningWorkspaceGetNotebookKeysResult - FqdnEndpoints: MachineLearningFqdnEndpoints - FqdnEndpointsProperties: MachineLearningFqdnEndpointsProperties + FqdnEndpointsPropertyBag: MachineLearningFqdnEndpoints + FqdnEndpoints: MachineLearningFqdnEndpointsProperties ListStorageAccountKeysResult: MachineLearningWorkspaceGetStorageAccountKeysResult AmlUserFeature: MachineLearningUserFeature DatastoreCredentials: MachineLearningDatastoreCredentials @@ -222,6 +237,8 @@ rename-mapping: ComputeInstanceState: MachineLearningComputeInstanceState ComputePowerAction: MachineLearningComputePowerAction ComputeStartStopSchedule: MachineLearningComputeStartStopSchedule + ComputeStartStopSchedule.recurrence: RecurrenceSchedule + ComputeStartStopSchedule.cron: CronSchedule ProvisioningStatus: MachineLearningComputeProvisioningStatus ScheduleBase: MachineLearningScheduleBase ScheduleStatus: MachineLearningScheduleStatus @@ -339,9 +356,9 @@ rename-mapping: OrderString: MachineLearningOrderString OsType: MachineLearningOSType PipelineJob: MachineLearningPipelineJob - PrivateEndpoint: MachineLearningPrivateEndpoint - PrivateEndpoint.id: -|arm-id - PrivateEndpoint.subnetArmId: -|arm-id + WorkspacePrivateEndpointResource: MachineLearningPrivateEndpoint + WorkspacePrivateEndpointResource.id: -|arm-id + WorkspacePrivateEndpointResource.subnetArmId: -|arm-id ProbeSettings: MachineLearningProbeSettings PublicNetworkAccessType: MachineLearningPublicNetworkAccessType QuotaBaseProperties: MachineLearningQuotaProperties @@ -392,6 +409,8 @@ rename-mapping: VmPriority: MachineLearningVmPriority WorkspaceConnectionUsernamePassword: MachineLearningWorkspaceConnectionUsernamePassword Workspace.properties.hbiWorkspace: IsHbiWorkspace + Workspace.properties.publicNetworkAccess: PublicNetworkAccessType + WorkspaceUpdateParameters.properties.publicNetworkAccess: PublicNetworkAccessType AllocationState: MachineLearningAllocationState FeatureResource: MachineLearningFeatureResource ResourceId.id: -|arm-id @@ -418,6 +437,9 @@ rename-mapping: SystemCreatedStorageAccount.armResourceId: ArmResourceIdentifier|arm-id UserCreatedAcrAccount.armResourceId: ArmResourceIdentifier|arm-id UserCreatedStorageAccount.armResourceId: ArmResourceIdentifier|arm-id + Cron: ComputeStartStopCronSchedule + Recurrence: ComputeStartStopRecurrenceSchedule + EndpointServiceConnectionStatus: MachineLearningPrivateEndpointServiceConnectionStatus directive: - from: swagger-document @@ -478,6 +500,11 @@ directive: - from: swagger-document where: $.definitions.TableVerticalValidationDataSettings.properties.cvSplitColumnNames transform: $["x-nullable"] = true; + - from: workspaceRP.json + where: $.definitions + transform: > + $.PrivateLinkResourceProperties.properties.groupId.readOnly = true; + $.PrivateLinkResourceProperties.properties.requiredMembers.readOnly = true; # quite a few x-ms-client-name extensions are defined in the swagger, we here erase them all to prevent some funny interactions between our own renaming configuration - from: mfe.json where: $.definitions From cf67811b90d51d5bf781321d7cf153c57871dbdf Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Thu, 28 Sep 2023 08:34:30 +0800 Subject: [PATCH 06/13] Update --- .../CHANGELOG.md | 11 ++++++----- .../src/Azure.ResourceManager.MachineLearning.csproj | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md index 033b728fd3f4..a287deb848c1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.2.0-beta.2 (Unreleased) +## 1.2.0-beta.2 (2023-09-28) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Upgraded api-version tag from 'package-2022-10' to 'package-preview-2023-06'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/3eb9ec8e9c8f717c6b461c4c0f49a4662fb948fd/specification/machinelearningservices/resource-manager/readme.md ### Other Changes +- Upgraded Azure.Core from 1.32.0 to 1.35.0 +- Upgraded Azure.ResourceManager from 1.6.0 to 1.7.0 + ## 1.2.0-beta.1 (2023-05-30) ### Features Added @@ -77,4 +78,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj index 72aba2d0e152..1acfe4224c1b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Azure.ResourceManager.MachineLearning.csproj @@ -1,6 +1,6 @@ - 1.3.0-alpha.1 + 1.2.0-beta.2 1.1.1 Microsoft Azure management client SDK for Azure resource provider Microsoft.MachineLearningServices. From 3e99043e179ac867d41cea1538041718f20daaa8 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Thu, 28 Sep 2023 09:58:24 +0800 Subject: [PATCH 07/13] update --- ...eManager.MachineLearning.netstandard2.0.cs | 1546 ++++++++--------- ...inRegistryComponentContainerCollection.cs} | 74 +- ...rninRegistryComponentContainerResource.cs} | 34 +- ...rninRegistryComponentVersionCollection.cs} | 74 +- ...earninRegistryComponentVersionResource.cs} | 34 +- ...ample_MachineLearningFeatureCollection.cs} | 64 +- ... Sample_MachineLearningFeatureResource.cs} | 14 +- ...eLearningFeatureSetContainerCollection.cs} | 46 +- ...ineLearningFeatureSetContainerResource.cs} | 40 +- ...ineLearningFeatureSetVersionCollection.cs} | 86 +- ...chineLearningFeatureSetVersionResource.cs} | 60 +- ...gFeatureStoreEntityContainerCollection.cs} | 46 +- ...ingFeatureStoreEntityContainerResource.cs} | 40 +- ...ingFeaturestoreEntityVersionCollection.cs} | 86 +- ...rningFeaturestoreEntityVersionResource.cs} | 40 +- ...e_MachineLearningLabelingJobCollection.cs} | 44 +- ...ple_MachineLearningLabelingJobResource.cs} | 70 +- ...earningRegistryCodeContainerCollection.cs} | 74 +- ...eLearningRegistryCodeContainerResource.cs} | 34 +- ...eLearningRegistryCodeVersionCollection.cs} | 74 +- ...ineLearningRegistryCodeVersionResource.cs} | 44 +- ...mple_MachineLearningRegistryCollection.cs} | 44 +- ...earningRegistryDataContainerCollection.cs} | 74 +- ...eLearningRegistryDataContainerResource.cs} | 34 +- ...eLearningRegistryDataVersionCollection.cs} | 74 +- ...ineLearningRegistryDataVersionResource.cs} | 44 +- ...RegistryEnvironmentContainerCollection.cs} | 74 +- ...ngRegistryEnvironmentContainerResource.cs} | 34 +- ...ngRegistryEnvironmentVersionCollection.cs} | 74 +- ...ningRegistryEnvironmentVersionResource.cs} | 34 +- ...arningRegistryModelContainerCollection.cs} | 74 +- ...LearningRegistryModelContainerResource.cs} | 34 +- ...LearningRegistryModelVersionCollection.cs} | 76 +- ...neLearningRegistryModelVersionResource.cs} | 54 +- ...Sample_MachineLearningRegistryResource.cs} | 60 +- .../MachineLearningWorkspaceResource.cs | 4 +- .../ArmMachineLearningModelFactory.cs | 56 +- .../Extensions/MachineLearningExtensions.cs | 266 +-- .../ResourceGroupResourceExtensionClient.cs | 8 +- .../SubscriptionResourceExtensionClient.cs | 28 +- .../FeaturesetContainerOperationSource.cs | 40 - .../FeaturesetVersionOperationSource.cs | 40 - ...turestoreEntityContainerOperationSource.cs | 40 - ...eaturestoreEntityVersionOperationSource.cs | 40 - .../LabelingJobOperationSource.cs | 40 - ...istryComponentContainerOperationSource.cs} | 12 +- ...egistryComponentVersionOperationSource.cs} | 12 +- ...rningFeatureSetContainerOperationSource.cs | 40 + ...earningFeatureSetVersionOperationSource.cs | 40 + ...tureStoreEntityContainerOperationSource.cs | 40 + ...eaturestoreEntityVersionOperationSource.cs | 40 + ...chineLearningLabelingJobOperationSource.cs | 40 + ...ngRegistryCodeContainerOperationSource.cs} | 12 +- ...ningRegistryCodeVersionOperationSource.cs} | 12 +- ...ngRegistryDataContainerOperationSource.cs} | 12 +- ...ningRegistryDataVersionOperationSource.cs} | 12 +- ...tryEnvironmentContainerOperationSource.cs} | 12 +- ...istryEnvironmentVersionOperationSource.cs} | 12 +- ...gRegistryModelContainerOperationSource.cs} | 12 +- ...ingRegistryModelVersionOperationSource.cs} | 12 +- .../MachineLearningRegistryOperationSource.cs | 40 + .../RegistryOperationSource.cs | 40 - ...inRegistryComponentContainerCollection.cs} | 114 +- ...rninRegistryComponentContainerResource.cs} | 94 +- ...rninRegistryComponentVersionCollection.cs} | 114 +- ...earninRegistryComponentVersionResource.cs} | 78 +- ...cs => MachineLearningFeatureCollection.cs} | 98 +- ...eData.cs => MachineLearningFeatureData.cs} | 12 +- ...e.cs => MachineLearningFeatureResource.cs} | 54 +- ...eLearningFeatureSetContainerCollection.cs} | 114 +- ...MachineLearningFeatureSetContainerData.cs} | 12 +- ...ineLearningFeatureSetContainerResource.cs} | 98 +- ...ineLearningFeatureSetVersionCollection.cs} | 118 +- ...> MachineLearningFeatureSetVersionData.cs} | 12 +- ...chineLearningFeatureSetVersionResource.cs} | 122 +- ...gFeatureStoreEntityContainerCollection.cs} | 114 +- ...earningFeatureStoreEntityContainerData.cs} | 12 +- ...ingFeatureStoreEntityContainerResource.cs} | 98 +- ...ingFeaturestoreEntityVersionCollection.cs} | 118 +- ...eLearningFeaturestoreEntityVersionData.cs} | 12 +- ...rningFeaturestoreEntityVersionResource.cs} | 82 +- ...> MachineLearningLabelingJobCollection.cs} | 110 +- ...a.cs => MachineLearningLabelingJobData.cs} | 12 +- ... => MachineLearningLabelingJobResource.cs} | 110 +- ...earningRegistryCodeContainerCollection.cs} | 114 +- ...eLearningRegistryCodeContainerResource.cs} | 94 +- ...eLearningRegistryCodeVersionCollection.cs} | 114 +- ...ineLearningRegistryCodeVersionResource.cs} | 86 +- ...s => MachineLearningRegistryCollection.cs} | 110 +- ...Data.cs => MachineLearningRegistryData.cs} | 12 +- ...earningRegistryDataContainerCollection.cs} | 114 +- ...eLearningRegistryDataContainerResource.cs} | 94 +- ...eLearningRegistryDataVersionCollection.cs} | 114 +- ...ineLearningRegistryDataVersionResource.cs} | 86 +- ...RegistryEnvironmentContainerCollection.cs} | 114 +- ...ngRegistryEnvironmentContainerResource.cs} | 94 +- ...ngRegistryEnvironmentVersionCollection.cs} | 114 +- ...ningRegistryEnvironmentVersionResource.cs} | 78 +- ...arningRegistryModelContainerCollection.cs} | 114 +- ...LearningRegistryModelContainerResource.cs} | 94 +- ...LearningRegistryModelVersionCollection.cs} | 118 +- ...neLearningRegistryModelVersionResource.cs} | 98 +- ....cs => MachineLearningRegistryResource.cs} | 238 +-- .../MachineLearningWorkspaceResource.cs | 48 +- ...esourceArmPaginatedResult.Serialization.cs | 6 +- .../FeatureResourceArmPaginatedResult.cs | 6 +- ...esourceArmPaginatedResult.Serialization.cs | 6 +- ...esetContainerResourceArmPaginatedResult.cs | 6 +- ...esourceArmPaginatedResult.Serialization.cs | 6 +- ...uresetVersionResourceArmPaginatedResult.cs | 6 +- ...esourceArmPaginatedResult.Serialization.cs | 6 +- ...tityContainerResourceArmPaginatedResult.cs | 6 +- ...esourceArmPaginatedResult.Serialization.cs | 6 +- ...EntityVersionResourceArmPaginatedResult.cs | 6 +- ...esourceArmPaginatedResult.Serialization.cs | 6 +- .../LabelingJobResourceArmPaginatedResult.cs | 6 +- ...chineLearningFeatureData.Serialization.cs} | 6 +- ...ureSetContainerCollectionGetAllOptions.cs} | 8 +- ...gFeatureSetContainerData.Serialization.cs} | 6 +- ...atureSetVersionCollectionGetAllOptions.cs} | 8 +- ...ingFeatureSetVersionData.Serialization.cs} | 6 +- ...EntityContainerCollectionGetAllOptions.cs} | 8 +- ...StoreEntityContainerData.Serialization.cs} | 6 +- ...reEntityVersionCollectionGetAllOptions.cs} | 8 +- ...restoreEntityVersionData.Serialization.cs} | 6 +- ...eLearningLabelingJobData.Serialization.cs} | 6 +- ...hineLearningRegistryData.Serialization.cs} | 6 +- ...tryModelVersionCollectionGetAllOptions.cs} | 8 +- ...ineLearningRegistryPatch.Serialization.cs} | 2 +- ...tch.cs => MachineLearningRegistryPatch.cs} | 6 +- ...esourceArmPaginatedResult.Serialization.cs | 6 +- ...gistryTrackedResourceArmPaginatedResult.cs | 6 +- .../RestOperations/FeaturesRestOperations.cs | 16 +- .../FeaturesetContainersRestOperations.cs | 22 +- .../FeaturesetVersionsRestOperations.cs | 22 +- ...turestoreEntityContainersRestOperations.cs | 22 +- ...eaturestoreEntityVersionsRestOperations.cs | 22 +- .../LabelingJobsRestOperations.cs | 22 +- .../RegistriesRestOperations.cs | 42 +- .../src/autorest.md | 19 + 140 files changed, 4253 insertions(+), 4234 deletions(-) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryComponentCollection.cs => Sample_MachineLearninRegistryComponentContainerCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryComponentResource.cs => Sample_MachineLearninRegistryComponentContainerResource.cs} (65%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryComponentVersionCollection.cs => Sample_MachineLearninRegistryComponentVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryComponentVersionResource.cs => Sample_MachineLearninRegistryComponentVersionResource.cs} (67%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeatureCollection.cs => Sample_MachineLearningFeatureCollection.cs} (61%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeatureResource.cs => Sample_MachineLearningFeatureResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeaturesetContainerCollection.cs => Sample_MachineLearningFeatureSetContainerCollection.cs} (81%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeaturesetContainerResource.cs => Sample_MachineLearningFeatureSetContainerResource.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeaturesetVersionCollection.cs => Sample_MachineLearningFeatureSetVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeaturesetVersionResource.cs => Sample_MachineLearningFeatureSetVersionResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeaturestoreEntityContainerCollection.cs => Sample_MachineLearningFeatureStoreEntityContainerCollection.cs} (80%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeaturestoreEntityContainerResource.cs => Sample_MachineLearningFeatureStoreEntityContainerResource.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeaturestoreEntityVersionCollection.cs => Sample_MachineLearningFeaturestoreEntityVersionCollection.cs} (57%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_FeaturestoreEntityVersionResource.cs => Sample_MachineLearningFeaturestoreEntityVersionResource.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_LabelingJobCollection.cs => Sample_MachineLearningLabelingJobCollection.cs} (85%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_LabelingJobResource.cs => Sample_MachineLearningLabelingJobResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryCodeCollection.cs => Sample_MachineLearningRegistryCodeContainerCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryCodeResource.cs => Sample_MachineLearningRegistryCodeContainerResource.cs} (66%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryCodeVersionCollection.cs => Sample_MachineLearningRegistryCodeVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryCodeVersionResource.cs => Sample_MachineLearningRegistryCodeVersionResource.cs} (67%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryCollection.cs => Sample_MachineLearningRegistryCollection.cs} (86%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryDataCollection.cs => Sample_MachineLearningRegistryDataContainerCollection.cs} (65%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryDataResource.cs => Sample_MachineLearningRegistryDataContainerResource.cs} (66%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryDataVersionCollection.cs => Sample_MachineLearningRegistryDataVersionCollection.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryDataVersionResource.cs => Sample_MachineLearningRegistryDataVersionResource.cs} (67%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryEnvironmentCollection.cs => Sample_MachineLearningRegistryEnvironmentContainerCollection.cs} (65%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryEnvironmentResource.cs => Sample_MachineLearningRegistryEnvironmentContainerResource.cs} (65%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryEnvironmentVersionCollection.cs => Sample_MachineLearningRegistryEnvironmentVersionCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryEnvironmentVersionResource.cs => Sample_MachineLearningRegistryEnvironmentVersionResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryModelCollection.cs => Sample_MachineLearningRegistryModelContainerCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryModelResource.cs => Sample_MachineLearningRegistryModelContainerResource.cs} (66%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryModelVersionCollection.cs => Sample_MachineLearningRegistryModelVersionCollection.cs} (61%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryModelVersionResource.cs => Sample_MachineLearningRegistryModelVersionResource.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_RegistryResource.cs => Sample_MachineLearningRegistryResource.cs} (74%) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetContainerOperationSource.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetVersionOperationSource.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityContainerOperationSource.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityVersionOperationSource.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/LabelingJobOperationSource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryComponentOperationSource.cs => MachineLearninRegistryComponentContainerOperationSource.cs} (53%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryComponentVersionOperationSource.cs => MachineLearninRegistryComponentVersionOperationSource.cs} (54%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetContainerOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureStoreEntityContainerOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeaturestoreEntityVersionOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningLabelingJobOperationSource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryCodeOperationSource.cs => MachineLearningRegistryCodeContainerOperationSource.cs} (54%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryCodeVersionOperationSource.cs => MachineLearningRegistryCodeVersionOperationSource.cs} (54%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryDataOperationSource.cs => MachineLearningRegistryDataContainerOperationSource.cs} (54%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryDataVersionOperationSource.cs => MachineLearningRegistryDataVersionOperationSource.cs} (54%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryEnvironmentOperationSource.cs => MachineLearningRegistryEnvironmentContainerOperationSource.cs} (53%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryEnvironmentVersionOperationSource.cs => MachineLearningRegistryEnvironmentVersionOperationSource.cs} (53%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryModelOperationSource.cs => MachineLearningRegistryModelContainerOperationSource.cs} (54%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{RegistryModelVersionOperationSource.cs => MachineLearningRegistryModelVersionOperationSource.cs} (54%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryOperationSource.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryOperationSource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryComponentCollection.cs => MachineLearninRegistryComponentContainerCollection.cs} (59%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryComponentResource.cs => MachineLearninRegistryComponentContainerResource.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryComponentVersionCollection.cs => MachineLearninRegistryComponentVersionCollection.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryComponentVersionResource.cs => MachineLearninRegistryComponentVersionResource.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeatureCollection.cs => MachineLearningFeatureCollection.cs} (61%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeatureData.cs => MachineLearningFeatureData.cs} (67%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeatureResource.cs => MachineLearningFeatureResource.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturesetContainerCollection.cs => MachineLearningFeatureSetContainerCollection.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturesetContainerData.cs => MachineLearningFeatureSetContainerData.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturesetContainerResource.cs => MachineLearningFeatureSetContainerResource.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturesetVersionCollection.cs => MachineLearningFeatureSetVersionCollection.cs} (59%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturesetVersionData.cs => MachineLearningFeatureSetVersionData.cs} (65%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturesetVersionResource.cs => MachineLearningFeatureSetVersionResource.cs} (67%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturestoreEntityContainerCollection.cs => MachineLearningFeatureStoreEntityContainerCollection.cs} (58%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturestoreEntityContainerData.cs => MachineLearningFeatureStoreEntityContainerData.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturestoreEntityContainerResource.cs => MachineLearningFeatureStoreEntityContainerResource.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturestoreEntityVersionCollection.cs => MachineLearningFeaturestoreEntityVersionCollection.cs} (57%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturestoreEntityVersionData.cs => MachineLearningFeaturestoreEntityVersionData.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{FeaturestoreEntityVersionResource.cs => MachineLearningFeaturestoreEntityVersionResource.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{LabelingJobCollection.cs => MachineLearningLabelingJobCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{LabelingJobData.cs => MachineLearningLabelingJobData.cs} (66%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{LabelingJobResource.cs => MachineLearningLabelingJobResource.cs} (71%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryCodeCollection.cs => MachineLearningRegistryCodeContainerCollection.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryCodeResource.cs => MachineLearningRegistryCodeContainerResource.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryCodeVersionCollection.cs => MachineLearningRegistryCodeVersionCollection.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryCodeVersionResource.cs => MachineLearningRegistryCodeVersionResource.cs} (66%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryCollection.cs => MachineLearningRegistryCollection.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryData.cs => MachineLearningRegistryData.cs} (83%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryDataCollection.cs => MachineLearningRegistryDataContainerCollection.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryDataResource.cs => MachineLearningRegistryDataContainerResource.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryDataVersionCollection.cs => MachineLearningRegistryDataVersionCollection.cs} (61%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryDataVersionResource.cs => MachineLearningRegistryDataVersionResource.cs} (66%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryEnvironmentCollection.cs => MachineLearningRegistryEnvironmentContainerCollection.cs} (59%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryEnvironmentResource.cs => MachineLearningRegistryEnvironmentContainerResource.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryEnvironmentVersionCollection.cs => MachineLearningRegistryEnvironmentVersionCollection.cs} (59%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryEnvironmentVersionResource.cs => MachineLearningRegistryEnvironmentVersionResource.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryModelCollection.cs => MachineLearningRegistryModelContainerCollection.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryModelResource.cs => MachineLearningRegistryModelContainerResource.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryModelVersionCollection.cs => MachineLearningRegistryModelVersionCollection.cs} (59%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryModelVersionResource.cs => MachineLearningRegistryModelVersionResource.cs} (67%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{RegistryResource.cs => MachineLearningRegistryResource.cs} (68%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeatureData.Serialization.cs => MachineLearningFeatureData.Serialization.cs} (88%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetContainerCollectionGetAllOptions.cs => MachineLearningFeatureSetContainerCollectionGetAllOptions.cs} (75%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetContainerData.Serialization.cs => MachineLearningFeatureSetContainerData.Serialization.cs} (87%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetVersionCollectionGetAllOptions.cs => MachineLearningFeatureSetVersionCollectionGetAllOptions.cs} (78%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetVersionData.Serialization.cs => MachineLearningFeatureSetVersionData.Serialization.cs} (87%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreEntityContainerCollectionGetAllOptions.cs => MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions.cs} (74%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreEntityContainerData.Serialization.cs => MachineLearningFeatureStoreEntityContainerData.Serialization.cs} (86%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreEntityVersionCollectionGetAllOptions.cs => MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions.cs} (77%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreEntityVersionData.Serialization.cs => MachineLearningFeaturestoreEntityVersionData.Serialization.cs} (86%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{LabelingJobData.Serialization.cs => MachineLearningLabelingJobData.Serialization.cs} (88%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{RegistryData.Serialization.cs => MachineLearningRegistryData.Serialization.cs} (96%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{RegistryModelVersionCollectionGetAllOptions.cs => MachineLearningRegistryModelVersionCollectionGetAllOptions.cs} (76%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{RegistryPatch.Serialization.cs => MachineLearningRegistryPatch.Serialization.cs} (93%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{RegistryPatch.cs => MachineLearningRegistryPatch.cs} (81%) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs index 834ae37c6ec9..30075d202671 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs @@ -1,234 +1,5 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class FeatureCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected FeatureCollection() { } - public virtual Azure.Response Exists(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, string tags = null, string featureName = null, string description = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, string tags = null, string featureName = null, string description = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class FeatureData : Azure.ResourceManager.Models.ResourceData - { - public FeatureData(Azure.ResourceManager.MachineLearning.Models.FeatureProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeatureProperties Properties { get { throw null; } set { } } - } - public partial class FeatureResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected FeatureResource() { } - public virtual Azure.ResourceManager.MachineLearning.FeatureData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class FeaturesetContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected FeaturesetContainerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.FeaturesetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.FeaturesetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class FeaturesetContainerData : Azure.ResourceManager.Models.ResourceData - { - public FeaturesetContainerData(Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties Properties { get { throw null; } set { } } - } - public partial class FeaturesetContainerResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected FeaturesetContainerResource() { } - public virtual Azure.ResourceManager.MachineLearning.FeaturesetContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFeaturesetVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFeaturesetVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.FeaturesetVersionCollection GetFeaturesetVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturesetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturesetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class FeaturesetVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected FeaturesetVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.FeaturesetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.FeaturesetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class FeaturesetVersionData : Azure.ResourceManager.Models.ResourceData - { - public FeaturesetVersionData(Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties Properties { get { throw null; } set { } } - } - public partial class FeaturesetVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected FeaturesetVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.FeaturesetVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.ResourceManager.ArmOperation Backfill(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> BackfillAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFeature(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFeatureAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.FeatureCollection GetFeatures() { throw null; } - public virtual Azure.Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturesetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturesetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class FeaturestoreEntityContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected FeaturestoreEntityContainerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class FeaturestoreEntityContainerData : Azure.ResourceManager.Models.ResourceData - { - public FeaturestoreEntityContainerData(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties Properties { get { throw null; } set { } } - } - public partial class FeaturestoreEntityContainerResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected FeaturestoreEntityContainerResource() { } - public virtual Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFeaturestoreEntityVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFeaturestoreEntityVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionCollection GetFeaturestoreEntityVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class FeaturestoreEntityVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected FeaturestoreEntityVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class FeaturestoreEntityVersionData : Azure.ResourceManager.Models.ResourceData - { - public FeaturestoreEntityVersionData(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties Properties { get { throw null; } set { } } - } - public partial class FeaturestoreEntityVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected FeaturestoreEntityVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class LabelingJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected LabelingJobCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string id, Azure.ResourceManager.MachineLearning.LabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string id, Azure.ResourceManager.MachineLearning.LabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class LabelingJobData : Azure.ResourceManager.Models.ResourceData - { - public LabelingJobData(Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties Properties { get { throw null; } set { } } - } - public partial class LabelingJobResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected LabelingJobResource() { } - public virtual Azure.ResourceManager.MachineLearning.LabelingJobData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string id) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation ExportLabels(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ExportSummary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExportLabelsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ExportSummary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Pause(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task PauseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Resume(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResumeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.LabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.LabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class MachineLearningBatchDeploymentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningBatchDeploymentCollection() { } @@ -736,12 +507,6 @@ protected MachineLearningEnvironmentVersionResource() { } } public static partial class MachineLearningExtensions { - public static Azure.ResourceManager.MachineLearning.FeatureResource GetFeatureResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeaturesetContainerResource GetFeaturesetContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeaturesetVersionResource GetFeaturesetVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerResource GetFeaturestoreEntityContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionResource GetFeaturestoreEntityVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.LabelingJobResource GetLabelingJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningBatchDeploymentResource GetMachineLearningBatchDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningBatchEndpointResource GetMachineLearningBatchEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerResource GetMachineLearningCodeContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -754,7 +519,13 @@ public static partial class MachineLearningExtensions public static Azure.ResourceManager.MachineLearning.MachineLearningDataVersionResource GetMachineLearningDataVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerResource GetMachineLearningEnvironmentContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionResource GetMachineLearningEnvironmentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureResource GetMachineLearningFeatureResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerResource GetMachineLearningFeatureSetContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionResource GetMachineLearningFeatureSetVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerResource GetMachineLearningFeatureStoreEntityContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionResource GetMachineLearningFeaturestoreEntityVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningJobResource GetMachineLearningJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobResource GetMachineLearningLabelingJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningModelContainerResource GetMachineLearningModelContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningModelVersionResource GetMachineLearningModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineDeploymentResource GetMachineLearningOnlineDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -762,6 +533,20 @@ public static partial class MachineLearningExtensions public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetMachineLearningQuotas(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetMachineLearningQuotasAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryCollection GetMachineLearningRegistries(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetMachineLearningRegistries(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetMachineLearningRegistriesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetMachineLearningRegistry(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetMachineLearningRegistryAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryCodeContainerResource GetMachineLearningRegistryCodeContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryCodeVersionResource GetMachineLearningRegistryCodeVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryDataContainerResource GetMachineLearningRegistryDataContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryDataVersionResource GetMachineLearningRegistryDataVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryEnvironmentContainerResource GetMachineLearningRegistryEnvironmentContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryEnvironmentVersionResource GetMachineLearningRegistryEnvironmentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryModelContainerResource GetMachineLearningRegistryModelContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryModelVersionResource GetMachineLearningRegistryModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryResource GetMachineLearningRegistryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningScheduleResource GetMachineLearningScheduleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetMachineLearningUsages(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetMachineLearningUsagesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -778,26 +563,199 @@ public static partial class MachineLearningExtensions public static Azure.AsyncPageable GetMachineLearningWorkspacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip = null, string kind = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.AsyncPageable GetMachineLearningWorkspacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip, System.Threading.CancellationToken cancellationToken) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearninRegistryComponentContainerResource GetMachineLearninRegistryComponentContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearninRegistryComponentVersionResource GetMachineLearninRegistryComponentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.OutboundRuleBasicResource GetOutboundRuleBasicResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryCollection GetRegistries(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetRegistries(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetRegistriesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetRegistry(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetRegistryAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryCodeResource GetRegistryCodeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryCodeVersionResource GetRegistryCodeVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryComponentResource GetRegistryComponentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryComponentVersionResource GetRegistryComponentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryDataResource GetRegistryDataResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryDataVersionResource GetRegistryDataVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryEnvironmentResource GetRegistryEnvironmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryEnvironmentVersionResource GetRegistryEnvironmentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryModelResource GetRegistryModelResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryModelVersionResource GetRegistryModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryResource GetRegistryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable UpdateMachineLearningQuotas(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable UpdateMachineLearningQuotasAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class MachineLearningFeatureCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningFeatureCollection() { } + public virtual Azure.Response Exists(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, string tags = null, string featureName = null, string description = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, string tags = null, string featureName = null, string description = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningFeatureData : Azure.ResourceManager.Models.ResourceData + { + public MachineLearningFeatureData(Azure.ResourceManager.MachineLearning.Models.FeatureProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeatureProperties Properties { get { throw null; } set { } } + } + public partial class MachineLearningFeatureResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningFeatureResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningFeatureSetContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningFeatureSetContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningFeatureSetContainerData : Azure.ResourceManager.Models.ResourceData + { + public MachineLearningFeatureSetContainerData(Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties Properties { get { throw null; } set { } } + } + public partial class MachineLearningFeatureSetContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningFeatureSetContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningFeatureSetVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningFeatureSetVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionCollection GetMachineLearningFeatureSetVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningFeatureSetVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningFeatureSetVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningFeatureSetVersionData : Azure.ResourceManager.Models.ResourceData + { + public MachineLearningFeatureSetVersionData(Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties Properties { get { throw null; } set { } } + } + public partial class MachineLearningFeatureSetVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningFeatureSetVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.ResourceManager.ArmOperation Backfill(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> BackfillAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningFeature(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningFeatureAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureCollection GetMachineLearningFeatures() { throw null; } + public virtual Azure.Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningFeatureStoreEntityContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningFeatureStoreEntityContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningFeatureStoreEntityContainerData : Azure.ResourceManager.Models.ResourceData + { + public MachineLearningFeatureStoreEntityContainerData(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties Properties { get { throw null; } set { } } + } + public partial class MachineLearningFeatureStoreEntityContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningFeatureStoreEntityContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningFeaturestoreEntityVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningFeaturestoreEntityVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionCollection GetMachineLearningFeaturestoreEntityVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningFeaturestoreEntityVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningFeaturestoreEntityVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningFeaturestoreEntityVersionData : Azure.ResourceManager.Models.ResourceData + { + public MachineLearningFeaturestoreEntityVersionData(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties Properties { get { throw null; } set { } } + } + public partial class MachineLearningFeaturestoreEntityVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningFeaturestoreEntityVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class MachineLearningJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningJobCollection() { } @@ -844,6 +802,48 @@ protected MachineLearningJobResource() { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningJobData data, System.Threading.CancellationToken cancellationToken) { throw null; } } + public partial class MachineLearningLabelingJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningLabelingJobCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string id, Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string id, Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningLabelingJobData : Azure.ResourceManager.Models.ResourceData + { + public MachineLearningLabelingJobData(Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties Properties { get { throw null; } set { } } + } + public partial class MachineLearningLabelingJobResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningLabelingJobResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string id) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation ExportLabels(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ExportSummary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExportLabelsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ExportSummary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Pause(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task PauseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Resume(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ResumeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class MachineLearningModelContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningModelContainerCollection() { } @@ -1074,6 +1074,342 @@ protected MachineLearningPrivateEndpointConnectionResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class MachineLearningRegistryCodeContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryCodeContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string codeName, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string codeName, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryCodeContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryCodeContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningRegistryCodeVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningRegistryCodeVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryCodeVersionCollection GetMachineLearningRegistryCodeVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningRegistryCodeVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryCodeVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryCodeVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryCodeVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningRegistryCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string registryName, Azure.ResourceManager.MachineLearning.MachineLearningRegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string registryName, Azure.ResourceManager.MachineLearning.MachineLearningRegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryData : Azure.ResourceManager.Models.TrackedResourceData + { + public MachineLearningRegistryData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public System.Uri DiscoveryUri { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public string IntellectualPropertyPublisher { get { throw null; } set { } } + public string Kind { get { throw null; } set { } } + public string ManagedResourceId { get { throw null; } set { } } + public System.Uri MlFlowRegistryUri { get { throw null; } set { } } + public System.Collections.Generic.IList PrivateEndpointConnections { get { throw null; } set { } } + public string PublicNetworkAccess { get { throw null; } set { } } + public System.Collections.Generic.IList RegionDetails { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } + } + public partial class MachineLearningRegistryDataContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryDataContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryDataContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryDataContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningRegistryDataVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningRegistryDataVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryDataVersionCollection GetMachineLearningRegistryDataVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningRegistryDataVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryDataVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryDataVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryDataVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningRegistryEnvironmentContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryEnvironmentContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string environmentName, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string environmentName, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryEnvironmentContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryEnvironmentContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningRegistryEnvironmentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningRegistryEnvironmentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryEnvironmentVersionCollection GetMachineLearningRegistryEnvironmentVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningRegistryEnvironmentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryEnvironmentVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryEnvironmentVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryEnvironmentVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningRegistryModelContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryModelContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string modelName, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string modelName, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryModelContainerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryModelContainerResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningRegistryModelVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningRegistryModelVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryModelVersionCollection GetMachineLearningRegistryModelVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningRegistryModelVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningRegistryModelVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.MachineLearningRegistryModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningRegistryModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningRegistryModelVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryModelVersionResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearningRegistryResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningRegistryResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearningRegistryCodeContainer(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningRegistryCodeContainerAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryCodeContainerCollection GetMachineLearningRegistryCodeContainers() { throw null; } + public virtual Azure.Response GetMachineLearningRegistryDataContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningRegistryDataContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryDataContainerCollection GetMachineLearningRegistryDataContainers() { throw null; } + public virtual Azure.Response GetMachineLearningRegistryEnvironmentContainer(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningRegistryEnvironmentContainerAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryEnvironmentContainerCollection GetMachineLearningRegistryEnvironmentContainers() { throw null; } + public virtual Azure.Response GetMachineLearningRegistryModelContainer(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningRegistryModelContainerAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningRegistryModelContainerCollection GetMachineLearningRegistryModelContainers() { throw null; } + public virtual Azure.Response GetMachineLearninRegistryComponentContainer(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearninRegistryComponentContainerAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearninRegistryComponentContainerCollection GetMachineLearninRegistryComponentContainers() { throw null; } + public virtual Azure.ResourceManager.ArmOperation RemoveRegions(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningRegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveRegionsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningRegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.MachineLearning.Models.MachineLearningRegistryPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.MachineLearning.Models.MachineLearningRegistryPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class MachineLearningScheduleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningScheduleCollection() { } @@ -1230,25 +1566,16 @@ protected MachineLearningWorkspaceResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? forceToPurge = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? forceToPurge = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.ResourceManager.ArmOperation Diagnose(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> DiagnoseAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFeaturesetContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFeaturesetContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.FeaturesetContainerCollection GetFeaturesetContainers() { throw null; } - public virtual Azure.Response GetFeaturestoreEntityContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFeaturestoreEntityContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerCollection GetFeaturestoreEntityContainers() { throw null; } public virtual Azure.Response GetKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetLabelingJob(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetLabelingJobAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.LabelingJobCollection GetLabelingJobs() { throw null; } public virtual Azure.Response GetMachineLearningBatchEndpoint(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningBatchEndpointAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningBatchEndpointCollection GetMachineLearningBatchEndpoints() { throw null; } @@ -1270,9 +1597,18 @@ protected MachineLearningWorkspaceResource() { } public virtual Azure.Response GetMachineLearningEnvironmentContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningEnvironmentContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerCollection GetMachineLearningEnvironmentContainers() { throw null; } + public virtual Azure.Response GetMachineLearningFeatureSetContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningFeatureSetContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerCollection GetMachineLearningFeatureSetContainers() { throw null; } + public virtual Azure.Response GetMachineLearningFeatureStoreEntityContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningFeatureStoreEntityContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerCollection GetMachineLearningFeatureStoreEntityContainers() { throw null; } public virtual Azure.Response GetMachineLearningJob(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningJobAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningJobCollection GetMachineLearningJobs() { throw null; } + public virtual Azure.Response GetMachineLearningLabelingJob(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningLabelingJobAsync(string id, bool? includeJobInstructions = default(bool?), bool? includeLabelCategories = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobCollection GetMachineLearningLabelingJobs() { throw null; } public virtual Azure.Response GetMachineLearningModelContainer(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningModelContainerAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerCollection GetMachineLearningModelContainers() { throw null; } @@ -1280,478 +1616,142 @@ protected MachineLearningWorkspaceResource() { } public virtual System.Threading.Tasks.Task> GetMachineLearningOnlineEndpointAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointCollection GetMachineLearningOnlineEndpoints() { throw null; } public virtual Azure.Response GetMachineLearningPrivateEndpointConnection(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningPrivateEndpointConnectionAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionCollection GetMachineLearningPrivateEndpointConnections() { throw null; } - public virtual Azure.Response GetMachineLearningSchedule(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningScheduleAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningScheduleCollection GetMachineLearningSchedules() { throw null; } - public virtual Azure.Response GetMachineLearningWorkspaceConnection(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMachineLearningWorkspaceConnectionAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionCollection GetMachineLearningWorkspaceConnections() { throw null; } - public virtual Azure.Response GetNotebookAccessToken(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetNotebookAccessTokenAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetNotebookKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetNotebookKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetOutboundRuleBasicResource(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetOutboundRuleBasicResourceAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceCollection GetOutboundRuleBasicResources() { throw null; } - public virtual Azure.Pageable GetPrivateLinkResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetPrivateLinkResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetStorageAccountKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetStorageAccountKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetWorkspaceFeatures(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetWorkspaceFeaturesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation PrepareNotebook(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PrepareNotebookAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation ProvisionManagedNetworkManagedNetworkProvision(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ProvisionManagedNetworkManagedNetworkProvisionAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation ResyncKeys(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResyncKeysAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspacePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspacePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class OutboundRuleBasicResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected OutboundRuleBasicResource() { } - public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class OutboundRuleBasicResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected OutboundRuleBasicResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class OutboundRuleBasicResourceData : Azure.ResourceManager.Models.ResourceData - { - public OutboundRuleBasicResourceData(Azure.ResourceManager.MachineLearning.Models.OutboundRule properties) { } - public Azure.ResourceManager.MachineLearning.Models.OutboundRule Properties { get { throw null; } set { } } - } - public partial class RegistryCodeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryCodeCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string codeName, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string codeName, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class RegistryCodeResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryCodeResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRegistryCodeVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryCodeVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryCodeVersionCollection GetRegistryCodeVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryCodeVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryCodeVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class RegistryCodeVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryCodeVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string registryName, Azure.ResourceManager.MachineLearning.RegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string registryName, Azure.ResourceManager.MachineLearning.RegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningPrivateEndpointConnectionAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionCollection GetMachineLearningPrivateEndpointConnections() { throw null; } + public virtual Azure.Response GetMachineLearningSchedule(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningScheduleAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningScheduleCollection GetMachineLearningSchedules() { throw null; } + public virtual Azure.Response GetMachineLearningWorkspaceConnection(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningWorkspaceConnectionAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionCollection GetMachineLearningWorkspaceConnections() { throw null; } + public virtual Azure.Response GetNotebookAccessToken(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetNotebookAccessTokenAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetNotebookKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetNotebookKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetOutboundRuleBasicResource(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetOutboundRuleBasicResourceAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceCollection GetOutboundRuleBasicResources() { throw null; } + public virtual Azure.Pageable GetPrivateLinkResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetPrivateLinkResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetStorageAccountKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetStorageAccountKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetWorkspaceFeatures(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetWorkspaceFeaturesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation PrepareNotebook(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PrepareNotebookAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation ProvisionManagedNetworkManagedNetworkProvision(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ProvisionManagedNetworkManagedNetworkProvisionAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation ResyncKeys(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ResyncKeysAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspacePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspacePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class RegistryComponentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class MachineLearninRegistryComponentContainerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected RegistryComponentCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string componentName, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string componentName, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected MachineLearninRegistryComponentContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string componentName, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string componentName, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string skip = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class RegistryComponentResource : Azure.ResourceManager.ArmResource + public partial class MachineLearninRegistryComponentContainerResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryComponentResource() { } + protected MachineLearninRegistryComponentContainerResource() { } public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string componentName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRegistryComponentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryComponentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryComponentVersionCollection GetRegistryComponentVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryComponentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryComponentVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMachineLearninRegistryComponentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearninRegistryComponentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearninRegistryComponentVersionCollection GetMachineLearninRegistryComponentVersions() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MachineLearninRegistryComponentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearninRegistryComponentVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class RegistryComponentVersionResource : Azure.ResourceManager.ArmResource + public partial class MachineLearninRegistryComponentVersionResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryComponentVersionResource() { } + protected MachineLearninRegistryComponentVersionResource() { } public virtual Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryData : Azure.ResourceManager.Models.TrackedResourceData - { - public RegistryData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public System.Uri DiscoveryUri { get { throw null; } set { } } - public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public string IntellectualPropertyPublisher { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public string ManagedResourceId { get { throw null; } set { } } - public System.Uri MlFlowRegistryUri { get { throw null; } set { } } - public System.Collections.Generic.IList PrivateEndpointConnections { get { throw null; } set { } } - public string PublicNetworkAccess { get { throw null; } set { } } - public System.Collections.Generic.IList RegionDetails { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSku Sku { get { throw null; } set { } } - } - public partial class RegistryDataCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryDataCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class RegistryDataResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryDataResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRegistryDataVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryDataVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryDataVersionCollection GetRegistryDataVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryDataVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryDataVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, string tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, string tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class RegistryDataVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryDataVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningDataVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryEnvironmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryEnvironmentCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string environmentName, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string environmentName, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class RegistryEnvironmentResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryEnvironmentResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRegistryEnvironmentVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryEnvironmentVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryEnvironmentVersionCollection GetRegistryEnvironmentVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryEnvironmentVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryEnvironmentVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string orderBy = null, int? top = default(int?), string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), string stage = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class RegistryEnvironmentVersionResource : Azure.ResourceManager.ArmResource + public partial class OutboundRuleBasicResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryEnvironmentVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData Data { get { throw null; } } + protected OutboundRuleBasicResource() { } + public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryModelCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryModelCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string modelName, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string modelName, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string skip = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? listViewType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class RegistryModelResource : Azure.ResourceManager.ArmResource + public partial class OutboundRuleBasicResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryModelResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRegistryModelVersion(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryModelVersionAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryModelVersionCollection GetRegistryModelVersions() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryModelVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RegistryModelVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(Azure.ResourceManager.MachineLearning.Models.RegistryModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(Azure.ResourceManager.MachineLearning.Models.RegistryModelVersionCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + protected OutboundRuleBasicResourceCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class RegistryModelVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryModelVersionResource() { } - public virtual Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response CreateOrGetStartPendingUpload(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrGetStartPendingUploadAsync(Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class RegistryResource : Azure.ResourceManager.ArmResource + public partial class OutboundRuleBasicResourceData : Azure.ResourceManager.Models.ResourceData { - public static readonly Azure.Core.ResourceType ResourceType; - protected RegistryResource() { } - public virtual Azure.ResourceManager.MachineLearning.RegistryData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryDataCollection GetAllRegistryData() { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRegistryCode(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryCodeAsync(string codeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryCodeCollection GetRegistryCodes() { throw null; } - public virtual Azure.Response GetRegistryComponent(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryComponentAsync(string componentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryComponentCollection GetRegistryComponents() { throw null; } - public virtual Azure.Response GetRegistryData(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryDataAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRegistryEnvironment(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryEnvironmentAsync(string environmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryEnvironmentCollection GetRegistryEnvironments() { throw null; } - public virtual Azure.Response GetRegistryModel(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRegistryModelAsync(string modelName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.RegistryModelCollection GetRegistryModels() { throw null; } - public virtual Azure.ResourceManager.ArmOperation RemoveRegions(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.RegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveRegionsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.RegistryData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.MachineLearning.Models.RegistryPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.MachineLearning.Models.RegistryPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public OutboundRuleBasicResourceData(Azure.ResourceManager.MachineLearning.Models.OutboundRule properties) { } + public Azure.ResourceManager.MachineLearning.Models.OutboundRule Properties { get { throw null; } set { } } } } namespace Azure.ResourceManager.MachineLearning.Models @@ -1842,19 +1842,13 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.CsvExportSummary CsvExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string containerName = null, string snapshotPath = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.DatasetExportSummary DatasetExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string labeledAssetName = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ExportSummary ExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string format = "Unknown", string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeatureData FeatureData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeatureProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeaturesetContainerData FeaturesetContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties FeaturesetContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.FeaturesetJob FeaturesetJob(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string displayName = null, System.TimeSpan? duration = default(System.TimeSpan?), string experimentId = null, Azure.ResourceManager.MachineLearning.Models.FeatureWindow featureWindow = null, string jobId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType? featurestoreJobType = default(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeaturesetVersionData FeaturesetVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties FeaturesetVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable entities = null, Azure.ResourceManager.MachineLearning.Models.MaterializationSettings materializationSettings = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string specificationPath = null, string stage = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityContainerData FeaturestoreEntityContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties FeaturestoreEntityContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.FeaturestoreEntityVersionData FeaturestoreEntityVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties FeaturestoreEntityVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable indexColumns = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.HdfsDatastore HdfsDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), string hdfsServerCertificate = null, string nameNodeAddress = null, string protocol = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ImageMetadata ImageMetadata(string currentImageVersion = null, string latestImageVersion = null, bool? isLatestOSImageVersion = default(bool?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.LabelingJobData LabelingJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties LabelingJobProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.LabelingDataConfiguration dataConfiguration = null, System.Uri jobInstructionsUri = null, System.Collections.Generic.IDictionary labelCategories = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties labelingJobMediaProperties = null, Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration mlAssistConfiguration = null, Azure.ResourceManager.MachineLearning.Models.ProgressMetrics progressMetrics = null, System.Guid? projectId = default(System.Guid?), Azure.ResourceManager.MachineLearning.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.JobProvisioningState?), System.Collections.Generic.IEnumerable statusMessages = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAksCompute MachineLearningAksCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeProperties MachineLearningAksComputeProperties(string clusterFqdn = null, System.Collections.Generic.IEnumerable systemServices = null, int? agentCount = default(int?), string agentVmSize = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose? clusterPurpose = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose?), Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfiguration sslConfiguration = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningAksNetworkingConfiguration aksNetworkingConfiguration = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType? loadBalancerType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType?), string loadBalancerSubnet = null) { throw null; } @@ -1913,6 +1907,11 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningError MachineLearningError(Azure.ResponseError error = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrice MachineLearningEstimatedVmPrice(double retailPrice = 0, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType), Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier vmTier = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices MachineLearningEstimatedVmPrices(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency billingCurrency = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency), Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure unitOfMeasure = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure), System.Collections.Generic.IEnumerable values = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureData MachineLearningFeatureData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeatureProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerData MachineLearningFeatureSetContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData MachineLearningFeatureSetVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerData MachineLearningFeatureStoreEntityContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionData MachineLearningFeaturestoreEntityVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoint MachineLearningFqdnEndpoint(string domainName = null, System.Collections.Generic.IEnumerable endpointDetails = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetail(int? port = default(int?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointsProperties properties = null) { throw null; } @@ -1923,6 +1922,7 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, Azure.ResourceManager.MachineLearning.Models.Nodes nodes = null, int? port = default(int?), System.Collections.Generic.IDictionary properties = null, string status = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesCompute MachineLearningKubernetesCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesOnlineDeployment MachineLearningKubernetesOnlineDeployment(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceRequirements containerResourceRequirements = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobData MachineLearningLabelingJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningManagedOnlineDeployment MachineLearningManagedOnlineDeployment(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData MachineLearningModelContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } @@ -1940,6 +1940,7 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier subnetArmId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint privateEndpoint = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkResource MachineLearningPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryData MachineLearningRegistryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, System.Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, System.Uri mlFlowRegistryUri = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, System.Collections.Generic.IEnumerable regionDetails = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName MachineLearningResourceName(string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceQuota MachineLearningResourceQuota(string id = null, string amlWorkspaceLocation = null, string resourceQuotaType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName name = null, long? limit = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? unit = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningScheduleData MachineLearningScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProperties properties = null) { throw null; } @@ -1971,7 +1972,6 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpoint PrivateEndpoint(string id = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpointResource PrivateEndpointResource(string id = null, string subnetArmId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ProgressMetrics ProgressMetrics(long? completedDatapointCount = default(long?), System.DateTimeOffset? incrementalDataLastRefreshOn = default(System.DateTimeOffset?), long? skippedDatapointCount = default(long?), long? totalDatapointCount = default(long?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.RegistryData RegistryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, System.Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, System.Uri mlFlowRegistryUri = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, System.Collections.Generic.IEnumerable regionDetails = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.SasCredentialDto SasCredentialDto(System.Uri sasUri = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ServiceTagDestination ServiceTagDestination(Azure.ResourceManager.MachineLearning.Models.RuleAction? action = default(Azure.ResourceManager.MachineLearning.Models.RuleAction?), System.Collections.Generic.IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.SparkJob SparkJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IEnumerable archives = null, string args = null, string codeId = null, System.Collections.Generic.IDictionary conf = null, Azure.ResourceManager.MachineLearning.Models.SparkJobEntry entry = null, string environmentId = null, System.Collections.Generic.IEnumerable files = null, System.Collections.Generic.IDictionary inputs = null, System.Collections.Generic.IEnumerable jars = null, System.Collections.Generic.IDictionary outputs = null, System.Collections.Generic.IEnumerable pyFiles = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.SparkResourceConfiguration resources = null) { throw null; } @@ -2759,17 +2759,6 @@ public FeatureProperties() { } public Azure.ResourceManager.MachineLearning.Models.FeatureDataType? DataType { get { throw null; } set { } } public string FeatureName { get { throw null; } set { } } } - public partial class FeaturesetContainerCollectionGetAllOptions - { - public FeaturesetContainerCollectionGetAllOptions() { } - public string CreatedBy { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public int? PageSize { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } - public string Tags { get { throw null; } set { } } - } public partial class FeaturesetContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { public FeaturesetContainerProperties() { } @@ -2798,19 +2787,6 @@ public FeaturesetVersionBackfillContent() { } public System.Collections.Generic.IDictionary SparkConfiguration { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } - public partial class FeaturesetVersionCollectionGetAllOptions - { - public FeaturesetVersionCollectionGetAllOptions() { } - public string CreatedBy { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } - public int? PageSize { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } - public string Stage { get { throw null; } set { } } - public string Tags { get { throw null; } set { } } - public string Version { get { throw null; } set { } } - public string VersionName { get { throw null; } set { } } - } public partial class FeaturesetVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { public FeaturesetVersionProperties() { } @@ -2820,35 +2796,11 @@ public FeaturesetVersionProperties() { } public string SpecificationPath { get { throw null; } set { } } public string Stage { get { throw null; } set { } } } - public partial class FeaturestoreEntityContainerCollectionGetAllOptions - { - public FeaturestoreEntityContainerCollectionGetAllOptions() { } - public string CreatedBy { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public int? PageSize { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } - public string Tags { get { throw null; } set { } } - } public partial class FeaturestoreEntityContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { public FeaturestoreEntityContainerProperties() { } public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } } - public partial class FeaturestoreEntityVersionCollectionGetAllOptions - { - public FeaturestoreEntityVersionCollectionGetAllOptions() { } - public string CreatedBy { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } - public int? PageSize { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } - public string Stage { get { throw null; } set { } } - public string Tags { get { throw null; } set { } } - public string Version { get { throw null; } set { } } - public string VersionName { get { throw null; } set { } } - } public partial class FeaturestoreEntityVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { public FeaturestoreEntityVersionProperties() { } @@ -4718,6 +4670,54 @@ internal MachineLearningEstimatedVmPrices() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningFeatureSetContainerCollectionGetAllOptions + { + public MachineLearningFeatureSetContainerCollectionGetAllOptions() { } + public string CreatedBy { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + } + public partial class MachineLearningFeatureSetVersionCollectionGetAllOptions + { + public MachineLearningFeatureSetVersionCollectionGetAllOptions() { } + public string CreatedBy { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public string VersionName { get { throw null; } set { } } + } + public partial class MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions + { + public MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions() { } + public string CreatedBy { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + } + public partial class MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions + { + public MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions() { } + public string CreatedBy { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public int? PageSize { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public string VersionName { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningFeaturizationMode : System.IEquatable { @@ -5698,6 +5698,25 @@ public MachineLearningRecurrenceTrigger(Azure.ResourceManager.MachineLearning.Mo public int Interval { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningRecurrenceSchedule Schedule { get { throw null; } set { } } } + public partial class MachineLearningRegistryModelVersionCollectionGetAllOptions + { + public MachineLearningRegistryModelVersionCollectionGetAllOptions() { } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } + public string OrderBy { get { throw null; } set { } } + public string Properties { get { throw null; } set { } } + public string Skip { get { throw null; } set { } } + public string Tags { get { throw null; } set { } } + public int? Top { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class MachineLearningRegistryPatch + { + public MachineLearningRegistryPatch() { } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuPatch Sku { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningRemoteLoginPortPublicAccess : System.IEquatable { @@ -7435,25 +7454,6 @@ public Ray() { } public int? Port { get { throw null; } set { } } public string WorkerNodeAdditionalArgs { get { throw null; } set { } } } - public partial class RegistryModelVersionCollectionGetAllOptions - { - public RegistryModelVersionCollectionGetAllOptions() { } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningListViewType? ListViewType { get { throw null; } set { } } - public string OrderBy { get { throw null; } set { } } - public string Properties { get { throw null; } set { } } - public string Skip { get { throw null; } set { } } - public string Tags { get { throw null; } set { } } - public int? Top { get { throw null; } set { } } - public string Version { get { throw null; } set { } } - } - public partial class RegistryPatch - { - public RegistryPatch() { } - public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuPatch Sku { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - } public partial class RegistryPrivateEndpointConnection { public RegistryPrivateEndpointConnection() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerCollection.cs index f005fbfb53cf..a1f06f30deff 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryComponentCollection + public partial class Sample_MachineLearninRegistryComponentContainerCollection { // List Registry Component Container. [NUnit.Framework.Test] @@ -31,19 +31,19 @@ public async Task GetAll_ListRegistryComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryComponentResource - RegistryComponentCollection collection = registry.GetRegistryComponents(); + // get the collection of this MachineLearninRegistryComponentContainerResource + MachineLearninRegistryComponentContainerCollection collection = machineLearningRegistry.GetMachineLearninRegistryComponentContainers(); // invoke the operation and iterate over the result - await foreach (RegistryComponentResource item in collection.GetAllAsync()) + await foreach (MachineLearninRegistryComponentContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -68,20 +68,20 @@ public async Task Get_GetRegistryComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryComponentResource - RegistryComponentCollection collection = registry.GetRegistryComponents(); + // get the collection of this MachineLearninRegistryComponentContainerResource + MachineLearninRegistryComponentContainerCollection collection = machineLearningRegistry.GetMachineLearninRegistryComponentContainers(); // invoke the operation string componentName = "string"; - RegistryComponentResource result = await collection.GetAsync(componentName); + MachineLearninRegistryComponentContainerResource result = await collection.GetAsync(componentName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -103,16 +103,16 @@ public async Task Exists_GetRegistryComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryComponentResource - RegistryComponentCollection collection = registry.GetRegistryComponents(); + // get the collection of this MachineLearninRegistryComponentContainerResource + MachineLearninRegistryComponentContainerCollection collection = machineLearningRegistry.GetMachineLearninRegistryComponentContainers(); // invoke the operation string componentName = "string"; @@ -134,21 +134,21 @@ public async Task GetIfExists_GetRegistryComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryComponentResource - RegistryComponentCollection collection = registry.GetRegistryComponents(); + // get the collection of this MachineLearninRegistryComponentContainerResource + MachineLearninRegistryComponentContainerCollection collection = machineLearningRegistry.GetMachineLearninRegistryComponentContainers(); // invoke the operation string componentName = "string"; - NullableResponse response = await collection.GetIfExistsAsync(componentName); - RegistryComponentResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(componentName); + MachineLearninRegistryComponentContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -177,16 +177,16 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryComponentResource - RegistryComponentCollection collection = registry.GetRegistryComponents(); + // get the collection of this MachineLearninRegistryComponentContainerResource + MachineLearninRegistryComponentContainerCollection collection = machineLearningRegistry.GetMachineLearninRegistryComponentContainers(); // invoke the operation string componentName = "string"; @@ -202,8 +202,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryComponentContainer() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, componentName, data); - RegistryComponentResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, componentName, data); + MachineLearninRegistryComponentContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerResource.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerResource.cs index a80d919c1350..bb1f4a1ad4ce 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryComponentResource + public partial class Sample_MachineLearninRegistryComponentContainerResource { // Delete Registry Component Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteRegistryComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentResource created on azure - // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + // this example assumes you already have this MachineLearninRegistryComponentContainerResource created on azure + // for more information of creating MachineLearninRegistryComponentContainerResource, please refer to the document of MachineLearninRegistryComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; - ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); - RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + ResourceIdentifier machineLearninRegistryComponentContainerResourceId = MachineLearninRegistryComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + MachineLearninRegistryComponentContainerResource machineLearninRegistryComponentContainer = client.GetMachineLearninRegistryComponentContainerResource(machineLearninRegistryComponentContainerResourceId); // invoke the operation - await registryComponent.DeleteAsync(WaitUntil.Completed); + await machineLearninRegistryComponentContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetRegistryComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentResource created on azure - // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + // this example assumes you already have this MachineLearninRegistryComponentContainerResource created on azure + // for more information of creating MachineLearninRegistryComponentContainerResource, please refer to the document of MachineLearninRegistryComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; - ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); - RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + ResourceIdentifier machineLearninRegistryComponentContainerResourceId = MachineLearninRegistryComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + MachineLearninRegistryComponentContainerResource machineLearninRegistryComponentContainer = client.GetMachineLearninRegistryComponentContainerResource(machineLearninRegistryComponentContainerResourceId); // invoke the operation - RegistryComponentResource result = await registryComponent.GetAsync(); + MachineLearninRegistryComponentContainerResource result = await machineLearninRegistryComponentContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateRegistryComponentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentResource created on azure - // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + // this example assumes you already have this MachineLearninRegistryComponentContainerResource created on azure + // for more information of creating MachineLearninRegistryComponentContainerResource, please refer to the document of MachineLearninRegistryComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; - ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); - RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + ResourceIdentifier machineLearninRegistryComponentContainerResourceId = MachineLearninRegistryComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + MachineLearninRegistryComponentContainerResource machineLearninRegistryComponentContainer = client.GetMachineLearninRegistryComponentContainerResource(machineLearninRegistryComponentContainerResourceId); // invoke the operation MachineLearningComponentContainerData data = new MachineLearningComponentContainerData(new MachineLearningComponentContainerProperties() @@ -113,8 +113,8 @@ public async Task Update_CreateOrUpdateRegistryComponentContainer() ["string"] = "string", }, }); - ArmOperation lro = await registryComponent.UpdateAsync(WaitUntil.Completed, data); - RegistryComponentResource result = lro.Value; + ArmOperation lro = await machineLearninRegistryComponentContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearninRegistryComponentContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionCollection.cs index 813ed863e2de..d08149bf59f5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionCollection.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryComponentVersionCollection + public partial class Sample_MachineLearninRegistryComponentVersionCollection { // List Registry Component Version. [NUnit.Framework.Test] @@ -32,22 +32,22 @@ public async Task GetAll_ListRegistryComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentResource created on azure - // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + // this example assumes you already have this MachineLearninRegistryComponentContainerResource created on azure + // for more information of creating MachineLearninRegistryComponentContainerResource, please refer to the document of MachineLearninRegistryComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; - ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); - RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + ResourceIdentifier machineLearninRegistryComponentContainerResourceId = MachineLearninRegistryComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + MachineLearninRegistryComponentContainerResource machineLearninRegistryComponentContainer = client.GetMachineLearninRegistryComponentContainerResource(machineLearninRegistryComponentContainerResourceId); - // get the collection of this RegistryComponentVersionResource - RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + // get the collection of this MachineLearninRegistryComponentVersionResource + MachineLearninRegistryComponentVersionCollection collection = machineLearninRegistryComponentContainer.GetMachineLearninRegistryComponentVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (RegistryComponentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (MachineLearninRegistryComponentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -72,21 +72,21 @@ public async Task Get_GetRegistryComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentResource created on azure - // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + // this example assumes you already have this MachineLearninRegistryComponentContainerResource created on azure + // for more information of creating MachineLearninRegistryComponentContainerResource, please refer to the document of MachineLearninRegistryComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; - ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); - RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + ResourceIdentifier machineLearninRegistryComponentContainerResourceId = MachineLearninRegistryComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + MachineLearninRegistryComponentContainerResource machineLearninRegistryComponentContainer = client.GetMachineLearninRegistryComponentContainerResource(machineLearninRegistryComponentContainerResourceId); - // get the collection of this RegistryComponentVersionResource - RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + // get the collection of this MachineLearninRegistryComponentVersionResource + MachineLearninRegistryComponentVersionCollection collection = machineLearninRegistryComponentContainer.GetMachineLearninRegistryComponentVersions(); // invoke the operation string version = "string"; - RegistryComponentVersionResource result = await collection.GetAsync(version); + MachineLearninRegistryComponentVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -108,17 +108,17 @@ public async Task Exists_GetRegistryComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentResource created on azure - // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + // this example assumes you already have this MachineLearninRegistryComponentContainerResource created on azure + // for more information of creating MachineLearninRegistryComponentContainerResource, please refer to the document of MachineLearninRegistryComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; - ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); - RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + ResourceIdentifier machineLearninRegistryComponentContainerResourceId = MachineLearninRegistryComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + MachineLearninRegistryComponentContainerResource machineLearninRegistryComponentContainer = client.GetMachineLearninRegistryComponentContainerResource(machineLearninRegistryComponentContainerResourceId); - // get the collection of this RegistryComponentVersionResource - RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + // get the collection of this MachineLearninRegistryComponentVersionResource + MachineLearninRegistryComponentVersionCollection collection = machineLearninRegistryComponentContainer.GetMachineLearninRegistryComponentVersions(); // invoke the operation string version = "string"; @@ -140,22 +140,22 @@ public async Task GetIfExists_GetRegistryComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentResource created on azure - // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + // this example assumes you already have this MachineLearninRegistryComponentContainerResource created on azure + // for more information of creating MachineLearninRegistryComponentContainerResource, please refer to the document of MachineLearninRegistryComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; - ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); - RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + ResourceIdentifier machineLearninRegistryComponentContainerResourceId = MachineLearninRegistryComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + MachineLearninRegistryComponentContainerResource machineLearninRegistryComponentContainer = client.GetMachineLearninRegistryComponentContainerResource(machineLearninRegistryComponentContainerResourceId); - // get the collection of this RegistryComponentVersionResource - RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + // get the collection of this MachineLearninRegistryComponentVersionResource + MachineLearninRegistryComponentVersionCollection collection = machineLearninRegistryComponentContainer.GetMachineLearninRegistryComponentVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - RegistryComponentVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearninRegistryComponentVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -184,17 +184,17 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentResource created on azure - // for more information of creating RegistryComponentResource, please refer to the document of RegistryComponentResource + // this example assumes you already have this MachineLearninRegistryComponentContainerResource created on azure + // for more information of creating MachineLearninRegistryComponentContainerResource, please refer to the document of MachineLearninRegistryComponentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; - ResourceIdentifier registryComponentResourceId = RegistryComponentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); - RegistryComponentResource registryComponent = client.GetRegistryComponentResource(registryComponentResourceId); + ResourceIdentifier machineLearninRegistryComponentContainerResourceId = MachineLearninRegistryComponentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName); + MachineLearninRegistryComponentContainerResource machineLearninRegistryComponentContainer = client.GetMachineLearninRegistryComponentContainerResource(machineLearninRegistryComponentContainerResourceId); - // get the collection of this RegistryComponentVersionResource - RegistryComponentVersionCollection collection = registryComponent.GetRegistryComponentVersions(); + // get the collection of this MachineLearninRegistryComponentVersionResource + MachineLearninRegistryComponentVersionCollection collection = machineLearninRegistryComponentContainer.GetMachineLearninRegistryComponentVersions(); // invoke the operation string version = "string"; @@ -215,8 +215,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryComponentVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - RegistryComponentVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearninRegistryComponentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionResource.cs similarity index 67% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionResource.cs index e3233c0ca005..0a06e1b4817c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryComponentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionResource.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryComponentVersionResource + public partial class Sample_MachineLearninRegistryComponentVersionResource { // Delete Registry Component Version. [NUnit.Framework.Test] @@ -32,18 +32,18 @@ public async Task Delete_DeleteRegistryComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentVersionResource created on azure - // for more information of creating RegistryComponentVersionResource, please refer to the document of RegistryComponentVersionResource + // this example assumes you already have this MachineLearninRegistryComponentVersionResource created on azure + // for more information of creating MachineLearninRegistryComponentVersionResource, please refer to the document of MachineLearninRegistryComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; string version = "string"; - ResourceIdentifier registryComponentVersionResourceId = RegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); - RegistryComponentVersionResource registryComponentVersion = client.GetRegistryComponentVersionResource(registryComponentVersionResourceId); + ResourceIdentifier machineLearninRegistryComponentVersionResourceId = MachineLearninRegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); + MachineLearninRegistryComponentVersionResource machineLearninRegistryComponentVersion = client.GetMachineLearninRegistryComponentVersionResource(machineLearninRegistryComponentVersionResourceId); // invoke the operation - await registryComponentVersion.DeleteAsync(WaitUntil.Completed); + await machineLearninRegistryComponentVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -61,18 +61,18 @@ public async Task Get_GetRegistryComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentVersionResource created on azure - // for more information of creating RegistryComponentVersionResource, please refer to the document of RegistryComponentVersionResource + // this example assumes you already have this MachineLearninRegistryComponentVersionResource created on azure + // for more information of creating MachineLearninRegistryComponentVersionResource, please refer to the document of MachineLearninRegistryComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; string version = "string"; - ResourceIdentifier registryComponentVersionResourceId = RegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); - RegistryComponentVersionResource registryComponentVersion = client.GetRegistryComponentVersionResource(registryComponentVersionResourceId); + ResourceIdentifier machineLearninRegistryComponentVersionResourceId = MachineLearninRegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); + MachineLearninRegistryComponentVersionResource machineLearninRegistryComponentVersion = client.GetMachineLearninRegistryComponentVersionResource(machineLearninRegistryComponentVersionResourceId); // invoke the operation - RegistryComponentVersionResource result = await registryComponentVersion.GetAsync(); + MachineLearninRegistryComponentVersionResource result = await machineLearninRegistryComponentVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -94,15 +94,15 @@ public async Task Update_CreateOrUpdateRegistryComponentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryComponentVersionResource created on azure - // for more information of creating RegistryComponentVersionResource, please refer to the document of RegistryComponentVersionResource + // this example assumes you already have this MachineLearninRegistryComponentVersionResource created on azure + // for more information of creating MachineLearninRegistryComponentVersionResource, please refer to the document of MachineLearninRegistryComponentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string componentName = "string"; string version = "string"; - ResourceIdentifier registryComponentVersionResourceId = RegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); - RegistryComponentVersionResource registryComponentVersion = client.GetRegistryComponentVersionResource(registryComponentVersionResourceId); + ResourceIdentifier machineLearninRegistryComponentVersionResourceId = MachineLearninRegistryComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, componentName, version); + MachineLearninRegistryComponentVersionResource machineLearninRegistryComponentVersion = client.GetMachineLearninRegistryComponentVersionResource(machineLearninRegistryComponentVersionResourceId); // invoke the operation MachineLearningComponentVersionData data = new MachineLearningComponentVersionData(new MachineLearningComponentVersionProperties() @@ -122,8 +122,8 @@ public async Task Update_CreateOrUpdateRegistryComponentVersion() ["string"] = "string", }, }); - ArmOperation lro = await registryComponentVersion.UpdateAsync(WaitUntil.Completed, data); - RegistryComponentVersionResource result = lro.Value; + ArmOperation lro = await machineLearninRegistryComponentVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearninRegistryComponentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureCollection.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureCollection.cs index b1f2e632cd59..8d9b2d9b7f4c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureCollection.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeatureCollection + public partial class Sample_MachineLearningFeatureCollection { // List Feature. [NUnit.Framework.Test] @@ -30,28 +30,28 @@ public async Task GetAll_ListFeature() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string featuresetName = "string"; string featuresetVersion = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); - FeaturesetVersionResource featuresetVersion0 = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); - // get the collection of this FeatureResource - FeatureCollection collection = featuresetVersion0.GetFeatures(); + // get the collection of this MachineLearningFeatureResource + MachineLearningFeatureCollection collection = machineLearningFeatureSetVersion.GetMachineLearningFeatures(); // invoke the operation and iterate over the result string tags = "string"; string featureName = "string"; string description = "string"; - await foreach (FeatureResource item in collection.GetAllAsync(tags: tags, featureName: featureName, description: description)) + await foreach (MachineLearningFeatureResource item in collection.GetAllAsync(tags: tags, featureName: featureName, description: description)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeatureData resourceData = item.Data; + MachineLearningFeatureData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -72,26 +72,26 @@ public async Task Get_GetFeature() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string featuresetName = "string"; string featuresetVersion = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); - FeaturesetVersionResource featuresetVersion0 = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); - // get the collection of this FeatureResource - FeatureCollection collection = featuresetVersion0.GetFeatures(); + // get the collection of this MachineLearningFeatureResource + MachineLearningFeatureCollection collection = machineLearningFeatureSetVersion.GetMachineLearningFeatures(); // invoke the operation string featureName = "string"; - FeatureResource result = await collection.GetAsync(featureName); + MachineLearningFeatureResource result = await collection.GetAsync(featureName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeatureData resourceData = result.Data; + MachineLearningFeatureData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -109,18 +109,18 @@ public async Task Exists_GetFeature() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string featuresetName = "string"; string featuresetVersion = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); - FeaturesetVersionResource featuresetVersion0 = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); - // get the collection of this FeatureResource - FeatureCollection collection = featuresetVersion0.GetFeatures(); + // get the collection of this MachineLearningFeatureResource + MachineLearningFeatureCollection collection = machineLearningFeatureSetVersion.GetMachineLearningFeatures(); // invoke the operation string featureName = "string"; @@ -142,23 +142,23 @@ public async Task GetIfExists_GetFeature() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string featuresetName = "string"; string featuresetVersion = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); - FeaturesetVersionResource featuresetVersion0 = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); - // get the collection of this FeatureResource - FeatureCollection collection = featuresetVersion0.GetFeatures(); + // get the collection of this MachineLearningFeatureResource + MachineLearningFeatureCollection collection = machineLearningFeatureSetVersion.GetMachineLearningFeatures(); // invoke the operation string featureName = "string"; - NullableResponse response = await collection.GetIfExistsAsync(featureName); - FeatureResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(featureName); + MachineLearningFeatureResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -168,7 +168,7 @@ public async Task GetIfExists_GetFeature() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeatureData resourceData = result.Data; + MachineLearningFeatureData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureResource.cs index 029c2fd63941..c0d5a624a60c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeatureResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureResource.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeatureResource + public partial class Sample_MachineLearningFeatureResource { // Get Feature. [NUnit.Framework.Test] @@ -29,23 +29,23 @@ public async Task Get_GetFeature() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeatureResource created on azure - // for more information of creating FeatureResource, please refer to the document of FeatureResource + // this example assumes you already have this MachineLearningFeatureResource created on azure + // for more information of creating MachineLearningFeatureResource, please refer to the document of MachineLearningFeatureResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string featuresetName = "string"; string featuresetVersion = "string"; string featureName = "string"; - ResourceIdentifier featureResourceId = FeatureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, featureName); - FeatureResource feature = client.GetFeatureResource(featureResourceId); + ResourceIdentifier machineLearningFeatureResourceId = MachineLearningFeatureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, featuresetName, featuresetVersion, featureName); + MachineLearningFeatureResource machineLearningFeature = client.GetMachineLearningFeatureResource(machineLearningFeatureResourceId); // invoke the operation - FeatureResource result = await feature.GetAsync(); + MachineLearningFeatureResource result = await machineLearningFeature.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeatureData resourceData = result.Data; + MachineLearningFeatureData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs index 52fb98f836ba..747c43719840 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeaturesetContainerCollection + public partial class Sample_MachineLearningFeatureSetContainerCollection { // List Workspace Featureset Container. [NUnit.Framework.Test] @@ -39,16 +39,16 @@ public async Task GetAll_ListWorkspaceFeaturesetContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturesetContainerResource - FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + // get the collection of this MachineLearningFeatureSetContainerResource + MachineLearningFeatureSetContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureSetContainers(); // invoke the operation and iterate over the result - FeaturesetContainerCollectionGetAllOptions options = new FeaturesetContainerCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.ArchivedOnly }; - await foreach (FeaturesetContainerResource item in collection.GetAllAsync(options)) + MachineLearningFeatureSetContainerCollectionGetAllOptions options = new MachineLearningFeatureSetContainerCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.ArchivedOnly }; + await foreach (MachineLearningFeatureSetContainerResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetContainerData resourceData = item.Data; + MachineLearningFeatureSetContainerData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -77,16 +77,16 @@ public async Task Get_GetEntityWorkspaceFeaturesetContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturesetContainerResource - FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + // get the collection of this MachineLearningFeatureSetContainerResource + MachineLearningFeatureSetContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureSetContainers(); // invoke the operation string name = "string"; - FeaturesetContainerResource result = await collection.GetAsync(name); + MachineLearningFeatureSetContainerResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetContainerData resourceData = result.Data; + MachineLearningFeatureSetContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -112,8 +112,8 @@ public async Task Exists_GetEntityWorkspaceFeaturesetContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturesetContainerResource - FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + // get the collection of this MachineLearningFeatureSetContainerResource + MachineLearningFeatureSetContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureSetContainers(); // invoke the operation string name = "string"; @@ -143,13 +143,13 @@ public async Task GetIfExists_GetEntityWorkspaceFeaturesetContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturesetContainerResource - FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + // get the collection of this MachineLearningFeatureSetContainerResource + MachineLearningFeatureSetContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureSetContainers(); // invoke the operation string name = "string"; - NullableResponse response = await collection.GetIfExistsAsync(name); - FeaturesetContainerResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(name); + MachineLearningFeatureSetContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -159,7 +159,7 @@ public async Task GetIfExists_GetEntityWorkspaceFeaturesetContainer() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetContainerData resourceData = result.Data; + MachineLearningFeatureSetContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -186,12 +186,12 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturesetContainerResource - FeaturesetContainerCollection collection = machineLearningWorkspace.GetFeaturesetContainers(); + // get the collection of this MachineLearningFeatureSetContainerResource + MachineLearningFeatureSetContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureSetContainers(); // invoke the operation string name = "string"; - FeaturesetContainerData data = new FeaturesetContainerData(new FeaturesetContainerProperties() + MachineLearningFeatureSetContainerData data = new MachineLearningFeatureSetContainerData(new FeaturesetContainerProperties() { IsArchived = false, Description = "string", @@ -204,12 +204,12 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetContainer() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - FeaturesetContainerResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + MachineLearningFeatureSetContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetContainerData resourceData = result.Data; + MachineLearningFeatureSetContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs index c6cbf692c869..cdc1be138e2e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeaturesetContainerResource + public partial class Sample_MachineLearningFeatureSetContainerResource { // Delete Workspace Featureset Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteWorkspaceFeaturesetContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetContainerResource created on azure - // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + // this example assumes you already have this MachineLearningFeatureSetContainerResource created on azure + // for more information of creating MachineLearningFeatureSetContainerResource, please refer to the document of MachineLearningFeatureSetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + ResourceIdentifier machineLearningFeatureSetContainerResourceId = MachineLearningFeatureSetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); // invoke the operation - await featuresetContainer.DeleteAsync(WaitUntil.Completed); + await machineLearningFeatureSetContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,21 +59,21 @@ public async Task Get_GetEntityWorkspaceFeaturesetContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetContainerResource created on azure - // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + // this example assumes you already have this MachineLearningFeatureSetContainerResource created on azure + // for more information of creating MachineLearningFeatureSetContainerResource, please refer to the document of MachineLearningFeatureSetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + ResourceIdentifier machineLearningFeatureSetContainerResourceId = MachineLearningFeatureSetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); // invoke the operation - FeaturesetContainerResource result = await featuresetContainer.GetAsync(); + MachineLearningFeatureSetContainerResource result = await machineLearningFeatureSetContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetContainerData resourceData = result.Data; + MachineLearningFeatureSetContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -91,17 +91,17 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturesetContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetContainerResource created on azure - // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + // this example assumes you already have this MachineLearningFeatureSetContainerResource created on azure + // for more information of creating MachineLearningFeatureSetContainerResource, please refer to the document of MachineLearningFeatureSetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + ResourceIdentifier machineLearningFeatureSetContainerResourceId = MachineLearningFeatureSetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); // invoke the operation - FeaturesetContainerData data = new FeaturesetContainerData(new FeaturesetContainerProperties() + MachineLearningFeatureSetContainerData data = new MachineLearningFeatureSetContainerData(new FeaturesetContainerProperties() { IsArchived = false, Description = "string", @@ -114,12 +114,12 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturesetContainer() ["string"] = "string", }, }); - ArmOperation lro = await featuresetContainer.UpdateAsync(WaitUntil.Completed, data); - FeaturesetContainerResource result = lro.Value; + ArmOperation lro = await machineLearningFeatureSetContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningFeatureSetContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetContainerData resourceData = result.Data; + MachineLearningFeatureSetContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs index de9fefd6e4a3..bec46a60b656 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeaturesetVersionCollection + public partial class Sample_MachineLearningFeatureSetVersionCollection { // List Workspace Featureset Version. [NUnit.Framework.Test] @@ -31,25 +31,25 @@ public async Task GetAll_ListWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetContainerResource created on azure - // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + // this example assumes you already have this MachineLearningFeatureSetContainerResource created on azure + // for more information of creating MachineLearningFeatureSetContainerResource, please refer to the document of MachineLearningFeatureSetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + ResourceIdentifier machineLearningFeatureSetContainerResourceId = MachineLearningFeatureSetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); - // get the collection of this FeaturesetVersionResource - FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + // get the collection of this MachineLearningFeatureSetVersionResource + MachineLearningFeatureSetVersionCollection collection = machineLearningFeatureSetContainer.GetMachineLearningFeatureSetVersions(); // invoke the operation and iterate over the result - FeaturesetVersionCollectionGetAllOptions options = new FeaturesetVersionCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.All }; - await foreach (FeaturesetVersionResource item in collection.GetAllAsync(options)) + MachineLearningFeatureSetVersionCollectionGetAllOptions options = new MachineLearningFeatureSetVersionCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.All }; + await foreach (MachineLearningFeatureSetVersionResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetVersionData resourceData = item.Data; + MachineLearningFeatureSetVersionData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -70,25 +70,25 @@ public async Task Get_GetWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetContainerResource created on azure - // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + // this example assumes you already have this MachineLearningFeatureSetContainerResource created on azure + // for more information of creating MachineLearningFeatureSetContainerResource, please refer to the document of MachineLearningFeatureSetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + ResourceIdentifier machineLearningFeatureSetContainerResourceId = MachineLearningFeatureSetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); - // get the collection of this FeaturesetVersionResource - FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + // get the collection of this MachineLearningFeatureSetVersionResource + MachineLearningFeatureSetVersionCollection collection = machineLearningFeatureSetContainer.GetMachineLearningFeatureSetVersions(); // invoke the operation string version = "string"; - FeaturesetVersionResource result = await collection.GetAsync(version); + MachineLearningFeatureSetVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetVersionData resourceData = result.Data; + MachineLearningFeatureSetVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -106,17 +106,17 @@ public async Task Exists_GetWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetContainerResource created on azure - // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + // this example assumes you already have this MachineLearningFeatureSetContainerResource created on azure + // for more information of creating MachineLearningFeatureSetContainerResource, please refer to the document of MachineLearningFeatureSetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + ResourceIdentifier machineLearningFeatureSetContainerResourceId = MachineLearningFeatureSetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); - // get the collection of this FeaturesetVersionResource - FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + // get the collection of this MachineLearningFeatureSetVersionResource + MachineLearningFeatureSetVersionCollection collection = machineLearningFeatureSetContainer.GetMachineLearningFeatureSetVersions(); // invoke the operation string version = "string"; @@ -138,22 +138,22 @@ public async Task GetIfExists_GetWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetContainerResource created on azure - // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + // this example assumes you already have this MachineLearningFeatureSetContainerResource created on azure + // for more information of creating MachineLearningFeatureSetContainerResource, please refer to the document of MachineLearningFeatureSetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + ResourceIdentifier machineLearningFeatureSetContainerResourceId = MachineLearningFeatureSetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); - // get the collection of this FeaturesetVersionResource - FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + // get the collection of this MachineLearningFeatureSetVersionResource + MachineLearningFeatureSetVersionCollection collection = machineLearningFeatureSetContainer.GetMachineLearningFeatureSetVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - FeaturesetVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningFeatureSetVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -163,7 +163,7 @@ public async Task GetIfExists_GetWorkspaceFeaturesetVersion() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetVersionData resourceData = result.Data; + MachineLearningFeatureSetVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -182,21 +182,21 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetContainerResource created on azure - // for more information of creating FeaturesetContainerResource, please refer to the document of FeaturesetContainerResource + // this example assumes you already have this MachineLearningFeatureSetContainerResource created on azure + // for more information of creating MachineLearningFeatureSetContainerResource, please refer to the document of MachineLearningFeatureSetContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featuresetContainerResourceId = FeaturesetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturesetContainerResource featuresetContainer = client.GetFeaturesetContainerResource(featuresetContainerResourceId); + ResourceIdentifier machineLearningFeatureSetContainerResourceId = MachineLearningFeatureSetContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); - // get the collection of this FeaturesetVersionResource - FeaturesetVersionCollection collection = featuresetContainer.GetFeaturesetVersions(); + // get the collection of this MachineLearningFeatureSetVersionResource + MachineLearningFeatureSetVersionCollection collection = machineLearningFeatureSetContainer.GetMachineLearningFeatureSetVersions(); // invoke the operation string version = "string"; - FeaturesetVersionData data = new FeaturesetVersionData(new FeaturesetVersionProperties() + MachineLearningFeatureSetVersionData data = new MachineLearningFeatureSetVersionData(new FeaturesetVersionProperties() { Entities = { @@ -259,12 +259,12 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - FeaturesetVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningFeatureSetVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetVersionData resourceData = result.Data; + MachineLearningFeatureSetVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs index 2c3151195f6f..79f09825eb9e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturesetVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeaturesetVersionResource + public partial class Sample_MachineLearningFeatureSetVersionResource { // Delete Workspace Featureset Version. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); // invoke the operation - await featuresetVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningFeatureSetVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,22 +60,22 @@ public async Task Get_GetWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); // invoke the operation - FeaturesetVersionResource result = await featuresetVersion.GetAsync(); + MachineLearningFeatureSetVersionResource result = await machineLearningFeatureSetVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetVersionData resourceData = result.Data; + MachineLearningFeatureSetVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -93,18 +93,18 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); // invoke the operation - FeaturesetVersionData data = new FeaturesetVersionData(new FeaturesetVersionProperties() + MachineLearningFeatureSetVersionData data = new MachineLearningFeatureSetVersionData(new FeaturesetVersionProperties() { Entities = { @@ -167,12 +167,12 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturesetVersion() ["string"] = "string", }, }); - ArmOperation lro = await featuresetVersion.UpdateAsync(WaitUntil.Completed, data); - FeaturesetVersionResource result = lro.Value; + ArmOperation lro = await machineLearningFeatureSetVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningFeatureSetVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturesetVersionData resourceData = result.Data; + MachineLearningFeatureSetVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -190,15 +190,15 @@ public async Task Backfill_BackfillWorkspaceFeaturesetVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); // invoke the operation FeaturesetVersionBackfillContent content = new FeaturesetVersionBackfillContent() @@ -220,7 +220,7 @@ public async Task Backfill_BackfillWorkspaceFeaturesetVersion() ["string"] = "string", }, }; - ArmOperation lro = await featuresetVersion.BackfillAsync(WaitUntil.Completed, content); + ArmOperation lro = await machineLearningFeatureSetVersion.BackfillAsync(WaitUntil.Completed, content); FeaturesetJob result = lro.Value; Console.WriteLine($"Succeeded: {result}"); @@ -239,21 +239,21 @@ public async Task GetMaterializationJobs_ListMaterializationJobsWorkspaceFeature // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturesetVersionResource created on azure - // for more information of creating FeaturesetVersionResource, please refer to the document of FeaturesetVersionResource + // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure + // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier featuresetVersionResourceId = FeaturesetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - FeaturesetVersionResource featuresetVersion = client.GetFeaturesetVersionResource(featuresetVersionResourceId); + ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); // invoke the operation and iterate over the result string filters = "string"; string featureWindowStart = "string"; string featureWindowEnd = "string"; - await foreach (FeaturesetJob item in featuresetVersion.GetMaterializationJobsAsync(filters: filters, featureWindowStart: featureWindowStart, featureWindowEnd: featureWindowEnd)) + await foreach (FeaturesetJob item in machineLearningFeatureSetVersion.GetMaterializationJobsAsync(filters: filters, featureWindowStart: featureWindowStart, featureWindowEnd: featureWindowEnd)) { Console.WriteLine($"Succeeded: {item}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs similarity index 80% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs index fb7320179491..38d10b7fc627 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeaturestoreEntityContainerCollection + public partial class Sample_MachineLearningFeatureStoreEntityContainerCollection { // List Workspace Featurestore Entity Container. [NUnit.Framework.Test] @@ -39,16 +39,16 @@ public async Task GetAll_ListWorkspaceFeaturestoreEntityContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturestoreEntityContainerResource - FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + // get the collection of this MachineLearningFeatureStoreEntityContainerResource + MachineLearningFeatureStoreEntityContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureStoreEntityContainers(); // invoke the operation and iterate over the result - FeaturestoreEntityContainerCollectionGetAllOptions options = new FeaturestoreEntityContainerCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.All }; - await foreach (FeaturestoreEntityContainerResource item in collection.GetAllAsync(options)) + MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions options = new MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.All }; + await foreach (MachineLearningFeatureStoreEntityContainerResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityContainerData resourceData = item.Data; + MachineLearningFeatureStoreEntityContainerData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -77,16 +77,16 @@ public async Task Get_GetEntityWorkspaceFeaturestoreEntityContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturestoreEntityContainerResource - FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + // get the collection of this MachineLearningFeatureStoreEntityContainerResource + MachineLearningFeatureStoreEntityContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureStoreEntityContainers(); // invoke the operation string name = "string"; - FeaturestoreEntityContainerResource result = await collection.GetAsync(name); + MachineLearningFeatureStoreEntityContainerResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityContainerData resourceData = result.Data; + MachineLearningFeatureStoreEntityContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -112,8 +112,8 @@ public async Task Exists_GetEntityWorkspaceFeaturestoreEntityContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturestoreEntityContainerResource - FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + // get the collection of this MachineLearningFeatureStoreEntityContainerResource + MachineLearningFeatureStoreEntityContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureStoreEntityContainers(); // invoke the operation string name = "string"; @@ -143,13 +143,13 @@ public async Task GetIfExists_GetEntityWorkspaceFeaturestoreEntityContainer() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturestoreEntityContainerResource - FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + // get the collection of this MachineLearningFeatureStoreEntityContainerResource + MachineLearningFeatureStoreEntityContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureStoreEntityContainers(); // invoke the operation string name = "string"; - NullableResponse response = await collection.GetIfExistsAsync(name); - FeaturestoreEntityContainerResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(name); + MachineLearningFeatureStoreEntityContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -159,7 +159,7 @@ public async Task GetIfExists_GetEntityWorkspaceFeaturestoreEntityContainer() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityContainerData resourceData = result.Data; + MachineLearningFeatureStoreEntityContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -186,12 +186,12 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityContai ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this FeaturestoreEntityContainerResource - FeaturestoreEntityContainerCollection collection = machineLearningWorkspace.GetFeaturestoreEntityContainers(); + // get the collection of this MachineLearningFeatureStoreEntityContainerResource + MachineLearningFeatureStoreEntityContainerCollection collection = machineLearningWorkspace.GetMachineLearningFeatureStoreEntityContainers(); // invoke the operation string name = "string"; - FeaturestoreEntityContainerData data = new FeaturestoreEntityContainerData(new FeaturestoreEntityContainerProperties() + MachineLearningFeatureStoreEntityContainerData data = new MachineLearningFeatureStoreEntityContainerData(new FeaturestoreEntityContainerProperties() { IsArchived = false, Description = "string", @@ -204,12 +204,12 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityContai ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - FeaturestoreEntityContainerResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + MachineLearningFeatureStoreEntityContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityContainerData resourceData = result.Data; + MachineLearningFeatureStoreEntityContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs index fe986d71ee84..53fae258a058 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeaturestoreEntityContainerResource + public partial class Sample_MachineLearningFeatureStoreEntityContainerResource { // Delete Workspace Featurestore Entity Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteWorkspaceFeaturestoreEntityContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityContainerResource created on azure - // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + // this example assumes you already have this MachineLearningFeatureStoreEntityContainerResource created on azure + // for more information of creating MachineLearningFeatureStoreEntityContainerResource, please refer to the document of MachineLearningFeatureStoreEntityContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + ResourceIdentifier machineLearningFeatureStoreEntityContainerResourceId = MachineLearningFeatureStoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); // invoke the operation - await featurestoreEntityContainer.DeleteAsync(WaitUntil.Completed); + await machineLearningFeatureStoreEntityContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,21 +59,21 @@ public async Task Get_GetEntityWorkspaceFeaturestoreEntityContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityContainerResource created on azure - // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + // this example assumes you already have this MachineLearningFeatureStoreEntityContainerResource created on azure + // for more information of creating MachineLearningFeatureStoreEntityContainerResource, please refer to the document of MachineLearningFeatureStoreEntityContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + ResourceIdentifier machineLearningFeatureStoreEntityContainerResourceId = MachineLearningFeatureStoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); // invoke the operation - FeaturestoreEntityContainerResource result = await featurestoreEntityContainer.GetAsync(); + MachineLearningFeatureStoreEntityContainerResource result = await machineLearningFeatureStoreEntityContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityContainerData resourceData = result.Data; + MachineLearningFeatureStoreEntityContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -91,17 +91,17 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityContainerResource created on azure - // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + // this example assumes you already have this MachineLearningFeatureStoreEntityContainerResource created on azure + // for more information of creating MachineLearningFeatureStoreEntityContainerResource, please refer to the document of MachineLearningFeatureStoreEntityContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + ResourceIdentifier machineLearningFeatureStoreEntityContainerResourceId = MachineLearningFeatureStoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); // invoke the operation - FeaturestoreEntityContainerData data = new FeaturestoreEntityContainerData(new FeaturestoreEntityContainerProperties() + MachineLearningFeatureStoreEntityContainerData data = new MachineLearningFeatureStoreEntityContainerData(new FeaturestoreEntityContainerProperties() { IsArchived = false, Description = "string", @@ -114,12 +114,12 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityContainer() ["string"] = "string", }, }); - ArmOperation lro = await featurestoreEntityContainer.UpdateAsync(WaitUntil.Completed, data); - FeaturestoreEntityContainerResource result = lro.Value; + ArmOperation lro = await machineLearningFeatureStoreEntityContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningFeatureStoreEntityContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityContainerData resourceData = result.Data; + MachineLearningFeatureStoreEntityContainerData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs similarity index 57% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs index 511345c0708d..fad331d96c57 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeaturestoreEntityVersionCollection + public partial class Sample_MachineLearningFeaturestoreEntityVersionCollection { // List Workspace Featurestore Entity Version. [NUnit.Framework.Test] @@ -31,25 +31,25 @@ public async Task GetAll_ListWorkspaceFeaturestoreEntityVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityContainerResource created on azure - // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + // this example assumes you already have this MachineLearningFeatureStoreEntityContainerResource created on azure + // for more information of creating MachineLearningFeatureStoreEntityContainerResource, please refer to the document of MachineLearningFeatureStoreEntityContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + ResourceIdentifier machineLearningFeatureStoreEntityContainerResourceId = MachineLearningFeatureStoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); - // get the collection of this FeaturestoreEntityVersionResource - FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + // get the collection of this MachineLearningFeaturestoreEntityVersionResource + MachineLearningFeaturestoreEntityVersionCollection collection = machineLearningFeatureStoreEntityContainer.GetMachineLearningFeaturestoreEntityVersions(); // invoke the operation and iterate over the result - FeaturestoreEntityVersionCollectionGetAllOptions options = new FeaturestoreEntityVersionCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.ActiveOnly }; - await foreach (FeaturestoreEntityVersionResource item in collection.GetAllAsync(options)) + MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions options = new MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions() { Tags = "string", ListViewType = MachineLearningListViewType.ActiveOnly }; + await foreach (MachineLearningFeaturestoreEntityVersionResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityVersionData resourceData = item.Data; + MachineLearningFeaturestoreEntityVersionData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -70,25 +70,25 @@ public async Task Get_GetWorkspaceFeaturestoreEntityVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityContainerResource created on azure - // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + // this example assumes you already have this MachineLearningFeatureStoreEntityContainerResource created on azure + // for more information of creating MachineLearningFeatureStoreEntityContainerResource, please refer to the document of MachineLearningFeatureStoreEntityContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + ResourceIdentifier machineLearningFeatureStoreEntityContainerResourceId = MachineLearningFeatureStoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); - // get the collection of this FeaturestoreEntityVersionResource - FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + // get the collection of this MachineLearningFeaturestoreEntityVersionResource + MachineLearningFeaturestoreEntityVersionCollection collection = machineLearningFeatureStoreEntityContainer.GetMachineLearningFeaturestoreEntityVersions(); // invoke the operation string version = "string"; - FeaturestoreEntityVersionResource result = await collection.GetAsync(version); + MachineLearningFeaturestoreEntityVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityVersionData resourceData = result.Data; + MachineLearningFeaturestoreEntityVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -106,17 +106,17 @@ public async Task Exists_GetWorkspaceFeaturestoreEntityVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityContainerResource created on azure - // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + // this example assumes you already have this MachineLearningFeatureStoreEntityContainerResource created on azure + // for more information of creating MachineLearningFeatureStoreEntityContainerResource, please refer to the document of MachineLearningFeatureStoreEntityContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + ResourceIdentifier machineLearningFeatureStoreEntityContainerResourceId = MachineLearningFeatureStoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); - // get the collection of this FeaturestoreEntityVersionResource - FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + // get the collection of this MachineLearningFeaturestoreEntityVersionResource + MachineLearningFeaturestoreEntityVersionCollection collection = machineLearningFeatureStoreEntityContainer.GetMachineLearningFeaturestoreEntityVersions(); // invoke the operation string version = "string"; @@ -138,22 +138,22 @@ public async Task GetIfExists_GetWorkspaceFeaturestoreEntityVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityContainerResource created on azure - // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + // this example assumes you already have this MachineLearningFeatureStoreEntityContainerResource created on azure + // for more information of creating MachineLearningFeatureStoreEntityContainerResource, please refer to the document of MachineLearningFeatureStoreEntityContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + ResourceIdentifier machineLearningFeatureStoreEntityContainerResourceId = MachineLearningFeatureStoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); - // get the collection of this FeaturestoreEntityVersionResource - FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + // get the collection of this MachineLearningFeaturestoreEntityVersionResource + MachineLearningFeaturestoreEntityVersionCollection collection = machineLearningFeatureStoreEntityContainer.GetMachineLearningFeaturestoreEntityVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - FeaturestoreEntityVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningFeaturestoreEntityVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -163,7 +163,7 @@ public async Task GetIfExists_GetWorkspaceFeaturestoreEntityVersion() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityVersionData resourceData = result.Data; + MachineLearningFeaturestoreEntityVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -182,21 +182,21 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityVersio // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityContainerResource created on azure - // for more information of creating FeaturestoreEntityContainerResource, please refer to the document of FeaturestoreEntityContainerResource + // this example assumes you already have this MachineLearningFeatureStoreEntityContainerResource created on azure + // for more information of creating MachineLearningFeatureStoreEntityContainerResource, please refer to the document of MachineLearningFeatureStoreEntityContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; - ResourceIdentifier featurestoreEntityContainerResourceId = FeaturestoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); - FeaturestoreEntityContainerResource featurestoreEntityContainer = client.GetFeaturestoreEntityContainerResource(featurestoreEntityContainerResourceId); + ResourceIdentifier machineLearningFeatureStoreEntityContainerResourceId = MachineLearningFeatureStoreEntityContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name); + MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); - // get the collection of this FeaturestoreEntityVersionResource - FeaturestoreEntityVersionCollection collection = featurestoreEntityContainer.GetFeaturestoreEntityVersions(); + // get the collection of this MachineLearningFeaturestoreEntityVersionResource + MachineLearningFeaturestoreEntityVersionCollection collection = machineLearningFeatureStoreEntityContainer.GetMachineLearningFeaturestoreEntityVersions(); // invoke the operation string version = "string"; - FeaturestoreEntityVersionData data = new FeaturestoreEntityVersionData(new FeaturestoreEntityVersionProperties() + MachineLearningFeaturestoreEntityVersionData data = new MachineLearningFeaturestoreEntityVersionData(new FeaturestoreEntityVersionProperties() { IndexColumns = { @@ -218,12 +218,12 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityVersio ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - FeaturestoreEntityVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningFeaturestoreEntityVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityVersionData resourceData = result.Data; + MachineLearningFeaturestoreEntityVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs index d449040dc3c6..f9291c5920f6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_FeaturestoreEntityVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_FeaturestoreEntityVersionResource + public partial class Sample_MachineLearningFeaturestoreEntityVersionResource { // Delete Workspace Featurestore Entity Version. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteWorkspaceFeaturestoreEntityVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityVersionResource created on azure - // for more information of creating FeaturestoreEntityVersionResource, please refer to the document of FeaturestoreEntityVersionResource + // this example assumes you already have this MachineLearningFeaturestoreEntityVersionResource created on azure + // for more information of creating MachineLearningFeaturestoreEntityVersionResource, please refer to the document of MachineLearningFeaturestoreEntityVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier featurestoreEntityVersionResourceId = FeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - FeaturestoreEntityVersionResource featurestoreEntityVersion = client.GetFeaturestoreEntityVersionResource(featurestoreEntityVersionResourceId); + ResourceIdentifier machineLearningFeaturestoreEntityVersionResourceId = MachineLearningFeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningFeaturestoreEntityVersionResource machineLearningFeaturestoreEntityVersion = client.GetMachineLearningFeaturestoreEntityVersionResource(machineLearningFeaturestoreEntityVersionResourceId); // invoke the operation - await featurestoreEntityVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningFeaturestoreEntityVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,22 +60,22 @@ public async Task Get_GetWorkspaceFeaturestoreEntityVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityVersionResource created on azure - // for more information of creating FeaturestoreEntityVersionResource, please refer to the document of FeaturestoreEntityVersionResource + // this example assumes you already have this MachineLearningFeaturestoreEntityVersionResource created on azure + // for more information of creating MachineLearningFeaturestoreEntityVersionResource, please refer to the document of MachineLearningFeaturestoreEntityVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier featurestoreEntityVersionResourceId = FeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - FeaturestoreEntityVersionResource featurestoreEntityVersion = client.GetFeaturestoreEntityVersionResource(featurestoreEntityVersionResourceId); + ResourceIdentifier machineLearningFeaturestoreEntityVersionResourceId = MachineLearningFeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningFeaturestoreEntityVersionResource machineLearningFeaturestoreEntityVersion = client.GetMachineLearningFeaturestoreEntityVersionResource(machineLearningFeaturestoreEntityVersionResourceId); // invoke the operation - FeaturestoreEntityVersionResource result = await featurestoreEntityVersion.GetAsync(); + MachineLearningFeaturestoreEntityVersionResource result = await machineLearningFeaturestoreEntityVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityVersionData resourceData = result.Data; + MachineLearningFeaturestoreEntityVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -93,18 +93,18 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this FeaturestoreEntityVersionResource created on azure - // for more information of creating FeaturestoreEntityVersionResource, please refer to the document of FeaturestoreEntityVersionResource + // this example assumes you already have this MachineLearningFeaturestoreEntityVersionResource created on azure + // for more information of creating MachineLearningFeaturestoreEntityVersionResource, please refer to the document of MachineLearningFeaturestoreEntityVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "my-aml-workspace"; string name = "string"; string version = "string"; - ResourceIdentifier featurestoreEntityVersionResourceId = FeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); - FeaturestoreEntityVersionResource featurestoreEntityVersion = client.GetFeaturestoreEntityVersionResource(featurestoreEntityVersionResourceId); + ResourceIdentifier machineLearningFeaturestoreEntityVersionResourceId = MachineLearningFeaturestoreEntityVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version); + MachineLearningFeaturestoreEntityVersionResource machineLearningFeaturestoreEntityVersion = client.GetMachineLearningFeaturestoreEntityVersionResource(machineLearningFeaturestoreEntityVersionResourceId); // invoke the operation - FeaturestoreEntityVersionData data = new FeaturestoreEntityVersionData(new FeaturestoreEntityVersionProperties() + MachineLearningFeaturestoreEntityVersionData data = new MachineLearningFeaturestoreEntityVersionData(new FeaturestoreEntityVersionProperties() { IndexColumns = { @@ -126,12 +126,12 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityVersion() ["string"] = "string", }, }); - ArmOperation lro = await featurestoreEntityVersion.UpdateAsync(WaitUntil.Completed, data); - FeaturestoreEntityVersionResource result = lro.Value; + ArmOperation lro = await machineLearningFeaturestoreEntityVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningFeaturestoreEntityVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - FeaturestoreEntityVersionData resourceData = result.Data; + MachineLearningFeaturestoreEntityVersionData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs similarity index 85% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs index 43ca3b2890ad..69864a160671 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_LabelingJobCollection + public partial class Sample_MachineLearningLabelingJobCollection { // List Labeling Job. [NUnit.Framework.Test] @@ -39,15 +39,15 @@ public async Task GetAll_ListLabelingJob() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this LabelingJobResource - LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + // get the collection of this MachineLearningLabelingJobResource + MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs(); // invoke the operation and iterate over the result - await foreach (LabelingJobResource item in collection.GetAllAsync()) + await foreach (MachineLearningLabelingJobResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - LabelingJobData resourceData = item.Data; + MachineLearningLabelingJobData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -76,18 +76,18 @@ public async Task Get_GetLabelingJob() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this LabelingJobResource - LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + // get the collection of this MachineLearningLabelingJobResource + MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs(); // invoke the operation string id = "testLabelingJob"; bool? includeJobInstructions = true; bool? includeLabelCategories = true; - LabelingJobResource result = await collection.GetAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); + MachineLearningLabelingJobResource result = await collection.GetAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - LabelingJobData resourceData = result.Data; + MachineLearningLabelingJobData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -113,8 +113,8 @@ public async Task Exists_GetLabelingJob() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this LabelingJobResource - LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + // get the collection of this MachineLearningLabelingJobResource + MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs(); // invoke the operation string id = "testLabelingJob"; @@ -146,15 +146,15 @@ public async Task GetIfExists_GetLabelingJob() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this LabelingJobResource - LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + // get the collection of this MachineLearningLabelingJobResource + MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs(); // invoke the operation string id = "testLabelingJob"; bool? includeJobInstructions = true; bool? includeLabelCategories = true; - NullableResponse response = await collection.GetIfExistsAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); - LabelingJobResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); + MachineLearningLabelingJobResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -164,7 +164,7 @@ public async Task GetIfExists_GetLabelingJob() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - LabelingJobData resourceData = result.Data; + MachineLearningLabelingJobData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -191,12 +191,12 @@ public async Task CreateOrUpdate_CreateOrUpdateLabelingJob() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this LabelingJobResource - LabelingJobCollection collection = machineLearningWorkspace.GetLabelingJobs(); + // get the collection of this MachineLearningLabelingJobResource + MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs(); // invoke the operation string id = "testLabelingJob"; - LabelingJobData data = new LabelingJobData(new LabelingJobProperties() + MachineLearningLabelingJobData data = new MachineLearningLabelingJobData(new LabelingJobProperties() { JobInstructionsUri = new Uri("link/to/instructions"), LabelCategories = @@ -262,12 +262,12 @@ public async Task CreateOrUpdate_CreateOrUpdateLabelingJob() ["additionalProp3"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, id, data); - LabelingJobResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, id, data); + MachineLearningLabelingJobResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - LabelingJobData resourceData = result.Data; + MachineLearningLabelingJobData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs index 360a8f6ee333..95abefae92a1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_LabelingJobResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_LabelingJobResource + public partial class Sample_MachineLearningLabelingJobResource { // Delete Labeling Job. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteLabelingJob() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this LabelingJobResource created on azure - // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + // this example assumes you already have this MachineLearningLabelingJobResource created on azure + // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "workspace-1234"; string workspaceName = "testworkspace"; string id = "testLabelingJob"; - ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId); // invoke the operation - await labelingJob.DeleteAsync(WaitUntil.Completed); + await machineLearningLabelingJob.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,23 +59,23 @@ public async Task Get_GetLabelingJob() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this LabelingJobResource created on azure - // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + // this example assumes you already have this MachineLearningLabelingJobResource created on azure + // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "workspace-1234"; string workspaceName = "testworkspace"; string id = "testLabelingJob"; - ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId); // invoke the operation bool? includeJobInstructions = true; bool? includeLabelCategories = true; - LabelingJobResource result = await labelingJob.GetAsync(includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); + MachineLearningLabelingJobResource result = await machineLearningLabelingJob.GetAsync(includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - LabelingJobData resourceData = result.Data; + MachineLearningLabelingJobData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -93,17 +93,17 @@ public async Task Update_CreateOrUpdateLabelingJob() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this LabelingJobResource created on azure - // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + // this example assumes you already have this MachineLearningLabelingJobResource created on azure + // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "workspace-1234"; string workspaceName = "testworkspace"; string id = "testLabelingJob"; - ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId); // invoke the operation - LabelingJobData data = new LabelingJobData(new LabelingJobProperties() + MachineLearningLabelingJobData data = new MachineLearningLabelingJobData(new LabelingJobProperties() { JobInstructionsUri = new Uri("link/to/instructions"), LabelCategories = @@ -169,12 +169,12 @@ public async Task Update_CreateOrUpdateLabelingJob() ["additionalProp3"] = "string", }, }); - ArmOperation lro = await labelingJob.UpdateAsync(WaitUntil.Completed, data); - LabelingJobResource result = lro.Value; + ArmOperation lro = await machineLearningLabelingJob.UpdateAsync(WaitUntil.Completed, data); + MachineLearningLabelingJobResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - LabelingJobData resourceData = result.Data; + MachineLearningLabelingJobData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -192,18 +192,18 @@ public async Task ExportLabels_ExportLabelsLabelingJob() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this LabelingJobResource created on azure - // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + // this example assumes you already have this MachineLearningLabelingJobResource created on azure + // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "workspace-1234"; string workspaceName = "testworkspace"; string id = "testLabelingJob"; - ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId); // invoke the operation ExportSummary body = new DatasetExportSummary(); - ArmOperation lro = await labelingJob.ExportLabelsAsync(WaitUntil.Completed, body); + ArmOperation lro = await machineLearningLabelingJob.ExportLabelsAsync(WaitUntil.Completed, body); ExportSummary result = lro.Value; Console.WriteLine($"Succeeded: {result}"); @@ -222,17 +222,17 @@ public async Task Pause_PauseLabelingJob() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this LabelingJobResource created on azure - // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + // this example assumes you already have this MachineLearningLabelingJobResource created on azure + // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "workspace-1234"; string workspaceName = "testworkspace"; string id = "testLabelingJob"; - ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId); // invoke the operation - await labelingJob.PauseAsync(); + await machineLearningLabelingJob.PauseAsync(); Console.WriteLine($"Succeeded"); } @@ -250,17 +250,17 @@ public async Task Resume_ResumeLabelingJob() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this LabelingJobResource created on azure - // for more information of creating LabelingJobResource, please refer to the document of LabelingJobResource + // this example assumes you already have this MachineLearningLabelingJobResource created on azure + // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "workspace-1234"; string workspaceName = "testworkspace"; string id = "testLabelingJob"; - ResourceIdentifier labelingJobResourceId = LabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); - LabelingJobResource labelingJob = client.GetLabelingJobResource(labelingJobResourceId); + ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id); + MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId); // invoke the operation - await labelingJob.ResumeAsync(WaitUntil.Completed); + await machineLearningLabelingJob.ResumeAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerCollection.cs index 3a3a3d0d07af..e2132cbc92f5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryCodeCollection + public partial class Sample_MachineLearningRegistryCodeContainerCollection { // List Registry Code Container. [NUnit.Framework.Test] @@ -31,19 +31,19 @@ public async Task GetAll_ListRegistryCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryCodeResource - RegistryCodeCollection collection = registry.GetRegistryCodes(); + // get the collection of this MachineLearningRegistryCodeContainerResource + MachineLearningRegistryCodeContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryCodeContainers(); // invoke the operation and iterate over the result - await foreach (RegistryCodeResource item in collection.GetAllAsync()) + await foreach (MachineLearningRegistryCodeContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -68,20 +68,20 @@ public async Task Get_GetRegistryCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryCodeResource - RegistryCodeCollection collection = registry.GetRegistryCodes(); + // get the collection of this MachineLearningRegistryCodeContainerResource + MachineLearningRegistryCodeContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryCodeContainers(); // invoke the operation string codeName = "testContainer"; - RegistryCodeResource result = await collection.GetAsync(codeName); + MachineLearningRegistryCodeContainerResource result = await collection.GetAsync(codeName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -103,16 +103,16 @@ public async Task Exists_GetRegistryCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryCodeResource - RegistryCodeCollection collection = registry.GetRegistryCodes(); + // get the collection of this MachineLearningRegistryCodeContainerResource + MachineLearningRegistryCodeContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryCodeContainers(); // invoke the operation string codeName = "testContainer"; @@ -134,21 +134,21 @@ public async Task GetIfExists_GetRegistryCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryCodeResource - RegistryCodeCollection collection = registry.GetRegistryCodes(); + // get the collection of this MachineLearningRegistryCodeContainerResource + MachineLearningRegistryCodeContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryCodeContainers(); // invoke the operation string codeName = "testContainer"; - NullableResponse response = await collection.GetIfExistsAsync(codeName); - RegistryCodeResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(codeName); + MachineLearningRegistryCodeContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -177,16 +177,16 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryCodeResource - RegistryCodeCollection collection = registry.GetRegistryCodes(); + // get the collection of this MachineLearningRegistryCodeContainerResource + MachineLearningRegistryCodeContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryCodeContainers(); // invoke the operation string codeName = "testContainer"; @@ -199,8 +199,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryCodeContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, codeName, data); - RegistryCodeResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, codeName, data); + MachineLearningRegistryCodeContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerResource.cs similarity index 66% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerResource.cs index 43c082a53d2c..42707b544689 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryCodeResource + public partial class Sample_MachineLearningRegistryCodeContainerResource { // Delete Registry Code Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteRegistryCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeResource created on azure - // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + // this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure + // for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; string codeName = "testContainer"; - ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); - RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId); // invoke the operation - await registryCode.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistryCodeContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetRegistryCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeResource created on azure - // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + // this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure + // for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; string codeName = "testContainer"; - ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); - RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId); // invoke the operation - RegistryCodeResource result = await registryCode.GetAsync(); + MachineLearningRegistryCodeContainerResource result = await machineLearningRegistryCodeContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateRegistryCodeContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeResource created on azure - // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + // this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure + // for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; string codeName = "testContainer"; - ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); - RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId); // invoke the operation MachineLearningCodeContainerData data = new MachineLearningCodeContainerData(new MachineLearningCodeContainerProperties() @@ -110,8 +110,8 @@ public async Task Update_CreateOrUpdateRegistryCodeContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await registryCode.UpdateAsync(WaitUntil.Completed, data); - RegistryCodeResource result = lro.Value; + ArmOperation lro = await machineLearningRegistryCodeContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningRegistryCodeContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionCollection.cs index d7a3560c5e90..89cf78d1e02a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryCodeVersionCollection + public partial class Sample_MachineLearningRegistryCodeVersionCollection { // List Registry Code Version. [NUnit.Framework.Test] @@ -31,22 +31,22 @@ public async Task GetAll_ListRegistryCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeResource created on azure - // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + // this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure + // for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string codeName = "string"; - ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); - RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId); - // get the collection of this RegistryCodeVersionResource - RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + // get the collection of this MachineLearningRegistryCodeVersionResource + MachineLearningRegistryCodeVersionCollection collection = machineLearningRegistryCodeContainer.GetMachineLearningRegistryCodeVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (RegistryCodeVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (MachineLearningRegistryCodeVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -71,21 +71,21 @@ public async Task Get_GetRegistryCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeResource created on azure - // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + // this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure + // for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string codeName = "string"; - ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); - RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId); - // get the collection of this RegistryCodeVersionResource - RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + // get the collection of this MachineLearningRegistryCodeVersionResource + MachineLearningRegistryCodeVersionCollection collection = machineLearningRegistryCodeContainer.GetMachineLearningRegistryCodeVersions(); // invoke the operation string version = "string"; - RegistryCodeVersionResource result = await collection.GetAsync(version); + MachineLearningRegistryCodeVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -107,17 +107,17 @@ public async Task Exists_GetRegistryCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeResource created on azure - // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + // this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure + // for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string codeName = "string"; - ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); - RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId); - // get the collection of this RegistryCodeVersionResource - RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + // get the collection of this MachineLearningRegistryCodeVersionResource + MachineLearningRegistryCodeVersionCollection collection = machineLearningRegistryCodeContainer.GetMachineLearningRegistryCodeVersions(); // invoke the operation string version = "string"; @@ -139,22 +139,22 @@ public async Task GetIfExists_GetRegistryCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeResource created on azure - // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + // this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure + // for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string codeName = "string"; - ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); - RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId); - // get the collection of this RegistryCodeVersionResource - RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + // get the collection of this MachineLearningRegistryCodeVersionResource + MachineLearningRegistryCodeVersionCollection collection = machineLearningRegistryCodeContainer.GetMachineLearningRegistryCodeVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - RegistryCodeVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningRegistryCodeVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -183,17 +183,17 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeResource created on azure - // for more information of creating RegistryCodeResource, please refer to the document of RegistryCodeResource + // this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure + // for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string codeName = "string"; - ResourceIdentifier registryCodeResourceId = RegistryCodeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); - RegistryCodeResource registryCode = client.GetRegistryCodeResource(registryCodeResourceId); + ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName); + MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId); - // get the collection of this RegistryCodeVersionResource - RegistryCodeVersionCollection collection = registryCode.GetRegistryCodeVersions(); + // get the collection of this MachineLearningRegistryCodeVersionResource + MachineLearningRegistryCodeVersionCollection collection = machineLearningRegistryCodeContainer.GetMachineLearningRegistryCodeVersions(); // invoke the operation string version = "string"; @@ -211,8 +211,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryCodeVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - RegistryCodeVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningRegistryCodeVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionResource.cs similarity index 67% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionResource.cs index ba20efa43333..90c3aa41830b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCodeVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryCodeVersionResource + public partial class Sample_MachineLearningRegistryCodeVersionResource { // Delete Registry Code Version. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteRegistryCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeVersionResource created on azure - // for more information of creating RegistryCodeVersionResource, please refer to the document of RegistryCodeVersionResource + // this example assumes you already have this MachineLearningRegistryCodeVersionResource created on azure + // for more information of creating MachineLearningRegistryCodeVersionResource, please refer to the document of MachineLearningRegistryCodeVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string codeName = "string"; string version = "string"; - ResourceIdentifier registryCodeVersionResourceId = RegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); - RegistryCodeVersionResource registryCodeVersion = client.GetRegistryCodeVersionResource(registryCodeVersionResourceId); + ResourceIdentifier machineLearningRegistryCodeVersionResourceId = MachineLearningRegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); + MachineLearningRegistryCodeVersionResource machineLearningRegistryCodeVersion = client.GetMachineLearningRegistryCodeVersionResource(machineLearningRegistryCodeVersionResourceId); // invoke the operation - await registryCodeVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistryCodeVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,18 +60,18 @@ public async Task Get_GetRegistryCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeVersionResource created on azure - // for more information of creating RegistryCodeVersionResource, please refer to the document of RegistryCodeVersionResource + // this example assumes you already have this MachineLearningRegistryCodeVersionResource created on azure + // for more information of creating MachineLearningRegistryCodeVersionResource, please refer to the document of MachineLearningRegistryCodeVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string codeName = "string"; string version = "string"; - ResourceIdentifier registryCodeVersionResourceId = RegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); - RegistryCodeVersionResource registryCodeVersion = client.GetRegistryCodeVersionResource(registryCodeVersionResourceId); + ResourceIdentifier machineLearningRegistryCodeVersionResourceId = MachineLearningRegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); + MachineLearningRegistryCodeVersionResource machineLearningRegistryCodeVersion = client.GetMachineLearningRegistryCodeVersionResource(machineLearningRegistryCodeVersionResourceId); // invoke the operation - RegistryCodeVersionResource result = await registryCodeVersion.GetAsync(); + MachineLearningRegistryCodeVersionResource result = await machineLearningRegistryCodeVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateRegistryCodeVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeVersionResource created on azure - // for more information of creating RegistryCodeVersionResource, please refer to the document of RegistryCodeVersionResource + // this example assumes you already have this MachineLearningRegistryCodeVersionResource created on azure + // for more information of creating MachineLearningRegistryCodeVersionResource, please refer to the document of MachineLearningRegistryCodeVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string codeName = "string"; string version = "string"; - ResourceIdentifier registryCodeVersionResourceId = RegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); - RegistryCodeVersionResource registryCodeVersion = client.GetRegistryCodeVersionResource(registryCodeVersionResourceId); + ResourceIdentifier machineLearningRegistryCodeVersionResourceId = MachineLearningRegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); + MachineLearningRegistryCodeVersionResource machineLearningRegistryCodeVersion = client.GetMachineLearningRegistryCodeVersionResource(machineLearningRegistryCodeVersionResourceId); // invoke the operation MachineLearningCodeVersionData data = new MachineLearningCodeVersionData(new MachineLearningCodeVersionProperties() @@ -118,8 +118,8 @@ public async Task Update_CreateOrUpdateRegistryCodeVersion() ["string"] = "string", }, }); - ArmOperation lro = await registryCodeVersion.UpdateAsync(WaitUntil.Completed, data); - RegistryCodeVersionResource result = lro.Value; + ArmOperation lro = await machineLearningRegistryCodeVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningRegistryCodeVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -141,15 +141,15 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadReg // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryCodeVersionResource created on azure - // for more information of creating RegistryCodeVersionResource, please refer to the document of RegistryCodeVersionResource + // this example assumes you already have this MachineLearningRegistryCodeVersionResource created on azure + // for more information of creating MachineLearningRegistryCodeVersionResource, please refer to the document of MachineLearningRegistryCodeVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string codeName = "string"; string version = "string"; - ResourceIdentifier registryCodeVersionResourceId = RegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); - RegistryCodeVersionResource registryCodeVersion = client.GetRegistryCodeVersionResource(registryCodeVersionResourceId); + ResourceIdentifier machineLearningRegistryCodeVersionResourceId = MachineLearningRegistryCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName, version); + MachineLearningRegistryCodeVersionResource machineLearningRegistryCodeVersion = client.GetMachineLearningRegistryCodeVersionResource(machineLearningRegistryCodeVersionResourceId); // invoke the operation PendingUploadRequestDto body = new PendingUploadRequestDto() @@ -157,7 +157,7 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadReg PendingUploadId = "string", PendingUploadType = PendingUploadType.None, }; - PendingUploadResponseDto result = await registryCodeVersion.CreateOrGetStartPendingUploadAsync(body); + PendingUploadResponseDto result = await machineLearningRegistryCodeVersion.CreateOrGetStartPendingUploadAsync(body); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs similarity index 86% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs index cadef0a6bddf..60ad5520a5a9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryCollection + public partial class Sample_MachineLearningRegistryCollection { // List registries with system created accounts. [NUnit.Framework.Test] @@ -40,15 +40,15 @@ public async Task GetAll_ListRegistriesWithSystemCreatedAccounts() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); + // get the collection of this MachineLearningRegistryResource + MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); // invoke the operation and iterate over the result - await foreach (RegistryResource item in collection.GetAllAsync()) + await foreach (MachineLearningRegistryResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - RegistryData resourceData = item.Data; + MachineLearningRegistryData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -76,16 +76,16 @@ public async Task Get_GetRegistryWithSystemCreatedAccounts() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); + // get the collection of this MachineLearningRegistryResource + MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); // invoke the operation string registryName = "string"; - RegistryResource result = await collection.GetAsync(registryName); + MachineLearningRegistryResource result = await collection.GetAsync(registryName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; + MachineLearningRegistryData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -110,8 +110,8 @@ public async Task Exists_GetRegistryWithSystemCreatedAccounts() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); + // get the collection of this MachineLearningRegistryResource + MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); // invoke the operation string registryName = "string"; @@ -140,13 +140,13 @@ public async Task GetIfExists_GetRegistryWithSystemCreatedAccounts() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); + // get the collection of this MachineLearningRegistryResource + MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); // invoke the operation string registryName = "string"; - NullableResponse response = await collection.GetIfExistsAsync(registryName); - RegistryResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(registryName); + MachineLearningRegistryResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -156,7 +156,7 @@ public async Task GetIfExists_GetRegistryWithSystemCreatedAccounts() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; + MachineLearningRegistryData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -182,12 +182,12 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this RegistryResource - RegistryCollection collection = resourceGroupResource.GetRegistries(); + // get the collection of this MachineLearningRegistryResource + MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); // invoke the operation string registryName = "string"; - RegistryData data = new RegistryData(new AzureLocation("string")) + MachineLearningRegistryData data = new MachineLearningRegistryData(new AzureLocation("string")) { Identity = new ManagedServiceIdentity("None") { @@ -269,12 +269,12 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts { }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, registryName, data); - RegistryResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, registryName, data); + MachineLearningRegistryResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; + MachineLearningRegistryData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerCollection.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerCollection.cs index 3fca57a83528..ba5a1ee470a2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryDataCollection + public partial class Sample_MachineLearningRegistryDataContainerCollection { // RegistryList Registry Data Container. [NUnit.Framework.Test] @@ -31,20 +31,20 @@ public async Task GetAll_RegistryListRegistryDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryDataResource - RegistryDataCollection collection = registry.GetAllRegistryData(); + // get the collection of this MachineLearningRegistryDataContainerResource + MachineLearningRegistryDataContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryDataContainers(); // invoke the operation and iterate over the result MachineLearningListViewType? listViewType = MachineLearningListViewType.All; - await foreach (RegistryDataResource item in collection.GetAllAsync(listViewType: listViewType)) + await foreach (MachineLearningRegistryDataContainerResource item in collection.GetAllAsync(listViewType: listViewType)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -69,20 +69,20 @@ public async Task Get_GetRegistryDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryDataResource - RegistryDataCollection collection = registry.GetAllRegistryData(); + // get the collection of this MachineLearningRegistryDataContainerResource + MachineLearningRegistryDataContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryDataContainers(); // invoke the operation string name = "string"; - RegistryDataResource result = await collection.GetAsync(name); + MachineLearningRegistryDataContainerResource result = await collection.GetAsync(name); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -104,16 +104,16 @@ public async Task Exists_GetRegistryDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryDataResource - RegistryDataCollection collection = registry.GetAllRegistryData(); + // get the collection of this MachineLearningRegistryDataContainerResource + MachineLearningRegistryDataContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryDataContainers(); // invoke the operation string name = "string"; @@ -135,21 +135,21 @@ public async Task GetIfExists_GetRegistryDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryDataResource - RegistryDataCollection collection = registry.GetAllRegistryData(); + // get the collection of this MachineLearningRegistryDataContainerResource + MachineLearningRegistryDataContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryDataContainers(); // invoke the operation string name = "string"; - NullableResponse response = await collection.GetIfExistsAsync(name); - RegistryDataResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(name); + MachineLearningRegistryDataContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -178,16 +178,16 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryDataResource - RegistryDataCollection collection = registry.GetAllRegistryData(); + // get the collection of this MachineLearningRegistryDataContainerResource + MachineLearningRegistryDataContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryDataContainers(); // invoke the operation string name = "string"; @@ -204,8 +204,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryDataContainer() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - RegistryDataResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); + MachineLearningRegistryDataContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerResource.cs similarity index 66% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerResource.cs index 9d80d97218b7..2af33dfd2484 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryDataResource + public partial class Sample_MachineLearningRegistryDataContainerResource { // Delete Registry Data Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteRegistryDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataResource created on azure - // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + // this example assumes you already have this MachineLearningRegistryDataContainerResource created on azure + // for more information of creating MachineLearningRegistryDataContainerResource, please refer to the document of MachineLearningRegistryDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; - ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); - RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + ResourceIdentifier machineLearningRegistryDataContainerResourceId = MachineLearningRegistryDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + MachineLearningRegistryDataContainerResource machineLearningRegistryDataContainer = client.GetMachineLearningRegistryDataContainerResource(machineLearningRegistryDataContainerResourceId); // invoke the operation - await registryData.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistryDataContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetRegistryDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataResource created on azure - // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + // this example assumes you already have this MachineLearningRegistryDataContainerResource created on azure + // for more information of creating MachineLearningRegistryDataContainerResource, please refer to the document of MachineLearningRegistryDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; - ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); - RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + ResourceIdentifier machineLearningRegistryDataContainerResourceId = MachineLearningRegistryDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + MachineLearningRegistryDataContainerResource machineLearningRegistryDataContainer = client.GetMachineLearningRegistryDataContainerResource(machineLearningRegistryDataContainerResourceId); // invoke the operation - RegistryDataResource result = await registryData.GetAsync(); + MachineLearningRegistryDataContainerResource result = await machineLearningRegistryDataContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateRegistryDataContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataResource created on azure - // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + // this example assumes you already have this MachineLearningRegistryDataContainerResource created on azure + // for more information of creating MachineLearningRegistryDataContainerResource, please refer to the document of MachineLearningRegistryDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; - ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); - RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + ResourceIdentifier machineLearningRegistryDataContainerResourceId = MachineLearningRegistryDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + MachineLearningRegistryDataContainerResource machineLearningRegistryDataContainer = client.GetMachineLearningRegistryDataContainerResource(machineLearningRegistryDataContainerResourceId); // invoke the operation MachineLearningDataContainerData data = new MachineLearningDataContainerData(new MachineLearningDataContainerProperties(MachineLearningDataType.UriFolder) @@ -114,8 +114,8 @@ public async Task Update_CreateOrUpdateRegistryDataContainer() ["string"] = "string", }, }); - ArmOperation lro = await registryData.UpdateAsync(WaitUntil.Completed, data); - RegistryDataResource result = lro.Value; + ArmOperation lro = await machineLearningRegistryDataContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningRegistryDataContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionCollection.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionCollection.cs index 618e99a21445..cb1c302597ad 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryDataVersionCollection + public partial class Sample_MachineLearningRegistryDataVersionCollection { // RegistryList Registry Data Version Base. [NUnit.Framework.Test] @@ -31,24 +31,24 @@ public async Task GetAll_RegistryListRegistryDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataResource created on azure - // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + // this example assumes you already have this MachineLearningRegistryDataContainerResource created on azure + // for more information of creating MachineLearningRegistryDataContainerResource, please refer to the document of MachineLearningRegistryDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; - ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); - RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + ResourceIdentifier machineLearningRegistryDataContainerResourceId = MachineLearningRegistryDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + MachineLearningRegistryDataContainerResource machineLearningRegistryDataContainer = client.GetMachineLearningRegistryDataContainerResource(machineLearningRegistryDataContainerResourceId); - // get the collection of this RegistryDataVersionResource - RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + // get the collection of this MachineLearningRegistryDataVersionResource + MachineLearningRegistryDataVersionCollection collection = machineLearningRegistryDataContainer.GetMachineLearningRegistryDataVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; string tags = "string"; MachineLearningListViewType? listViewType = MachineLearningListViewType.ArchivedOnly; - await foreach (RegistryDataVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top, tags: tags, listViewType: listViewType)) + await foreach (MachineLearningRegistryDataVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top, tags: tags, listViewType: listViewType)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -73,21 +73,21 @@ public async Task Get_GetRegistryDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataResource created on azure - // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + // this example assumes you already have this MachineLearningRegistryDataContainerResource created on azure + // for more information of creating MachineLearningRegistryDataContainerResource, please refer to the document of MachineLearningRegistryDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; - ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); - RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + ResourceIdentifier machineLearningRegistryDataContainerResourceId = MachineLearningRegistryDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + MachineLearningRegistryDataContainerResource machineLearningRegistryDataContainer = client.GetMachineLearningRegistryDataContainerResource(machineLearningRegistryDataContainerResourceId); - // get the collection of this RegistryDataVersionResource - RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + // get the collection of this MachineLearningRegistryDataVersionResource + MachineLearningRegistryDataVersionCollection collection = machineLearningRegistryDataContainer.GetMachineLearningRegistryDataVersions(); // invoke the operation string version = "string"; - RegistryDataVersionResource result = await collection.GetAsync(version); + MachineLearningRegistryDataVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -109,17 +109,17 @@ public async Task Exists_GetRegistryDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataResource created on azure - // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + // this example assumes you already have this MachineLearningRegistryDataContainerResource created on azure + // for more information of creating MachineLearningRegistryDataContainerResource, please refer to the document of MachineLearningRegistryDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; - ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); - RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + ResourceIdentifier machineLearningRegistryDataContainerResourceId = MachineLearningRegistryDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + MachineLearningRegistryDataContainerResource machineLearningRegistryDataContainer = client.GetMachineLearningRegistryDataContainerResource(machineLearningRegistryDataContainerResourceId); - // get the collection of this RegistryDataVersionResource - RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + // get the collection of this MachineLearningRegistryDataVersionResource + MachineLearningRegistryDataVersionCollection collection = machineLearningRegistryDataContainer.GetMachineLearningRegistryDataVersions(); // invoke the operation string version = "string"; @@ -141,22 +141,22 @@ public async Task GetIfExists_GetRegistryDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataResource created on azure - // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + // this example assumes you already have this MachineLearningRegistryDataContainerResource created on azure + // for more information of creating MachineLearningRegistryDataContainerResource, please refer to the document of MachineLearningRegistryDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; - ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); - RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + ResourceIdentifier machineLearningRegistryDataContainerResourceId = MachineLearningRegistryDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + MachineLearningRegistryDataContainerResource machineLearningRegistryDataContainer = client.GetMachineLearningRegistryDataContainerResource(machineLearningRegistryDataContainerResourceId); - // get the collection of this RegistryDataVersionResource - RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + // get the collection of this MachineLearningRegistryDataVersionResource + MachineLearningRegistryDataVersionCollection collection = machineLearningRegistryDataContainer.GetMachineLearningRegistryDataVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - RegistryDataVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningRegistryDataVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -185,17 +185,17 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataResource created on azure - // for more information of creating RegistryDataResource, please refer to the document of RegistryDataResource + // this example assumes you already have this MachineLearningRegistryDataContainerResource created on azure + // for more information of creating MachineLearningRegistryDataContainerResource, please refer to the document of MachineLearningRegistryDataContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; - ResourceIdentifier registryDataResourceId = RegistryDataResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); - RegistryDataResource registryData = client.GetRegistryDataResource(registryDataResourceId); + ResourceIdentifier machineLearningRegistryDataContainerResourceId = MachineLearningRegistryDataContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name); + MachineLearningRegistryDataContainerResource machineLearningRegistryDataContainer = client.GetMachineLearningRegistryDataContainerResource(machineLearningRegistryDataContainerResourceId); - // get the collection of this RegistryDataVersionResource - RegistryDataVersionCollection collection = registryData.GetRegistryDataVersions(); + // get the collection of this MachineLearningRegistryDataVersionResource + MachineLearningRegistryDataVersionCollection collection = machineLearningRegistryDataContainer.GetMachineLearningRegistryDataVersions(); // invoke the operation string version = "string"; @@ -217,8 +217,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryDataVersionBase() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - RegistryDataVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningRegistryDataVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionResource.cs similarity index 67% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionResource.cs index 3026e5e703ba..bee002d2524d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryDataVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryDataVersionResource + public partial class Sample_MachineLearningRegistryDataVersionResource { // Delete Registry Data Version Base. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteRegistryDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataVersionResource created on azure - // for more information of creating RegistryDataVersionResource, please refer to the document of RegistryDataVersionResource + // this example assumes you already have this MachineLearningRegistryDataVersionResource created on azure + // for more information of creating MachineLearningRegistryDataVersionResource, please refer to the document of MachineLearningRegistryDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; string version = "string"; - ResourceIdentifier registryDataVersionResourceId = RegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); - RegistryDataVersionResource registryDataVersion = client.GetRegistryDataVersionResource(registryDataVersionResourceId); + ResourceIdentifier machineLearningRegistryDataVersionResourceId = MachineLearningRegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); + MachineLearningRegistryDataVersionResource machineLearningRegistryDataVersion = client.GetMachineLearningRegistryDataVersionResource(machineLearningRegistryDataVersionResourceId); // invoke the operation - await registryDataVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistryDataVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,18 +60,18 @@ public async Task Get_GetRegistryDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataVersionResource created on azure - // for more information of creating RegistryDataVersionResource, please refer to the document of RegistryDataVersionResource + // this example assumes you already have this MachineLearningRegistryDataVersionResource created on azure + // for more information of creating MachineLearningRegistryDataVersionResource, please refer to the document of MachineLearningRegistryDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; string version = "string"; - ResourceIdentifier registryDataVersionResourceId = RegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); - RegistryDataVersionResource registryDataVersion = client.GetRegistryDataVersionResource(registryDataVersionResourceId); + ResourceIdentifier machineLearningRegistryDataVersionResourceId = MachineLearningRegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); + MachineLearningRegistryDataVersionResource machineLearningRegistryDataVersion = client.GetMachineLearningRegistryDataVersionResource(machineLearningRegistryDataVersionResourceId); // invoke the operation - RegistryDataVersionResource result = await registryDataVersion.GetAsync(); + MachineLearningRegistryDataVersionResource result = await machineLearningRegistryDataVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateRegistryDataVersionBase() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataVersionResource created on azure - // for more information of creating RegistryDataVersionResource, please refer to the document of RegistryDataVersionResource + // this example assumes you already have this MachineLearningRegistryDataVersionResource created on azure + // for more information of creating MachineLearningRegistryDataVersionResource, please refer to the document of MachineLearningRegistryDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; string version = "string"; - ResourceIdentifier registryDataVersionResourceId = RegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); - RegistryDataVersionResource registryDataVersion = client.GetRegistryDataVersionResource(registryDataVersionResourceId); + ResourceIdentifier machineLearningRegistryDataVersionResourceId = MachineLearningRegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); + MachineLearningRegistryDataVersionResource machineLearningRegistryDataVersion = client.GetMachineLearningRegistryDataVersionResource(machineLearningRegistryDataVersionResourceId); // invoke the operation MachineLearningDataVersionData data = new MachineLearningDataVersionData(new MachineLearningTable(new Uri("string")) @@ -122,8 +122,8 @@ public async Task Update_CreateOrUpdateRegistryDataVersionBase() ["string"] = "string", }, }); - ArmOperation lro = await registryDataVersion.UpdateAsync(WaitUntil.Completed, data); - RegistryDataVersionResource result = lro.Value; + ArmOperation lro = await machineLearningRegistryDataVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningRegistryDataVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -145,15 +145,15 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadReg // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryDataVersionResource created on azure - // for more information of creating RegistryDataVersionResource, please refer to the document of RegistryDataVersionResource + // this example assumes you already have this MachineLearningRegistryDataVersionResource created on azure + // for more information of creating MachineLearningRegistryDataVersionResource, please refer to the document of MachineLearningRegistryDataVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string name = "string"; string version = "string"; - ResourceIdentifier registryDataVersionResourceId = RegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); - RegistryDataVersionResource registryDataVersion = client.GetRegistryDataVersionResource(registryDataVersionResourceId); + ResourceIdentifier machineLearningRegistryDataVersionResourceId = MachineLearningRegistryDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, name, version); + MachineLearningRegistryDataVersionResource machineLearningRegistryDataVersion = client.GetMachineLearningRegistryDataVersionResource(machineLearningRegistryDataVersionResourceId); // invoke the operation PendingUploadRequestDto body = new PendingUploadRequestDto() @@ -161,7 +161,7 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadReg PendingUploadId = "string", PendingUploadType = PendingUploadType.None, }; - PendingUploadResponseDto result = await registryDataVersion.CreateOrGetStartPendingUploadAsync(body); + PendingUploadResponseDto result = await machineLearningRegistryDataVersion.CreateOrGetStartPendingUploadAsync(body); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerCollection.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerCollection.cs index f7b18f4758ae..61277162af2f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryEnvironmentCollection + public partial class Sample_MachineLearningRegistryEnvironmentContainerCollection { // List Registry Environment Container. [NUnit.Framework.Test] @@ -31,19 +31,19 @@ public async Task GetAll_ListRegistryEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryEnvironmentResource - RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + // get the collection of this MachineLearningRegistryEnvironmentContainerResource + MachineLearningRegistryEnvironmentContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryEnvironmentContainers(); // invoke the operation and iterate over the result - await foreach (RegistryEnvironmentResource item in collection.GetAllAsync()) + await foreach (MachineLearningRegistryEnvironmentContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -68,20 +68,20 @@ public async Task Get_GetRegistryEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryEnvironmentResource - RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + // get the collection of this MachineLearningRegistryEnvironmentContainerResource + MachineLearningRegistryEnvironmentContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryEnvironmentContainers(); // invoke the operation string environmentName = "testEnvironment"; - RegistryEnvironmentResource result = await collection.GetAsync(environmentName); + MachineLearningRegistryEnvironmentContainerResource result = await collection.GetAsync(environmentName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -103,16 +103,16 @@ public async Task Exists_GetRegistryEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryEnvironmentResource - RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + // get the collection of this MachineLearningRegistryEnvironmentContainerResource + MachineLearningRegistryEnvironmentContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryEnvironmentContainers(); // invoke the operation string environmentName = "testEnvironment"; @@ -134,21 +134,21 @@ public async Task GetIfExists_GetRegistryEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryEnvironmentResource - RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + // get the collection of this MachineLearningRegistryEnvironmentContainerResource + MachineLearningRegistryEnvironmentContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryEnvironmentContainers(); // invoke the operation string environmentName = "testEnvironment"; - NullableResponse response = await collection.GetIfExistsAsync(environmentName); - RegistryEnvironmentResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(environmentName); + MachineLearningRegistryEnvironmentContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -177,16 +177,16 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryEnvironmentResource - RegistryEnvironmentCollection collection = registry.GetRegistryEnvironments(); + // get the collection of this MachineLearningRegistryEnvironmentContainerResource + MachineLearningRegistryEnvironmentContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryEnvironmentContainers(); // invoke the operation string environmentName = "testEnvironment"; @@ -206,8 +206,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryEnvironmentContainer() ["additionalProp3"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, environmentName, data); - RegistryEnvironmentResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, environmentName, data); + MachineLearningRegistryEnvironmentContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerResource.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerResource.cs index 177e9b308a12..d381c1d086f8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryEnvironmentResource + public partial class Sample_MachineLearningRegistryEnvironmentContainerResource { // Delete Registry Environment Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteRegistryEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentResource created on azure - // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + // this example assumes you already have this MachineLearningRegistryEnvironmentContainerResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentContainerResource, please refer to the document of MachineLearningRegistryEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; string environmentName = "testContainer"; - ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); - RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentContainerResourceId = MachineLearningRegistryEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + MachineLearningRegistryEnvironmentContainerResource machineLearningRegistryEnvironmentContainer = client.GetMachineLearningRegistryEnvironmentContainerResource(machineLearningRegistryEnvironmentContainerResourceId); // invoke the operation - await registryEnvironment.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistryEnvironmentContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetRegistryEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentResource created on azure - // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + // this example assumes you already have this MachineLearningRegistryEnvironmentContainerResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentContainerResource, please refer to the document of MachineLearningRegistryEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; string environmentName = "testEnvironment"; - ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); - RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentContainerResourceId = MachineLearningRegistryEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + MachineLearningRegistryEnvironmentContainerResource machineLearningRegistryEnvironmentContainer = client.GetMachineLearningRegistryEnvironmentContainerResource(machineLearningRegistryEnvironmentContainerResourceId); // invoke the operation - RegistryEnvironmentResource result = await registryEnvironment.GetAsync(); + MachineLearningRegistryEnvironmentContainerResource result = await machineLearningRegistryEnvironmentContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateRegistryEnvironmentContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentResource created on azure - // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + // this example assumes you already have this MachineLearningRegistryEnvironmentContainerResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentContainerResource, please refer to the document of MachineLearningRegistryEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "testregistry"; string environmentName = "testEnvironment"; - ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); - RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentContainerResourceId = MachineLearningRegistryEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + MachineLearningRegistryEnvironmentContainerResource machineLearningRegistryEnvironmentContainer = client.GetMachineLearningRegistryEnvironmentContainerResource(machineLearningRegistryEnvironmentContainerResourceId); // invoke the operation MachineLearningEnvironmentContainerData data = new MachineLearningEnvironmentContainerData(new MachineLearningEnvironmentContainerProperties() @@ -117,8 +117,8 @@ public async Task Update_CreateOrUpdateRegistryEnvironmentContainer() ["additionalProp3"] = "string", }, }); - ArmOperation lro = await registryEnvironment.UpdateAsync(WaitUntil.Completed, data); - RegistryEnvironmentResource result = lro.Value; + ArmOperation lro = await machineLearningRegistryEnvironmentContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningRegistryEnvironmentContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionCollection.cs index b6a7bcf680df..8009573a96c4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryEnvironmentVersionCollection + public partial class Sample_MachineLearningRegistryEnvironmentVersionCollection { // List Registry Environment Version. [NUnit.Framework.Test] @@ -31,22 +31,22 @@ public async Task GetAll_ListRegistryEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentResource created on azure - // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + // this example assumes you already have this MachineLearningRegistryEnvironmentContainerResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentContainerResource, please refer to the document of MachineLearningRegistryEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-regsitry"; string environmentName = "string"; - ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); - RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentContainerResourceId = MachineLearningRegistryEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + MachineLearningRegistryEnvironmentContainerResource machineLearningRegistryEnvironmentContainer = client.GetMachineLearningRegistryEnvironmentContainerResource(machineLearningRegistryEnvironmentContainerResourceId); - // get the collection of this RegistryEnvironmentVersionResource - RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + // get the collection of this MachineLearningRegistryEnvironmentVersionResource + MachineLearningRegistryEnvironmentVersionCollection collection = machineLearningRegistryEnvironmentContainer.GetMachineLearningRegistryEnvironmentVersions(); // invoke the operation and iterate over the result string orderBy = "string"; int? top = 1; - await foreach (RegistryEnvironmentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) + await foreach (MachineLearningRegistryEnvironmentVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -71,21 +71,21 @@ public async Task Get_GetRegistryEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentResource created on azure - // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + // this example assumes you already have this MachineLearningRegistryEnvironmentContainerResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentContainerResource, please refer to the document of MachineLearningRegistryEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string environmentName = "string"; - ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); - RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentContainerResourceId = MachineLearningRegistryEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + MachineLearningRegistryEnvironmentContainerResource machineLearningRegistryEnvironmentContainer = client.GetMachineLearningRegistryEnvironmentContainerResource(machineLearningRegistryEnvironmentContainerResourceId); - // get the collection of this RegistryEnvironmentVersionResource - RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + // get the collection of this MachineLearningRegistryEnvironmentVersionResource + MachineLearningRegistryEnvironmentVersionCollection collection = machineLearningRegistryEnvironmentContainer.GetMachineLearningRegistryEnvironmentVersions(); // invoke the operation string version = "string"; - RegistryEnvironmentVersionResource result = await collection.GetAsync(version); + MachineLearningRegistryEnvironmentVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -107,17 +107,17 @@ public async Task Exists_GetRegistryEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentResource created on azure - // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + // this example assumes you already have this MachineLearningRegistryEnvironmentContainerResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentContainerResource, please refer to the document of MachineLearningRegistryEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string environmentName = "string"; - ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); - RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentContainerResourceId = MachineLearningRegistryEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + MachineLearningRegistryEnvironmentContainerResource machineLearningRegistryEnvironmentContainer = client.GetMachineLearningRegistryEnvironmentContainerResource(machineLearningRegistryEnvironmentContainerResourceId); - // get the collection of this RegistryEnvironmentVersionResource - RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + // get the collection of this MachineLearningRegistryEnvironmentVersionResource + MachineLearningRegistryEnvironmentVersionCollection collection = machineLearningRegistryEnvironmentContainer.GetMachineLearningRegistryEnvironmentVersions(); // invoke the operation string version = "string"; @@ -139,22 +139,22 @@ public async Task GetIfExists_GetRegistryEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentResource created on azure - // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + // this example assumes you already have this MachineLearningRegistryEnvironmentContainerResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentContainerResource, please refer to the document of MachineLearningRegistryEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string environmentName = "string"; - ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); - RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentContainerResourceId = MachineLearningRegistryEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + MachineLearningRegistryEnvironmentContainerResource machineLearningRegistryEnvironmentContainer = client.GetMachineLearningRegistryEnvironmentContainerResource(machineLearningRegistryEnvironmentContainerResourceId); - // get the collection of this RegistryEnvironmentVersionResource - RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + // get the collection of this MachineLearningRegistryEnvironmentVersionResource + MachineLearningRegistryEnvironmentVersionCollection collection = machineLearningRegistryEnvironmentContainer.GetMachineLearningRegistryEnvironmentVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - RegistryEnvironmentVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningRegistryEnvironmentVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -183,17 +183,17 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentResource created on azure - // for more information of creating RegistryEnvironmentResource, please refer to the document of RegistryEnvironmentResource + // this example assumes you already have this MachineLearningRegistryEnvironmentContainerResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentContainerResource, please refer to the document of MachineLearningRegistryEnvironmentContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string environmentName = "string"; - ResourceIdentifier registryEnvironmentResourceId = RegistryEnvironmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); - RegistryEnvironmentResource registryEnvironment = client.GetRegistryEnvironmentResource(registryEnvironmentResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentContainerResourceId = MachineLearningRegistryEnvironmentContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName); + MachineLearningRegistryEnvironmentContainerResource machineLearningRegistryEnvironmentContainer = client.GetMachineLearningRegistryEnvironmentContainerResource(machineLearningRegistryEnvironmentContainerResourceId); - // get the collection of this RegistryEnvironmentVersionResource - RegistryEnvironmentVersionCollection collection = registryEnvironment.GetRegistryEnvironmentVersions(); + // get the collection of this MachineLearningRegistryEnvironmentVersionResource + MachineLearningRegistryEnvironmentVersionCollection collection = machineLearningRegistryEnvironmentContainer.GetMachineLearningRegistryEnvironmentVersions(); // invoke the operation string version = "string"; @@ -222,8 +222,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryEnvironmentVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - RegistryEnvironmentVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningRegistryEnvironmentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionResource.cs index b9d824c267c1..f2a307d933c3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryEnvironmentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryEnvironmentVersionResource + public partial class Sample_MachineLearningRegistryEnvironmentVersionResource { // Delete Registry Environment Version. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteRegistryEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentVersionResource created on azure - // for more information of creating RegistryEnvironmentVersionResource, please refer to the document of RegistryEnvironmentVersionResource + // this example assumes you already have this MachineLearningRegistryEnvironmentVersionResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentVersionResource, please refer to the document of MachineLearningRegistryEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string environmentName = "string"; string version = "string"; - ResourceIdentifier registryEnvironmentVersionResourceId = RegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); - RegistryEnvironmentVersionResource registryEnvironmentVersion = client.GetRegistryEnvironmentVersionResource(registryEnvironmentVersionResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentVersionResourceId = MachineLearningRegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); + MachineLearningRegistryEnvironmentVersionResource machineLearningRegistryEnvironmentVersion = client.GetMachineLearningRegistryEnvironmentVersionResource(machineLearningRegistryEnvironmentVersionResourceId); // invoke the operation - await registryEnvironmentVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistryEnvironmentVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,18 +60,18 @@ public async Task Get_GetRegistryEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentVersionResource created on azure - // for more information of creating RegistryEnvironmentVersionResource, please refer to the document of RegistryEnvironmentVersionResource + // this example assumes you already have this MachineLearningRegistryEnvironmentVersionResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentVersionResource, please refer to the document of MachineLearningRegistryEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string environmentName = "string"; string version = "string"; - ResourceIdentifier registryEnvironmentVersionResourceId = RegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); - RegistryEnvironmentVersionResource registryEnvironmentVersion = client.GetRegistryEnvironmentVersionResource(registryEnvironmentVersionResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentVersionResourceId = MachineLearningRegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); + MachineLearningRegistryEnvironmentVersionResource machineLearningRegistryEnvironmentVersion = client.GetMachineLearningRegistryEnvironmentVersionResource(machineLearningRegistryEnvironmentVersionResourceId); // invoke the operation - RegistryEnvironmentVersionResource result = await registryEnvironmentVersion.GetAsync(); + MachineLearningRegistryEnvironmentVersionResource result = await machineLearningRegistryEnvironmentVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateRegistryEnvironmentVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryEnvironmentVersionResource created on azure - // for more information of creating RegistryEnvironmentVersionResource, please refer to the document of RegistryEnvironmentVersionResource + // this example assumes you already have this MachineLearningRegistryEnvironmentVersionResource created on azure + // for more information of creating MachineLearningRegistryEnvironmentVersionResource, please refer to the document of MachineLearningRegistryEnvironmentVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string environmentName = "string"; string version = "string"; - ResourceIdentifier registryEnvironmentVersionResourceId = RegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); - RegistryEnvironmentVersionResource registryEnvironmentVersion = client.GetRegistryEnvironmentVersionResource(registryEnvironmentVersionResourceId); + ResourceIdentifier machineLearningRegistryEnvironmentVersionResourceId = MachineLearningRegistryEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, environmentName, version); + MachineLearningRegistryEnvironmentVersionResource machineLearningRegistryEnvironmentVersion = client.GetMachineLearningRegistryEnvironmentVersionResource(machineLearningRegistryEnvironmentVersionResourceId); // invoke the operation MachineLearningEnvironmentVersionData data = new MachineLearningEnvironmentVersionData(new MachineLearningEnvironmentVersionProperties() @@ -129,8 +129,8 @@ public async Task Update_CreateOrUpdateRegistryEnvironmentVersion() ["string"] = "string", }, }); - ArmOperation lro = await registryEnvironmentVersion.UpdateAsync(WaitUntil.Completed, data); - RegistryEnvironmentVersionResource result = lro.Value; + ArmOperation lro = await machineLearningRegistryEnvironmentVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningRegistryEnvironmentVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerCollection.cs index 579403006bf1..8bbf82563518 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryModelCollection + public partial class Sample_MachineLearningRegistryModelContainerCollection { // List Registry Model Container. [NUnit.Framework.Test] @@ -31,19 +31,19 @@ public async Task GetAll_ListRegistryModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "registry123"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryModelResource - RegistryModelCollection collection = registry.GetRegistryModels(); + // get the collection of this MachineLearningRegistryModelContainerResource + MachineLearningRegistryModelContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryModelContainers(); // invoke the operation and iterate over the result - await foreach (RegistryModelResource item in collection.GetAllAsync()) + await foreach (MachineLearningRegistryModelContainerResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -68,20 +68,20 @@ public async Task Get_GetRegistryModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "registry123"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryModelResource - RegistryModelCollection collection = registry.GetRegistryModels(); + // get the collection of this MachineLearningRegistryModelContainerResource + MachineLearningRegistryModelContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryModelContainers(); // invoke the operation string modelName = "testContainer"; - RegistryModelResource result = await collection.GetAsync(modelName); + MachineLearningRegistryModelContainerResource result = await collection.GetAsync(modelName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -103,16 +103,16 @@ public async Task Exists_GetRegistryModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "registry123"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryModelResource - RegistryModelCollection collection = registry.GetRegistryModels(); + // get the collection of this MachineLearningRegistryModelContainerResource + MachineLearningRegistryModelContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryModelContainers(); // invoke the operation string modelName = "testContainer"; @@ -134,21 +134,21 @@ public async Task GetIfExists_GetRegistryModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "registry123"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryModelResource - RegistryModelCollection collection = registry.GetRegistryModels(); + // get the collection of this MachineLearningRegistryModelContainerResource + MachineLearningRegistryModelContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryModelContainers(); // invoke the operation string modelName = "testContainer"; - NullableResponse response = await collection.GetIfExistsAsync(modelName); - RegistryModelResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(modelName); + MachineLearningRegistryModelContainerResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -177,16 +177,16 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "registry123"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - // get the collection of this RegistryModelResource - RegistryModelCollection collection = registry.GetRegistryModels(); + // get the collection of this MachineLearningRegistryModelContainerResource + MachineLearningRegistryModelContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryModelContainers(); // invoke the operation string modelName = "testContainer"; @@ -199,8 +199,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryModelContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, modelName, data); - RegistryModelResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, modelName, data); + MachineLearningRegistryModelContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerResource.cs similarity index 66% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerResource.cs index c07fe82b4409..4d449c4dfbcf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryModelResource + public partial class Sample_MachineLearningRegistryModelContainerResource { // Delete Registry Model Container. [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteRegistryModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelResource created on azure - // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + // this example assumes you already have this MachineLearningRegistryModelContainerResource created on azure + // for more information of creating MachineLearningRegistryModelContainerResource, please refer to the document of MachineLearningRegistryModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "registry123"; string modelName = "testContainer"; - ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); - RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + ResourceIdentifier machineLearningRegistryModelContainerResourceId = MachineLearningRegistryModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + MachineLearningRegistryModelContainerResource machineLearningRegistryModelContainer = client.GetMachineLearningRegistryModelContainerResource(machineLearningRegistryModelContainerResourceId); // invoke the operation - await registryModel.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistryModelContainer.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,17 +59,17 @@ public async Task Get_GetRegistryModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelResource created on azure - // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + // this example assumes you already have this MachineLearningRegistryModelContainerResource created on azure + // for more information of creating MachineLearningRegistryModelContainerResource, please refer to the document of MachineLearningRegistryModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "registry123"; string modelName = "testContainer"; - ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); - RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + ResourceIdentifier machineLearningRegistryModelContainerResourceId = MachineLearningRegistryModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + MachineLearningRegistryModelContainerResource machineLearningRegistryModelContainer = client.GetMachineLearningRegistryModelContainerResource(machineLearningRegistryModelContainerResourceId); // invoke the operation - RegistryModelResource result = await registryModel.GetAsync(); + MachineLearningRegistryModelContainerResource result = await machineLearningRegistryModelContainer.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -91,14 +91,14 @@ public async Task Update_CreateOrUpdateRegistryModelContainer() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelResource created on azure - // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + // this example assumes you already have this MachineLearningRegistryModelContainerResource created on azure + // for more information of creating MachineLearningRegistryModelContainerResource, please refer to the document of MachineLearningRegistryModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "testrg123"; string registryName = "registry123"; string modelName = "testContainer"; - ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); - RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + ResourceIdentifier machineLearningRegistryModelContainerResourceId = MachineLearningRegistryModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + MachineLearningRegistryModelContainerResource machineLearningRegistryModelContainer = client.GetMachineLearningRegistryModelContainerResource(machineLearningRegistryModelContainerResourceId); // invoke the operation MachineLearningModelContainerData data = new MachineLearningModelContainerData(new MachineLearningModelContainerProperties() @@ -110,8 +110,8 @@ public async Task Update_CreateOrUpdateRegistryModelContainer() ["tag2"] = "value2", }, }); - ArmOperation lro = await registryModel.UpdateAsync(WaitUntil.Completed, data); - RegistryModelResource result = lro.Value; + ArmOperation lro = await machineLearningRegistryModelContainer.UpdateAsync(WaitUntil.Completed, data); + MachineLearningRegistryModelContainerResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionCollection.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionCollection.cs index 776940ad708c..dd1834edf602 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryModelVersionCollection + public partial class Sample_MachineLearningRegistryModelVersionCollection { // List Registry Model Version. [NUnit.Framework.Test] @@ -31,21 +31,21 @@ public async Task GetAll_ListRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelResource created on azure - // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + // this example assumes you already have this MachineLearningRegistryModelContainerResource created on azure + // for more information of creating MachineLearningRegistryModelContainerResource, please refer to the document of MachineLearningRegistryModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; - ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); - RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + ResourceIdentifier machineLearningRegistryModelContainerResourceId = MachineLearningRegistryModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + MachineLearningRegistryModelContainerResource machineLearningRegistryModelContainer = client.GetMachineLearningRegistryModelContainerResource(machineLearningRegistryModelContainerResourceId); - // get the collection of this RegistryModelVersionResource - RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + // get the collection of this MachineLearningRegistryModelVersionResource + MachineLearningRegistryModelVersionCollection collection = machineLearningRegistryModelContainer.GetMachineLearningRegistryModelVersions(); // invoke the operation and iterate over the result - RegistryModelVersionCollectionGetAllOptions options = new RegistryModelVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Version = "string", Description = "string", Tags = "string", Properties = "string" }; - await foreach (RegistryModelVersionResource item in collection.GetAllAsync(options)) + MachineLearningRegistryModelVersionCollectionGetAllOptions options = new MachineLearningRegistryModelVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Version = "string", Description = "string", Tags = "string", Properties = "string" }; + await foreach (MachineLearningRegistryModelVersionResource item in collection.GetAllAsync(options)) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -70,21 +70,21 @@ public async Task Get_GetRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelResource created on azure - // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + // this example assumes you already have this MachineLearningRegistryModelContainerResource created on azure + // for more information of creating MachineLearningRegistryModelContainerResource, please refer to the document of MachineLearningRegistryModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; - ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); - RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + ResourceIdentifier machineLearningRegistryModelContainerResourceId = MachineLearningRegistryModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + MachineLearningRegistryModelContainerResource machineLearningRegistryModelContainer = client.GetMachineLearningRegistryModelContainerResource(machineLearningRegistryModelContainerResourceId); - // get the collection of this RegistryModelVersionResource - RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + // get the collection of this MachineLearningRegistryModelVersionResource + MachineLearningRegistryModelVersionCollection collection = machineLearningRegistryModelContainer.GetMachineLearningRegistryModelVersions(); // invoke the operation string version = "string"; - RegistryModelVersionResource result = await collection.GetAsync(version); + MachineLearningRegistryModelVersionResource result = await collection.GetAsync(version); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -106,17 +106,17 @@ public async Task Exists_GetRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelResource created on azure - // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + // this example assumes you already have this MachineLearningRegistryModelContainerResource created on azure + // for more information of creating MachineLearningRegistryModelContainerResource, please refer to the document of MachineLearningRegistryModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; - ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); - RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + ResourceIdentifier machineLearningRegistryModelContainerResourceId = MachineLearningRegistryModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + MachineLearningRegistryModelContainerResource machineLearningRegistryModelContainer = client.GetMachineLearningRegistryModelContainerResource(machineLearningRegistryModelContainerResourceId); - // get the collection of this RegistryModelVersionResource - RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + // get the collection of this MachineLearningRegistryModelVersionResource + MachineLearningRegistryModelVersionCollection collection = machineLearningRegistryModelContainer.GetMachineLearningRegistryModelVersions(); // invoke the operation string version = "string"; @@ -138,22 +138,22 @@ public async Task GetIfExists_GetRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelResource created on azure - // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + // this example assumes you already have this MachineLearningRegistryModelContainerResource created on azure + // for more information of creating MachineLearningRegistryModelContainerResource, please refer to the document of MachineLearningRegistryModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; - ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); - RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + ResourceIdentifier machineLearningRegistryModelContainerResourceId = MachineLearningRegistryModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + MachineLearningRegistryModelContainerResource machineLearningRegistryModelContainer = client.GetMachineLearningRegistryModelContainerResource(machineLearningRegistryModelContainerResourceId); - // get the collection of this RegistryModelVersionResource - RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + // get the collection of this MachineLearningRegistryModelVersionResource + MachineLearningRegistryModelVersionCollection collection = machineLearningRegistryModelContainer.GetMachineLearningRegistryModelVersions(); // invoke the operation string version = "string"; - NullableResponse response = await collection.GetIfExistsAsync(version); - RegistryModelVersionResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(version); + MachineLearningRegistryModelVersionResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -182,17 +182,17 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelResource created on azure - // for more information of creating RegistryModelResource, please refer to the document of RegistryModelResource + // this example assumes you already have this MachineLearningRegistryModelContainerResource created on azure + // for more information of creating MachineLearningRegistryModelContainerResource, please refer to the document of MachineLearningRegistryModelContainerResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; - ResourceIdentifier registryModelResourceId = RegistryModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); - RegistryModelResource registryModel = client.GetRegistryModelResource(registryModelResourceId); + ResourceIdentifier machineLearningRegistryModelContainerResourceId = MachineLearningRegistryModelContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName); + MachineLearningRegistryModelContainerResource machineLearningRegistryModelContainer = client.GetMachineLearningRegistryModelContainerResource(machineLearningRegistryModelContainerResourceId); - // get the collection of this RegistryModelVersionResource - RegistryModelVersionCollection collection = registryModel.GetRegistryModelVersions(); + // get the collection of this MachineLearningRegistryModelVersionResource + MachineLearningRegistryModelVersionCollection collection = machineLearningRegistryModelContainer.GetMachineLearningRegistryModelVersions(); // invoke the operation string version = "string"; @@ -221,8 +221,8 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryModelVersion() ["string"] = "string", }, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); - RegistryModelVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, version, data); + MachineLearningRegistryModelVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs index 39030eb612af..fbe036252019 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryModelVersionResource + public partial class Sample_MachineLearningRegistryModelVersionResource { // Delete Registry Model Version. [NUnit.Framework.Test] @@ -31,18 +31,18 @@ public async Task Delete_DeleteRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelVersionResource created on azure - // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + // this example assumes you already have this MachineLearningRegistryModelVersionResource created on azure + // for more information of creating MachineLearningRegistryModelVersionResource, please refer to the document of MachineLearningRegistryModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; string version = "string"; - ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); - RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + ResourceIdentifier machineLearningRegistryModelVersionResourceId = MachineLearningRegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + MachineLearningRegistryModelVersionResource machineLearningRegistryModelVersion = client.GetMachineLearningRegistryModelVersionResource(machineLearningRegistryModelVersionResourceId); // invoke the operation - await registryModelVersion.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistryModelVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -60,18 +60,18 @@ public async Task Get_GetRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelVersionResource created on azure - // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + // this example assumes you already have this MachineLearningRegistryModelVersionResource created on azure + // for more information of creating MachineLearningRegistryModelVersionResource, please refer to the document of MachineLearningRegistryModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; string version = "string"; - ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); - RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + ResourceIdentifier machineLearningRegistryModelVersionResourceId = MachineLearningRegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + MachineLearningRegistryModelVersionResource machineLearningRegistryModelVersion = client.GetMachineLearningRegistryModelVersionResource(machineLearningRegistryModelVersionResourceId); // invoke the operation - RegistryModelVersionResource result = await registryModelVersion.GetAsync(); + MachineLearningRegistryModelVersionResource result = await machineLearningRegistryModelVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -93,15 +93,15 @@ public async Task Update_CreateOrUpdateRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelVersionResource created on azure - // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + // this example assumes you already have this MachineLearningRegistryModelVersionResource created on azure + // for more information of creating MachineLearningRegistryModelVersionResource, please refer to the document of MachineLearningRegistryModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; string version = "string"; - ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); - RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + ResourceIdentifier machineLearningRegistryModelVersionResourceId = MachineLearningRegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + MachineLearningRegistryModelVersionResource machineLearningRegistryModelVersion = client.GetMachineLearningRegistryModelVersionResource(machineLearningRegistryModelVersionResourceId); // invoke the operation MachineLearningModelVersionData data = new MachineLearningModelVersionData(new MachineLearningModelVersionProperties() @@ -129,8 +129,8 @@ public async Task Update_CreateOrUpdateRegistryModelVersion() ["string"] = "string", }, }); - ArmOperation lro = await registryModelVersion.UpdateAsync(WaitUntil.Completed, data); - RegistryModelVersionResource result = lro.Value; + ArmOperation lro = await machineLearningRegistryModelVersion.UpdateAsync(WaitUntil.Completed, data); + MachineLearningRegistryModelVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -152,15 +152,15 @@ public async Task Package_PackageRegistryModelVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelVersionResource created on azure - // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + // this example assumes you already have this MachineLearningRegistryModelVersionResource created on azure + // for more information of creating MachineLearningRegistryModelVersionResource, please refer to the document of MachineLearningRegistryModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "my-aml-registry"; string modelName = "string"; string version = "string"; - ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); - RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + ResourceIdentifier machineLearningRegistryModelVersionResourceId = MachineLearningRegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + MachineLearningRegistryModelVersionResource machineLearningRegistryModelVersion = client.GetMachineLearningRegistryModelVersionResource(machineLearningRegistryModelVersionResourceId); // invoke the operation PackageRequest body = new PackageRequest(new AzureMLBatchInferencingServer() @@ -197,7 +197,7 @@ public async Task Package_PackageRegistryModelVersion() ["string"] = "string", }, }; - ArmOperation lro = await registryModelVersion.PackageAsync(WaitUntil.Completed, body); + ArmOperation lro = await machineLearningRegistryModelVersion.PackageAsync(WaitUntil.Completed, body); PackageResponse result = lro.Value; Console.WriteLine($"Succeeded: {result}"); @@ -216,15 +216,15 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadReg // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryModelVersionResource created on azure - // for more information of creating RegistryModelVersionResource, please refer to the document of RegistryModelVersionResource + // this example assumes you already have this MachineLearningRegistryModelVersionResource created on azure + // for more information of creating MachineLearningRegistryModelVersionResource, please refer to the document of MachineLearningRegistryModelVersionResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "registryName"; string modelName = "string"; string version = "string"; - ResourceIdentifier registryModelVersionResourceId = RegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); - RegistryModelVersionResource registryModelVersion = client.GetRegistryModelVersionResource(registryModelVersionResourceId); + ResourceIdentifier machineLearningRegistryModelVersionResourceId = MachineLearningRegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version); + MachineLearningRegistryModelVersionResource machineLearningRegistryModelVersion = client.GetMachineLearningRegistryModelVersionResource(machineLearningRegistryModelVersionResourceId); // invoke the operation PendingUploadRequestDto body = new PendingUploadRequestDto() @@ -232,7 +232,7 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadReg PendingUploadId = "string", PendingUploadType = PendingUploadType.None, }; - PendingUploadResponseDto result = await registryModelVersion.CreateOrGetStartPendingUploadAsync(body); + PendingUploadResponseDto result = await machineLearningRegistryModelVersion.CreateOrGetStartPendingUploadAsync(body); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs similarity index 74% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs index 56cb0777c199..80c8ac66f12a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RegistryResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_RegistryResource + public partial class Sample_MachineLearningRegistryResource { // List registries by subscription. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetRegistries_ListRegistriesBySubscription() + public async Task GetMachineLearningRegistries_ListRegistriesBySubscription() { // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/listBySubscription.json // this example is just showing the usage of "Registries_ListBySubscription" operation, for the dependent resources, they will have to be created separately. @@ -40,11 +40,11 @@ public async Task GetRegistries_ListRegistriesBySubscription() SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (RegistryResource item in subscriptionResource.GetRegistriesAsync()) + await foreach (MachineLearningRegistryResource item in subscriptionResource.GetMachineLearningRegistriesAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - RegistryData resourceData = item.Data; + MachineLearningRegistryData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -65,16 +65,16 @@ public async Task Delete_DeleteRegistry() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "string"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); // invoke the operation - await registry.DeleteAsync(WaitUntil.Completed); + await machineLearningRegistry.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -92,20 +92,20 @@ public async Task Get_GetRegistryWithSystemCreatedAccounts() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "string"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); // invoke the operation - RegistryResource result = await registry.GetAsync(); + MachineLearningRegistryResource result = await machineLearningRegistry.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; + MachineLearningRegistryData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -123,16 +123,16 @@ public async Task Update_UpdateRegistryWithSystemCreatedAccounts() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "string"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); // invoke the operation - RegistryPatch patch = new RegistryPatch() + MachineLearningRegistryPatch patch = new MachineLearningRegistryPatch() { Identity = new ManagedServiceIdentity("SystemAssigned") { @@ -153,11 +153,11 @@ public async Task Update_UpdateRegistryWithSystemCreatedAccounts() { }, }; - RegistryResource result = await registry.UpdateAsync(patch); + MachineLearningRegistryResource result = await machineLearningRegistry.UpdateAsync(patch); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; + MachineLearningRegistryData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -175,16 +175,16 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this RegistryResource created on azure - // for more information of creating RegistryResource, please refer to the document of RegistryResource + // this example assumes you already have this MachineLearningRegistryResource created on azure + // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string registryName = "string"; - ResourceIdentifier registryResourceId = RegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - RegistryResource registry = client.GetRegistryResource(registryResourceId); + ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); + MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); // invoke the operation - RegistryData data = new RegistryData(new AzureLocation("string")) + MachineLearningRegistryData data = new MachineLearningRegistryData(new AzureLocation("string")) { Identity = new ManagedServiceIdentity("None") { @@ -266,12 +266,12 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() { }, }; - ArmOperation lro = await registry.RemoveRegionsAsync(WaitUntil.Completed, data); - RegistryResource result = lro.Value; + ArmOperation lro = await machineLearningRegistry.RemoveRegionsAsync(WaitUntil.Completed, data); + MachineLearningRegistryResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - RegistryData resourceData = result.Data; + MachineLearningRegistryData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceResource.cs index 3989f0364b74..05ae0239a999 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningWorkspaceResource.cs @@ -35,7 +35,7 @@ public partial class MachineLearningWorkspaceResource : ArmResource /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. [EditorBrowsable(EditorBrowsableState.Never)] - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken) => await DeleteAsync(waitUntil, null, cancellationToken).ConfigureAwait(false); /// @@ -54,7 +54,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. [EditorBrowsable(EditorBrowsableState.Never)] - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken) => Delete(waitUntil, null, cancellationToken); } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs index 68156ceb0953..9fabefce25ed 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs @@ -724,16 +724,16 @@ public static MachineLearningDatastoreProperties MachineLearningDatastorePropert return new MachineLearningDatastoreProperties(description, properties, tags, credentials, datastoreType, intellectualProperty, isDefault); } - /// Initializes a new instance of FeaturesetContainerData. + /// Initializes a new instance of MachineLearningFeatureSetContainerData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static FeaturesetContainerData FeaturesetContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturesetContainerProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeatureSetContainerData MachineLearningFeatureSetContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturesetContainerProperties properties = null) { - return new FeaturesetContainerData(id, name, resourceType, systemData, properties); + return new MachineLearningFeatureSetContainerData(id, name, resourceType, systemData, properties); } /// Initializes a new instance of FeaturesetContainerProperties. @@ -753,28 +753,28 @@ public static FeaturesetContainerProperties FeaturesetContainerProperties(string return new FeaturesetContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); } - /// Initializes a new instance of FeatureData. + /// Initializes a new instance of MachineLearningFeatureData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static FeatureData FeatureData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeatureProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeatureData MachineLearningFeatureData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeatureProperties properties = null) { - return new FeatureData(id, name, resourceType, systemData, properties); + return new MachineLearningFeatureData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of FeaturesetVersionData. + /// Initializes a new instance of MachineLearningFeatureSetVersionData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static FeaturesetVersionData FeaturesetVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturesetVersionProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeatureSetVersionData MachineLearningFeatureSetVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturesetVersionProperties properties = null) { - return new FeaturesetVersionData(id, name, resourceType, systemData, properties); + return new MachineLearningFeatureSetVersionData(id, name, resourceType, systemData, properties); } /// Initializes a new instance of FeaturesetVersionProperties. @@ -817,16 +817,16 @@ public static FeaturesetJob FeaturesetJob(DateTimeOffset? createdOn = null, stri return new FeaturesetJob(createdOn, displayName, duration, experimentId, featureWindow, jobId, status, tags, featurestoreJobType); } - /// Initializes a new instance of FeaturestoreEntityContainerData. + /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static FeaturestoreEntityContainerData FeaturestoreEntityContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturestoreEntityContainerProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeatureStoreEntityContainerData MachineLearningFeatureStoreEntityContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturestoreEntityContainerProperties properties = null) { - return new FeaturestoreEntityContainerData(id, name, resourceType, systemData, properties); + return new MachineLearningFeatureStoreEntityContainerData(id, name, resourceType, systemData, properties); } /// Initializes a new instance of FeaturestoreEntityContainerProperties. @@ -846,16 +846,16 @@ public static FeaturestoreEntityContainerProperties FeaturestoreEntityContainerP return new FeaturestoreEntityContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); } - /// Initializes a new instance of FeaturestoreEntityVersionData. + /// Initializes a new instance of MachineLearningFeaturestoreEntityVersionData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static FeaturestoreEntityVersionData FeaturestoreEntityVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturestoreEntityVersionProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeaturestoreEntityVersionData MachineLearningFeaturestoreEntityVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturestoreEntityVersionProperties properties = null) { - return new FeaturestoreEntityVersionData(id, name, resourceType, systemData, properties); + return new MachineLearningFeaturestoreEntityVersionData(id, name, resourceType, systemData, properties); } /// Initializes a new instance of FeaturestoreEntityVersionProperties. @@ -949,16 +949,16 @@ public static MachineLearningJobService MachineLearningJobService(string endpoin return new MachineLearningJobService(endpoint, errorMessage, jobServiceType, nodes, port, properties, status); } - /// Initializes a new instance of LabelingJobData. + /// Initializes a new instance of MachineLearningLabelingJobData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static LabelingJobData LabelingJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, LabelingJobProperties properties = null) + /// A new instance for mocking. + public static MachineLearningLabelingJobData MachineLearningLabelingJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, LabelingJobProperties properties = null) { - return new LabelingJobData(id, name, resourceType, systemData, properties); + return new MachineLearningLabelingJobData(id, name, resourceType, systemData, properties); } /// Initializes a new instance of LabelingJobProperties. @@ -1239,7 +1239,7 @@ public static MachineLearningScheduleProperties MachineLearningSchedulePropertie return new MachineLearningScheduleProperties(description, properties, tags, action, displayName, isEnabled, provisioningState, trigger); } - /// Initializes a new instance of RegistryData. + /// Initializes a new instance of MachineLearningRegistryData. /// The id. /// The name. /// The resourceType. @@ -1259,14 +1259,14 @@ public static MachineLearningScheduleProperties MachineLearningSchedulePropertie /// Possible values: "Enabled" or "Disabled" /// /// Details of each region the registry is in. - /// A new instance for mocking. - public static RegistryData RegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, Uri mlFlowRegistryUri = null, IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null) + /// A new instance for mocking. + public static MachineLearningRegistryData MachineLearningRegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, Uri mlFlowRegistryUri = null, IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); regionDetails ??= new List(); - return new RegistryData(id, name, resourceType, systemData, tags, location, identity, kind, sku, discoveryUri, intellectualPropertyPublisher, managedResourceId != null ? new ArmResourceId(managedResourceId) : null, mlFlowRegistryUri, privateEndpointConnections?.ToList(), publicNetworkAccess, regionDetails?.ToList()); + return new MachineLearningRegistryData(id, name, resourceType, systemData, tags, location, identity, kind, sku, discoveryUri, intellectualPropertyPublisher, managedResourceId != null ? new ArmResourceId(managedResourceId) : null, mlFlowRegistryUri, privateEndpointConnections?.ToList(), publicNetworkAccess, regionDetails?.ToList()); } /// Initializes a new instance of PrivateEndpointResource. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs index 0a01815a2273..d0505d9aaa27 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs @@ -69,20 +69,20 @@ public static MachineLearningComputeResource GetMachineLearningComputeResource(t } #endregion - #region RegistryCodeResource + #region MachineLearningRegistryCodeContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryCodeResource GetRegistryCodeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryCodeContainerResource GetMachineLearningRegistryCodeContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryCodeResource.ValidateResourceId(id); - return new RegistryCodeResource(client, id); + MachineLearningRegistryCodeContainerResource.ValidateResourceId(id); + return new MachineLearningRegistryCodeContainerResource(client, id); } ); } @@ -107,20 +107,20 @@ public static MachineLearningCodeContainerResource GetMachineLearningCodeContain } #endregion - #region RegistryCodeVersionResource + #region MachineLearningRegistryCodeVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryCodeVersionResource GetRegistryCodeVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryCodeVersionResource GetMachineLearningRegistryCodeVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryCodeVersionResource.ValidateResourceId(id); - return new RegistryCodeVersionResource(client, id); + MachineLearningRegistryCodeVersionResource.ValidateResourceId(id); + return new MachineLearningRegistryCodeVersionResource(client, id); } ); } @@ -145,20 +145,20 @@ public static MachineLearningCodeVersionResource GetMachineLearningCodeVersionRe } #endregion - #region RegistryComponentResource + #region MachineLearninRegistryComponentContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryComponentResource GetRegistryComponentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearninRegistryComponentContainerResource GetMachineLearninRegistryComponentContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryComponentResource.ValidateResourceId(id); - return new RegistryComponentResource(client, id); + MachineLearninRegistryComponentContainerResource.ValidateResourceId(id); + return new MachineLearninRegistryComponentContainerResource(client, id); } ); } @@ -183,20 +183,20 @@ public static MachineLearningComponentContainerResource GetMachineLearningCompon } #endregion - #region RegistryComponentVersionResource + #region MachineLearninRegistryComponentVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryComponentVersionResource GetRegistryComponentVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearninRegistryComponentVersionResource GetMachineLearninRegistryComponentVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryComponentVersionResource.ValidateResourceId(id); - return new RegistryComponentVersionResource(client, id); + MachineLearninRegistryComponentVersionResource.ValidateResourceId(id); + return new MachineLearninRegistryComponentVersionResource(client, id); } ); } @@ -221,20 +221,20 @@ public static MachineLearningComponentVersionResource GetMachineLearningComponen } #endregion - #region RegistryDataResource + #region MachineLearningRegistryDataContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryDataResource GetRegistryDataResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryDataContainerResource GetMachineLearningRegistryDataContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryDataResource.ValidateResourceId(id); - return new RegistryDataResource(client, id); + MachineLearningRegistryDataContainerResource.ValidateResourceId(id); + return new MachineLearningRegistryDataContainerResource(client, id); } ); } @@ -259,20 +259,20 @@ public static MachineLearningDataContainerResource GetMachineLearningDataContain } #endregion - #region RegistryDataVersionResource + #region MachineLearningRegistryDataVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryDataVersionResource GetRegistryDataVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryDataVersionResource GetMachineLearningRegistryDataVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryDataVersionResource.ValidateResourceId(id); - return new RegistryDataVersionResource(client, id); + MachineLearningRegistryDataVersionResource.ValidateResourceId(id); + return new MachineLearningRegistryDataVersionResource(client, id); } ); } @@ -297,20 +297,20 @@ public static MachineLearningDataVersionResource GetMachineLearningDataVersionRe } #endregion - #region RegistryEnvironmentResource + #region MachineLearningRegistryEnvironmentContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryEnvironmentResource GetRegistryEnvironmentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryEnvironmentContainerResource GetMachineLearningRegistryEnvironmentContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryEnvironmentResource.ValidateResourceId(id); - return new RegistryEnvironmentResource(client, id); + MachineLearningRegistryEnvironmentContainerResource.ValidateResourceId(id); + return new MachineLearningRegistryEnvironmentContainerResource(client, id); } ); } @@ -335,20 +335,20 @@ public static MachineLearningEnvironmentContainerResource GetMachineLearningEnvi } #endregion - #region RegistryEnvironmentVersionResource + #region MachineLearningRegistryEnvironmentVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryEnvironmentVersionResource GetRegistryEnvironmentVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryEnvironmentVersionResource GetMachineLearningRegistryEnvironmentVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryEnvironmentVersionResource.ValidateResourceId(id); - return new RegistryEnvironmentVersionResource(client, id); + MachineLearningRegistryEnvironmentVersionResource.ValidateResourceId(id); + return new MachineLearningRegistryEnvironmentVersionResource(client, id); } ); } @@ -373,20 +373,20 @@ public static MachineLearningEnvironmentVersionResource GetMachineLearningEnviro } #endregion - #region RegistryModelResource + #region MachineLearningRegistryModelContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryModelResource GetRegistryModelResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryModelContainerResource GetMachineLearningRegistryModelContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryModelResource.ValidateResourceId(id); - return new RegistryModelResource(client, id); + MachineLearningRegistryModelContainerResource.ValidateResourceId(id); + return new MachineLearningRegistryModelContainerResource(client, id); } ); } @@ -411,20 +411,20 @@ public static MachineLearningModelContainerResource GetMachineLearningModelConta } #endregion - #region RegistryModelVersionResource + #region MachineLearningRegistryModelVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryModelVersionResource GetRegistryModelVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryModelVersionResource GetMachineLearningRegistryModelVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryModelVersionResource.ValidateResourceId(id); - return new RegistryModelVersionResource(client, id); + MachineLearningRegistryModelVersionResource.ValidateResourceId(id); + return new MachineLearningRegistryModelVersionResource(client, id); } ); } @@ -506,96 +506,96 @@ public static MachineLearningDatastoreResource GetMachineLearningDatastoreResour } #endregion - #region FeaturesetContainerResource + #region MachineLearningFeatureSetContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static FeaturesetContainerResource GetFeaturesetContainerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningFeatureSetContainerResource GetMachineLearningFeatureSetContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - FeaturesetContainerResource.ValidateResourceId(id); - return new FeaturesetContainerResource(client, id); + MachineLearningFeatureSetContainerResource.ValidateResourceId(id); + return new MachineLearningFeatureSetContainerResource(client, id); } ); } #endregion - #region FeatureResource + #region MachineLearningFeatureResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static FeatureResource GetFeatureResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningFeatureResource GetMachineLearningFeatureResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - FeatureResource.ValidateResourceId(id); - return new FeatureResource(client, id); + MachineLearningFeatureResource.ValidateResourceId(id); + return new MachineLearningFeatureResource(client, id); } ); } #endregion - #region FeaturesetVersionResource + #region MachineLearningFeatureSetVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static FeaturesetVersionResource GetFeaturesetVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningFeatureSetVersionResource GetMachineLearningFeatureSetVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - FeaturesetVersionResource.ValidateResourceId(id); - return new FeaturesetVersionResource(client, id); + MachineLearningFeatureSetVersionResource.ValidateResourceId(id); + return new MachineLearningFeatureSetVersionResource(client, id); } ); } #endregion - #region FeaturestoreEntityContainerResource + #region MachineLearningFeatureStoreEntityContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static FeaturestoreEntityContainerResource GetFeaturestoreEntityContainerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningFeatureStoreEntityContainerResource GetMachineLearningFeatureStoreEntityContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - FeaturestoreEntityContainerResource.ValidateResourceId(id); - return new FeaturestoreEntityContainerResource(client, id); + MachineLearningFeatureStoreEntityContainerResource.ValidateResourceId(id); + return new MachineLearningFeatureStoreEntityContainerResource(client, id); } ); } #endregion - #region FeaturestoreEntityVersionResource + #region MachineLearningFeaturestoreEntityVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static FeaturestoreEntityVersionResource GetFeaturestoreEntityVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningFeaturestoreEntityVersionResource GetMachineLearningFeaturestoreEntityVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - FeaturestoreEntityVersionResource.ValidateResourceId(id); - return new FeaturestoreEntityVersionResource(client, id); + MachineLearningFeaturestoreEntityVersionResource.ValidateResourceId(id); + return new MachineLearningFeaturestoreEntityVersionResource(client, id); } ); } @@ -620,20 +620,20 @@ public static MachineLearningJobResource GetMachineLearningJobResource(this ArmC } #endregion - #region LabelingJobResource + #region MachineLearningLabelingJobResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static LabelingJobResource GetLabelingJobResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningLabelingJobResource GetMachineLearningLabelingJobResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - LabelingJobResource.ValidateResourceId(id); - return new LabelingJobResource(client, id); + MachineLearningLabelingJobResource.ValidateResourceId(id); + return new MachineLearningLabelingJobResource(client, id); } ); } @@ -696,20 +696,20 @@ public static MachineLearningScheduleResource GetMachineLearningScheduleResource } #endregion - #region RegistryResource + #region MachineLearningRegistryResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RegistryResource GetRegistryResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningRegistryResource GetMachineLearningRegistryResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RegistryResource.ValidateResourceId(id); - return new RegistryResource(client, id); + MachineLearningRegistryResource.ValidateResourceId(id); + return new MachineLearningRegistryResource(client, id); } ); } @@ -791,12 +791,12 @@ public static MachineLearningPrivateEndpointConnectionResource GetMachineLearnin } #endregion - /// Gets a collection of RegistryResources in the ResourceGroupResource. + /// Gets a collection of MachineLearningRegistryResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of RegistryResources and their operations over a RegistryResource. - public static RegistryCollection GetRegistries(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of MachineLearningRegistryResources and their operations over a MachineLearningRegistryResource. + public static MachineLearningRegistryCollection GetMachineLearningRegistries(this ResourceGroupResource resourceGroupResource) { - return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetRegistries(); + return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetMachineLearningRegistries(); } /// @@ -818,9 +818,9 @@ public static RegistryCollection GetRegistries(this ResourceGroupResource resour /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static async Task> GetRegistryAsync(this ResourceGroupResource resourceGroupResource, string registryName, CancellationToken cancellationToken = default) + public static async Task> GetMachineLearningRegistryAsync(this ResourceGroupResource resourceGroupResource, string registryName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetRegistries().GetAsync(registryName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetMachineLearningRegistries().GetAsync(registryName, cancellationToken).ConfigureAwait(false); } /// @@ -842,9 +842,9 @@ public static async Task> GetRegistryAsync(this Resou /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static Response GetRegistry(this ResourceGroupResource resourceGroupResource, string registryName, CancellationToken cancellationToken = default) + public static Response GetMachineLearningRegistry(this ResourceGroupResource resourceGroupResource, string registryName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetRegistries().Get(registryName, cancellationToken); + return resourceGroupResource.GetMachineLearningRegistries().Get(registryName, cancellationToken); } /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. @@ -1102,10 +1102,10 @@ public static Pageable GetMachineLearningQuotas(th /// /// The instance the method will execute against. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetRegistriesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetMachineLearningRegistriesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetSubscriptionResourceExtensionClient(subscriptionResource).GetRegistriesAsync(cancellationToken); + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetMachineLearningRegistriesAsync(cancellationToken); } /// @@ -1123,10 +1123,10 @@ public static AsyncPageable GetRegistriesAsync(this Subscripti /// /// The instance the method will execute against. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetRegistries(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetMachineLearningRegistries(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetSubscriptionResourceExtensionClient(subscriptionResource).GetRegistries(cancellationToken); + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetMachineLearningRegistries(cancellationToken); } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index 4d13f156348d..ecfc3a6b3627 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -31,11 +31,11 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of RegistryResources in the ResourceGroupResource. - /// An object representing collection of RegistryResources and their operations over a RegistryResource. - public virtual RegistryCollection GetRegistries() + /// Gets a collection of MachineLearningRegistryResources in the ResourceGroupResource. + /// An object representing collection of MachineLearningRegistryResources and their operations over a MachineLearningRegistryResource. + public virtual MachineLearningRegistryCollection GetMachineLearningRegistries() { - return GetCachedClient(Client => new RegistryCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryCollection(Client, Id)); } /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 864af5027878..e01328541757 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -24,8 +24,8 @@ internal partial class SubscriptionResourceExtensionClient : ArmResource private VirtualMachineSizesRestOperations _virtualMachineSizesRestClient; private ClientDiagnostics _quotasClientDiagnostics; private QuotasRestOperations _quotasRestClient; - private ClientDiagnostics _registryClientDiagnostics; - private RegistriesRestOperations _registryRestClient; + private ClientDiagnostics _machineLearningRegistryRegistriesClientDiagnostics; + private RegistriesRestOperations _machineLearningRegistryRegistriesRestClient; private ClientDiagnostics _machineLearningWorkspaceWorkspacesClientDiagnostics; private WorkspacesRestOperations _machineLearningWorkspaceWorkspacesRestClient; @@ -47,8 +47,8 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie private VirtualMachineSizesRestOperations VirtualMachineSizesRestClient => _virtualMachineSizesRestClient ??= new VirtualMachineSizesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics QuotasClientDiagnostics => _quotasClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); private QuotasRestOperations QuotasRestClient => _quotasRestClient ??= new QuotasRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics RegistryClientDiagnostics => _registryClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryResource.ResourceType.Namespace, Diagnostics); - private RegistriesRestOperations RegistryRestClient => _registryRestClient ??= new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(RegistryResource.ResourceType)); + private ClientDiagnostics MachineLearningRegistryRegistriesClientDiagnostics => _machineLearningRegistryRegistriesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryResource.ResourceType.Namespace, Diagnostics); + private RegistriesRestOperations MachineLearningRegistryRegistriesRestClient => _machineLearningRegistryRegistriesRestClient ??= new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(MachineLearningRegistryResource.ResourceType)); private ClientDiagnostics MachineLearningWorkspaceWorkspacesClientDiagnostics => _machineLearningWorkspaceWorkspacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningWorkspaceResource.ResourceType.Namespace, Diagnostics); private WorkspacesRestOperations MachineLearningWorkspaceWorkspacesRestClient => _machineLearningWorkspaceWorkspacesRestClient ??= new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(MachineLearningWorkspaceResource.ResourceType)); @@ -254,12 +254,12 @@ public virtual Pageable GetMachineLearningQuotas(A /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetRegistriesAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetMachineLearningRegistriesAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => RegistryRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => RegistryRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryResource(Client, RegistryData.DeserializeRegistryData(e)), RegistryClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetRegistries", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningRegistryRegistriesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningRegistryRegistriesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryResource(Client, MachineLearningRegistryData.DeserializeMachineLearningRegistryData(e)), MachineLearningRegistryRegistriesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetMachineLearningRegistries", "value", "nextLink", cancellationToken); } /// @@ -276,12 +276,12 @@ public virtual AsyncPageable GetRegistriesAsync(CancellationTo /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetRegistries(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetMachineLearningRegistries(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => RegistryRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => RegistryRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryResource(Client, RegistryData.DeserializeRegistryData(e)), RegistryClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetRegistries", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningRegistryRegistriesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningRegistryRegistriesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryResource(Client, MachineLearningRegistryData.DeserializeMachineLearningRegistryData(e)), MachineLearningRegistryRegistriesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetMachineLearningRegistries", "value", "nextLink", cancellationToken); } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetContainerOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetContainerOperationSource.cs deleted file mode 100644 index acd7056bb953..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetContainerOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.MachineLearning -{ - internal class FeaturesetContainerOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal FeaturesetContainerOperationSource(ArmClient client) - { - _client = client; - } - - FeaturesetContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = FeaturesetContainerData.DeserializeFeaturesetContainerData(document.RootElement); - return new FeaturesetContainerResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = FeaturesetContainerData.DeserializeFeaturesetContainerData(document.RootElement); - return new FeaturesetContainerResource(_client, data); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetVersionOperationSource.cs deleted file mode 100644 index c26b7a31dd92..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetVersionOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.MachineLearning -{ - internal class FeaturesetVersionOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal FeaturesetVersionOperationSource(ArmClient client) - { - _client = client; - } - - FeaturesetVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = FeaturesetVersionData.DeserializeFeaturesetVersionData(document.RootElement); - return new FeaturesetVersionResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = FeaturesetVersionData.DeserializeFeaturesetVersionData(document.RootElement); - return new FeaturesetVersionResource(_client, data); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityContainerOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityContainerOperationSource.cs deleted file mode 100644 index 4872bfe73d78..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityContainerOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.MachineLearning -{ - internal class FeaturestoreEntityContainerOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal FeaturestoreEntityContainerOperationSource(ArmClient client) - { - _client = client; - } - - FeaturestoreEntityContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(document.RootElement); - return new FeaturestoreEntityContainerResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(document.RootElement); - return new FeaturestoreEntityContainerResource(_client, data); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityVersionOperationSource.cs deleted file mode 100644 index ce5111f557ce..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturestoreEntityVersionOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.MachineLearning -{ - internal class FeaturestoreEntityVersionOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal FeaturestoreEntityVersionOperationSource(ArmClient client) - { - _client = client; - } - - FeaturestoreEntityVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(document.RootElement); - return new FeaturestoreEntityVersionResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(document.RootElement); - return new FeaturestoreEntityVersionResource(_client, data); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/LabelingJobOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/LabelingJobOperationSource.cs deleted file mode 100644 index 569e96fd627d..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/LabelingJobOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.MachineLearning -{ - internal class LabelingJobOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal LabelingJobOperationSource(ArmClient client) - { - _client = client; - } - - LabelingJobResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = LabelingJobData.DeserializeLabelingJobData(document.RootElement); - return new LabelingJobResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = LabelingJobData.DeserializeLabelingJobData(document.RootElement); - return new LabelingJobResource(_client, data); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearninRegistryComponentContainerOperationSource.cs similarity index 53% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearninRegistryComponentContainerOperationSource.cs index 2167a97e8764..788b75a0cd0f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearninRegistryComponentContainerOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryComponentOperationSource : IOperationSource + internal class MachineLearninRegistryComponentContainerOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryComponentOperationSource(ArmClient client) + internal MachineLearninRegistryComponentContainerOperationSource(ArmClient client) { _client = client; } - RegistryComponentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearninRegistryComponentContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(document.RootElement); - return new RegistryComponentResource(_client, data); + return new MachineLearninRegistryComponentContainerResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(document.RootElement); - return new RegistryComponentResource(_client, data); + return new MachineLearninRegistryComponentContainerResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearninRegistryComponentVersionOperationSource.cs similarity index 54% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentVersionOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearninRegistryComponentVersionOperationSource.cs index a5a6c60bcc29..5be3c2c72135 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryComponentVersionOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearninRegistryComponentVersionOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryComponentVersionOperationSource : IOperationSource + internal class MachineLearninRegistryComponentVersionOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryComponentVersionOperationSource(ArmClient client) + internal MachineLearninRegistryComponentVersionOperationSource(ArmClient client) { _client = client; } - RegistryComponentVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearninRegistryComponentVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(document.RootElement); - return new RegistryComponentVersionResource(_client, data); + return new MachineLearninRegistryComponentVersionResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(document.RootElement); - return new RegistryComponentVersionResource(_client, data); + return new MachineLearninRegistryComponentVersionResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetContainerOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetContainerOperationSource.cs new file mode 100644 index 000000000000..22a9bcc5be8e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetContainerOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class MachineLearningFeatureSetContainerOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal MachineLearningFeatureSetContainerOperationSource(ArmClient client) + { + _client = client; + } + + MachineLearningFeatureSetContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningFeatureSetContainerData.DeserializeMachineLearningFeatureSetContainerData(document.RootElement); + return new MachineLearningFeatureSetContainerResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningFeatureSetContainerData.DeserializeMachineLearningFeatureSetContainerData(document.RootElement); + return new MachineLearningFeatureSetContainerResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetVersionOperationSource.cs new file mode 100644 index 000000000000..8fe6ea8cd53c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class MachineLearningFeatureSetVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal MachineLearningFeatureSetVersionOperationSource(ArmClient client) + { + _client = client; + } + + MachineLearningFeatureSetVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningFeatureSetVersionData.DeserializeMachineLearningFeatureSetVersionData(document.RootElement); + return new MachineLearningFeatureSetVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningFeatureSetVersionData.DeserializeMachineLearningFeatureSetVersionData(document.RootElement); + return new MachineLearningFeatureSetVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureStoreEntityContainerOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureStoreEntityContainerOperationSource.cs new file mode 100644 index 000000000000..93a188225904 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureStoreEntityContainerOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class MachineLearningFeatureStoreEntityContainerOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal MachineLearningFeatureStoreEntityContainerOperationSource(ArmClient client) + { + _client = client; + } + + MachineLearningFeatureStoreEntityContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningFeatureStoreEntityContainerData.DeserializeMachineLearningFeatureStoreEntityContainerData(document.RootElement); + return new MachineLearningFeatureStoreEntityContainerResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningFeatureStoreEntityContainerData.DeserializeMachineLearningFeatureStoreEntityContainerData(document.RootElement); + return new MachineLearningFeatureStoreEntityContainerResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeaturestoreEntityVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeaturestoreEntityVersionOperationSource.cs new file mode 100644 index 000000000000..9e9f64fb01c6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeaturestoreEntityVersionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class MachineLearningFeaturestoreEntityVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal MachineLearningFeaturestoreEntityVersionOperationSource(ArmClient client) + { + _client = client; + } + + MachineLearningFeaturestoreEntityVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningFeaturestoreEntityVersionData.DeserializeMachineLearningFeaturestoreEntityVersionData(document.RootElement); + return new MachineLearningFeaturestoreEntityVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningFeaturestoreEntityVersionData.DeserializeMachineLearningFeaturestoreEntityVersionData(document.RootElement); + return new MachineLearningFeaturestoreEntityVersionResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningLabelingJobOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningLabelingJobOperationSource.cs new file mode 100644 index 000000000000..221c7b6f9780 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningLabelingJobOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class MachineLearningLabelingJobOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal MachineLearningLabelingJobOperationSource(ArmClient client) + { + _client = client; + } + + MachineLearningLabelingJobResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningLabelingJobData.DeserializeMachineLearningLabelingJobData(document.RootElement); + return new MachineLearningLabelingJobResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningLabelingJobData.DeserializeMachineLearningLabelingJobData(document.RootElement); + return new MachineLearningLabelingJobResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryCodeContainerOperationSource.cs similarity index 54% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryCodeContainerOperationSource.cs index 1401d36618a5..5e777c925829 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryCodeContainerOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryCodeOperationSource : IOperationSource + internal class MachineLearningRegistryCodeContainerOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryCodeOperationSource(ArmClient client) + internal MachineLearningRegistryCodeContainerOperationSource(ArmClient client) { _client = client; } - RegistryCodeResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearningRegistryCodeContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(document.RootElement); - return new RegistryCodeResource(_client, data); + return new MachineLearningRegistryCodeContainerResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(document.RootElement); - return new RegistryCodeResource(_client, data); + return new MachineLearningRegistryCodeContainerResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryCodeVersionOperationSource.cs similarity index 54% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeVersionOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryCodeVersionOperationSource.cs index bbbd1ff3a688..64eb744820d8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryCodeVersionOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryCodeVersionOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryCodeVersionOperationSource : IOperationSource + internal class MachineLearningRegistryCodeVersionOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryCodeVersionOperationSource(ArmClient client) + internal MachineLearningRegistryCodeVersionOperationSource(ArmClient client) { _client = client; } - RegistryCodeVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearningRegistryCodeVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(document.RootElement); - return new RegistryCodeVersionResource(_client, data); + return new MachineLearningRegistryCodeVersionResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(document.RootElement); - return new RegistryCodeVersionResource(_client, data); + return new MachineLearningRegistryCodeVersionResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryDataContainerOperationSource.cs similarity index 54% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryDataContainerOperationSource.cs index 751763329d13..2926a0e19ea3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryDataContainerOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryDataOperationSource : IOperationSource + internal class MachineLearningRegistryDataContainerOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryDataOperationSource(ArmClient client) + internal MachineLearningRegistryDataContainerOperationSource(ArmClient client) { _client = client; } - RegistryDataResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearningRegistryDataContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(document.RootElement); - return new RegistryDataResource(_client, data); + return new MachineLearningRegistryDataContainerResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(document.RootElement); - return new RegistryDataResource(_client, data); + return new MachineLearningRegistryDataContainerResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryDataVersionOperationSource.cs similarity index 54% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataVersionOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryDataVersionOperationSource.cs index 92975bbed8fc..58b34868fe7b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryDataVersionOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryDataVersionOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryDataVersionOperationSource : IOperationSource + internal class MachineLearningRegistryDataVersionOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryDataVersionOperationSource(ArmClient client) + internal MachineLearningRegistryDataVersionOperationSource(ArmClient client) { _client = client; } - RegistryDataVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearningRegistryDataVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(document.RootElement); - return new RegistryDataVersionResource(_client, data); + return new MachineLearningRegistryDataVersionResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(document.RootElement); - return new RegistryDataVersionResource(_client, data); + return new MachineLearningRegistryDataVersionResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryEnvironmentContainerOperationSource.cs similarity index 53% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryEnvironmentContainerOperationSource.cs index af2e690646ed..cc0de1aa2343 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryEnvironmentContainerOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryEnvironmentOperationSource : IOperationSource + internal class MachineLearningRegistryEnvironmentContainerOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryEnvironmentOperationSource(ArmClient client) + internal MachineLearningRegistryEnvironmentContainerOperationSource(ArmClient client) { _client = client; } - RegistryEnvironmentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearningRegistryEnvironmentContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(document.RootElement); - return new RegistryEnvironmentResource(_client, data); + return new MachineLearningRegistryEnvironmentContainerResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(document.RootElement); - return new RegistryEnvironmentResource(_client, data); + return new MachineLearningRegistryEnvironmentContainerResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryEnvironmentVersionOperationSource.cs similarity index 53% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentVersionOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryEnvironmentVersionOperationSource.cs index fd4912bafd65..7520562223f0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryEnvironmentVersionOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryEnvironmentVersionOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryEnvironmentVersionOperationSource : IOperationSource + internal class MachineLearningRegistryEnvironmentVersionOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryEnvironmentVersionOperationSource(ArmClient client) + internal MachineLearningRegistryEnvironmentVersionOperationSource(ArmClient client) { _client = client; } - RegistryEnvironmentVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearningRegistryEnvironmentVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(document.RootElement); - return new RegistryEnvironmentVersionResource(_client, data); + return new MachineLearningRegistryEnvironmentVersionResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(document.RootElement); - return new RegistryEnvironmentVersionResource(_client, data); + return new MachineLearningRegistryEnvironmentVersionResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryModelContainerOperationSource.cs similarity index 54% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryModelContainerOperationSource.cs index bc1f6d88326e..11df8d8a33b4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryModelContainerOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryModelOperationSource : IOperationSource + internal class MachineLearningRegistryModelContainerOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryModelOperationSource(ArmClient client) + internal MachineLearningRegistryModelContainerOperationSource(ArmClient client) { _client = client; } - RegistryModelResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearningRegistryModelContainerResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(document.RootElement); - return new RegistryModelResource(_client, data); + return new MachineLearningRegistryModelContainerResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(document.RootElement); - return new RegistryModelResource(_client, data); + return new MachineLearningRegistryModelContainerResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelVersionOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryModelVersionOperationSource.cs similarity index 54% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelVersionOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryModelVersionOperationSource.cs index 6e13458e76d0..c64978f7319e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryModelVersionOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryModelVersionOperationSource.cs @@ -14,27 +14,27 @@ namespace Azure.ResourceManager.MachineLearning { - internal class RegistryModelVersionOperationSource : IOperationSource + internal class MachineLearningRegistryModelVersionOperationSource : IOperationSource { private readonly ArmClient _client; - internal RegistryModelVersionOperationSource(ArmClient client) + internal MachineLearningRegistryModelVersionOperationSource(ArmClient client) { _client = client; } - RegistryModelVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + MachineLearningRegistryModelVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(document.RootElement); - return new RegistryModelVersionResource(_client, data); + return new MachineLearningRegistryModelVersionResource(_client, data); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); var data = MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(document.RootElement); - return new RegistryModelVersionResource(_client, data); + return new MachineLearningRegistryModelVersionResource(_client, data); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryOperationSource.cs new file mode 100644 index 000000000000..e033902dd5fc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningRegistryOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class MachineLearningRegistryOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal MachineLearningRegistryOperationSource(ArmClient client) + { + _client = client; + } + + MachineLearningRegistryResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningRegistryData.DeserializeMachineLearningRegistryData(document.RootElement); + return new MachineLearningRegistryResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningRegistryData.DeserializeMachineLearningRegistryData(document.RootElement); + return new MachineLearningRegistryResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryOperationSource.cs deleted file mode 100644 index dee4124e952f..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/RegistryOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.MachineLearning -{ - internal class RegistryOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal RegistryOperationSource(ArmClient client) - { - _client = client; - } - - RegistryResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = RegistryData.DeserializeRegistryData(document.RootElement); - return new RegistryResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = RegistryData.DeserializeRegistryData(document.RootElement); - return new RegistryResource(_client, data); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentContainerCollection.cs similarity index 59% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentContainerCollection.cs index a235a301b456..bbe00f2669fe 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentContainerCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryComponents method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearninRegistryComponentContainers method from an instance of . /// - public partial class RegistryComponentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearninRegistryComponentContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryComponentRegistryComponentContainersClientDiagnostics; - private readonly RegistryComponentContainersRestOperations _registryComponentRegistryComponentContainersRestClient; + private readonly ClientDiagnostics _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics; + private readonly RegistryComponentContainersRestOperations _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryComponentCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearninRegistryComponentContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryComponentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearninRegistryComponentContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryComponentRegistryComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryComponentResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryComponentResource.ResourceType, out string registryComponentRegistryComponentContainersApiVersion); - _registryComponentRegistryComponentContainersRestClient = new RegistryComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryComponentRegistryComponentContainersApiVersion); + _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearninRegistryComponentContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearninRegistryComponentContainerResource.ResourceType, out string machineLearninRegistryComponentContainerRegistryComponentContainersApiVersion); + _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient = new RegistryComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearninRegistryComponentContainerRegistryComponentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -49,8 +49,8 @@ internal RegistryComponentCollection(ArmClient client, ResourceIdentifier id) : internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryResource.ResourceType), nameof(id)); } /// @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string componentName, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string componentName, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.CreateOrUpdate"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryComponentRegistryComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryComponentOperationSource(Client), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearninRegistryComponentContainerOperationSource(Client), _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics, Pipeline, _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> CreateOrUpdat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string componentName, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string componentName, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.CreateOrUpdate"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryComponentRegistryComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryComponentOperationSource(Client), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearninRegistryComponentContainerOperationSource(Client), _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics, Pipeline, _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string componentName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string componentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.Get"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerCollection.Get"); scope.Start(); try { - var response = await _registryComponentRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken).ConfigureAwait(false); + var response = await _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync(string c /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string componentName, CancellationToken cancellationToken = default) + public virtual Response Get(string componentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.Get"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerCollection.Get"); scope.Start(); try { - var response = _registryComponentRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken); + var response = _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -224,12 +224,12 @@ public virtual Response Get(string componentName, Can /// /// Continuation token for pagination. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryComponentRegistryComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryComponentRegistryComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryComponentResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, "RegistryComponentCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearninRegistryComponentContainerResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics, Pipeline, "MachineLearninRegistryComponentContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -247,12 +247,12 @@ public virtual AsyncPageable GetAllAsync(string skip /// /// Continuation token for pagination. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryComponentRegistryComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryComponentRegistryComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryComponentResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, "RegistryComponentCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearninRegistryComponentContainerResource(Client, MachineLearningComponentContainerData.DeserializeMachineLearningComponentContainerData(e)), _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics, Pipeline, "MachineLearninRegistryComponentContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -276,11 +276,11 @@ public virtual async Task> ExistsAsync(string componentName, Canc { Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.Exists"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerCollection.Exists"); scope.Start(); try { - var response = await _registryComponentRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -311,11 +311,11 @@ public virtual Response Exists(string componentName, CancellationToken can { Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.Exists"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerCollection.Exists"); scope.Start(); try { - var response = _registryComponentRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken); + var response = _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -342,18 +342,18 @@ public virtual Response Exists(string componentName, CancellationToken can /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string componentName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string componentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.GetIfExists"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _registryComponentRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -379,18 +379,18 @@ public virtual async Task> GetIfExis /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string componentName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string componentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(componentName, nameof(componentName)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentCollection.GetIfExists"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerCollection.GetIfExists"); scope.Start(); try { - var response = _registryComponentRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken); + var response = _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -399,7 +399,7 @@ public virtual NullableResponse GetIfExists(string co } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -409,7 +409,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentContainerResource.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentContainerResource.cs index 3831553f5be4..02bdeb110e1a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryComponent along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryComponentResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryComponent method. + /// A Class representing a MachineLearninRegistryComponentContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearninRegistryComponentContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearninRegistryComponentContainer method. /// - public partial class RegistryComponentResource : ArmResource + public partial class MachineLearninRegistryComponentContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string componentName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryComponentRegistryComponentContainersClientDiagnostics; - private readonly RegistryComponentContainersRestOperations _registryComponentRegistryComponentContainersRestClient; + private readonly ClientDiagnostics _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics; + private readonly RegistryComponentContainersRestOperations _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient; private readonly MachineLearningComponentContainerData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryComponentResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearninRegistryComponentContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryComponentResource(ArmClient client, MachineLearningComponentContainerData data) : this(client, data.Id) + internal MachineLearninRegistryComponentContainerResource(ArmClient client, MachineLearningComponentContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryComponentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearninRegistryComponentContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryComponentRegistryComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryComponentRegistryComponentContainersApiVersion); - _registryComponentRegistryComponentContainersRestClient = new RegistryComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryComponentRegistryComponentContainersApiVersion); + _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearninRegistryComponentContainerRegistryComponentContainersApiVersion); + _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient = new RegistryComponentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearninRegistryComponentContainerRegistryComponentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of RegistryComponentVersionResources in the RegistryComponent. - /// An object representing collection of RegistryComponentVersionResources and their operations over a RegistryComponentVersionResource. - public virtual RegistryComponentVersionCollection GetRegistryComponentVersions() + /// Gets a collection of MachineLearninRegistryComponentVersionResources in the MachineLearninRegistryComponentContainer. + /// An object representing collection of MachineLearninRegistryComponentVersionResources and their operations over a MachineLearninRegistryComponentVersionResource. + public virtual MachineLearninRegistryComponentVersionCollection GetMachineLearninRegistryComponentVersions() { - return GetCachedClient(Client => new RegistryComponentVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearninRegistryComponentVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual RegistryComponentVersionCollection GetRegistryComponentVersions() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryComponentVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearninRegistryComponentVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetRegistryComponentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearninRegistryComponentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetRegistr /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryComponentVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearninRegistryComponentVersion(string version, CancellationToken cancellationToken = default) { - return GetRegistryComponentVersions().Get(version, cancellationToken); + return GetMachineLearninRegistryComponentVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetRegistryComponentVe /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Get"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerResource.Get"); scope.Start(); try { - var response = await _registryComponentRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cancella /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Get"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerResource.Get"); scope.Start(); try { - var response = _registryComponentRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,12 +220,12 @@ public virtual Response Get(CancellationToken cancell /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Delete"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerResource.Delete"); scope.Start(); try { - var response = await _registryComponentRegistryComponentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics, Pipeline, _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,12 +254,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Delete"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerResource.Delete"); scope.Start(); try { - var response = _registryComponentRegistryComponentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics, Pipeline, _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Update"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerResource.Update"); scope.Start(); try { - var response = await _registryComponentRegistryComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryComponentOperationSource(Client), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearninRegistryComponentContainerOperationSource(Client), _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics, Pipeline, _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync(W /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryComponentRegistryComponentContainersClientDiagnostics.CreateScope("RegistryComponentResource.Update"); + using var scope = _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics.CreateScope("MachineLearninRegistryComponentContainerResource.Update"); scope.Start(); try { - var response = _registryComponentRegistryComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryComponentOperationSource(Client), _registryComponentRegistryComponentContainersClientDiagnostics, Pipeline, _registryComponentRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearninRegistryComponentContainerOperationSource(Client), _machineLearninRegistryComponentContainerRegistryComponentContainersClientDiagnostics, Pipeline, _machineLearninRegistryComponentContainerRegistryComponentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentVersionCollection.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentVersionCollection.cs index f9b4c9382e7b..4665c077e235 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentVersionCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryComponentVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearninRegistryComponentVersions method from an instance of . /// - public partial class RegistryComponentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearninRegistryComponentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryComponentVersionClientDiagnostics; - private readonly RegistryComponentVersionsRestOperations _registryComponentVersionRestClient; + private readonly ClientDiagnostics _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics; + private readonly RegistryComponentVersionsRestOperations _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryComponentVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearninRegistryComponentVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryComponentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearninRegistryComponentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryComponentVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryComponentVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryComponentVersionResource.ResourceType, out string registryComponentVersionApiVersion); - _registryComponentVersionRestClient = new RegistryComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryComponentVersionApiVersion); + _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearninRegistryComponentVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearninRegistryComponentVersionResource.ResourceType, out string machineLearninRegistryComponentVersionRegistryComponentVersionsApiVersion); + _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient = new RegistryComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearninRegistryComponentVersionRegistryComponentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -49,8 +49,8 @@ internal RegistryComponentVersionCollection(ArmClient client, ResourceIdentifier internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryComponentResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryComponentResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearninRegistryComponentContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearninRegistryComponentContainerResource.ResourceType), nameof(id)); } /// @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.CreateOrUpdate"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryComponentVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryComponentVersionOperationSource(Client), _registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearninRegistryComponentVersionOperationSource(Client), _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics, Pipeline, _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> Create /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.CreateOrUpdate"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryComponentVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryComponentVersionOperationSource(Client), _registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearninRegistryComponentVersionOperationSource(Client), _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics, Pipeline, _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(Wai /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.Get"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionCollection.Get"); scope.Start(); try { - var response = await _registryComponentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync(s /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.Get"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionCollection.Get"); scope.Start(); try { - var response = _registryComponentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -227,12 +227,12 @@ public virtual Response Get(string version, Ca /// Continuation token for pagination. /// Component stage. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryComponentVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryComponentVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _registryComponentVersionClientDiagnostics, Pipeline, "RegistryComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearninRegistryComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics, Pipeline, "MachineLearninRegistryComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -253,12 +253,12 @@ public virtual AsyncPageable GetAllAsync(strin /// Continuation token for pagination. /// Component stage. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryComponentVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryComponentVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _registryComponentVersionClientDiagnostics, Pipeline, "RegistryComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearninRegistryComponentVersionResource(Client, MachineLearningComponentVersionData.DeserializeMachineLearningComponentVersionData(e)), _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics, Pipeline, "MachineLearninRegistryComponentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -282,11 +282,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.Exists"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionCollection.Exists"); scope.Start(); try { - var response = await _registryComponentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -317,11 +317,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.Exists"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionCollection.Exists"); scope.Start(); try { - var response = _registryComponentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -348,18 +348,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.GetIfExists"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _registryComponentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -385,18 +385,18 @@ public virtual async Task> Ge /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionCollection.GetIfExists"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionCollection.GetIfExists"); scope.Start(); try { - var response = _registryComponentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -405,7 +405,7 @@ public virtual NullableResponse GetIfExists(st } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -415,7 +415,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentVersionResource.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentVersionResource.cs index 994ae674280d..c6376fbbddb5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryComponentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearninRegistryComponentVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryComponentVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryComponentVersionResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryComponentVersion method. + /// A Class representing a MachineLearninRegistryComponentVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearninRegistryComponentVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearninRegistryComponentVersion method. /// - public partial class RegistryComponentVersionResource : ArmResource + public partial class MachineLearninRegistryComponentVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryComponentVersionClientDiagnostics; - private readonly RegistryComponentVersionsRestOperations _registryComponentVersionRestClient; + private readonly ClientDiagnostics _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics; + private readonly RegistryComponentVersionsRestOperations _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient; private readonly MachineLearningComponentVersionData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryComponentVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearninRegistryComponentVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryComponentVersionResource(ArmClient client, MachineLearningComponentVersionData data) : this(client, data.Id) + internal MachineLearninRegistryComponentVersionResource(ArmClient client, MachineLearningComponentVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryComponentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearninRegistryComponentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryComponentVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryComponentVersionApiVersion); - _registryComponentVersionRestClient = new RegistryComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryComponentVersionApiVersion); + _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearninRegistryComponentVersionRegistryComponentVersionsApiVersion); + _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient = new RegistryComponentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearninRegistryComponentVersionRegistryComponentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Get"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionResource.Get"); scope.Start(); try { - var response = await _registryComponentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync(C /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Get"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionResource.Get"); scope.Start(); try { - var response = _registryComponentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearninRegistryComponentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,12 +167,12 @@ public virtual Response Get(CancellationToken /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Delete"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionResource.Delete"); scope.Start(); try { - var response = await _registryComponentVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics, Pipeline, _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -201,12 +201,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Delete"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionResource.Delete"); scope.Start(); try { - var response = _registryComponentVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics, Pipeline, _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Update"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionResource.Update"); scope.Start(); try { - var response = await _registryComponentVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryComponentVersionOperationSource(Client), _registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearninRegistryComponentVersionOperationSource(Client), _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics, Pipeline, _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> Update /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningComponentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryComponentVersionClientDiagnostics.CreateScope("RegistryComponentVersionResource.Update"); + using var scope = _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics.CreateScope("MachineLearninRegistryComponentVersionResource.Update"); scope.Start(); try { - var response = _registryComponentVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryComponentVersionOperationSource(Client), _registryComponentVersionClientDiagnostics, Pipeline, _registryComponentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearninRegistryComponentVersionOperationSource(Client), _machineLearninRegistryComponentVersionRegistryComponentVersionsClientDiagnostics, Pipeline, _machineLearninRegistryComponentVersionRegistryComponentVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureCollection.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureCollection.cs index bb2efedd299c..5d394373be25 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetFeatures method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningFeatures method from an instance of . /// - public partial class FeatureCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningFeatureCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _featureClientDiagnostics; - private readonly FeaturesRestOperations _featureRestClient; + private readonly ClientDiagnostics _machineLearningFeatureFeaturesClientDiagnostics; + private readonly FeaturesRestOperations _machineLearningFeatureFeaturesRestClient; - /// Initializes a new instance of the class for mocking. - protected FeatureCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeatureCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal FeatureCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeatureCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featureClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeatureResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(FeatureResource.ResourceType, out string featureApiVersion); - _featureRestClient = new FeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featureApiVersion); + _machineLearningFeatureFeaturesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningFeatureResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningFeatureResource.ResourceType, out string machineLearningFeatureFeaturesApiVersion); + _machineLearningFeatureFeaturesRestClient = new FeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeatureFeaturesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -49,8 +49,8 @@ internal FeatureCollection(ArmClient client, ResourceIdentifier id) : base(clien internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != FeaturesetVersionResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, FeaturesetVersionResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningFeatureSetVersionResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningFeatureSetVersionResource.ResourceType), nameof(id)); } /// @@ -70,18 +70,18 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string featureName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string featureName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); - using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.Get"); + using var scope = _machineLearningFeatureFeaturesClientDiagnostics.CreateScope("MachineLearningFeatureCollection.Get"); scope.Start(); try { - var response = await _featureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureFeaturesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -107,18 +107,18 @@ public virtual async Task> GetAsync(string featureName /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string featureName, CancellationToken cancellationToken = default) + public virtual Response Get(string featureName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); - using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.Get"); + using var scope = _machineLearningFeatureFeaturesClientDiagnostics.CreateScope("MachineLearningFeatureCollection.Get"); scope.Start(); try { - var response = _featureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken); + var response = _machineLearningFeatureFeaturesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -145,12 +145,12 @@ public virtual Response Get(string featureName, CancellationTok /// feature name. /// Description of the featureset. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _featureRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featureRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeatureResource(Client, FeatureData.DeserializeFeatureData(e)), _featureClientDiagnostics, Pipeline, "FeatureCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeatureResource(Client, MachineLearningFeatureData.DeserializeMachineLearningFeatureData(e)), _machineLearningFeatureFeaturesClientDiagnostics, Pipeline, "MachineLearningFeatureCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -171,12 +171,12 @@ public virtual AsyncPageable GetAllAsync(string skip = null, st /// feature name. /// Description of the featureset. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, string tags = null, string featureName = null, string description = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _featureRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featureRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeatureResource(Client, FeatureData.DeserializeFeatureData(e)), _featureClientDiagnostics, Pipeline, "FeatureCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, tags, featureName, description); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeatureResource(Client, MachineLearningFeatureData.DeserializeMachineLearningFeatureData(e)), _machineLearningFeatureFeaturesClientDiagnostics, Pipeline, "MachineLearningFeatureCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -200,11 +200,11 @@ public virtual async Task> ExistsAsync(string featureName, Cancel { Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); - using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.Exists"); + using var scope = _machineLearningFeatureFeaturesClientDiagnostics.CreateScope("MachineLearningFeatureCollection.Exists"); scope.Start(); try { - var response = await _featureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureFeaturesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -235,11 +235,11 @@ public virtual Response Exists(string featureName, CancellationToken cance { Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); - using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.Exists"); + using var scope = _machineLearningFeatureFeaturesClientDiagnostics.CreateScope("MachineLearningFeatureCollection.Exists"); scope.Start(); try { - var response = _featureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken); + var response = _machineLearningFeatureFeaturesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -266,18 +266,18 @@ public virtual Response Exists(string featureName, CancellationToken cance /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string featureName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string featureName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); - using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.GetIfExists"); + using var scope = _machineLearningFeatureFeaturesClientDiagnostics.CreateScope("MachineLearningFeatureCollection.GetIfExists"); scope.Start(); try { - var response = await _featureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureFeaturesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -303,18 +303,18 @@ public virtual async Task> GetIfExistsAsync(st /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string featureName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string featureName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(featureName, nameof(featureName)); - using var scope = _featureClientDiagnostics.CreateScope("FeatureCollection.GetIfExists"); + using var scope = _machineLearningFeatureFeaturesClientDiagnostics.CreateScope("MachineLearningFeatureCollection.GetIfExists"); scope.Start(); try { - var response = _featureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken); + var response = _machineLearningFeatureFeaturesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, featureName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -323,7 +323,7 @@ public virtual NullableResponse GetIfExists(string featureName, } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -333,7 +333,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureData.cs similarity index 67% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureData.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureData.cs index 21b80a0ff513..f0a701839fc8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureData.cs @@ -13,28 +13,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing the Feature data model. + /// A class representing the MachineLearningFeature data model. /// Azure Resource Manager resource envelope. /// - public partial class FeatureData : ResourceData + public partial class MachineLearningFeatureData : ResourceData { - /// Initializes a new instance of FeatureData. + /// Initializes a new instance of MachineLearningFeatureData. /// [Required] Additional attributes of the entity. /// is null. - public FeatureData(FeatureProperties properties) + public MachineLearningFeatureData(FeatureProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); Properties = properties; } - /// Initializes a new instance of FeatureData. + /// Initializes a new instance of MachineLearningFeatureData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal FeatureData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeatureProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeatureData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeatureProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureResource.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureResource.cs index 368f011c7412..fd6ba6a0fdb0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeatureResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a Feature along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetFeatureResource method. - /// Otherwise you can get one from its parent resource using the GetFeature method. + /// A Class representing a MachineLearningFeature along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningFeatureResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningFeature method. /// - public partial class FeatureResource : ArmResource + public partial class MachineLearningFeatureResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _featureClientDiagnostics; - private readonly FeaturesRestOperations _featureRestClient; - private readonly FeatureData _data; + private readonly ClientDiagnostics _machineLearningFeatureFeaturesClientDiagnostics; + private readonly FeaturesRestOperations _machineLearningFeatureFeaturesRestClient; + private readonly MachineLearningFeatureData _data; - /// Initializes a new instance of the class for mocking. - protected FeatureResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeatureResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal FeatureResource(ArmClient client, FeatureData data) : this(client, data.Id) + internal MachineLearningFeatureResource(ArmClient client, MachineLearningFeatureData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal FeatureResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeatureResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featureClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string featureApiVersion); - _featureRestClient = new FeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featureApiVersion); + _machineLearningFeatureFeaturesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningFeatureFeaturesApiVersion); + _machineLearningFeatureFeaturesRestClient = new FeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeatureFeaturesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,7 +70,7 @@ internal FeatureResource(ArmClient client, ResourceIdentifier id) : base(client, /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual FeatureData Data + public virtual MachineLearningFeatureData Data { get { @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _featureClientDiagnostics.CreateScope("FeatureResource.Get"); + using var scope = _machineLearningFeatureFeaturesClientDiagnostics.CreateScope("MachineLearningFeatureResource.Get"); scope.Start(); try { - var response = await _featureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureFeaturesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _featureClientDiagnostics.CreateScope("FeatureResource.Get"); + using var scope = _machineLearningFeatureFeaturesClientDiagnostics.CreateScope("MachineLearningFeatureResource.Get"); scope.Start(); try { - var response = _featureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningFeatureFeaturesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeatureResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerCollection.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerCollection.cs index a3c04ff9272d..fa7158a74d04 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetFeaturesetContainers method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningFeatureSetContainers method from an instance of . /// - public partial class FeaturesetContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningFeatureSetContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _featuresetContainerClientDiagnostics; - private readonly FeaturesetContainersRestOperations _featuresetContainerRestClient; + private readonly ClientDiagnostics _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics; + private readonly FeaturesetContainersRestOperations _machineLearningFeatureSetContainerFeaturesetContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected FeaturesetContainerCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeatureSetContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal FeaturesetContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeatureSetContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featuresetContainerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeaturesetContainerResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(FeaturesetContainerResource.ResourceType, out string featuresetContainerApiVersion); - _featuresetContainerRestClient = new FeaturesetContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featuresetContainerApiVersion); + _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningFeatureSetContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningFeatureSetContainerResource.ResourceType, out string machineLearningFeatureSetContainerFeaturesetContainersApiVersion); + _machineLearningFeatureSetContainerFeaturesetContainersRestClient = new FeaturesetContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeatureSetContainerFeaturesetContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, FeaturesetContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningFeatureSetContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.CreateOrUpdate"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _featuresetContainerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturesetContainerOperationSource(Client), _featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetContainerOperationSource(Client), _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics, Pipeline, _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpd /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, FeaturesetContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningFeatureSetContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.CreateOrUpdate"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _featuresetContainerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturesetContainerOperationSource(Client), _featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetContainerOperationSource(Client), _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics, Pipeline, _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.Get"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerCollection.Get"); scope.Start(); try { - var response = await _featuresetContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureSetContainerFeaturesetContainersRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.Get"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerCollection.Get"); scope.Start(); try { - var response = _featuresetContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _machineLearningFeatureSetContainerFeaturesetContainersRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ public virtual Response Get(string name, Cancellati /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(FeaturesetContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(MachineLearningFeatureSetContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new FeaturesetContainerCollectionGetAllOptions(); + options ??= new MachineLearningFeatureSetContainerCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetContainerRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetContainerRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeaturesetContainerResource(Client, FeaturesetContainerData.DeserializeFeaturesetContainerData(e)), _featuresetContainerClientDiagnostics, Pipeline, "FeaturesetContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeatureSetContainerResource(Client, MachineLearningFeatureSetContainerData.DeserializeMachineLearningFeatureSetContainerData(e)), _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics, Pipeline, "MachineLearningFeatureSetContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,14 +250,14 @@ public virtual AsyncPageable GetAllAsync(Featureset /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(FeaturesetContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(MachineLearningFeatureSetContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new FeaturesetContainerCollectionGetAllOptions(); + options ??= new MachineLearningFeatureSetContainerCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetContainerRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetContainerRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeaturesetContainerResource(Client, FeaturesetContainerData.DeserializeFeaturesetContainerData(e)), _featuresetContainerClientDiagnostics, Pipeline, "FeaturesetContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeatureSetContainerResource(Client, MachineLearningFeatureSetContainerData.DeserializeMachineLearningFeatureSetContainerData(e)), _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics, Pipeline, "MachineLearningFeatureSetContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.Exists"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerCollection.Exists"); scope.Start(); try { - var response = await _featuresetContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureSetContainerFeaturesetContainersRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.Exists"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerCollection.Exists"); scope.Start(); try { - var response = _featuresetContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningFeatureSetContainerFeaturesetContainersRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -347,18 +347,18 @@ public virtual Response Exists(string name, CancellationToken cancellation /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.GetIfExists"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _featuresetContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureSetContainerFeaturesetContainersRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -384,18 +384,18 @@ public virtual async Task> GetIfEx /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerCollection.GetIfExists"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerCollection.GetIfExists"); scope.Start(); try { - var response = _featuresetContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningFeatureSetContainerFeaturesetContainersRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,7 +404,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll(options: null).GetEnumerator(); } @@ -414,7 +414,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll(options: null).GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerData.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerData.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerData.cs index 169154272379..c68fa514d8c1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerData.cs @@ -13,28 +13,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing the FeaturesetContainer data model. + /// A class representing the MachineLearningFeatureSetContainer data model. /// Azure Resource Manager resource envelope. /// - public partial class FeaturesetContainerData : ResourceData + public partial class MachineLearningFeatureSetContainerData : ResourceData { - /// Initializes a new instance of FeaturesetContainerData. + /// Initializes a new instance of MachineLearningFeatureSetContainerData. /// [Required] Additional attributes of the entity. /// is null. - public FeaturesetContainerData(FeaturesetContainerProperties properties) + public MachineLearningFeatureSetContainerData(FeaturesetContainerProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); Properties = properties; } - /// Initializes a new instance of FeaturesetContainerData. + /// Initializes a new instance of MachineLearningFeatureSetContainerData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal FeaturesetContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturesetContainerProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeatureSetContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturesetContainerProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerResource.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerResource.cs index b3f9897a0cac..9139d5d81af2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a FeaturesetContainer along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetFeaturesetContainerResource method. - /// Otherwise you can get one from its parent resource using the GetFeaturesetContainer method. + /// A Class representing a MachineLearningFeatureSetContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningFeatureSetContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningFeatureSetContainer method. /// - public partial class FeaturesetContainerResource : ArmResource + public partial class MachineLearningFeatureSetContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _featuresetContainerClientDiagnostics; - private readonly FeaturesetContainersRestOperations _featuresetContainerRestClient; - private readonly FeaturesetContainerData _data; + private readonly ClientDiagnostics _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics; + private readonly FeaturesetContainersRestOperations _machineLearningFeatureSetContainerFeaturesetContainersRestClient; + private readonly MachineLearningFeatureSetContainerData _data; - /// Initializes a new instance of the class for mocking. - protected FeaturesetContainerResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeatureSetContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal FeaturesetContainerResource(ArmClient client, FeaturesetContainerData data) : this(client, data.Id) + internal MachineLearningFeatureSetContainerResource(ArmClient client, MachineLearningFeatureSetContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal FeaturesetContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeatureSetContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featuresetContainerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string featuresetContainerApiVersion); - _featuresetContainerRestClient = new FeaturesetContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featuresetContainerApiVersion); + _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningFeatureSetContainerFeaturesetContainersApiVersion); + _machineLearningFeatureSetContainerFeaturesetContainersRestClient = new FeaturesetContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeatureSetContainerFeaturesetContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,7 +70,7 @@ internal FeaturesetContainerResource(ArmClient client, ResourceIdentifier id) : /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual FeaturesetContainerData Data + public virtual MachineLearningFeatureSetContainerData Data { get { @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of FeaturesetVersionResources in the FeaturesetContainer. - /// An object representing collection of FeaturesetVersionResources and their operations over a FeaturesetVersionResource. - public virtual FeaturesetVersionCollection GetFeaturesetVersions() + /// Gets a collection of MachineLearningFeatureSetVersionResources in the MachineLearningFeatureSetContainer. + /// An object representing collection of MachineLearningFeatureSetVersionResources and their operations over a MachineLearningFeatureSetVersionResource. + public virtual MachineLearningFeatureSetVersionCollection GetMachineLearningFeatureSetVersions() { - return GetCachedClient(Client => new FeaturesetVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningFeatureSetVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual FeaturesetVersionCollection GetFeaturesetVersions() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetFeaturesetVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningFeatureSetVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetFeaturesetVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningFeatureSetVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetFeaturesetVers /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetFeaturesetVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningFeatureSetVersion(string version, CancellationToken cancellationToken = default) { - return GetFeaturesetVersions().Get(version, cancellationToken); + return GetMachineLearningFeatureSetVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetFeaturesetVersion(string v /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Get"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerResource.Get"); scope.Start(); try { - var response = await _featuresetContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureSetContainerFeaturesetContainersRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cancel /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Get"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerResource.Get"); scope.Start(); try { - var response = _featuresetContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningFeatureSetContainerFeaturesetContainersRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturesetContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,12 +220,12 @@ public virtual Response Get(CancellationToken cance /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Delete"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerResource.Delete"); scope.Start(); try { - var response = await _featuresetContainerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningFeatureSetContainerFeaturesetContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics, Pipeline, _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,12 +254,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Delete"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerResource.Delete"); scope.Start(); try { - var response = _featuresetContainerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningFeatureSetContainerFeaturesetContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics, Pipeline, _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, FeaturesetContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningFeatureSetContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Update"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerResource.Update"); scope.Start(); try { - var response = await _featuresetContainerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturesetContainerOperationSource(Client), _featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetContainerOperationSource(Client), _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics, Pipeline, _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, FeaturesetContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningFeatureSetContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _featuresetContainerClientDiagnostics.CreateScope("FeaturesetContainerResource.Update"); + using var scope = _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics.CreateScope("MachineLearningFeatureSetContainerResource.Update"); scope.Start(); try { - var response = _featuresetContainerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturesetContainerOperationSource(Client), _featuresetContainerClientDiagnostics, Pipeline, _featuresetContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetContainerOperationSource(Client), _machineLearningFeatureSetContainerFeaturesetContainersClientDiagnostics, Pipeline, _machineLearningFeatureSetContainerFeaturesetContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionCollection.cs similarity index 59% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionCollection.cs index 3de8ceeb0135..92f946df23b0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetFeaturesetVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningFeatureSetVersions method from an instance of . /// - public partial class FeaturesetVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningFeatureSetVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _featuresetVersionClientDiagnostics; - private readonly FeaturesetVersionsRestOperations _featuresetVersionRestClient; + private readonly ClientDiagnostics _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics; + private readonly FeaturesetVersionsRestOperations _machineLearningFeatureSetVersionFeaturesetVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected FeaturesetVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeatureSetVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal FeaturesetVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeatureSetVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featuresetVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeaturesetVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(FeaturesetVersionResource.ResourceType, out string featuresetVersionApiVersion); - _featuresetVersionRestClient = new FeaturesetVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featuresetVersionApiVersion); + _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningFeatureSetVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningFeatureSetVersionResource.ResourceType, out string machineLearningFeatureSetVersionFeaturesetVersionsApiVersion); + _machineLearningFeatureSetVersionFeaturesetVersionsRestClient = new FeaturesetVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeatureSetVersionFeaturesetVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal FeaturesetVersionCollection(ArmClient client, ResourceIdentifier id) : internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != FeaturesetContainerResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, FeaturesetContainerResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningFeatureSetContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningFeatureSetContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, FeaturesetVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningFeatureSetVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _featuresetVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturesetVersionOperationSource(Client), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetVersionOperationSource(Client), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpdat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, FeaturesetVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningFeatureSetVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _featuresetVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturesetVersionOperationSource(Client), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetVersionOperationSource(Client), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.Get"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionCollection.Get"); scope.Start(); try { - var response = await _featuresetVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string v /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.Get"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionCollection.Get"); scope.Start(); try { - var response = _featuresetVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ public virtual Response Get(string version, Cancellat /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(FeaturesetVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(MachineLearningFeatureSetVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new FeaturesetVersionCollectionGetAllOptions(); + options ??= new MachineLearningFeatureSetVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeaturesetVersionResource(Client, FeaturesetVersionData.DeserializeFeaturesetVersionData(e)), _featuresetVersionClientDiagnostics, Pipeline, "FeaturesetVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeatureSetVersionResource(Client, MachineLearningFeatureSetVersionData.DeserializeMachineLearningFeatureSetVersionData(e)), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, "MachineLearningFeatureSetVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,14 +250,14 @@ public virtual AsyncPageable GetAllAsync(FeaturesetVe /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(FeaturesetVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(MachineLearningFeatureSetVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new FeaturesetVersionCollectionGetAllOptions(); + options ??= new MachineLearningFeatureSetVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeaturesetVersionResource(Client, FeaturesetVersionData.DeserializeFeaturesetVersionData(e)), _featuresetVersionClientDiagnostics, Pipeline, "FeaturesetVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeatureSetVersionResource(Client, MachineLearningFeatureSetVersionData.DeserializeMachineLearningFeatureSetVersionData(e)), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, "MachineLearningFeatureSetVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.Exists"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionCollection.Exists"); scope.Start(); try { - var response = await _featuresetVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.Exists"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionCollection.Exists"); scope.Start(); try { - var response = _featuresetVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -347,18 +347,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.GetIfExists"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _featuresetVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -384,18 +384,18 @@ public virtual async Task> GetIfExis /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionCollection.GetIfExists"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionCollection.GetIfExists"); scope.Start(); try { - var response = _featuresetVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,7 +404,7 @@ public virtual NullableResponse GetIfExists(string ve } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll(options: null).GetEnumerator(); } @@ -414,7 +414,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll(options: null).GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionData.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionData.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionData.cs index 36f39a5a4fa3..435a690408a9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionData.cs @@ -13,28 +13,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing the FeaturesetVersion data model. + /// A class representing the MachineLearningFeatureSetVersion data model. /// Azure Resource Manager resource envelope. /// - public partial class FeaturesetVersionData : ResourceData + public partial class MachineLearningFeatureSetVersionData : ResourceData { - /// Initializes a new instance of FeaturesetVersionData. + /// Initializes a new instance of MachineLearningFeatureSetVersionData. /// [Required] Additional attributes of the entity. /// is null. - public FeaturesetVersionData(FeaturesetVersionProperties properties) + public MachineLearningFeatureSetVersionData(FeaturesetVersionProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); Properties = properties; } - /// Initializes a new instance of FeaturesetVersionData. + /// Initializes a new instance of MachineLearningFeatureSetVersionData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal FeaturesetVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturesetVersionProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeatureSetVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturesetVersionProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionResource.cs similarity index 67% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionResource.cs index f7c8486a2789..7cdb95d637e6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturesetVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionResource.cs @@ -19,46 +19,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a FeaturesetVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetFeaturesetVersionResource method. - /// Otherwise you can get one from its parent resource using the GetFeaturesetVersion method. + /// A Class representing a MachineLearningFeatureSetVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningFeatureSetVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningFeatureSetVersion method. /// - public partial class FeaturesetVersionResource : ArmResource + public partial class MachineLearningFeatureSetVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _featuresetVersionClientDiagnostics; - private readonly FeaturesetVersionsRestOperations _featuresetVersionRestClient; - private readonly FeaturesetVersionData _data; + private readonly ClientDiagnostics _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics; + private readonly FeaturesetVersionsRestOperations _machineLearningFeatureSetVersionFeaturesetVersionsRestClient; + private readonly MachineLearningFeatureSetVersionData _data; - /// Initializes a new instance of the class for mocking. - protected FeaturesetVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeatureSetVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal FeaturesetVersionResource(ArmClient client, FeaturesetVersionData data) : this(client, data.Id) + internal MachineLearningFeatureSetVersionResource(ArmClient client, MachineLearningFeatureSetVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal FeaturesetVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeatureSetVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featuresetVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string featuresetVersionApiVersion); - _featuresetVersionRestClient = new FeaturesetVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featuresetVersionApiVersion); + _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningFeatureSetVersionFeaturesetVersionsApiVersion); + _machineLearningFeatureSetVersionFeaturesetVersionsRestClient = new FeaturesetVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeatureSetVersionFeaturesetVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,7 +72,7 @@ internal FeaturesetVersionResource(ArmClient client, ResourceIdentifier id) : ba /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual FeaturesetVersionData Data + public virtual MachineLearningFeatureSetVersionData Data { get { @@ -88,11 +88,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of FeatureResources in the FeaturesetVersion. - /// An object representing collection of FeatureResources and their operations over a FeatureResource. - public virtual FeatureCollection GetFeatures() + /// Gets a collection of MachineLearningFeatureResources in the MachineLearningFeatureSetVersion. + /// An object representing collection of MachineLearningFeatureResources and their operations over a MachineLearningFeatureResource. + public virtual MachineLearningFeatureCollection GetMachineLearningFeatures() { - return GetCachedClient(Client => new FeatureCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningFeatureCollection(Client, Id)); } /// @@ -113,9 +113,9 @@ public virtual FeatureCollection GetFeatures() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetFeatureAsync(string featureName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningFeatureAsync(string featureName, CancellationToken cancellationToken = default) { - return await GetFeatures().GetAsync(featureName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningFeatures().GetAsync(featureName, cancellationToken).ConfigureAwait(false); } /// @@ -136,9 +136,9 @@ public virtual async Task> GetFeatureAsync(string feat /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetFeature(string featureName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningFeature(string featureName, CancellationToken cancellationToken = default) { - return GetFeatures().Get(featureName, cancellationToken); + return GetMachineLearningFeatures().Get(featureName, cancellationToken); } /// @@ -155,16 +155,16 @@ public virtual Response GetFeature(string featureName, Cancella /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Get"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionResource.Get"); scope.Start(); try { - var response = await _featuresetVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -187,16 +187,16 @@ public virtual async Task> GetAsync(Cancella /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Get"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionResource.Get"); scope.Start(); try { - var response = _featuresetVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturesetVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureSetVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -222,12 +222,12 @@ public virtual Response Get(CancellationToken cancell /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Delete"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionResource.Delete"); scope.Start(); try { - var response = await _featuresetVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -256,12 +256,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Delete"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionResource.Delete"); scope.Start(); try { - var response = _featuresetVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,16 +290,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, FeaturesetVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningFeatureSetVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Update"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionResource.Update"); scope.Start(); try { - var response = await _featuresetVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturesetVersionOperationSource(Client), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetVersionOperationSource(Client), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -328,16 +328,16 @@ public virtual async Task> UpdateAsync(W /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, FeaturesetVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningFeatureSetVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Update"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionResource.Update"); scope.Start(); try { - var response = _featuresetVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturesetVersionOperationSource(Client), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetVersionOperationSource(Client), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -370,12 +370,12 @@ public virtual async Task> BackfillAsync(WaitUntil w { Argument.AssertNotNull(content, nameof(content)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Backfill"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionResource.Backfill"); scope.Start(); try { - var response = await _featuresetVersionRestClient.BackfillAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturesetJobOperationSource(), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.BackfillAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new FeaturesetJobOperationSource(), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -408,12 +408,12 @@ public virtual ArmOperation Backfill(WaitUntil waitUntil, Feature { Argument.AssertNotNull(content, nameof(content)); - using var scope = _featuresetVersionClientDiagnostics.CreateScope("FeaturesetVersionResource.Backfill"); + using var scope = _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics.CreateScope("MachineLearningFeatureSetVersionResource.Backfill"); scope.Start(); try { - var response = _featuresetVersionRestClient.Backfill(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturesetJobOperationSource(), _featuresetVersionClientDiagnostics, Pipeline, _featuresetVersionRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.Backfill(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new MachineLearningArmOperation(new FeaturesetJobOperationSource(), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -446,9 +446,9 @@ public virtual ArmOperation Backfill(WaitUntil waitUntil, Feature /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetVersionRestClient.CreateListMaterializationJobsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetVersionRestClient.CreateListMaterializationJobsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, FeaturesetJob.DeserializeFeaturesetJob, _featuresetVersionClientDiagnostics, Pipeline, "FeaturesetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListMaterializationJobsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListMaterializationJobsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, FeaturesetJob.DeserializeFeaturesetJob, _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, "MachineLearningFeatureSetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); } /// @@ -472,9 +472,9 @@ public virtual AsyncPageable GetMaterializationJobsAsync(string s /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _featuresetVersionRestClient.CreateListMaterializationJobsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featuresetVersionRestClient.CreateListMaterializationJobsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, FeaturesetJob.DeserializeFeaturesetJob, _featuresetVersionClientDiagnostics, Pipeline, "FeaturesetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListMaterializationJobsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListMaterializationJobsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, FeaturesetJob.DeserializeFeaturesetJob, _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, "MachineLearningFeatureSetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerCollection.cs similarity index 58% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerCollection.cs index 8a5d16f600f0..3e0b1e8d2c18 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetFeaturestoreEntityContainers method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningFeatureStoreEntityContainers method from an instance of . /// - public partial class FeaturestoreEntityContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningFeatureStoreEntityContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _featurestoreEntityContainerClientDiagnostics; - private readonly FeaturestoreEntityContainersRestOperations _featurestoreEntityContainerRestClient; + private readonly ClientDiagnostics _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics; + private readonly FeaturestoreEntityContainersRestOperations _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected FeaturestoreEntityContainerCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeatureStoreEntityContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal FeaturestoreEntityContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeatureStoreEntityContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featurestoreEntityContainerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeaturestoreEntityContainerResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(FeaturestoreEntityContainerResource.ResourceType, out string featurestoreEntityContainerApiVersion); - _featurestoreEntityContainerRestClient = new FeaturestoreEntityContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featurestoreEntityContainerApiVersion); + _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningFeatureStoreEntityContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningFeatureStoreEntityContainerResource.ResourceType, out string machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersApiVersion); + _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient = new FeaturestoreEntityContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningFeatureStoreEntityContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.CreateOrUpdate"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _featurestoreEntityContainerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturestoreEntityContainerOperationSource(Client), _featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureStoreEntityContainerOperationSource(Client), _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics, Pipeline, _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> Cre /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningFeatureStoreEntityContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.CreateOrUpdate"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _featurestoreEntityContainerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturestoreEntityContainerOperationSource(Client), _featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureStoreEntityContainerOperationSource(Client), _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics, Pipeline, _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.Get"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerCollection.Get"); scope.Start(); try { - var response = await _featurestoreEntityContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureStoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsyn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.Get"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerCollection.Get"); scope.Start(); try { - var response = _featurestoreEntityContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureStoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ public virtual Response Get(string name, Ca /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(FeaturestoreEntityContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new FeaturestoreEntityContainerCollectionGetAllOptions(); + options ??= new MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _featurestoreEntityContainerRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featurestoreEntityContainerRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeaturestoreEntityContainerResource(Client, FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(e)), _featurestoreEntityContainerClientDiagnostics, Pipeline, "FeaturestoreEntityContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeatureStoreEntityContainerResource(Client, MachineLearningFeatureStoreEntityContainerData.DeserializeMachineLearningFeatureStoreEntityContainerData(e)), _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics, Pipeline, "MachineLearningFeatureStoreEntityContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,14 +250,14 @@ public virtual AsyncPageable GetAllAsync(Fe /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(FeaturestoreEntityContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new FeaturestoreEntityContainerCollectionGetAllOptions(); + options ??= new MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _featurestoreEntityContainerRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featurestoreEntityContainerRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeaturestoreEntityContainerResource(Client, FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(e)), _featurestoreEntityContainerClientDiagnostics, Pipeline, "FeaturestoreEntityContainerCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.Name, options.Description, options.CreatedBy); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeatureStoreEntityContainerResource(Client, MachineLearningFeatureStoreEntityContainerData.DeserializeMachineLearningFeatureStoreEntityContainerData(e)), _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics, Pipeline, "MachineLearningFeatureStoreEntityContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.Exists"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerCollection.Exists"); scope.Start(); try { - var response = await _featurestoreEntityContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.Exists"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerCollection.Exists"); scope.Start(); try { - var response = _featurestoreEntityContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -347,18 +347,18 @@ public virtual Response Exists(string name, CancellationToken cancellation /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.GetIfExists"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _featurestoreEntityContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureStoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -384,18 +384,18 @@ public virtual async Task> /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerCollection.GetIfExists"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerCollection.GetIfExists"); scope.Start(); try { - var response = _featurestoreEntityContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureStoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,7 +404,7 @@ public virtual NullableResponse GetIfExists } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll(options: null).GetEnumerator(); } @@ -414,7 +414,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll(options: null).GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerData.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerData.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerData.cs index 0c8f9d5a7300..9af0ddca6b57 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerData.cs @@ -13,28 +13,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing the FeaturestoreEntityContainer data model. + /// A class representing the MachineLearningFeatureStoreEntityContainer data model. /// Azure Resource Manager resource envelope. /// - public partial class FeaturestoreEntityContainerData : ResourceData + public partial class MachineLearningFeatureStoreEntityContainerData : ResourceData { - /// Initializes a new instance of FeaturestoreEntityContainerData. + /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerData. /// [Required] Additional attributes of the entity. /// is null. - public FeaturestoreEntityContainerData(FeaturestoreEntityContainerProperties properties) + public MachineLearningFeatureStoreEntityContainerData(FeaturestoreEntityContainerProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); Properties = properties; } - /// Initializes a new instance of FeaturestoreEntityContainerData. + /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal FeaturestoreEntityContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturestoreEntityContainerProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeatureStoreEntityContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturestoreEntityContainerProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerResource.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerResource.cs index 9c36c9007fc3..2154c19f6b43 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a FeaturestoreEntityContainer along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetFeaturestoreEntityContainerResource method. - /// Otherwise you can get one from its parent resource using the GetFeaturestoreEntityContainer method. + /// A Class representing a MachineLearningFeatureStoreEntityContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningFeatureStoreEntityContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningFeatureStoreEntityContainer method. /// - public partial class FeaturestoreEntityContainerResource : ArmResource + public partial class MachineLearningFeatureStoreEntityContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _featurestoreEntityContainerClientDiagnostics; - private readonly FeaturestoreEntityContainersRestOperations _featurestoreEntityContainerRestClient; - private readonly FeaturestoreEntityContainerData _data; + private readonly ClientDiagnostics _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics; + private readonly FeaturestoreEntityContainersRestOperations _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient; + private readonly MachineLearningFeatureStoreEntityContainerData _data; - /// Initializes a new instance of the class for mocking. - protected FeaturestoreEntityContainerResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeatureStoreEntityContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal FeaturestoreEntityContainerResource(ArmClient client, FeaturestoreEntityContainerData data) : this(client, data.Id) + internal MachineLearningFeatureStoreEntityContainerResource(ArmClient client, MachineLearningFeatureStoreEntityContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal FeaturestoreEntityContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeatureStoreEntityContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featurestoreEntityContainerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string featurestoreEntityContainerApiVersion); - _featurestoreEntityContainerRestClient = new FeaturestoreEntityContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featurestoreEntityContainerApiVersion); + _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersApiVersion); + _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient = new FeaturestoreEntityContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,7 +70,7 @@ internal FeaturestoreEntityContainerResource(ArmClient client, ResourceIdentifie /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual FeaturestoreEntityContainerData Data + public virtual MachineLearningFeatureStoreEntityContainerData Data { get { @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of FeaturestoreEntityVersionResources in the FeaturestoreEntityContainer. - /// An object representing collection of FeaturestoreEntityVersionResources and their operations over a FeaturestoreEntityVersionResource. - public virtual FeaturestoreEntityVersionCollection GetFeaturestoreEntityVersions() + /// Gets a collection of MachineLearningFeaturestoreEntityVersionResources in the MachineLearningFeatureStoreEntityContainer. + /// An object representing collection of MachineLearningFeaturestoreEntityVersionResources and their operations over a MachineLearningFeaturestoreEntityVersionResource. + public virtual MachineLearningFeaturestoreEntityVersionCollection GetMachineLearningFeaturestoreEntityVersions() { - return GetCachedClient(Client => new FeaturestoreEntityVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningFeaturestoreEntityVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual FeaturestoreEntityVersionCollection GetFeaturestoreEntityVersions /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetFeaturestoreEntityVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningFeaturestoreEntityVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetFeaturestoreEntityVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningFeaturestoreEntityVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetFeatur /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetFeaturestoreEntityVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningFeaturestoreEntityVersion(string version, CancellationToken cancellationToken = default) { - return GetFeaturestoreEntityVersions().Get(version, cancellationToken); + return GetMachineLearningFeaturestoreEntityVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetFeaturestoreEntity /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Get"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerResource.Get"); scope.Start(); try { - var response = await _featurestoreEntityContainerRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.GetEntityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureStoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsyn /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Get"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerResource.Get"); scope.Start(); try { - var response = _featurestoreEntityContainerRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.GetEntity(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeatureStoreEntityContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,12 +220,12 @@ public virtual Response Get(CancellationTok /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Delete"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerResource.Delete"); scope.Start(); try { - var response = await _featurestoreEntityContainerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics, Pipeline, _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,12 +254,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Delete"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerResource.Delete"); scope.Start(); try { - var response = _featurestoreEntityContainerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics, Pipeline, _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningFeatureStoreEntityContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Update"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerResource.Update"); scope.Start(); try { - var response = await _featurestoreEntityContainerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturestoreEntityContainerOperationSource(Client), _featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureStoreEntityContainerOperationSource(Client), _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics, Pipeline, _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> Upd /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningFeatureStoreEntityContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _featurestoreEntityContainerClientDiagnostics.CreateScope("FeaturestoreEntityContainerResource.Update"); + using var scope = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics.CreateScope("MachineLearningFeatureStoreEntityContainerResource.Update"); scope.Start(); try { - var response = _featurestoreEntityContainerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturestoreEntityContainerOperationSource(Client), _featurestoreEntityContainerClientDiagnostics, Pipeline, _featurestoreEntityContainerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureStoreEntityContainerOperationSource(Client), _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersClientDiagnostics, Pipeline, _machineLearningFeatureStoreEntityContainerFeaturestoreEntityContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionCollection.cs similarity index 57% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionCollection.cs index 857b082976d7..82f60960c8b9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetFeaturestoreEntityVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningFeaturestoreEntityVersions method from an instance of . /// - public partial class FeaturestoreEntityVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningFeaturestoreEntityVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _featurestoreEntityVersionClientDiagnostics; - private readonly FeaturestoreEntityVersionsRestOperations _featurestoreEntityVersionRestClient; + private readonly ClientDiagnostics _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics; + private readonly FeaturestoreEntityVersionsRestOperations _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected FeaturestoreEntityVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeaturestoreEntityVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal FeaturestoreEntityVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeaturestoreEntityVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featurestoreEntityVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", FeaturestoreEntityVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(FeaturestoreEntityVersionResource.ResourceType, out string featurestoreEntityVersionApiVersion); - _featurestoreEntityVersionRestClient = new FeaturestoreEntityVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featurestoreEntityVersionApiVersion); + _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningFeaturestoreEntityVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningFeaturestoreEntityVersionResource.ResourceType, out string machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsApiVersion); + _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient = new FeaturestoreEntityVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal FeaturestoreEntityVersionCollection(ArmClient client, ResourceIdentifie internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != FeaturestoreEntityContainerResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, FeaturestoreEntityContainerResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningFeatureStoreEntityContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningFeatureStoreEntityContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningFeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _featurestoreEntityVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturestoreEntityVersionOperationSource(Client), _featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningFeaturestoreEntityVersionOperationSource(Client), _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics, Pipeline, _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> Creat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningFeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _featurestoreEntityVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturestoreEntityVersionOperationSource(Client), _featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningFeaturestoreEntityVersionOperationSource(Client), _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics, Pipeline, _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(Wa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.Get"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionCollection.Get"); scope.Start(); try { - var response = await _featurestoreEntityVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.Get"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionCollection.Get"); scope.Start(); try { - var response = _featurestoreEntityVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ public virtual Response Get(string version, C /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(FeaturestoreEntityVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new FeaturestoreEntityVersionCollectionGetAllOptions(); + options ??= new MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _featurestoreEntityVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featurestoreEntityVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new FeaturestoreEntityVersionResource(Client, FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(e)), _featurestoreEntityVersionClientDiagnostics, Pipeline, "FeaturestoreEntityVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeaturestoreEntityVersionResource(Client, MachineLearningFeaturestoreEntityVersionData.DeserializeMachineLearningFeaturestoreEntityVersionData(e)), _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics, Pipeline, "MachineLearningFeaturestoreEntityVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,14 +250,14 @@ public virtual AsyncPageable GetAllAsync(Feat /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(FeaturestoreEntityVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new FeaturestoreEntityVersionCollectionGetAllOptions(); + options ??= new MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _featurestoreEntityVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _featurestoreEntityVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new FeaturestoreEntityVersionResource(Client, FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(e)), _featurestoreEntityVersionClientDiagnostics, Pipeline, "FeaturestoreEntityVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.Tags, options.ListViewType, pageSizeHint, options.VersionName, options.Version, options.Description, options.CreatedBy, options.Stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningFeaturestoreEntityVersionResource(Client, MachineLearningFeaturestoreEntityVersionData.DeserializeMachineLearningFeaturestoreEntityVersionData(e)), _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics, Pipeline, "MachineLearningFeaturestoreEntityVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.Exists"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionCollection.Exists"); scope.Start(); try { - var response = await _featurestoreEntityVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.Exists"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionCollection.Exists"); scope.Start(); try { - var response = _featurestoreEntityVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -347,18 +347,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.GetIfExists"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _featurestoreEntityVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -384,18 +384,18 @@ public virtual async Task> G /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionCollection.GetIfExists"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionCollection.GetIfExists"); scope.Start(); try { - var response = _featurestoreEntityVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,7 +404,7 @@ public virtual NullableResponse GetIfExists(s } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll(options: null).GetEnumerator(); } @@ -414,7 +414,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll(options: null).GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionData.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionData.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionData.cs index 9e37b0a51e57..af4e4b4a9f2c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionData.cs @@ -13,28 +13,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing the FeaturestoreEntityVersion data model. + /// A class representing the MachineLearningFeaturestoreEntityVersion data model. /// Azure Resource Manager resource envelope. /// - public partial class FeaturestoreEntityVersionData : ResourceData + public partial class MachineLearningFeaturestoreEntityVersionData : ResourceData { - /// Initializes a new instance of FeaturestoreEntityVersionData. + /// Initializes a new instance of MachineLearningFeaturestoreEntityVersionData. /// [Required] Additional attributes of the entity. /// is null. - public FeaturestoreEntityVersionData(FeaturestoreEntityVersionProperties properties) + public MachineLearningFeaturestoreEntityVersionData(FeaturestoreEntityVersionProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); Properties = properties; } - /// Initializes a new instance of FeaturestoreEntityVersionData. + /// Initializes a new instance of MachineLearningFeaturestoreEntityVersionData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal FeaturestoreEntityVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturestoreEntityVersionProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeaturestoreEntityVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturestoreEntityVersionProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionResource.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionResource.cs index 4a8347d7ec64..059836b76ed6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/FeaturestoreEntityVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a FeaturestoreEntityVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetFeaturestoreEntityVersionResource method. - /// Otherwise you can get one from its parent resource using the GetFeaturestoreEntityVersion method. + /// A Class representing a MachineLearningFeaturestoreEntityVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningFeaturestoreEntityVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningFeaturestoreEntityVersion method. /// - public partial class FeaturestoreEntityVersionResource : ArmResource + public partial class MachineLearningFeaturestoreEntityVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _featurestoreEntityVersionClientDiagnostics; - private readonly FeaturestoreEntityVersionsRestOperations _featurestoreEntityVersionRestClient; - private readonly FeaturestoreEntityVersionData _data; + private readonly ClientDiagnostics _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics; + private readonly FeaturestoreEntityVersionsRestOperations _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient; + private readonly MachineLearningFeaturestoreEntityVersionData _data; - /// Initializes a new instance of the class for mocking. - protected FeaturestoreEntityVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningFeaturestoreEntityVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal FeaturestoreEntityVersionResource(ArmClient client, FeaturestoreEntityVersionData data) : this(client, data.Id) + internal MachineLearningFeaturestoreEntityVersionResource(ArmClient client, MachineLearningFeaturestoreEntityVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal FeaturestoreEntityVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningFeaturestoreEntityVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _featurestoreEntityVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string featurestoreEntityVersionApiVersion); - _featurestoreEntityVersionRestClient = new FeaturestoreEntityVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, featurestoreEntityVersionApiVersion); + _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsApiVersion); + _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient = new FeaturestoreEntityVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,7 +70,7 @@ internal FeaturestoreEntityVersionResource(ArmClient client, ResourceIdentifier /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual FeaturestoreEntityVersionData Data + public virtual MachineLearningFeaturestoreEntityVersionData Data { get { @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Get"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionResource.Get"); scope.Start(); try { - var response = await _featurestoreEntityVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync( /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Get"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionResource.Get"); scope.Start(); try { - var response = _featurestoreEntityVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new FeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningFeaturestoreEntityVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,12 +167,12 @@ public virtual Response Get(CancellationToken /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Delete"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionResource.Delete"); scope.Start(); try { - var response = await _featurestoreEntityVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics, Pipeline, _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -201,12 +201,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Delete"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionResource.Delete"); scope.Start(); try { - var response = _featurestoreEntityVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics, Pipeline, _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningFeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Update"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionResource.Update"); scope.Start(); try { - var response = await _featurestoreEntityVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturestoreEntityVersionOperationSource(Client), _featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningFeaturestoreEntityVersionOperationSource(Client), _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics, Pipeline, _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> Updat /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningFeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _featurestoreEntityVersionClientDiagnostics.CreateScope("FeaturestoreEntityVersionResource.Update"); + using var scope = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics.CreateScope("MachineLearningFeaturestoreEntityVersionResource.Update"); scope.Start(); try { - var response = _featurestoreEntityVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturestoreEntityVersionOperationSource(Client), _featurestoreEntityVersionClientDiagnostics, Pipeline, _featurestoreEntityVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningFeaturestoreEntityVersionOperationSource(Client), _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsClientDiagnostics, Pipeline, _machineLearningFeaturestoreEntityVersionFeaturestoreEntityVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobCollection.cs index 475523c97fdd..2ab1fe9de69c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetLabelingJobs method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningLabelingJobs method from an instance of . /// - public partial class LabelingJobCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningLabelingJobCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _labelingJobClientDiagnostics; - private readonly LabelingJobsRestOperations _labelingJobRestClient; + private readonly ClientDiagnostics _machineLearningLabelingJobLabelingJobsClientDiagnostics; + private readonly LabelingJobsRestOperations _machineLearningLabelingJobLabelingJobsRestClient; - /// Initializes a new instance of the class for mocking. - protected LabelingJobCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningLabelingJobCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal LabelingJobCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningLabelingJobCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _labelingJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", LabelingJobResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(LabelingJobResource.ResourceType, out string labelingJobApiVersion); - _labelingJobRestClient = new LabelingJobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, labelingJobApiVersion); + _machineLearningLabelingJobLabelingJobsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningLabelingJobResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningLabelingJobResource.ResourceType, out string machineLearningLabelingJobLabelingJobsApiVersion); + _machineLearningLabelingJobLabelingJobsRestClient = new LabelingJobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningLabelingJobLabelingJobsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string id, LabelingJobData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string id, MachineLearningLabelingJobData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(id, nameof(id)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.CreateOrUpdate"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _labelingJobRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new LabelingJobOperationSource(Client), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningLabelingJobOperationSource(Client), _machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, _machineLearningLabelingJobLabelingJobsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> CreateOrUpdateAsync /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string id, LabelingJobData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string id, MachineLearningLabelingJobData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(id, nameof(id)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.CreateOrUpdate"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobCollection.CreateOrUpdate"); scope.Start(); try { - var response = _labelingJobRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken); - var operation = new MachineLearningArmOperation(new LabelingJobOperationSource(Client), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningLabelingJobLabelingJobsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningLabelingJobOperationSource(Client), _machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, _machineLearningLabelingJobLabelingJobsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -154,18 +154,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(id, nameof(id)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.Get"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobCollection.Get"); scope.Start(); try { - var response = await _labelingJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningLabelingJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -193,18 +193,18 @@ public virtual async Task> GetAsync(string id, boo /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public virtual Response Get(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(id, nameof(id)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.Get"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobCollection.Get"); scope.Start(); try { - var response = _labelingJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken); + var response = _machineLearningLabelingJobLabelingJobsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningLabelingJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -229,12 +229,12 @@ public virtual Response Get(string id, bool? includeJobInst /// Continuation token for pagination. /// Number of labeling jobs to return. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, int? top = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, int? top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _labelingJobRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _labelingJobRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new LabelingJobResource(Client, LabelingJobData.DeserializeLabelingJobData(e)), _labelingJobClientDiagnostics, Pipeline, "LabelingJobCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningLabelingJobLabelingJobsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningLabelingJobLabelingJobsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningLabelingJobResource(Client, MachineLearningLabelingJobData.DeserializeMachineLearningLabelingJobData(e)), _machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, "MachineLearningLabelingJobCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -253,12 +253,12 @@ public virtual AsyncPageable GetAllAsync(string skip = null /// Continuation token for pagination. /// Number of labeling jobs to return. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, int? top = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, int? top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _labelingJobRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _labelingJobRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new LabelingJobResource(Client, LabelingJobData.DeserializeLabelingJobData(e)), _labelingJobClientDiagnostics, Pipeline, "LabelingJobCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningLabelingJobLabelingJobsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningLabelingJobLabelingJobsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, top); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningLabelingJobResource(Client, MachineLearningLabelingJobData.DeserializeMachineLearningLabelingJobData(e)), _machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, "MachineLearningLabelingJobCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -284,11 +284,11 @@ public virtual async Task> ExistsAsync(string id, bool? includeJo { Argument.AssertNotNullOrEmpty(id, nameof(id)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.Exists"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobCollection.Exists"); scope.Start(); try { - var response = await _labelingJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -321,11 +321,11 @@ public virtual Response Exists(string id, bool? includeJobInstructions = n { Argument.AssertNotNullOrEmpty(id, nameof(id)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.Exists"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobCollection.Exists"); scope.Start(); try { - var response = _labelingJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken); + var response = _machineLearningLabelingJobLabelingJobsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -354,18 +354,18 @@ public virtual Response Exists(string id, bool? includeJobInstructions = n /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(id, nameof(id)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.GetIfExists"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobCollection.GetIfExists"); scope.Start(); try { - var response = await _labelingJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningLabelingJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -393,18 +393,18 @@ public virtual async Task> GetIfExistsAsyn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(id, nameof(id)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobCollection.GetIfExists"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobCollection.GetIfExists"); scope.Start(); try { - var response = _labelingJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken); + var response = _machineLearningLabelingJobLabelingJobsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, includeJobInstructions, includeLabelCategories, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningLabelingJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -413,7 +413,7 @@ public virtual NullableResponse GetIfExists(string id, bool } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -423,7 +423,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobData.cs similarity index 66% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobData.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobData.cs index d6f5f7bdd6a3..7d699b56f091 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobData.cs @@ -13,28 +13,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing the LabelingJob data model. + /// A class representing the MachineLearningLabelingJob data model. /// Azure Resource Manager resource envelope. /// - public partial class LabelingJobData : ResourceData + public partial class MachineLearningLabelingJobData : ResourceData { - /// Initializes a new instance of LabelingJobData. + /// Initializes a new instance of MachineLearningLabelingJobData. /// [Required] Additional attributes of the entity. /// is null. - public LabelingJobData(LabelingJobProperties properties) + public MachineLearningLabelingJobData(LabelingJobProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); Properties = properties; } - /// Initializes a new instance of LabelingJobData. + /// Initializes a new instance of MachineLearningLabelingJobData. /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal LabelingJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, LabelingJobProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningLabelingJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, LabelingJobProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobResource.cs similarity index 71% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobResource.cs index 9cde3458dc15..3523fd491aa3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LabelingJobResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a LabelingJob along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetLabelingJobResource method. - /// Otherwise you can get one from its parent resource using the GetLabelingJob method. + /// A Class representing a MachineLearningLabelingJob along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningLabelingJobResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningLabelingJob method. /// - public partial class LabelingJobResource : ArmResource + public partial class MachineLearningLabelingJobResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string id) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _labelingJobClientDiagnostics; - private readonly LabelingJobsRestOperations _labelingJobRestClient; - private readonly LabelingJobData _data; + private readonly ClientDiagnostics _machineLearningLabelingJobLabelingJobsClientDiagnostics; + private readonly LabelingJobsRestOperations _machineLearningLabelingJobLabelingJobsRestClient; + private readonly MachineLearningLabelingJobData _data; - /// Initializes a new instance of the class for mocking. - protected LabelingJobResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningLabelingJobResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal LabelingJobResource(ArmClient client, LabelingJobData data) : this(client, data.Id) + internal MachineLearningLabelingJobResource(ArmClient client, MachineLearningLabelingJobData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal LabelingJobResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningLabelingJobResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _labelingJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string labelingJobApiVersion); - _labelingJobRestClient = new LabelingJobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, labelingJobApiVersion); + _machineLearningLabelingJobLabelingJobsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningLabelingJobLabelingJobsApiVersion); + _machineLearningLabelingJobLabelingJobsRestClient = new LabelingJobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningLabelingJobLabelingJobsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal LabelingJobResource(ArmClient client, ResourceIdentifier id) : base(cli /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual LabelingJobData Data + public virtual MachineLearningLabelingJobData Data { get { @@ -103,16 +103,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Boolean value to indicate whether to include JobInstructions in response. /// Boolean value to indicate Whether to include LabelCategories in response. /// The cancellation token to use. - public virtual async Task> GetAsync(bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Get"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Get"); scope.Start(); try { - var response = await _labelingJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningLabelingJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -137,16 +137,16 @@ public virtual async Task> GetAsync(bool? includeJ /// Boolean value to indicate whether to include JobInstructions in response. /// Boolean value to indicate Whether to include LabelCategories in response. /// The cancellation token to use. - public virtual Response Get(bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public virtual Response Get(bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Get"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Get"); scope.Start(); try { - var response = _labelingJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, includeJobInstructions, includeLabelCategories, cancellationToken); + var response = _machineLearningLabelingJobLabelingJobsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, includeJobInstructions, includeLabelCategories, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new LabelingJobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningLabelingJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -172,11 +172,11 @@ public virtual Response Get(bool? includeJobInstructions = /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Delete"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Delete"); scope.Start(); try { - var response = await _labelingJobRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -206,11 +206,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Delete"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Delete"); scope.Start(); try { - var response = _labelingJobRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningLabelingJobLabelingJobsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new MachineLearningArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -240,16 +240,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// LabelingJob definition object. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, LabelingJobData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningLabelingJobData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Update"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Update"); scope.Start(); try { - var response = await _labelingJobRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new LabelingJobOperationSource(Client), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningLabelingJobOperationSource(Client), _machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, _machineLearningLabelingJobLabelingJobsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -278,16 +278,16 @@ public virtual async Task> UpdateAsync(WaitUnt /// LabelingJob definition object. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, LabelingJobData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningLabelingJobData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Update"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Update"); scope.Start(); try { - var response = _labelingJobRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new LabelingJobOperationSource(Client), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningLabelingJobLabelingJobsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningLabelingJobOperationSource(Client), _machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, _machineLearningLabelingJobLabelingJobsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -320,12 +320,12 @@ public virtual async Task> ExportLabelsAsync(WaitUnt { Argument.AssertNotNull(body, nameof(body)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.ExportLabels"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.ExportLabels"); scope.Start(); try { - var response = await _labelingJobRestClient.ExportLabelsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new ExportSummaryOperationSource(), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateExportLabelsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.ExportLabelsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new ExportSummaryOperationSource(), _machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, _machineLearningLabelingJobLabelingJobsRestClient.CreateExportLabelsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -358,12 +358,12 @@ public virtual ArmOperation ExportLabels(WaitUntil waitUntil, Exp { Argument.AssertNotNull(body, nameof(body)); - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.ExportLabels"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.ExportLabels"); scope.Start(); try { - var response = _labelingJobRestClient.ExportLabels(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, cancellationToken); - var operation = new MachineLearningArmOperation(new ExportSummaryOperationSource(), _labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateExportLabelsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningLabelingJobLabelingJobsRestClient.ExportLabels(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, cancellationToken); + var operation = new MachineLearningArmOperation(new ExportSummaryOperationSource(), _machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, _machineLearningLabelingJobLabelingJobsRestClient.CreateExportLabelsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -391,11 +391,11 @@ public virtual ArmOperation ExportLabels(WaitUntil waitUntil, Exp /// The cancellation token to use. public virtual async Task PauseAsync(CancellationToken cancellationToken = default) { - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Pause"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Pause"); scope.Start(); try { - var response = await _labelingJobRestClient.PauseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.PauseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -421,11 +421,11 @@ public virtual async Task PauseAsync(CancellationToken cancellationTok /// The cancellation token to use. public virtual Response Pause(CancellationToken cancellationToken = default) { - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Pause"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Pause"); scope.Start(); try { - var response = _labelingJobRestClient.Pause(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningLabelingJobLabelingJobsRestClient.Pause(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); return response; } catch (Exception e) @@ -452,12 +452,12 @@ public virtual Response Pause(CancellationToken cancellationToken = default) /// The cancellation token to use. public virtual async Task ResumeAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Resume"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Resume"); scope.Start(); try { - var response = await _labelingJobRestClient.ResumeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateResumeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningLabelingJobLabelingJobsRestClient.ResumeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, _machineLearningLabelingJobLabelingJobsRestClient.CreateResumeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -486,12 +486,12 @@ public virtual async Task ResumeAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Resume(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _labelingJobClientDiagnostics.CreateScope("LabelingJobResource.Resume"); + using var scope = _machineLearningLabelingJobLabelingJobsClientDiagnostics.CreateScope("MachineLearningLabelingJobResource.Resume"); scope.Start(); try { - var response = _labelingJobRestClient.Resume(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_labelingJobClientDiagnostics, Pipeline, _labelingJobRestClient.CreateResumeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningLabelingJobLabelingJobsRestClient.Resume(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningLabelingJobLabelingJobsClientDiagnostics, Pipeline, _machineLearningLabelingJobLabelingJobsRestClient.CreateResumeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeContainerCollection.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeContainerCollection.cs index d7efb2a5d2e8..3f6f4e495655 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeContainerCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryCodes method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistryCodeContainers method from an instance of . /// - public partial class RegistryCodeCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryCodeContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryCodeRegistryCodeContainersClientDiagnostics; - private readonly RegistryCodeContainersRestOperations _registryCodeRegistryCodeContainersRestClient; + private readonly ClientDiagnostics _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics; + private readonly RegistryCodeContainersRestOperations _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryCodeCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryCodeContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryCodeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryCodeContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryCodeRegistryCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryCodeResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryCodeResource.ResourceType, out string registryCodeRegistryCodeContainersApiVersion); - _registryCodeRegistryCodeContainersRestClient = new RegistryCodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryCodeRegistryCodeContainersApiVersion); + _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryCodeContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryCodeContainerResource.ResourceType, out string machineLearningRegistryCodeContainerRegistryCodeContainersApiVersion); + _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient = new RegistryCodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryCodeContainerRegistryCodeContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -49,8 +49,8 @@ internal RegistryCodeCollection(ArmClient client, ResourceIdentifier id) : base( internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryResource.ResourceType), nameof(id)); } /// @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string codeName, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string codeName, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryCodeRegistryCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryCodeOperationSource(Client), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryCodeContainerOperationSource(Client), _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics, Pipeline, _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> CreateOrUpdateAsyn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string codeName, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string codeName, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryCodeRegistryCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryCodeOperationSource(Client), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryCodeContainerOperationSource(Client), _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics, Pipeline, _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string codeName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string codeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.Get"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerCollection.Get"); scope.Start(); try { - var response = await _registryCodeRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync(string codeNa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string codeName, CancellationToken cancellationToken = default) + public virtual Response Get(string codeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.Get"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerCollection.Get"); scope.Start(); try { - var response = _registryCodeRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken); + var response = _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -224,12 +224,12 @@ public virtual Response Get(string codeName, CancellationT /// /// Continuation token for pagination. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryCodeRegistryCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryCodeRegistryCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryCodeResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, "RegistryCodeCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryCodeContainerResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics, Pipeline, "MachineLearningRegistryCodeContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -247,12 +247,12 @@ public virtual AsyncPageable GetAllAsync(string skip = nul /// /// Continuation token for pagination. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryCodeRegistryCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryCodeRegistryCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryCodeResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, "RegistryCodeCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryCodeContainerResource(Client, MachineLearningCodeContainerData.DeserializeMachineLearningCodeContainerData(e)), _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics, Pipeline, "MachineLearningRegistryCodeContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -276,11 +276,11 @@ public virtual async Task> ExistsAsync(string codeName, Cancellat { Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.Exists"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerCollection.Exists"); scope.Start(); try { - var response = await _registryCodeRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -311,11 +311,11 @@ public virtual Response Exists(string codeName, CancellationToken cancella { Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.Exists"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerCollection.Exists"); scope.Start(); try { - var response = _registryCodeRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken); + var response = _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -342,18 +342,18 @@ public virtual Response Exists(string codeName, CancellationToken cancella /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string codeName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string codeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.GetIfExists"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _registryCodeRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -379,18 +379,18 @@ public virtual async Task> GetIfExistsAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string codeName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string codeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(codeName, nameof(codeName)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeCollection.GetIfExists"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerCollection.GetIfExists"); scope.Start(); try { - var response = _registryCodeRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken); + var response = _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, codeName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -399,7 +399,7 @@ public virtual NullableResponse GetIfExists(string codeNam } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -409,7 +409,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeContainerResource.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeContainerResource.cs index 78671f6e5d7c..df389f08a833 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryCode along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryCodeResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryCode method. + /// A Class representing a MachineLearningRegistryCodeContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryCodeContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistryCodeContainer method. /// - public partial class RegistryCodeResource : ArmResource + public partial class MachineLearningRegistryCodeContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryCodeRegistryCodeContainersClientDiagnostics; - private readonly RegistryCodeContainersRestOperations _registryCodeRegistryCodeContainersRestClient; + private readonly ClientDiagnostics _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics; + private readonly RegistryCodeContainersRestOperations _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient; private readonly MachineLearningCodeContainerData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryCodeResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryCodeContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryCodeResource(ArmClient client, MachineLearningCodeContainerData data) : this(client, data.Id) + internal MachineLearningRegistryCodeContainerResource(ArmClient client, MachineLearningCodeContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryCodeResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryCodeContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryCodeRegistryCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryCodeRegistryCodeContainersApiVersion); - _registryCodeRegistryCodeContainersRestClient = new RegistryCodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryCodeRegistryCodeContainersApiVersion); + _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryCodeContainerRegistryCodeContainersApiVersion); + _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient = new RegistryCodeContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryCodeContainerRegistryCodeContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of RegistryCodeVersionResources in the RegistryCode. - /// An object representing collection of RegistryCodeVersionResources and their operations over a RegistryCodeVersionResource. - public virtual RegistryCodeVersionCollection GetRegistryCodeVersions() + /// Gets a collection of MachineLearningRegistryCodeVersionResources in the MachineLearningRegistryCodeContainer. + /// An object representing collection of MachineLearningRegistryCodeVersionResources and their operations over a MachineLearningRegistryCodeVersionResource. + public virtual MachineLearningRegistryCodeVersionCollection GetMachineLearningRegistryCodeVersions() { - return GetCachedClient(Client => new RegistryCodeVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryCodeVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual RegistryCodeVersionCollection GetRegistryCodeVersions() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryCodeVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryCodeVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetRegistryCodeVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistryCodeVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetRegistryCode /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryCodeVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistryCodeVersion(string version, CancellationToken cancellationToken = default) { - return GetRegistryCodeVersions().Get(version, cancellationToken); + return GetMachineLearningRegistryCodeVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetRegistryCodeVersion(stri /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Get"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerResource.Get"); scope.Start(); try { - var response = await _registryCodeRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(CancellationT /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Get"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerResource.Get"); scope.Start(); try { - var response = _registryCodeRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,12 +220,12 @@ public virtual Response Get(CancellationToken cancellation /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Delete"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerResource.Delete"); scope.Start(); try { - var response = await _registryCodeRegistryCodeContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics, Pipeline, _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,12 +254,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Delete"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerResource.Delete"); scope.Start(); try { - var response = _registryCodeRegistryCodeContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics, Pipeline, _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Update"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerResource.Update"); scope.Start(); try { - var response = await _registryCodeRegistryCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryCodeOperationSource(Client), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryCodeContainerOperationSource(Client), _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics, Pipeline, _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync(WaitUn /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryCodeRegistryCodeContainersClientDiagnostics.CreateScope("RegistryCodeResource.Update"); + using var scope = _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics.CreateScope("MachineLearningRegistryCodeContainerResource.Update"); scope.Start(); try { - var response = _registryCodeRegistryCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryCodeOperationSource(Client), _registryCodeRegistryCodeContainersClientDiagnostics, Pipeline, _registryCodeRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryCodeContainerOperationSource(Client), _machineLearningRegistryCodeContainerRegistryCodeContainersClientDiagnostics, Pipeline, _machineLearningRegistryCodeContainerRegistryCodeContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeVersionCollection.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeVersionCollection.cs index 5f2b15d63f6e..2be1fcc4a15c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeVersionCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryCodeVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistryCodeVersions method from an instance of . /// - public partial class RegistryCodeVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryCodeVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryCodeVersionClientDiagnostics; - private readonly RegistryCodeVersionsRestOperations _registryCodeVersionRestClient; + private readonly ClientDiagnostics _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics; + private readonly RegistryCodeVersionsRestOperations _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryCodeVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryCodeVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryCodeVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryCodeVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryCodeVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryCodeVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryCodeVersionResource.ResourceType, out string registryCodeVersionApiVersion); - _registryCodeVersionRestClient = new RegistryCodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryCodeVersionApiVersion); + _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryCodeVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryCodeVersionResource.ResourceType, out string machineLearningRegistryCodeVersionRegistryCodeVersionsApiVersion); + _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient = new RegistryCodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryCodeVersionRegistryCodeVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -49,8 +49,8 @@ internal RegistryCodeVersionCollection(ArmClient client, ResourceIdentifier id) internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryCodeResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryCodeResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryCodeContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryCodeContainerResource.ResourceType), nameof(id)); } /// @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryCodeVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryCodeVersionOperationSource(Client), _registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryCodeVersionOperationSource(Client), _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics, Pipeline, _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> CreateOrUpd /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryCodeVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryCodeVersionOperationSource(Client), _registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryCodeVersionOperationSource(Client), _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics, Pipeline, _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.Get"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionCollection.Get"); scope.Start(); try { - var response = await _registryCodeVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync(string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.Get"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionCollection.Get"); scope.Start(); try { - var response = _registryCodeVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string version, Cancell /// Maximum number of records to return. /// Continuation token for pagination. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryCodeVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryCodeVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _registryCodeVersionClientDiagnostics, Pipeline, "RegistryCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics, Pipeline, "MachineLearningRegistryCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -251,12 +251,12 @@ public virtual AsyncPageable GetAllAsync(string ord /// Maximum number of records to return. /// Continuation token for pagination. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryCodeVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryCodeVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _registryCodeVersionClientDiagnostics, Pipeline, "RegistryCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryCodeVersionResource(Client, MachineLearningCodeVersionData.DeserializeMachineLearningCodeVersionData(e)), _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics, Pipeline, "MachineLearningRegistryCodeVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -280,11 +280,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.Exists"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionCollection.Exists"); scope.Start(); try { - var response = await _registryCodeVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -315,11 +315,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.Exists"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionCollection.Exists"); scope.Start(); try { - var response = _registryCodeVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -346,18 +346,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.GetIfExists"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _registryCodeVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -383,18 +383,18 @@ public virtual async Task> GetIfEx /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionCollection.GetIfExists"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionCollection.GetIfExists"); scope.Start(); try { - var response = _registryCodeVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -403,7 +403,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -413,7 +413,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeVersionResource.cs similarity index 66% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeVersionResource.cs index 97dd71f43870..a15ea6f35ae2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCodeVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCodeVersionResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryCodeVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryCodeVersionResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryCodeVersion method. + /// A Class representing a MachineLearningRegistryCodeVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryCodeVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistryCodeVersion method. /// - public partial class RegistryCodeVersionResource : ArmResource + public partial class MachineLearningRegistryCodeVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryCodeVersionClientDiagnostics; - private readonly RegistryCodeVersionsRestOperations _registryCodeVersionRestClient; + private readonly ClientDiagnostics _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics; + private readonly RegistryCodeVersionsRestOperations _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient; private readonly MachineLearningCodeVersionData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryCodeVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryCodeVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryCodeVersionResource(ArmClient client, MachineLearningCodeVersionData data) : this(client, data.Id) + internal MachineLearningRegistryCodeVersionResource(ArmClient client, MachineLearningCodeVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryCodeVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryCodeVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryCodeVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryCodeVersionApiVersion); - _registryCodeVersionRestClient = new RegistryCodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryCodeVersionApiVersion); + _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryCodeVersionRegistryCodeVersionsApiVersion); + _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient = new RegistryCodeVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryCodeVersionRegistryCodeVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -101,16 +101,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Get"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionResource.Get"); scope.Start(); try { - var response = await _registryCodeVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -133,16 +133,16 @@ public virtual async Task> GetAsync(Cancel /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Get"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionResource.Get"); scope.Start(); try { - var response = _registryCodeVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryCodeVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -168,12 +168,12 @@ public virtual Response Get(CancellationToken cance /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Delete"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionResource.Delete"); scope.Start(); try { - var response = await _registryCodeVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics, Pipeline, _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -202,12 +202,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Delete"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionResource.Delete"); scope.Start(); try { - var response = _registryCodeVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics, Pipeline, _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -236,16 +236,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Update"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionResource.Update"); scope.Start(); try { - var response = await _registryCodeVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryCodeVersionOperationSource(Client), _registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryCodeVersionOperationSource(Client), _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics, Pipeline, _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -274,16 +274,16 @@ public virtual async Task> UpdateAsync /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningCodeVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.Update"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionResource.Update"); scope.Start(); try { - var response = _registryCodeVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryCodeVersionOperationSource(Client), _registryCodeVersionClientDiagnostics, Pipeline, _registryCodeVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryCodeVersionOperationSource(Client), _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics, Pipeline, _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -315,11 +315,11 @@ public virtual async Task> CreateOrGetStartPe { Argument.AssertNotNull(body, nameof(body)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.CreateOrGetStartPendingUpload"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionResource.CreateOrGetStartPendingUpload"); scope.Start(); try { - var response = await _registryCodeVersionRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -349,11 +349,11 @@ public virtual Response CreateOrGetStartPendingUpload( { Argument.AssertNotNull(body, nameof(body)); - using var scope = _registryCodeVersionClientDiagnostics.CreateScope("RegistryCodeVersionResource.CreateOrGetStartPendingUpload"); + using var scope = _machineLearningRegistryCodeVersionRegistryCodeVersionsClientDiagnostics.CreateScope("MachineLearningRegistryCodeVersionResource.CreateOrGetStartPendingUpload"); scope.Start(); try { - var response = _registryCodeVersionRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + var response = _machineLearningRegistryCodeVersionRegistryCodeVersionsRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCollection.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCollection.cs index 62d1e3edfd79..8a011a6eed10 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistries method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistries method from an instance of . /// - public partial class RegistryCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryClientDiagnostics; - private readonly RegistriesRestOperations _registryRestClient; + private readonly ClientDiagnostics _machineLearningRegistryRegistriesClientDiagnostics; + private readonly RegistriesRestOperations _machineLearningRegistryRegistriesRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryResource.ResourceType, out string registryApiVersion); - _registryRestClient = new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryApiVersion); + _machineLearningRegistryRegistriesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryResource.ResourceType, out string machineLearningRegistryRegistriesApiVersion); + _machineLearningRegistryRegistriesRestClient = new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryRegistriesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string registryName, RegistryData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string registryName, MachineLearningRegistryData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryOperationSource(Client), _registryClientDiagnostics, Pipeline, _registryRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, registryName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = await _machineLearningRegistryRegistriesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryOperationSource(Client), _machineLearningRegistryRegistriesClientDiagnostics, Pipeline, _machineLearningRegistryRegistriesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, registryName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string registryName, RegistryData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string registryName, MachineLearningRegistryData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, registryName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryOperationSource(Client), _registryClientDiagnostics, Pipeline, _registryRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, registryName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = _machineLearningRegistryRegistriesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, registryName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryOperationSource(Client), _machineLearningRegistryRegistriesClientDiagnostics, Pipeline, _machineLearningRegistryRegistriesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, registryName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string registryName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string registryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.Get"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryCollection.Get"); scope.Start(); try { - var response = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryRegistriesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string registryNa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string registryName, CancellationToken cancellationToken = default) + public virtual Response Get(string registryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.Get"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryCollection.Get"); scope.Start(); try { - var response = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken); + var response = _machineLearningRegistryRegistriesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -224,12 +224,12 @@ public virtual Response Get(string registryName, CancellationT /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryResource(Client, RegistryData.DeserializeRegistryData(e)), _registryClientDiagnostics, Pipeline, "RegistryCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryRegistriesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryRegistriesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryResource(Client, MachineLearningRegistryData.DeserializeMachineLearningRegistryData(e)), _machineLearningRegistryRegistriesClientDiagnostics, Pipeline, "MachineLearningRegistryCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -246,12 +246,12 @@ public virtual AsyncPageable GetAllAsync(CancellationToken can /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryResource(Client, RegistryData.DeserializeRegistryData(e)), _registryClientDiagnostics, Pipeline, "RegistryCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryRegistriesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryRegistriesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryResource(Client, MachineLearningRegistryData.DeserializeMachineLearningRegistryData(e)), _machineLearningRegistryRegistriesClientDiagnostics, Pipeline, "MachineLearningRegistryCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string registryName, Cance { Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.Exists"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryCollection.Exists"); scope.Start(); try { - var response = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryRegistriesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -310,11 +310,11 @@ public virtual Response Exists(string registryName, CancellationToken canc { Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.Exists"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryCollection.Exists"); scope.Start(); try { - var response = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken); + var response = _machineLearningRegistryRegistriesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -341,18 +341,18 @@ public virtual Response Exists(string registryName, CancellationToken canc /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string registryName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string registryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.GetIfExists"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryCollection.GetIfExists"); scope.Start(); try { - var response = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryRegistriesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -378,18 +378,18 @@ public virtual async Task> GetIfExistsAsync(s /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string registryName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string registryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryCollection.GetIfExists"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryCollection.GetIfExists"); scope.Start(); try { - var response = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken); + var response = _machineLearningRegistryRegistriesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, registryName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -398,7 +398,7 @@ public virtual NullableResponse GetIfExists(string registryNam } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -408,7 +408,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryData.cs similarity index 83% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryData.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryData.cs index c39c3e2e3362..100792cd087d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryData.cs @@ -13,18 +13,18 @@ namespace Azure.ResourceManager.MachineLearning { - /// A class representing the Registry data model. - public partial class RegistryData : TrackedResourceData + /// A class representing the MachineLearningRegistry data model. + public partial class MachineLearningRegistryData : TrackedResourceData { - /// Initializes a new instance of RegistryData. + /// Initializes a new instance of MachineLearningRegistryData. /// The location. - public RegistryData(AzureLocation location) : base(location) + public MachineLearningRegistryData(AzureLocation location) : base(location) { PrivateEndpointConnections = new ChangeTrackingList(); RegionDetails = new ChangeTrackingList(); } - /// Initializes a new instance of RegistryData. + /// Initializes a new instance of MachineLearningRegistryData. /// The id. /// The name. /// The resourceType. @@ -44,7 +44,7 @@ public RegistryData(AzureLocation location) : base(location) /// Possible values: "Enabled" or "Disabled" /// /// Details of each region the registry is in. - internal RegistryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string kind, MachineLearningSku sku, Uri discoveryUri, string intellectualPropertyPublisher, ArmResourceId managedResourceGroup, Uri mlFlowRegistryUri, IList privateEndpointConnections, string publicNetworkAccess, IList regionDetails) : base(id, name, resourceType, systemData, tags, location) + internal MachineLearningRegistryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string kind, MachineLearningSku sku, Uri discoveryUri, string intellectualPropertyPublisher, ArmResourceId managedResourceGroup, Uri mlFlowRegistryUri, IList privateEndpointConnections, string publicNetworkAccess, IList regionDetails) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Kind = kind; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataContainerCollection.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataContainerCollection.cs index f3ec63286461..6266620e1a2a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryData method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistryDataContainers method from an instance of . /// - public partial class RegistryDataCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryDataContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryDataRegistryDataContainersClientDiagnostics; - private readonly RegistryDataContainersRestOperations _registryDataRegistryDataContainersRestClient; + private readonly ClientDiagnostics _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics; + private readonly RegistryDataContainersRestOperations _machineLearningRegistryDataContainerRegistryDataContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryDataCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryDataContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryDataCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryDataContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryDataRegistryDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryDataResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryDataResource.ResourceType, out string registryDataRegistryDataContainersApiVersion); - _registryDataRegistryDataContainersRestClient = new RegistryDataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryDataRegistryDataContainersApiVersion); + _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryDataContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryDataContainerResource.ResourceType, out string machineLearningRegistryDataContainerRegistryDataContainersApiVersion); + _machineLearningRegistryDataContainerRegistryDataContainersRestClient = new RegistryDataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryDataContainerRegistryDataContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal RegistryDataCollection(ArmClient client, ResourceIdentifier id) : base( internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryDataRegistryDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryDataOperationSource(Client), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryDataContainerOperationSource(Client), _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics, Pipeline, _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpdateAsyn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryDataRegistryDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryDataOperationSource(Client), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryDataContainerOperationSource(Client), _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics, Pipeline, _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.Get"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerCollection.Get"); scope.Start(); try { - var response = await _registryDataRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataContainerRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string name, /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) + public virtual Response Get(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.Get"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerCollection.Get"); scope.Start(); try { - var response = _registryDataRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); + var response = _machineLearningRegistryDataContainerRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string name, CancellationToken /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryDataRegistryDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryDataRegistryDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryDataResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, "RegistryDataCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryDataContainerResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics, Pipeline, "MachineLearningRegistryDataContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAllAsync(string skip = nul /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryDataRegistryDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryDataRegistryDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryDataResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, "RegistryDataCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryDataContainerResource(Client, MachineLearningDataContainerData.DeserializeMachineLearningDataContainerData(e)), _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics, Pipeline, "MachineLearningRegistryDataContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string name, CancellationT { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.Exists"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerCollection.Exists"); scope.Start(); try { - var response = await _registryDataRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataContainerRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string name, CancellationToken cancellation { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.Exists"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerCollection.Exists"); scope.Start(); try { - var response = _registryDataRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningRegistryDataContainerRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -345,18 +345,18 @@ public virtual Response Exists(string name, CancellationToken cancellation /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.GetIfExists"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _registryDataRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataContainerRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -382,18 +382,18 @@ public virtual async Task> GetIfExistsAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataCollection.GetIfExists"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerCollection.GetIfExists"); scope.Start(); try { - var response = _registryDataRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); + var response = _machineLearningRegistryDataContainerRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -402,7 +402,7 @@ public virtual NullableResponse GetIfExists(string name, C } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -412,7 +412,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataContainerResource.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataContainerResource.cs index ebe3e739fcc4..1c0de50b118e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryData along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryDataResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryData method. + /// A Class representing a MachineLearningRegistryDataContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryDataContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistryDataContainer method. /// - public partial class RegistryDataResource : ArmResource + public partial class MachineLearningRegistryDataContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryDataRegistryDataContainersClientDiagnostics; - private readonly RegistryDataContainersRestOperations _registryDataRegistryDataContainersRestClient; + private readonly ClientDiagnostics _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics; + private readonly RegistryDataContainersRestOperations _machineLearningRegistryDataContainerRegistryDataContainersRestClient; private readonly MachineLearningDataContainerData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryDataResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryDataContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryDataResource(ArmClient client, MachineLearningDataContainerData data) : this(client, data.Id) + internal MachineLearningRegistryDataContainerResource(ArmClient client, MachineLearningDataContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryDataResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryDataContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryDataRegistryDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryDataRegistryDataContainersApiVersion); - _registryDataRegistryDataContainersRestClient = new RegistryDataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryDataRegistryDataContainersApiVersion); + _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryDataContainerRegistryDataContainersApiVersion); + _machineLearningRegistryDataContainerRegistryDataContainersRestClient = new RegistryDataContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryDataContainerRegistryDataContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of RegistryDataVersionResources in the RegistryData. - /// An object representing collection of RegistryDataVersionResources and their operations over a RegistryDataVersionResource. - public virtual RegistryDataVersionCollection GetRegistryDataVersions() + /// Gets a collection of MachineLearningRegistryDataVersionResources in the MachineLearningRegistryDataContainer. + /// An object representing collection of MachineLearningRegistryDataVersionResources and their operations over a MachineLearningRegistryDataVersionResource. + public virtual MachineLearningRegistryDataVersionCollection GetMachineLearningRegistryDataVersions() { - return GetCachedClient(Client => new RegistryDataVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryDataVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual RegistryDataVersionCollection GetRegistryDataVersions() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryDataVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryDataVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetRegistryDataVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistryDataVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetRegistryData /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryDataVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistryDataVersion(string version, CancellationToken cancellationToken = default) { - return GetRegistryDataVersions().Get(version, cancellationToken); + return GetMachineLearningRegistryDataVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetRegistryDataVersion(stri /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Get"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerResource.Get"); scope.Start(); try { - var response = await _registryDataRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataContainerRegistryDataContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(CancellationT /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Get"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerResource.Get"); scope.Start(); try { - var response = _registryDataRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningRegistryDataContainerRegistryDataContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryDataResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,12 +220,12 @@ public virtual Response Get(CancellationToken cancellation /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Delete"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerResource.Delete"); scope.Start(); try { - var response = await _registryDataRegistryDataContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryDataContainerRegistryDataContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics, Pipeline, _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,12 +254,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Delete"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerResource.Delete"); scope.Start(); try { - var response = _registryDataRegistryDataContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryDataContainerRegistryDataContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics, Pipeline, _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Update"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerResource.Update"); scope.Start(); try { - var response = await _registryDataRegistryDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryDataOperationSource(Client), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryDataContainerOperationSource(Client), _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics, Pipeline, _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync(WaitUn /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryDataRegistryDataContainersClientDiagnostics.CreateScope("RegistryDataResource.Update"); + using var scope = _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics.CreateScope("MachineLearningRegistryDataContainerResource.Update"); scope.Start(); try { - var response = _registryDataRegistryDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryDataOperationSource(Client), _registryDataRegistryDataContainersClientDiagnostics, Pipeline, _registryDataRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryDataContainerOperationSource(Client), _machineLearningRegistryDataContainerRegistryDataContainersClientDiagnostics, Pipeline, _machineLearningRegistryDataContainerRegistryDataContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataVersionCollection.cs similarity index 61% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataVersionCollection.cs index 1ab274a46cca..f6c2dd3a2e82 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryDataVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistryDataVersions method from an instance of . /// - public partial class RegistryDataVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryDataVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryDataVersionClientDiagnostics; - private readonly RegistryDataVersionsRestOperations _registryDataVersionRestClient; + private readonly ClientDiagnostics _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics; + private readonly RegistryDataVersionsRestOperations _machineLearningRegistryDataVersionRegistryDataVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryDataVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryDataVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryDataVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryDataVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryDataVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryDataVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryDataVersionResource.ResourceType, out string registryDataVersionApiVersion); - _registryDataVersionRestClient = new RegistryDataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryDataVersionApiVersion); + _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryDataVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryDataVersionResource.ResourceType, out string machineLearningRegistryDataVersionRegistryDataVersionsApiVersion); + _machineLearningRegistryDataVersionRegistryDataVersionsRestClient = new RegistryDataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryDataVersionRegistryDataVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal RegistryDataVersionCollection(ArmClient client, ResourceIdentifier id) internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryDataResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryDataResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryDataContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryDataContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryDataVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryDataVersionOperationSource(Client), _registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryDataVersionOperationSource(Client), _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics, Pipeline, _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpd /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryDataVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryDataVersionOperationSource(Client), _registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryDataVersionOperationSource(Client), _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics, Pipeline, _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.Get"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionCollection.Get"); scope.Start(); try { - var response = await _registryDataVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.Get"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionCollection.Get"); scope.Start(); try { - var response = _registryDataVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -232,12 +232,12 @@ public virtual Response Get(string version, Cancell /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryDataVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryDataVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _registryDataVersionClientDiagnostics, Pipeline, "RegistryDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics, Pipeline, "MachineLearningRegistryDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -262,12 +262,12 @@ public virtual AsyncPageable GetAllAsync(string ord /// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2. /// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, string tags = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryDataVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryDataVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _registryDataVersionClientDiagnostics, Pipeline, "RegistryDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, tags, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryDataVersionResource(Client, MachineLearningDataVersionData.DeserializeMachineLearningDataVersionData(e)), _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics, Pipeline, "MachineLearningRegistryDataVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -291,11 +291,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.Exists"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionCollection.Exists"); scope.Start(); try { - var response = await _registryDataVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -326,11 +326,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.Exists"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionCollection.Exists"); scope.Start(); try { - var response = _registryDataVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -357,18 +357,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.GetIfExists"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _registryDataVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -394,18 +394,18 @@ public virtual async Task> GetIfEx /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionCollection.GetIfExists"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionCollection.GetIfExists"); scope.Start(); try { - var response = _registryDataVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -414,7 +414,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -424,7 +424,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataVersionResource.cs similarity index 66% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataVersionResource.cs index f994ac956edc..df1bdeab1abd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryDataVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryDataVersionResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryDataVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryDataVersionResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryDataVersion method. + /// A Class representing a MachineLearningRegistryDataVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryDataVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistryDataVersion method. /// - public partial class RegistryDataVersionResource : ArmResource + public partial class MachineLearningRegistryDataVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string name, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryDataVersionClientDiagnostics; - private readonly RegistryDataVersionsRestOperations _registryDataVersionRestClient; + private readonly ClientDiagnostics _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics; + private readonly RegistryDataVersionsRestOperations _machineLearningRegistryDataVersionRegistryDataVersionsRestClient; private readonly MachineLearningDataVersionData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryDataVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryDataVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryDataVersionResource(ArmClient client, MachineLearningDataVersionData data) : this(client, data.Id) + internal MachineLearningRegistryDataVersionResource(ArmClient client, MachineLearningDataVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryDataVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryDataVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryDataVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryDataVersionApiVersion); - _registryDataVersionRestClient = new RegistryDataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryDataVersionApiVersion); + _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryDataVersionRegistryDataVersionsApiVersion); + _machineLearningRegistryDataVersionRegistryDataVersionsRestClient = new RegistryDataVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryDataVersionRegistryDataVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -101,16 +101,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Get"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionResource.Get"); scope.Start(); try { - var response = await _registryDataVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -133,16 +133,16 @@ public virtual async Task> GetAsync(Cancel /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Get"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionResource.Get"); scope.Start(); try { - var response = _registryDataVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryDataVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -168,12 +168,12 @@ public virtual Response Get(CancellationToken cance /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Delete"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionResource.Delete"); scope.Start(); try { - var response = await _registryDataVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics, Pipeline, _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -202,12 +202,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Delete"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionResource.Delete"); scope.Start(); try { - var response = _registryDataVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics, Pipeline, _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -236,16 +236,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Update"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionResource.Update"); scope.Start(); try { - var response = await _registryDataVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryDataVersionOperationSource(Client), _registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryDataVersionOperationSource(Client), _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics, Pipeline, _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -274,16 +274,16 @@ public virtual async Task> UpdateAsync /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningDataVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.Update"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionResource.Update"); scope.Start(); try { - var response = _registryDataVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryDataVersionOperationSource(Client), _registryDataVersionClientDiagnostics, Pipeline, _registryDataVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryDataVersionOperationSource(Client), _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics, Pipeline, _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -315,11 +315,11 @@ public virtual async Task> CreateOrGetStartPe { Argument.AssertNotNull(body, nameof(body)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.CreateOrGetStartPendingUpload"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionResource.CreateOrGetStartPendingUpload"); scope.Start(); try { - var response = await _registryDataVersionRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -349,11 +349,11 @@ public virtual Response CreateOrGetStartPendingUpload( { Argument.AssertNotNull(body, nameof(body)); - using var scope = _registryDataVersionClientDiagnostics.CreateScope("RegistryDataVersionResource.CreateOrGetStartPendingUpload"); + using var scope = _machineLearningRegistryDataVersionRegistryDataVersionsClientDiagnostics.CreateScope("MachineLearningRegistryDataVersionResource.CreateOrGetStartPendingUpload"); scope.Start(); try { - var response = _registryDataVersionRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + var response = _machineLearningRegistryDataVersionRegistryDataVersionsRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentContainerCollection.cs similarity index 59% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentContainerCollection.cs index 445539dcca6d..f4b05827ec84 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryEnvironments method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistryEnvironmentContainers method from an instance of . /// - public partial class RegistryEnvironmentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryEnvironmentContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics; - private readonly RegistryEnvironmentContainersRestOperations _registryEnvironmentRegistryEnvironmentContainersRestClient; + private readonly ClientDiagnostics _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics; + private readonly RegistryEnvironmentContainersRestOperations _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryEnvironmentCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryEnvironmentContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryEnvironmentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryEnvironmentContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryEnvironmentResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryEnvironmentResource.ResourceType, out string registryEnvironmentRegistryEnvironmentContainersApiVersion); - _registryEnvironmentRegistryEnvironmentContainersRestClient = new RegistryEnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryEnvironmentRegistryEnvironmentContainersApiVersion); + _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryEnvironmentContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryEnvironmentContainerResource.ResourceType, out string machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersApiVersion); + _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient = new RegistryEnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal RegistryEnvironmentCollection(ArmClient client, ResourceIdentifier id) internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string environmentName, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string environmentName, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryEnvironmentOperationSource(Client), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryEnvironmentContainerOperationSource(Client), _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpd /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string environmentName, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string environmentName, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryEnvironmentOperationSource(Client), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryEnvironmentContainerOperationSource(Client), _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string environmentName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string environmentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.Get"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerCollection.Get"); scope.Start(); try { - var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string environmentName, CancellationToken cancellationToken = default) + public virtual Response Get(string environmentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.Get"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerCollection.Get"); scope.Start(); try { - var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken); + var response = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string environmentName, /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryEnvironmentResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, "RegistryEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryEnvironmentContainerResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics, Pipeline, "MachineLearningRegistryEnvironmentContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAllAsync(string ski /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryEnvironmentResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, "RegistryEnvironmentCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryEnvironmentContainerResource(Client, MachineLearningEnvironmentContainerData.DeserializeMachineLearningEnvironmentContainerData(e)), _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics, Pipeline, "MachineLearningRegistryEnvironmentContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string environmentName, Ca { Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.Exists"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerCollection.Exists"); scope.Start(); try { - var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string environmentName, CancellationToken c { Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.Exists"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerCollection.Exists"); scope.Start(); try { - var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken); + var response = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -345,18 +345,18 @@ public virtual Response Exists(string environmentName, CancellationToken c /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string environmentName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string environmentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.GetIfExists"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -382,18 +382,18 @@ public virtual async Task> GetIfEx /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string environmentName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string environmentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(environmentName, nameof(environmentName)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentCollection.GetIfExists"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerCollection.GetIfExists"); scope.Start(); try { - var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken); + var response = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -402,7 +402,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -412,7 +412,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentContainerResource.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentContainerResource.cs index 392b0cfc1921..d8d26cf9f491 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryEnvironment along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryEnvironmentResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryEnvironment method. + /// A Class representing a MachineLearningRegistryEnvironmentContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryEnvironmentContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistryEnvironmentContainer method. /// - public partial class RegistryEnvironmentResource : ArmResource + public partial class MachineLearningRegistryEnvironmentContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics; - private readonly RegistryEnvironmentContainersRestOperations _registryEnvironmentRegistryEnvironmentContainersRestClient; + private readonly ClientDiagnostics _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics; + private readonly RegistryEnvironmentContainersRestOperations _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient; private readonly MachineLearningEnvironmentContainerData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryEnvironmentResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryEnvironmentContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryEnvironmentResource(ArmClient client, MachineLearningEnvironmentContainerData data) : this(client, data.Id) + internal MachineLearningRegistryEnvironmentContainerResource(ArmClient client, MachineLearningEnvironmentContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryEnvironmentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryEnvironmentContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryEnvironmentRegistryEnvironmentContainersApiVersion); - _registryEnvironmentRegistryEnvironmentContainersRestClient = new RegistryEnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryEnvironmentRegistryEnvironmentContainersApiVersion); + _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersApiVersion); + _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient = new RegistryEnvironmentContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of RegistryEnvironmentVersionResources in the RegistryEnvironment. - /// An object representing collection of RegistryEnvironmentVersionResources and their operations over a RegistryEnvironmentVersionResource. - public virtual RegistryEnvironmentVersionCollection GetRegistryEnvironmentVersions() + /// Gets a collection of MachineLearningRegistryEnvironmentVersionResources in the MachineLearningRegistryEnvironmentContainer. + /// An object representing collection of MachineLearningRegistryEnvironmentVersionResources and their operations over a MachineLearningRegistryEnvironmentVersionResource. + public virtual MachineLearningRegistryEnvironmentVersionCollection GetMachineLearningRegistryEnvironmentVersions() { - return GetCachedClient(Client => new RegistryEnvironmentVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryEnvironmentVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual RegistryEnvironmentVersionCollection GetRegistryEnvironmentVersio /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryEnvironmentVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryEnvironmentVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetRegistryEnvironmentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistryEnvironmentVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetRegis /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryEnvironmentVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistryEnvironmentVersion(string version, CancellationToken cancellationToken = default) { - return GetRegistryEnvironmentVersions().Get(version, cancellationToken); + return GetMachineLearningRegistryEnvironmentVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetRegistryEnvironme /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Get"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerResource.Get"); scope.Start(); try { - var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cancel /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Get"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerResource.Get"); scope.Start(); try { - var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,12 +220,12 @@ public virtual Response Get(CancellationToken cance /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Delete"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerResource.Delete"); scope.Start(); try { - var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,12 +254,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Delete"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerResource.Delete"); scope.Start(); try { - var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Update"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerResource.Update"); scope.Start(); try { - var response = await _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryEnvironmentOperationSource(Client), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryEnvironmentContainerOperationSource(Client), _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics.CreateScope("RegistryEnvironmentResource.Update"); + using var scope = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentContainerResource.Update"); scope.Start(); try { - var response = _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryEnvironmentOperationSource(Client), _registryEnvironmentRegistryEnvironmentContainersClientDiagnostics, Pipeline, _registryEnvironmentRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryEnvironmentContainerOperationSource(Client), _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentContainerRegistryEnvironmentContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentVersionCollection.cs similarity index 59% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentVersionCollection.cs index 0b5016247e47..efedf1af0bfc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryEnvironmentVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistryEnvironmentVersions method from an instance of . /// - public partial class RegistryEnvironmentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryEnvironmentVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryEnvironmentVersionClientDiagnostics; - private readonly RegistryEnvironmentVersionsRestOperations _registryEnvironmentVersionRestClient; + private readonly ClientDiagnostics _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics; + private readonly RegistryEnvironmentVersionsRestOperations _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryEnvironmentVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryEnvironmentVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryEnvironmentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryEnvironmentVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryEnvironmentVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryEnvironmentVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryEnvironmentVersionResource.ResourceType, out string registryEnvironmentVersionApiVersion); - _registryEnvironmentVersionRestClient = new RegistryEnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryEnvironmentVersionApiVersion); + _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryEnvironmentVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryEnvironmentVersionResource.ResourceType, out string machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsApiVersion); + _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient = new RegistryEnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal RegistryEnvironmentVersionCollection(ArmClient client, ResourceIdentifi internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryEnvironmentResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryEnvironmentResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryEnvironmentContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryEnvironmentContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryEnvironmentVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryEnvironmentVersionOperationSource(Client), _registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryEnvironmentVersionOperationSource(Client), _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> Crea /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryEnvironmentVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryEnvironmentVersionOperationSource(Client), _registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryEnvironmentVersionOperationSource(Client), _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(W /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.Get"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionCollection.Get"); scope.Start(); try { - var response = await _registryEnvironmentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.Get"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionCollection.Get"); scope.Start(); try { - var response = _registryEnvironmentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -229,12 +229,12 @@ public virtual Response Get(string version, /// View type for including/excluding (for example) archived entities. /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryEnvironmentVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryEnvironmentVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _registryEnvironmentVersionClientDiagnostics, Pipeline, "RegistryEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics, Pipeline, "MachineLearningRegistryEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -256,12 +256,12 @@ public virtual AsyncPageable GetAllAsync(str /// View type for including/excluding (for example) archived entities. /// Stage for including/excluding (for example) archived entities. Takes priority over listViewType. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string orderBy = null, int? top = null, string skip = null, MachineLearningListViewType? listViewType = null, string stage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryEnvironmentVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryEnvironmentVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _registryEnvironmentVersionClientDiagnostics, Pipeline, "RegistryEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, orderBy, top, skip, listViewType, stage); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryEnvironmentVersionResource(Client, MachineLearningEnvironmentVersionData.DeserializeMachineLearningEnvironmentVersionData(e)), _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics, Pipeline, "MachineLearningRegistryEnvironmentVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -285,11 +285,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.Exists"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionCollection.Exists"); scope.Start(); try { - var response = await _registryEnvironmentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -320,11 +320,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.Exists"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionCollection.Exists"); scope.Start(); try { - var response = _registryEnvironmentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -351,18 +351,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.GetIfExists"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _registryEnvironmentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -388,18 +388,18 @@ public virtual async Task> /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionCollection.GetIfExists"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionCollection.GetIfExists"); scope.Start(); try { - var response = _registryEnvironmentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -408,7 +408,7 @@ public virtual NullableResponse GetIfExists( } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -418,7 +418,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentVersionResource.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentVersionResource.cs index 26dd96059688..70ba7ca91e41 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryEnvironmentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryEnvironmentVersionResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryEnvironmentVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryEnvironmentVersionResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryEnvironmentVersion method. + /// A Class representing a MachineLearningRegistryEnvironmentVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryEnvironmentVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistryEnvironmentVersion method. /// - public partial class RegistryEnvironmentVersionResource : ArmResource + public partial class MachineLearningRegistryEnvironmentVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryEnvironmentVersionClientDiagnostics; - private readonly RegistryEnvironmentVersionsRestOperations _registryEnvironmentVersionRestClient; + private readonly ClientDiagnostics _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics; + private readonly RegistryEnvironmentVersionsRestOperations _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient; private readonly MachineLearningEnvironmentVersionData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryEnvironmentVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryEnvironmentVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryEnvironmentVersionResource(ArmClient client, MachineLearningEnvironmentVersionData data) : this(client, data.Id) + internal MachineLearningRegistryEnvironmentVersionResource(ArmClient client, MachineLearningEnvironmentVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryEnvironmentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryEnvironmentVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryEnvironmentVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryEnvironmentVersionApiVersion); - _registryEnvironmentVersionRestClient = new RegistryEnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryEnvironmentVersionApiVersion); + _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsApiVersion); + _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient = new RegistryEnvironmentVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Get"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionResource.Get"); scope.Start(); try { - var response = await _registryEnvironmentVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Get"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionResource.Get"); scope.Start(); try { - var response = _registryEnvironmentVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryEnvironmentVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,12 +167,12 @@ public virtual Response Get(CancellationToke /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Delete"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionResource.Delete"); scope.Start(); try { - var response = await _registryEnvironmentVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -201,12 +201,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Delete"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionResource.Delete"); scope.Start(); try { - var response = _registryEnvironmentVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Update"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionResource.Update"); scope.Start(); try { - var response = await _registryEnvironmentVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryEnvironmentVersionOperationSource(Client), _registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryEnvironmentVersionOperationSource(Client), _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> Upda /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningEnvironmentVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryEnvironmentVersionClientDiagnostics.CreateScope("RegistryEnvironmentVersionResource.Update"); + using var scope = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics.CreateScope("MachineLearningRegistryEnvironmentVersionResource.Update"); scope.Start(); try { - var response = _registryEnvironmentVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryEnvironmentVersionOperationSource(Client), _registryEnvironmentVersionClientDiagnostics, Pipeline, _registryEnvironmentVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryEnvironmentVersionOperationSource(Client), _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsClientDiagnostics, Pipeline, _machineLearningRegistryEnvironmentVersionRegistryEnvironmentVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelContainerCollection.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelContainerCollection.cs index 14016566fc41..08d2fb148f50 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelContainerCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryModels method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistryModelContainers method from an instance of . /// - public partial class RegistryModelCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryModelContainerCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryModelRegistryModelContainersClientDiagnostics; - private readonly RegistryModelContainersRestOperations _registryModelRegistryModelContainersRestClient; + private readonly ClientDiagnostics _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics; + private readonly RegistryModelContainersRestOperations _machineLearningRegistryModelContainerRegistryModelContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryModelCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryModelContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryModelCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryModelContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryModelRegistryModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryModelResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryModelResource.ResourceType, out string registryModelRegistryModelContainersApiVersion); - _registryModelRegistryModelContainersRestClient = new RegistryModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryModelRegistryModelContainersApiVersion); + _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryModelContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryModelContainerResource.ResourceType, out string machineLearningRegistryModelContainerRegistryModelContainersApiVersion); + _machineLearningRegistryModelContainerRegistryModelContainersRestClient = new RegistryModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryModelContainerRegistryModelContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal RegistryModelCollection(ArmClient client, ResourceIdentifier id) : base internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string modelName, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string modelName, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryModelRegistryModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryModelOperationSource(Client), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryModelContainerOperationSource(Client), _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics, Pipeline, _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpdateAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string modelName, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string modelName, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryModelRegistryModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryModelOperationSource(Client), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryModelContainerOperationSource(Client), _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics, Pipeline, _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string modelName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string modelName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.Get"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerCollection.Get"); scope.Start(); try { - var response = await _registryModelRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelContainerRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string model /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string modelName, CancellationToken cancellationToken = default) + public virtual Response Get(string modelName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.Get"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerCollection.Get"); scope.Start(); try { - var response = _registryModelRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken); + var response = _machineLearningRegistryModelContainerRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -226,12 +226,12 @@ public virtual Response Get(string modelName, Cancellatio /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryModelRegistryModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryModelRegistryModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryModelResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, "RegistryModelCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryModelContainerResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics, Pipeline, "MachineLearningRegistryModelContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,12 +250,12 @@ public virtual AsyncPageable GetAllAsync(string skip = nu /// Continuation token for pagination. /// View type for including/excluding (for example) archived entities. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skip = null, MachineLearningListViewType? listViewType = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryModelRegistryModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryModelRegistryModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryModelResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, "RegistryModelCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skip, listViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryModelContainerResource(Client, MachineLearningModelContainerData.DeserializeMachineLearningModelContainerData(e)), _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics, Pipeline, "MachineLearningRegistryModelContainerCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -279,11 +279,11 @@ public virtual async Task> ExistsAsync(string modelName, Cancella { Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.Exists"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerCollection.Exists"); scope.Start(); try { - var response = await _registryModelRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelContainerRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -314,11 +314,11 @@ public virtual Response Exists(string modelName, CancellationToken cancell { Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.Exists"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerCollection.Exists"); scope.Start(); try { - var response = _registryModelRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken); + var response = _machineLearningRegistryModelContainerRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -345,18 +345,18 @@ public virtual Response Exists(string modelName, CancellationToken cancell /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string modelName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string modelName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.GetIfExists"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerCollection.GetIfExists"); scope.Start(); try { - var response = await _registryModelRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelContainerRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -382,18 +382,18 @@ public virtual async Task> GetIfExistsAs /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string modelName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string modelName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelCollection.GetIfExists"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerCollection.GetIfExists"); scope.Start(); try { - var response = _registryModelRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken); + var response = _machineLearningRegistryModelContainerRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, modelName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -402,7 +402,7 @@ public virtual NullableResponse GetIfExists(string modelN } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -412,7 +412,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelContainerResource.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelContainerResource.cs index a87ad66328cd..abf169fd56a6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelContainerResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryModel along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryModelResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryModel method. + /// A Class representing a MachineLearningRegistryModelContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryModelContainerResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistryModelContainer method. /// - public partial class RegistryModelResource : ArmResource + public partial class MachineLearningRegistryModelContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryModelRegistryModelContainersClientDiagnostics; - private readonly RegistryModelContainersRestOperations _registryModelRegistryModelContainersRestClient; + private readonly ClientDiagnostics _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics; + private readonly RegistryModelContainersRestOperations _machineLearningRegistryModelContainerRegistryModelContainersRestClient; private readonly MachineLearningModelContainerData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryModelResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryModelContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryModelResource(ArmClient client, MachineLearningModelContainerData data) : this(client, data.Id) + internal MachineLearningRegistryModelContainerResource(ArmClient client, MachineLearningModelContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryModelResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryModelContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryModelRegistryModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryModelRegistryModelContainersApiVersion); - _registryModelRegistryModelContainersRestClient = new RegistryModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryModelRegistryModelContainersApiVersion); + _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryModelContainerRegistryModelContainersApiVersion); + _machineLearningRegistryModelContainerRegistryModelContainersRestClient = new RegistryModelContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryModelContainerRegistryModelContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -86,11 +86,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of RegistryModelVersionResources in the RegistryModel. - /// An object representing collection of RegistryModelVersionResources and their operations over a RegistryModelVersionResource. - public virtual RegistryModelVersionCollection GetRegistryModelVersions() + /// Gets a collection of MachineLearningRegistryModelVersionResources in the MachineLearningRegistryModelContainer. + /// An object representing collection of MachineLearningRegistryModelVersionResources and their operations over a MachineLearningRegistryModelVersionResource. + public virtual MachineLearningRegistryModelVersionCollection GetMachineLearningRegistryModelVersions() { - return GetCachedClient(Client => new RegistryModelVersionCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryModelVersionCollection(Client, Id)); } /// @@ -111,9 +111,9 @@ public virtual RegistryModelVersionCollection GetRegistryModelVersions() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryModelVersionAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryModelVersionAsync(string version, CancellationToken cancellationToken = default) { - return await GetRegistryModelVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistryModelVersions().GetAsync(version, cancellationToken).ConfigureAwait(false); } /// @@ -134,9 +134,9 @@ public virtual async Task> GetRegistryMod /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryModelVersion(string version, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistryModelVersion(string version, CancellationToken cancellationToken = default) { - return GetRegistryModelVersions().Get(version, cancellationToken); + return GetMachineLearningRegistryModelVersions().Get(version, cancellationToken); } /// @@ -153,16 +153,16 @@ public virtual Response GetRegistryModelVersion(st /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Get"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerResource.Get"); scope.Start(); try { - var response = await _registryModelRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelContainerRegistryModelContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,16 +185,16 @@ public virtual async Task> GetAsync(Cancellation /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Get"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerResource.Get"); scope.Start(); try { - var response = _registryModelRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningRegistryModelContainerRegistryModelContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryModelResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -220,12 +220,12 @@ public virtual Response Get(CancellationToken cancellatio /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Delete"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerResource.Delete"); scope.Start(); try { - var response = await _registryModelRegistryModelContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryModelContainerRegistryModelContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics, Pipeline, _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,12 +254,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Delete"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerResource.Delete"); scope.Start(); try { - var response = _registryModelRegistryModelContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryModelContainerRegistryModelContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics, Pipeline, _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,16 +288,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Update"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerResource.Update"); scope.Start(); try { - var response = await _registryModelRegistryModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryModelOperationSource(Client), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryModelContainerOperationSource(Client), _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics, Pipeline, _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,16 +326,16 @@ public virtual async Task> UpdateAsync(WaitU /// Container entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryModelRegistryModelContainersClientDiagnostics.CreateScope("RegistryModelResource.Update"); + using var scope = _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics.CreateScope("MachineLearningRegistryModelContainerResource.Update"); scope.Start(); try { - var response = _registryModelRegistryModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryModelOperationSource(Client), _registryModelRegistryModelContainersClientDiagnostics, Pipeline, _registryModelRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryModelContainerOperationSource(Client), _machineLearningRegistryModelContainerRegistryModelContainersClientDiagnostics, Pipeline, _machineLearningRegistryModelContainerRegistryModelContainersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionCollection.cs similarity index 59% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionCollection.cs index 06b14c7cbbe0..1ebb8496a4bd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRegistryModelVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningRegistryModelVersions method from an instance of . /// - public partial class RegistryModelVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningRegistryModelVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _registryModelVersionClientDiagnostics; - private readonly RegistryModelVersionsRestOperations _registryModelVersionRestClient; + private readonly ClientDiagnostics _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics; + private readonly RegistryModelVersionsRestOperations _machineLearningRegistryModelVersionRegistryModelVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected RegistryModelVersionCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryModelVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RegistryModelVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryModelVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryModelVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", RegistryModelVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RegistryModelVersionResource.ResourceType, out string registryModelVersionApiVersion); - _registryModelVersionRestClient = new RegistryModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryModelVersionApiVersion); + _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryModelVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningRegistryModelVersionResource.ResourceType, out string machineLearningRegistryModelVersionRegistryModelVersionsApiVersion); + _machineLearningRegistryModelVersionRegistryModelVersionsRestClient = new RegistryModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryModelVersionRegistryModelVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -50,8 +50,8 @@ internal RegistryModelVersionCollection(ArmClient client, ResourceIdentifier id) internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != RegistryModelResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RegistryModelResource.ResourceType), nameof(id)); + if (id.ResourceType != MachineLearningRegistryModelContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, MachineLearningRegistryModelContainerResource.ResourceType), nameof(id)); } /// @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _registryModelVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryModelVersionOperationSource(Client), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryModelVersionOperationSource(Client), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUp /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string version, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.CreateOrUpdate"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _registryModelVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryModelVersionOperationSource(Client), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryModelVersionOperationSource(Client), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.Get"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionCollection.Get"); scope.Start(); try { - var response = await _registryModelVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(strin /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string version, CancellationToken cancellationToken = default) + public virtual Response Get(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.Get"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionCollection.Get"); scope.Start(); try { - var response = _registryModelVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ public virtual Response Get(string version, Cancel /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(RegistryModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(MachineLearningRegistryModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new RegistryModelVersionCollectionGetAllOptions(); + options ??= new MachineLearningRegistryModelVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryModelVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryModelVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RegistryModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _registryModelVersionClientDiagnostics, Pipeline, "RegistryModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, "MachineLearningRegistryModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,14 +250,14 @@ public virtual AsyncPageable GetAllAsync(RegistryM /// /// A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(RegistryModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(MachineLearningRegistryModelVersionCollectionGetAllOptions options, CancellationToken cancellationToken = default) { - options ??= new RegistryModelVersionCollectionGetAllOptions(); + options ??= new MachineLearningRegistryModelVersionCollectionGetAllOptions(); - HttpMessage FirstPageRequest(int? pageSizeHint) => _registryModelVersionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _registryModelVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RegistryModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _registryModelVersionClientDiagnostics, Pipeline, "RegistryModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.Skip, options.OrderBy, options.Top, options.Version, options.Description, options.Tags, options.Properties, options.ListViewType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryModelVersionResource(Client, MachineLearningModelVersionData.DeserializeMachineLearningModelVersionData(e)), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, "MachineLearningRegistryModelVersionCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,11 +281,11 @@ public virtual async Task> ExistsAsync(string version, Cancellati { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.Exists"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionCollection.Exists"); scope.Start(); try { - var response = await _registryModelVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual Response Exists(string version, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.Exists"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionCollection.Exists"); scope.Start(); try { - var response = _registryModelVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -347,18 +347,18 @@ public virtual Response Exists(string version, CancellationToken cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.GetIfExists"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionCollection.GetIfExists"); scope.Start(); try { - var response = await _registryModelVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -384,18 +384,18 @@ public virtual async Task> GetIfE /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(version, nameof(version)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionCollection.GetIfExists"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionCollection.GetIfExists"); scope.Start(); try { - var response = _registryModelVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,7 +404,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll(options: null).GetEnumerator(); } @@ -414,7 +414,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll(options: null).GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(options: null, cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionResource.cs similarity index 67% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionResource.cs index d1cc48091698..721135afd208 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a RegistryModelVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryModelVersionResource method. - /// Otherwise you can get one from its parent resource using the GetRegistryModelVersion method. + /// A Class representing a MachineLearningRegistryModelVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryModelVersionResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistryModelVersion method. /// - public partial class RegistryModelVersionResource : ArmResource + public partial class MachineLearningRegistryModelVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryModelVersionClientDiagnostics; - private readonly RegistryModelVersionsRestOperations _registryModelVersionRestClient; + private readonly ClientDiagnostics _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics; + private readonly RegistryModelVersionsRestOperations _machineLearningRegistryModelVersionRegistryModelVersionsRestClient; private readonly MachineLearningModelVersionData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryModelVersionResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryModelVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryModelVersionResource(ArmClient client, MachineLearningModelVersionData data) : this(client, data.Id) + internal MachineLearningRegistryModelVersionResource(ArmClient client, MachineLearningModelVersionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryModelVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryModelVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryModelVersionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryModelVersionApiVersion); - _registryModelVersionRestClient = new RegistryModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryModelVersionApiVersion); + _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryModelVersionRegistryModelVersionsApiVersion); + _machineLearningRegistryModelVersionRegistryModelVersionsRestClient = new RegistryModelVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryModelVersionRegistryModelVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -101,16 +101,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Get"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Get"); scope.Start(); try { - var response = await _registryModelVersionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -133,16 +133,16 @@ public virtual async Task> GetAsync(Cance /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Get"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Get"); scope.Start(); try { - var response = _registryModelVersionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryModelVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -168,12 +168,12 @@ public virtual Response Get(CancellationToken canc /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Delete"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Delete"); scope.Start(); try { - var response = await _registryModelVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -202,12 +202,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Delete"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Delete"); scope.Start(); try { - var response = _registryModelVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -236,16 +236,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Update"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Update"); scope.Start(); try { - var response = await _registryModelVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryModelVersionOperationSource(Client), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryModelVersionOperationSource(Client), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -274,16 +274,16 @@ public virtual async Task> UpdateAsyn /// Version entity to create or update. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningModelVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Update"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Update"); scope.Start(); try { - var response = _registryModelVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryModelVersionOperationSource(Client), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryModelVersionOperationSource(Client), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -316,12 +316,12 @@ public virtual async Task> PackageAsync(WaitUntil { Argument.AssertNotNull(body, nameof(body)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Package"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Package"); scope.Start(); try { - var response = await _registryModelVersionRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -354,12 +354,12 @@ public virtual ArmOperation Package(WaitUntil waitUntil, Packag { Argument.AssertNotNull(body, nameof(body)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.Package"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Package"); scope.Start(); try { - var response = _registryModelVersionRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); - var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _registryModelVersionClientDiagnostics, Pipeline, _registryModelVersionRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -391,11 +391,11 @@ public virtual async Task> CreateOrGetStartPe { Argument.AssertNotNull(body, nameof(body)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.CreateOrGetStartPendingUpload"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.CreateOrGetStartPendingUpload"); scope.Start(); try { - var response = await _registryModelVersionRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateOrGetStartPendingUploadAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -425,11 +425,11 @@ public virtual Response CreateOrGetStartPendingUpload( { Argument.AssertNotNull(body, nameof(body)); - using var scope = _registryModelVersionClientDiagnostics.CreateScope("RegistryModelVersionResource.CreateOrGetStartPendingUpload"); + using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.CreateOrGetStartPendingUpload"); scope.Start(); try { - var response = _registryModelVersionRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreateOrGetStartPendingUpload(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryResource.cs similarity index 68% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryResource.cs index 84393bfe15a2..be4f72d7662e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RegistryResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryResource.cs @@ -20,46 +20,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing a Registry along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRegistryResource method. - /// Otherwise you can get one from its parent resource using the GetRegistry method. + /// A Class representing a MachineLearningRegistry along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningRegistryResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningRegistry method. /// - public partial class RegistryResource : ArmResource + public partial class MachineLearningRegistryResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string registryName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _registryClientDiagnostics; - private readonly RegistriesRestOperations _registryRestClient; - private readonly RegistryData _data; + private readonly ClientDiagnostics _machineLearningRegistryRegistriesClientDiagnostics; + private readonly RegistriesRestOperations _machineLearningRegistryRegistriesRestClient; + private readonly MachineLearningRegistryData _data; - /// Initializes a new instance of the class for mocking. - protected RegistryResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningRegistryResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RegistryResource(ArmClient client, RegistryData data) : this(client, data.Id) + internal MachineLearningRegistryResource(ArmClient client, MachineLearningRegistryData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RegistryResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningRegistryResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _registryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string registryApiVersion); - _registryRestClient = new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, registryApiVersion); + _machineLearningRegistryRegistriesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningRegistryRegistriesApiVersion); + _machineLearningRegistryRegistriesRestClient = new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningRegistryRegistriesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,7 +73,7 @@ internal RegistryResource(ArmClient client, ResourceIdentifier id) : base(client /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual RegistryData Data + public virtual MachineLearningRegistryData Data { get { @@ -89,11 +89,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of RegistryCodeResources in the Registry. - /// An object representing collection of RegistryCodeResources and their operations over a RegistryCodeResource. - public virtual RegistryCodeCollection GetRegistryCodes() + /// Gets a collection of MachineLearningRegistryCodeContainerResources in the MachineLearningRegistry. + /// An object representing collection of MachineLearningRegistryCodeContainerResources and their operations over a MachineLearningRegistryCodeContainerResource. + public virtual MachineLearningRegistryCodeContainerCollection GetMachineLearningRegistryCodeContainers() { - return GetCachedClient(Client => new RegistryCodeCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryCodeContainerCollection(Client, Id)); } /// @@ -114,9 +114,9 @@ public virtual RegistryCodeCollection GetRegistryCodes() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryCodeAsync(string codeName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryCodeContainerAsync(string codeName, CancellationToken cancellationToken = default) { - return await GetRegistryCodes().GetAsync(codeName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistryCodeContainers().GetAsync(codeName, cancellationToken).ConfigureAwait(false); } /// @@ -137,16 +137,16 @@ public virtual async Task> GetRegistryCodeAsync(s /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryCode(string codeName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistryCodeContainer(string codeName, CancellationToken cancellationToken = default) { - return GetRegistryCodes().Get(codeName, cancellationToken); + return GetMachineLearningRegistryCodeContainers().Get(codeName, cancellationToken); } - /// Gets a collection of RegistryComponentResources in the Registry. - /// An object representing collection of RegistryComponentResources and their operations over a RegistryComponentResource. - public virtual RegistryComponentCollection GetRegistryComponents() + /// Gets a collection of MachineLearninRegistryComponentContainerResources in the MachineLearningRegistry. + /// An object representing collection of MachineLearninRegistryComponentContainerResources and their operations over a MachineLearninRegistryComponentContainerResource. + public virtual MachineLearninRegistryComponentContainerCollection GetMachineLearninRegistryComponentContainers() { - return GetCachedClient(Client => new RegistryComponentCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearninRegistryComponentContainerCollection(Client, Id)); } /// @@ -167,9 +167,9 @@ public virtual RegistryComponentCollection GetRegistryComponents() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryComponentAsync(string componentName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearninRegistryComponentContainerAsync(string componentName, CancellationToken cancellationToken = default) { - return await GetRegistryComponents().GetAsync(componentName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearninRegistryComponentContainers().GetAsync(componentName, cancellationToken).ConfigureAwait(false); } /// @@ -190,16 +190,16 @@ public virtual async Task> GetRegistryCompon /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryComponent(string componentName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearninRegistryComponentContainer(string componentName, CancellationToken cancellationToken = default) { - return GetRegistryComponents().Get(componentName, cancellationToken); + return GetMachineLearninRegistryComponentContainers().Get(componentName, cancellationToken); } - /// Gets a collection of RegistryDataResources in the Registry. - /// An object representing collection of RegistryDataResources and their operations over a RegistryDataResource. - public virtual RegistryDataCollection GetAllRegistryData() + /// Gets a collection of MachineLearningRegistryDataContainerResources in the MachineLearningRegistry. + /// An object representing collection of MachineLearningRegistryDataContainerResources and their operations over a MachineLearningRegistryDataContainerResource. + public virtual MachineLearningRegistryDataContainerCollection GetMachineLearningRegistryDataContainers() { - return GetCachedClient(Client => new RegistryDataCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryDataContainerCollection(Client, Id)); } /// @@ -220,9 +220,9 @@ public virtual RegistryDataCollection GetAllRegistryData() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryDataAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryDataContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetAllRegistryData().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistryDataContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -243,16 +243,16 @@ public virtual async Task> GetRegistryDataAsync(s /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryData(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistryDataContainer(string name, CancellationToken cancellationToken = default) { - return GetAllRegistryData().Get(name, cancellationToken); + return GetMachineLearningRegistryDataContainers().Get(name, cancellationToken); } - /// Gets a collection of RegistryEnvironmentResources in the Registry. - /// An object representing collection of RegistryEnvironmentResources and their operations over a RegistryEnvironmentResource. - public virtual RegistryEnvironmentCollection GetRegistryEnvironments() + /// Gets a collection of MachineLearningRegistryEnvironmentContainerResources in the MachineLearningRegistry. + /// An object representing collection of MachineLearningRegistryEnvironmentContainerResources and their operations over a MachineLearningRegistryEnvironmentContainerResource. + public virtual MachineLearningRegistryEnvironmentContainerCollection GetMachineLearningRegistryEnvironmentContainers() { - return GetCachedClient(Client => new RegistryEnvironmentCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryEnvironmentContainerCollection(Client, Id)); } /// @@ -273,9 +273,9 @@ public virtual RegistryEnvironmentCollection GetRegistryEnvironments() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryEnvironmentAsync(string environmentName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryEnvironmentContainerAsync(string environmentName, CancellationToken cancellationToken = default) { - return await GetRegistryEnvironments().GetAsync(environmentName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistryEnvironmentContainers().GetAsync(environmentName, cancellationToken).ConfigureAwait(false); } /// @@ -296,16 +296,16 @@ public virtual async Task> GetRegistryEnvi /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryEnvironment(string environmentName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistryEnvironmentContainer(string environmentName, CancellationToken cancellationToken = default) { - return GetRegistryEnvironments().Get(environmentName, cancellationToken); + return GetMachineLearningRegistryEnvironmentContainers().Get(environmentName, cancellationToken); } - /// Gets a collection of RegistryModelResources in the Registry. - /// An object representing collection of RegistryModelResources and their operations over a RegistryModelResource. - public virtual RegistryModelCollection GetRegistryModels() + /// Gets a collection of MachineLearningRegistryModelContainerResources in the MachineLearningRegistry. + /// An object representing collection of MachineLearningRegistryModelContainerResources and their operations over a MachineLearningRegistryModelContainerResource. + public virtual MachineLearningRegistryModelContainerCollection GetMachineLearningRegistryModelContainers() { - return GetCachedClient(Client => new RegistryModelCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningRegistryModelContainerCollection(Client, Id)); } /// @@ -326,9 +326,9 @@ public virtual RegistryModelCollection GetRegistryModels() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRegistryModelAsync(string modelName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryModelContainerAsync(string modelName, CancellationToken cancellationToken = default) { - return await GetRegistryModels().GetAsync(modelName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistryModelContainers().GetAsync(modelName, cancellationToken).ConfigureAwait(false); } /// @@ -349,9 +349,9 @@ public virtual async Task> GetRegistryModelAsync /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRegistryModel(string modelName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistryModelContainer(string modelName, CancellationToken cancellationToken = default) { - return GetRegistryModels().Get(modelName, cancellationToken); + return GetMachineLearningRegistryModelContainers().Get(modelName, cancellationToken); } /// @@ -368,16 +368,16 @@ public virtual Response GetRegistryModel(string modelName /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Get"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.Get"); scope.Start(); try { - var response = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningRegistryRegistriesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -400,16 +400,16 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Get"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.Get"); scope.Start(); try { - var response = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _machineLearningRegistryRegistriesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningRegistryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -435,12 +435,12 @@ public virtual Response Get(CancellationToken cancellationToke /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Delete"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.Delete"); scope.Start(); try { - var response = await _registryRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_registryClientDiagnostics, Pipeline, _registryRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryRegistriesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningRegistryRegistriesClientDiagnostics, Pipeline, _machineLearningRegistryRegistriesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -469,12 +469,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Delete"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.Delete"); scope.Start(); try { - var response = _registryRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_registryClientDiagnostics, Pipeline, _registryRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryRegistriesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningRegistryRegistriesClientDiagnostics, Pipeline, _machineLearningRegistryRegistriesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -502,16 +502,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Details required to create the registry. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(RegistryPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(MachineLearningRegistryPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Update"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.Update"); scope.Start(); try { - var response = await _registryRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + var response = await _machineLearningRegistryRegistriesRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new MachineLearningRegistryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -536,16 +536,16 @@ public virtual async Task> UpdateAsync(RegistryPatch /// Details required to create the registry. /// The cancellation token to use. /// is null. - public virtual Response Update(RegistryPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(MachineLearningRegistryPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.Update"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.Update"); scope.Start(); try { - var response = _registryRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); - return Response.FromValue(new RegistryResource(Client, response.Value), response.GetRawResponse()); + var response = _machineLearningRegistryRegistriesRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); + return Response.FromValue(new MachineLearningRegistryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -571,16 +571,16 @@ public virtual Response Update(RegistryPatch patch, Cancellati /// Details required to create the registry. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveRegionsAsync(WaitUntil waitUntil, RegistryData data, CancellationToken cancellationToken = default) + public virtual async Task> RemoveRegionsAsync(WaitUntil waitUntil, MachineLearningRegistryData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.RemoveRegions"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.RemoveRegions"); scope.Start(); try { - var response = await _registryRestClient.RemoveRegionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new RegistryOperationSource(Client), _registryClientDiagnostics, Pipeline, _registryRestClient.CreateRemoveRegionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryRegistriesRestClient.RemoveRegionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryOperationSource(Client), _machineLearningRegistryRegistriesClientDiagnostics, Pipeline, _machineLearningRegistryRegistriesRestClient.CreateRemoveRegionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -609,16 +609,16 @@ public virtual async Task> RemoveRegionsAsync(Wai /// Details required to create the registry. /// The cancellation token to use. /// is null. - public virtual ArmOperation RemoveRegions(WaitUntil waitUntil, RegistryData data, CancellationToken cancellationToken = default) + public virtual ArmOperation RemoveRegions(WaitUntil waitUntil, MachineLearningRegistryData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.RemoveRegions"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.RemoveRegions"); scope.Start(); try { - var response = _registryRestClient.RemoveRegions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new RegistryOperationSource(Client), _registryClientDiagnostics, Pipeline, _registryRestClient.CreateRemoveRegionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryRegistriesRestClient.RemoveRegions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningRegistryOperationSource(Client), _machineLearningRegistryRegistriesClientDiagnostics, Pipeline, _machineLearningRegistryRegistriesRestClient.CreateRemoveRegionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -647,12 +647,12 @@ public virtual ArmOperation RemoveRegions(WaitUntil waitUntil, /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.AddTag"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.AddTag"); scope.Start(); try { @@ -661,13 +661,13 @@ public virtual async Task> AddTagAsync(string key, st var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _machineLearningRegistryRegistriesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new MachineLearningRegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new RegistryPatch(); + var patch = new MachineLearningRegistryPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -701,12 +701,12 @@ public virtual async Task> AddTagAsync(string key, st /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.AddTag"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.AddTag"); scope.Start(); try { @@ -715,13 +715,13 @@ public virtual Response AddTag(string key, string value, Cance var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _machineLearningRegistryRegistriesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new MachineLearningRegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new RegistryPatch(); + var patch = new MachineLearningRegistryPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -754,11 +754,11 @@ public virtual Response AddTag(string key, string value, Cance /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.SetTags"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.SetTags"); scope.Start(); try { @@ -768,13 +768,13 @@ public virtual async Task> SetTagsAsync(IDictionary> SetTagsAsync(IDictionary The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.SetTags"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.SetTags"); scope.Start(); try { @@ -817,13 +817,13 @@ public virtual Response SetTags(IDictionary ta var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.ReplaceWith(tags); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _machineLearningRegistryRegistriesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new MachineLearningRegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new RegistryPatch(); + var patch = new MachineLearningRegistryPatch(); patch.Tags.ReplaceWith(tags); var result = Update(patch, cancellationToken: cancellationToken); return result; @@ -852,11 +852,11 @@ public virtual Response SetTags(IDictionary ta /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.RemoveTag"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.RemoveTag"); scope.Start(); try { @@ -865,13 +865,13 @@ public virtual async Task> RemoveTagAsync(string key, var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _registryRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _machineLearningRegistryRegistriesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new MachineLearningRegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new RegistryPatch(); + var patch = new MachineLearningRegistryPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -904,11 +904,11 @@ public virtual async Task> RemoveTagAsync(string key, /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _registryClientDiagnostics.CreateScope("RegistryResource.RemoveTag"); + using var scope = _machineLearningRegistryRegistriesClientDiagnostics.CreateScope("MachineLearningRegistryResource.RemoveTag"); scope.Start(); try { @@ -917,13 +917,13 @@ public virtual Response RemoveTag(string key, CancellationToke var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _registryRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new RegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _machineLearningRegistryRegistriesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new MachineLearningRegistryResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new RegistryPatch(); + var patch = new MachineLearningRegistryPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs index 95c7e6975d60..8bae04bad533 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs @@ -526,11 +526,11 @@ public virtual Response GetMachineLearningData return GetMachineLearningDatastores().Get(name, cancellationToken); } - /// Gets a collection of FeaturesetContainerResources in the MachineLearningWorkspace. - /// An object representing collection of FeaturesetContainerResources and their operations over a FeaturesetContainerResource. - public virtual FeaturesetContainerCollection GetFeaturesetContainers() + /// Gets a collection of MachineLearningFeatureSetContainerResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningFeatureSetContainerResources and their operations over a MachineLearningFeatureSetContainerResource. + public virtual MachineLearningFeatureSetContainerCollection GetMachineLearningFeatureSetContainers() { - return GetCachedClient(Client => new FeaturesetContainerCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningFeatureSetContainerCollection(Client, Id)); } /// @@ -551,9 +551,9 @@ public virtual FeaturesetContainerCollection GetFeaturesetContainers() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetFeaturesetContainerAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningFeatureSetContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetFeaturesetContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningFeatureSetContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -574,16 +574,16 @@ public virtual async Task> GetFeaturesetCo /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetFeaturesetContainer(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningFeatureSetContainer(string name, CancellationToken cancellationToken = default) { - return GetFeaturesetContainers().Get(name, cancellationToken); + return GetMachineLearningFeatureSetContainers().Get(name, cancellationToken); } - /// Gets a collection of FeaturestoreEntityContainerResources in the MachineLearningWorkspace. - /// An object representing collection of FeaturestoreEntityContainerResources and their operations over a FeaturestoreEntityContainerResource. - public virtual FeaturestoreEntityContainerCollection GetFeaturestoreEntityContainers() + /// Gets a collection of MachineLearningFeatureStoreEntityContainerResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningFeatureStoreEntityContainerResources and their operations over a MachineLearningFeatureStoreEntityContainerResource. + public virtual MachineLearningFeatureStoreEntityContainerCollection GetMachineLearningFeatureStoreEntityContainers() { - return GetCachedClient(Client => new FeaturestoreEntityContainerCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningFeatureStoreEntityContainerCollection(Client, Id)); } /// @@ -604,9 +604,9 @@ public virtual FeaturestoreEntityContainerCollection GetFeaturestoreEntityContai /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetFeaturestoreEntityContainerAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningFeatureStoreEntityContainerAsync(string name, CancellationToken cancellationToken = default) { - return await GetFeaturestoreEntityContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningFeatureStoreEntityContainers().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// @@ -627,9 +627,9 @@ public virtual async Task> GetFeat /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetFeaturestoreEntityContainer(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningFeatureStoreEntityContainer(string name, CancellationToken cancellationToken = default) { - return GetFeaturestoreEntityContainers().Get(name, cancellationToken); + return GetMachineLearningFeatureStoreEntityContainers().Get(name, cancellationToken); } /// Gets a collection of MachineLearningJobResources in the MachineLearningWorkspace. @@ -685,11 +685,11 @@ public virtual Response GetMachineLearningJob(string return GetMachineLearningJobs().Get(id, cancellationToken); } - /// Gets a collection of LabelingJobResources in the MachineLearningWorkspace. - /// An object representing collection of LabelingJobResources and their operations over a LabelingJobResource. - public virtual LabelingJobCollection GetLabelingJobs() + /// Gets a collection of MachineLearningLabelingJobResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningLabelingJobResources and their operations over a MachineLearningLabelingJobResource. + public virtual MachineLearningLabelingJobCollection GetMachineLearningLabelingJobs() { - return GetCachedClient(Client => new LabelingJobCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningLabelingJobCollection(Client, Id)); } /// @@ -712,9 +712,9 @@ public virtual LabelingJobCollection GetLabelingJobs() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetLabelingJobAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningLabelingJobAsync(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { - return await GetLabelingJobs().GetAsync(id, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningLabelingJobs().GetAsync(id, includeJobInstructions, includeLabelCategories, cancellationToken).ConfigureAwait(false); } /// @@ -737,9 +737,9 @@ public virtual async Task> GetLabelingJobAsync(str /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetLabelingJob(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningLabelingJob(string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { - return GetLabelingJobs().Get(id, includeJobInstructions, includeLabelCategories, cancellationToken); + return GetMachineLearningLabelingJobs().Get(id, includeJobInstructions, includeLabelCategories, cancellationToken); } /// Gets a collection of MachineLearningOnlineEndpointResources in the MachineLearningWorkspace. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.Serialization.cs index 5193c9e19f87..ea538c605f73 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.Serialization.cs @@ -21,7 +21,7 @@ internal static FeatureResourceArmPaginatedResult DeserializeFeatureResourceArmP return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,10 +35,10 @@ internal static FeatureResourceArmPaginatedResult DeserializeFeatureResourceArmP { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(FeatureData.DeserializeFeatureData(item)); + array.Add(MachineLearningFeatureData.DeserializeMachineLearningFeatureData(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs index 839956790741..ae97c88090a4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs @@ -17,13 +17,13 @@ internal partial class FeatureResourceArmPaginatedResult /// Initializes a new instance of FeatureResourceArmPaginatedResult. internal FeatureResourceArmPaginatedResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of FeatureResourceArmPaginatedResult. /// The link to the next page of Feature objects. If null, there are no additional pages. /// An array of objects of type Feature. - internal FeatureResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + internal FeatureResourceArmPaginatedResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal FeatureResourceArmPaginatedResult(string nextLink, IReadOnlyList The link to the next page of Feature objects. If null, there are no additional pages. public string NextLink { get; } /// An array of objects of type Feature. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.Serialization.cs index 109730330cde..de052be532c3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.Serialization.cs @@ -21,7 +21,7 @@ internal static FeaturesetContainerResourceArmPaginatedResult DeserializeFeature return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,10 +35,10 @@ internal static FeaturesetContainerResourceArmPaginatedResult DeserializeFeature { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(FeaturesetContainerData.DeserializeFeaturesetContainerData(item)); + array.Add(MachineLearningFeatureSetContainerData.DeserializeMachineLearningFeatureSetContainerData(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs index 1c2bcd7ac708..40c3652bd6c5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs @@ -17,13 +17,13 @@ internal partial class FeaturesetContainerResourceArmPaginatedResult /// Initializes a new instance of FeaturesetContainerResourceArmPaginatedResult. internal FeaturesetContainerResourceArmPaginatedResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of FeaturesetContainerResourceArmPaginatedResult. /// The link to the next page of FeaturesetContainer objects. If null, there are no additional pages. /// An array of objects of type FeaturesetContainer. - internal FeaturesetContainerResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + internal FeaturesetContainerResourceArmPaginatedResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal FeaturesetContainerResourceArmPaginatedResult(string nextLink, IReadOnl /// The link to the next page of FeaturesetContainer objects. If null, there are no additional pages. public string NextLink { get; } /// An array of objects of type FeaturesetContainer. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.Serialization.cs index 549a2d62fdeb..15645e37e169 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.Serialization.cs @@ -21,7 +21,7 @@ internal static FeaturesetVersionResourceArmPaginatedResult DeserializeFeaturese return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,10 +35,10 @@ internal static FeaturesetVersionResourceArmPaginatedResult DeserializeFeaturese { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(FeaturesetVersionData.DeserializeFeaturesetVersionData(item)); + array.Add(MachineLearningFeatureSetVersionData.DeserializeMachineLearningFeatureSetVersionData(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs index ef6187df3e68..33de7a46bbc1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs @@ -17,13 +17,13 @@ internal partial class FeaturesetVersionResourceArmPaginatedResult /// Initializes a new instance of FeaturesetVersionResourceArmPaginatedResult. internal FeaturesetVersionResourceArmPaginatedResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of FeaturesetVersionResourceArmPaginatedResult. /// The link to the next page of FeaturesetVersion objects. If null, there are no additional pages. /// An array of objects of type FeaturesetVersion. - internal FeaturesetVersionResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + internal FeaturesetVersionResourceArmPaginatedResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal FeaturesetVersionResourceArmPaginatedResult(string nextLink, IReadOnlyL /// The link to the next page of FeaturesetVersion objects. If null, there are no additional pages. public string NextLink { get; } /// An array of objects of type FeaturesetVersion. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.Serialization.cs index e0bc36f50d63..52cefc2fa51e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.Serialization.cs @@ -21,7 +21,7 @@ internal static FeaturestoreEntityContainerResourceArmPaginatedResult Deserializ return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,10 +35,10 @@ internal static FeaturestoreEntityContainerResourceArmPaginatedResult Deserializ { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(item)); + array.Add(MachineLearningFeatureStoreEntityContainerData.DeserializeMachineLearningFeatureStoreEntityContainerData(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs index 7efe78dad265..ee30957f9086 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs @@ -17,13 +17,13 @@ internal partial class FeaturestoreEntityContainerResourceArmPaginatedResult /// Initializes a new instance of FeaturestoreEntityContainerResourceArmPaginatedResult. internal FeaturestoreEntityContainerResourceArmPaginatedResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of FeaturestoreEntityContainerResourceArmPaginatedResult. /// The link to the next page of FeaturestoreEntityContainer objects. If null, there are no additional pages. /// An array of objects of type FeaturestoreEntityContainer. - internal FeaturestoreEntityContainerResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + internal FeaturestoreEntityContainerResourceArmPaginatedResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal FeaturestoreEntityContainerResourceArmPaginatedResult(string nextLink, /// The link to the next page of FeaturestoreEntityContainer objects. If null, there are no additional pages. public string NextLink { get; } /// An array of objects of type FeaturestoreEntityContainer. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.Serialization.cs index 45b7ed650630..0dc02b355b88 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.Serialization.cs @@ -21,7 +21,7 @@ internal static FeaturestoreEntityVersionResourceArmPaginatedResult DeserializeF return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,10 +35,10 @@ internal static FeaturestoreEntityVersionResourceArmPaginatedResult DeserializeF { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(item)); + array.Add(MachineLearningFeaturestoreEntityVersionData.DeserializeMachineLearningFeaturestoreEntityVersionData(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs index 85ba286ed363..de122d9ca5f2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs @@ -17,13 +17,13 @@ internal partial class FeaturestoreEntityVersionResourceArmPaginatedResult /// Initializes a new instance of FeaturestoreEntityVersionResourceArmPaginatedResult. internal FeaturestoreEntityVersionResourceArmPaginatedResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of FeaturestoreEntityVersionResourceArmPaginatedResult. /// The link to the next page of FeaturestoreEntityVersion objects. If null, there are no additional pages. /// An array of objects of type FeaturestoreEntityVersion. - internal FeaturestoreEntityVersionResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + internal FeaturestoreEntityVersionResourceArmPaginatedResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal FeaturestoreEntityVersionResourceArmPaginatedResult(string nextLink, IR /// The link to the next page of FeaturestoreEntityVersion objects. If null, there are no additional pages. public string NextLink { get; } /// An array of objects of type FeaturestoreEntityVersion. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.Serialization.cs index a798a436023f..4cc57bb6093a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.Serialization.cs @@ -21,7 +21,7 @@ internal static LabelingJobResourceArmPaginatedResult DeserializeLabelingJobReso return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,10 +35,10 @@ internal static LabelingJobResourceArmPaginatedResult DeserializeLabelingJobReso { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(LabelingJobData.DeserializeLabelingJobData(item)); + array.Add(MachineLearningLabelingJobData.DeserializeMachineLearningLabelingJobData(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs index dc62ef9556a8..394c2c656354 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs @@ -17,13 +17,13 @@ internal partial class LabelingJobResourceArmPaginatedResult /// Initializes a new instance of LabelingJobResourceArmPaginatedResult. internal LabelingJobResourceArmPaginatedResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of LabelingJobResourceArmPaginatedResult. /// The link to the next page of LabelingJob objects. If null, there are no additional pages. /// An array of objects of type LabelingJob. - internal LabelingJobResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + internal LabelingJobResourceArmPaginatedResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal LabelingJobResourceArmPaginatedResult(string nextLink, IReadOnlyList The link to the next page of LabelingJob objects. If null, there are no additional pages. public string NextLink { get; } /// An array of objects of type LabelingJob. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureData.Serialization.cs similarity index 88% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureData.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureData.Serialization.cs index d98c1cc4493f..ea07e57afde0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class FeatureData : IUtf8JsonSerializable + public partial class MachineLearningFeatureData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeatureData DeserializeFeatureData(JsonElement element) + internal static MachineLearningFeatureData DeserializeMachineLearningFeatureData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static FeatureData DeserializeFeatureData(JsonElement element) continue; } } - return new FeatureData(id, name, type, systemData.Value, properties); + return new MachineLearningFeatureData(id, name, type, systemData.Value, properties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerCollectionGetAllOptions.cs similarity index 75% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerCollectionGetAllOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerCollectionGetAllOptions.cs index b0b11a8c168b..66fe47a2b462 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerCollectionGetAllOptions.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The FeaturesetContainerCollectionGetAllOptions. - public partial class FeaturesetContainerCollectionGetAllOptions + /// The MachineLearningFeatureSetContainerCollectionGetAllOptions. + public partial class MachineLearningFeatureSetContainerCollectionGetAllOptions { - /// Initializes a new instance of FeaturesetContainerCollectionGetAllOptions. - public FeaturesetContainerCollectionGetAllOptions() + /// Initializes a new instance of MachineLearningFeatureSetContainerCollectionGetAllOptions. + public MachineLearningFeatureSetContainerCollectionGetAllOptions() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerData.Serialization.cs similarity index 87% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerData.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerData.Serialization.cs index 818bf5371250..7e0c5e50c122 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class FeaturesetContainerData : IUtf8JsonSerializable + public partial class MachineLearningFeatureSetContainerData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeaturesetContainerData DeserializeFeaturesetContainerData(JsonElement element) + internal static MachineLearningFeatureSetContainerData DeserializeMachineLearningFeatureSetContainerData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static FeaturesetContainerData DeserializeFeaturesetContainerData(JsonE continue; } } - return new FeaturesetContainerData(id, name, type, systemData.Value, properties); + return new MachineLearningFeatureSetContainerData(id, name, type, systemData.Value, properties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionCollectionGetAllOptions.cs similarity index 78% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionCollectionGetAllOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionCollectionGetAllOptions.cs index da4426cdd2a3..b30f3de95f98 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionCollectionGetAllOptions.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The FeaturesetVersionCollectionGetAllOptions. - public partial class FeaturesetVersionCollectionGetAllOptions + /// The MachineLearningFeatureSetVersionCollectionGetAllOptions. + public partial class MachineLearningFeatureSetVersionCollectionGetAllOptions { - /// Initializes a new instance of FeaturesetVersionCollectionGetAllOptions. - public FeaturesetVersionCollectionGetAllOptions() + /// Initializes a new instance of MachineLearningFeatureSetVersionCollectionGetAllOptions. + public MachineLearningFeatureSetVersionCollectionGetAllOptions() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionData.Serialization.cs similarity index 87% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionData.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionData.Serialization.cs index ca71170aa54b..7a015c8e1ecc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class FeaturesetVersionData : IUtf8JsonSerializable + public partial class MachineLearningFeatureSetVersionData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeaturesetVersionData DeserializeFeaturesetVersionData(JsonElement element) + internal static MachineLearningFeatureSetVersionData DeserializeMachineLearningFeatureSetVersionData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static FeaturesetVersionData DeserializeFeaturesetVersionData(JsonEleme continue; } } - return new FeaturesetVersionData(id, name, type, systemData.Value, properties); + return new MachineLearningFeatureSetVersionData(id, name, type, systemData.Value, properties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions.cs similarity index 74% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerCollectionGetAllOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions.cs index c419a2841d26..fc6ff3aa6bd8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The FeaturestoreEntityContainerCollectionGetAllOptions. - public partial class FeaturestoreEntityContainerCollectionGetAllOptions + /// The MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions. + public partial class MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions { - /// Initializes a new instance of FeaturestoreEntityContainerCollectionGetAllOptions. - public FeaturestoreEntityContainerCollectionGetAllOptions() + /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions. + public MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerData.Serialization.cs similarity index 86% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerData.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerData.Serialization.cs index a9b23714fe54..c297dbc63d4f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class FeaturestoreEntityContainerData : IUtf8JsonSerializable + public partial class MachineLearningFeatureStoreEntityContainerData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeaturestoreEntityContainerData DeserializeFeaturestoreEntityContainerData(JsonElement element) + internal static MachineLearningFeatureStoreEntityContainerData DeserializeMachineLearningFeatureStoreEntityContainerData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static FeaturestoreEntityContainerData DeserializeFeaturestoreEntityCon continue; } } - return new FeaturestoreEntityContainerData(id, name, type, systemData.Value, properties); + return new MachineLearningFeatureStoreEntityContainerData(id, name, type, systemData.Value, properties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions.cs similarity index 77% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionCollectionGetAllOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions.cs index ca5b3d0b2d80..e8c78a7716ed 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The FeaturestoreEntityVersionCollectionGetAllOptions. - public partial class FeaturestoreEntityVersionCollectionGetAllOptions + /// The MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions. + public partial class MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions { - /// Initializes a new instance of FeaturestoreEntityVersionCollectionGetAllOptions. - public FeaturestoreEntityVersionCollectionGetAllOptions() + /// Initializes a new instance of MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions. + public MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionData.Serialization.cs similarity index 86% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionData.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionData.Serialization.cs index 9ac34a92c24d..3a6bdc56fbf6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class FeaturestoreEntityVersionData : IUtf8JsonSerializable + public partial class MachineLearningFeaturestoreEntityVersionData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeaturestoreEntityVersionData DeserializeFeaturestoreEntityVersionData(JsonElement element) + internal static MachineLearningFeaturestoreEntityVersionData DeserializeMachineLearningFeaturestoreEntityVersionData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static FeaturestoreEntityVersionData DeserializeFeaturestoreEntityVersi continue; } } - return new FeaturestoreEntityVersionData(id, name, type, systemData.Value, properties); + return new MachineLearningFeaturestoreEntityVersionData(id, name, type, systemData.Value, properties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningLabelingJobData.Serialization.cs similarity index 88% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobData.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningLabelingJobData.Serialization.cs index 9e263065d0fc..5f1a6b1ecc7b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningLabelingJobData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class LabelingJobData : IUtf8JsonSerializable + public partial class MachineLearningLabelingJobData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static LabelingJobData DeserializeLabelingJobData(JsonElement element) + internal static MachineLearningLabelingJobData DeserializeMachineLearningLabelingJobData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static LabelingJobData DeserializeLabelingJobData(JsonElement element) continue; } } - return new LabelingJobData(id, name, type, systemData.Value, properties); + return new MachineLearningLabelingJobData(id, name, type, systemData.Value, properties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryData.Serialization.cs similarity index 96% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryData.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryData.Serialization.cs index 2b1195ea77b4..3f2a87810a1a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class RegistryData : IUtf8JsonSerializable + public partial class MachineLearningRegistryData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -148,7 +148,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RegistryData DeserializeRegistryData(JsonElement element) + internal static MachineLearningRegistryData DeserializeMachineLearningRegistryData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -332,7 +332,7 @@ internal static RegistryData DeserializeRegistryData(JsonElement element) continue; } } - return new RegistryData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, kind.Value, sku.Value, discoveryUrl.Value, intellectualPropertyPublisher.Value, managedResourceGroup.Value, mlFlowRegistryUri.Value, Optional.ToList(privateEndpointConnections), publicNetworkAccess.Value, Optional.ToList(regionDetails)); + return new MachineLearningRegistryData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, kind.Value, sku.Value, discoveryUrl.Value, intellectualPropertyPublisher.Value, managedResourceGroup.Value, mlFlowRegistryUri.Value, Optional.ToList(privateEndpointConnections), publicNetworkAccess.Value, Optional.ToList(regionDetails)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryModelVersionCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelVersionCollectionGetAllOptions.cs similarity index 76% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryModelVersionCollectionGetAllOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelVersionCollectionGetAllOptions.cs index e3097165f953..593db2b06243 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryModelVersionCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelVersionCollectionGetAllOptions.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The RegistryModelVersionCollectionGetAllOptions. - public partial class RegistryModelVersionCollectionGetAllOptions + /// The MachineLearningRegistryModelVersionCollectionGetAllOptions. + public partial class MachineLearningRegistryModelVersionCollectionGetAllOptions { - /// Initializes a new instance of RegistryModelVersionCollectionGetAllOptions. - public RegistryModelVersionCollectionGetAllOptions() + /// Initializes a new instance of MachineLearningRegistryModelVersionCollectionGetAllOptions. + public MachineLearningRegistryModelVersionCollectionGetAllOptions() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryPatch.Serialization.cs similarity index 93% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryPatch.Serialization.cs index 08e56ee4c49a..d36ee908ff7d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class RegistryPatch : IUtf8JsonSerializable + public partial class MachineLearningRegistryPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryPatch.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryPatch.cs index 3d83d09a2d68..4b4d9c535015 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPatch.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryPatch.cs @@ -12,10 +12,10 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Strictly used in update requests. - public partial class RegistryPatch + public partial class MachineLearningRegistryPatch { - /// Initializes a new instance of RegistryPatch. - public RegistryPatch() + /// Initializes a new instance of MachineLearningRegistryPatch. + public MachineLearningRegistryPatch() { Tags = new ChangeTrackingDictionary(); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.Serialization.cs index d4bdc27c8b5c..f4f0c9caacbf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.Serialization.cs @@ -21,7 +21,7 @@ internal static RegistryTrackedResourceArmPaginatedResult DeserializeRegistryTra return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,10 +35,10 @@ internal static RegistryTrackedResourceArmPaginatedResult DeserializeRegistryTra { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(RegistryData.DeserializeRegistryData(item)); + array.Add(MachineLearningRegistryData.DeserializeMachineLearningRegistryData(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs index 7064ffde0935..1feba685be82 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs @@ -17,13 +17,13 @@ internal partial class RegistryTrackedResourceArmPaginatedResult /// Initializes a new instance of RegistryTrackedResourceArmPaginatedResult. internal RegistryTrackedResourceArmPaginatedResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of RegistryTrackedResourceArmPaginatedResult. /// The link to the next page of Registry objects. If null, there are no additional pages. /// An array of objects of type Registry. - internal RegistryTrackedResourceArmPaginatedResult(string nextLink, IReadOnlyList value) + internal RegistryTrackedResourceArmPaginatedResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal RegistryTrackedResourceArmPaginatedResult(string nextLink, IReadOnlyLis /// The link to the next page of Registry objects. If null, there are no additional pages. public string NextLink { get; } /// An array of objects of type Registry. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs index 4dba18e028bc..76b852e99ac3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs @@ -188,7 +188,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -203,13 +203,13 @@ public async Task> GetAsync(string subscriptionId, string { case 200: { - FeatureData value = default; + MachineLearningFeatureData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = FeatureData.DeserializeFeatureData(document.RootElement); + value = MachineLearningFeatureData.DeserializeMachineLearningFeatureData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeatureData)null, message.Response); + return Response.FromValue((MachineLearningFeatureData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -225,7 +225,7 @@ public async Task> GetAsync(string subscriptionId, string /// The cancellation token to use. /// , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -240,13 +240,13 @@ public Response Get(string subscriptionId, string resourceGroupName { case 200: { - FeatureData value = default; + MachineLearningFeatureData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = FeatureData.DeserializeFeatureData(document.RootElement); + value = MachineLearningFeatureData.DeserializeMachineLearningFeatureData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeatureData)null, message.Response); + return Response.FromValue((MachineLearningFeatureData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs index ac4e9eecb29d..db64689879c9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs @@ -266,7 +266,7 @@ internal HttpMessage CreateGetEntityRequest(string subscriptionId, string resour /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetEntityAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + public async Task> GetEntityAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -279,13 +279,13 @@ public async Task> GetEntityAsync(string subsc { case 200: { - FeaturesetContainerData value = default; + MachineLearningFeatureSetContainerData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = FeaturesetContainerData.DeserializeFeaturesetContainerData(document.RootElement); + value = MachineLearningFeatureSetContainerData.DeserializeMachineLearningFeatureSetContainerData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeaturesetContainerData)null, message.Response); + return Response.FromValue((MachineLearningFeatureSetContainerData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -299,7 +299,7 @@ public async Task> GetEntityAsync(string subsc /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response GetEntity(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + public Response GetEntity(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -312,19 +312,19 @@ public Response GetEntity(string subscriptionId, string { case 200: { - FeaturesetContainerData value = default; + MachineLearningFeatureSetContainerData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = FeaturesetContainerData.DeserializeFeaturesetContainerData(document.RootElement); + value = MachineLearningFeatureSetContainerData.DeserializeMachineLearningFeatureSetContainerData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeaturesetContainerData)null, message.Response); + return Response.FromValue((MachineLearningFeatureSetContainerData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturesetContainerData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureSetContainerData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -359,7 +359,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturesetContainerData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureSetContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -388,7 +388,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturesetContainerData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureSetContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs index ca84cb347f4b..c21a7a91148d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs @@ -293,7 +293,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -307,13 +307,13 @@ public async Task> GetAsync(string subscriptionI { case 200: { - FeaturesetVersionData value = default; + MachineLearningFeatureSetVersionData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = FeaturesetVersionData.DeserializeFeaturesetVersionData(document.RootElement); + value = MachineLearningFeatureSetVersionData.DeserializeMachineLearningFeatureSetVersionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeaturesetVersionData)null, message.Response); + return Response.FromValue((MachineLearningFeatureSetVersionData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -328,7 +328,7 @@ public async Task> GetAsync(string subscriptionI /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -342,19 +342,19 @@ public Response Get(string subscriptionId, string resourc { case 200: { - FeaturesetVersionData value = default; + MachineLearningFeatureSetVersionData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = FeaturesetVersionData.DeserializeFeaturesetVersionData(document.RootElement); + value = MachineLearningFeatureSetVersionData.DeserializeMachineLearningFeatureSetVersionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeaturesetVersionData)null, message.Response); + return Response.FromValue((MachineLearningFeatureSetVersionData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeatureSetVersionData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -392,7 +392,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeatureSetVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -423,7 +423,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeatureSetVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs index 8e50fc078a47..583b48a9256f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs @@ -266,7 +266,7 @@ internal HttpMessage CreateGetEntityRequest(string subscriptionId, string resour /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetEntityAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + public async Task> GetEntityAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -279,13 +279,13 @@ public async Task> GetEntityAsync(stri { case 200: { - FeaturestoreEntityContainerData value = default; + MachineLearningFeatureStoreEntityContainerData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(document.RootElement); + value = MachineLearningFeatureStoreEntityContainerData.DeserializeMachineLearningFeatureStoreEntityContainerData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeaturestoreEntityContainerData)null, message.Response); + return Response.FromValue((MachineLearningFeatureStoreEntityContainerData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -299,7 +299,7 @@ public async Task> GetEntityAsync(stri /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response GetEntity(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) + public Response GetEntity(string subscriptionId, string resourceGroupName, string workspaceName, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -312,19 +312,19 @@ public Response GetEntity(string subscriptionId { case 200: { - FeaturestoreEntityContainerData value = default; + MachineLearningFeatureStoreEntityContainerData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = FeaturestoreEntityContainerData.DeserializeFeaturestoreEntityContainerData(document.RootElement); + value = MachineLearningFeatureStoreEntityContainerData.DeserializeMachineLearningFeatureStoreEntityContainerData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeaturestoreEntityContainerData)null, message.Response); + return Response.FromValue((MachineLearningFeatureStoreEntityContainerData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturestoreEntityContainerData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureStoreEntityContainerData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -359,7 +359,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureStoreEntityContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -388,7 +388,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, FeaturestoreEntityContainerData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureStoreEntityContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs index ade54f8d255a..7103ca0ba695 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs @@ -293,7 +293,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -307,13 +307,13 @@ public async Task> GetAsync(string subsc { case 200: { - FeaturestoreEntityVersionData value = default; + MachineLearningFeaturestoreEntityVersionData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(document.RootElement); + value = MachineLearningFeaturestoreEntityVersionData.DeserializeMachineLearningFeaturestoreEntityVersionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeaturestoreEntityVersionData)null, message.Response); + return Response.FromValue((MachineLearningFeaturestoreEntityVersionData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -328,7 +328,7 @@ public async Task> GetAsync(string subsc /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -342,19 +342,19 @@ public Response Get(string subscriptionId, string { case 200: { - FeaturestoreEntityVersionData value = default; + MachineLearningFeaturestoreEntityVersionData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = FeaturestoreEntityVersionData.DeserializeFeaturestoreEntityVersionData(document.RootElement); + value = MachineLearningFeaturestoreEntityVersionData.DeserializeMachineLearningFeaturestoreEntityVersionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((FeaturestoreEntityVersionData)null, message.Response); + return Response.FromValue((MachineLearningFeaturestoreEntityVersionData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturestoreEntityVersionData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeaturestoreEntityVersionData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -392,7 +392,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -423,7 +423,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeaturestoreEntityVersionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs index 46fa27c6a6fe..f980925047fb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs @@ -244,7 +244,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -257,13 +257,13 @@ public async Task> GetAsync(string subscriptionId, str { case 200: { - LabelingJobData value = default; + MachineLearningLabelingJobData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = LabelingJobData.DeserializeLabelingJobData(document.RootElement); + value = MachineLearningLabelingJobData.DeserializeMachineLearningLabelingJobData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((LabelingJobData)null, message.Response); + return Response.FromValue((MachineLearningLabelingJobData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -279,7 +279,7 @@ public async Task> GetAsync(string subscriptionId, str /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions = null, bool? includeLabelCategories = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -292,19 +292,19 @@ public Response Get(string subscriptionId, string resourceGroup { case 200: { - LabelingJobData value = default; + MachineLearningLabelingJobData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = LabelingJobData.DeserializeLabelingJobData(document.RootElement); + value = MachineLearningLabelingJobData.DeserializeMachineLearningLabelingJobData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((LabelingJobData)null, message.Response); + return Response.FromValue((MachineLearningLabelingJobData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, LabelingJobData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningLabelingJobData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -339,7 +339,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, LabelingJobData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningLabelingJobData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -368,7 +368,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string id, LabelingJobData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningLabelingJobData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs index 10de37f697d0..836ce3d80488 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs @@ -276,7 +276,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string registryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -288,13 +288,13 @@ public async Task> GetAsync(string subscriptionId, string { case 200: { - RegistryData value = default; + MachineLearningRegistryData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RegistryData.DeserializeRegistryData(document.RootElement); + value = MachineLearningRegistryData.DeserializeMachineLearningRegistryData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((RegistryData)null, message.Response); + return Response.FromValue((MachineLearningRegistryData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -307,7 +307,7 @@ public async Task> GetAsync(string subscriptionId, string /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string registryName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string registryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -319,19 +319,19 @@ public Response Get(string subscriptionId, string resourceGroupNam { case 200: { - RegistryData value = default; + MachineLearningRegistryData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RegistryData.DeserializeRegistryData(document.RootElement); + value = MachineLearningRegistryData.DeserializeMachineLearningRegistryData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((RegistryData)null, message.Response); + return Response.FromValue((MachineLearningRegistryData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, RegistryPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -363,7 +363,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string registryName, RegistryPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -376,9 +376,9 @@ public async Task> UpdateAsync(string subscriptionId, str { case 200: { - RegistryData value = default; + MachineLearningRegistryData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RegistryData.DeserializeRegistryData(document.RootElement); + value = MachineLearningRegistryData.DeserializeMachineLearningRegistryData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -394,7 +394,7 @@ public async Task> UpdateAsync(string subscriptionId, str /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string registryName, RegistryPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -407,9 +407,9 @@ public Response Update(string subscriptionId, string resourceGroup { case 200: { - RegistryData value = default; + MachineLearningRegistryData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RegistryData.DeserializeRegistryData(document.RootElement); + value = MachineLearningRegistryData.DeserializeMachineLearningRegistryData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -417,7 +417,7 @@ public Response Update(string subscriptionId, string resourceGroup } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, RegistryData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -449,7 +449,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, RegistryData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -476,7 +476,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, RegistryData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -495,7 +495,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal HttpMessage CreateRemoveRegionsRequest(string subscriptionId, string resourceGroupName, string registryName, RegistryData data) + internal HttpMessage CreateRemoveRegionsRequest(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -528,7 +528,7 @@ internal HttpMessage CreateRemoveRegionsRequest(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task RemoveRegionsAsync(string subscriptionId, string resourceGroupName, string registryName, RegistryData data, CancellationToken cancellationToken = default) + public async Task RemoveRegionsAsync(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -555,7 +555,7 @@ public async Task RemoveRegionsAsync(string subscriptionId, string res /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response RemoveRegions(string subscriptionId, string resourceGroupName, string registryName, RegistryData data, CancellationToken cancellationToken = default) + public Response RemoveRegions(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index d4a1e0fde54f..493de8778df3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -84,8 +84,27 @@ request-path-to-resource-name: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}: MachineLearningEnvironmentVersion /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}: MachineLearningModelContainer /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}: MachineLearningModelVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}: MachineLearningRegistryCodeContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}: MachineLearningRegistryCodeVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}: MachineLearninRegistryComponentContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}: MachineLearninRegistryComponentVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}: MachineLearningRegistryDataContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}: MachineLearningRegistryDataVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}: MachineLearningRegistryEnvironmentContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}: MachineLearningRegistryEnvironmentVersion + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}: MachineLearningRegistryModelContainer + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}: MachineLearningRegistryModelVersion + +prepend-rp-prefix: + - Feature + - LabelingJob + - Registry rename-mapping: + FeaturesetContainer: MachineLearningFeatureSetContainer + FeaturesetVersion: MachineLearningFeatureSetVersion + FeaturestoreEntityContainer: MachineLearningFeatureStoreEntityContainer + FeaturestoreEntityVersion: MachineLearningFeaturestoreEntityVersion ComputeInstanceProperties.setupScripts: SetupScriptsSettings Workspace: MachineLearningWorkspace ComputeResource: MachineLearningCompute From 88850429b13d51ebf4f79c883cedfc4d8f29f4d5 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Fri, 29 Sep 2023 00:16:51 +0800 Subject: [PATCH 08/13] update --- ...eManager.MachineLearning.netstandard2.0.cs | 960 +++++++++--------- ...Sample_MachineLearningComputeCollection.cs | 10 +- .../Sample_MachineLearningComputeResource.cs | 8 +- ...neLearningFeatureSetContainerCollection.cs | 2 +- ...hineLearningFeatureSetContainerResource.cs | 2 +- ...hineLearningFeatureSetVersionCollection.cs | 2 +- ...achineLearningFeatureSetVersionResource.cs | 10 +- ...ngFeatureStoreEntityContainerCollection.cs | 2 +- ...ningFeatureStoreEntityContainerResource.cs | 2 +- ...ningFeaturestoreEntityVersionCollection.cs | 2 +- ...arningFeaturestoreEntityVersionResource.cs | 2 +- .../Sample_MachineLearningJobCollection.cs | 18 +- ...le_MachineLearningLabelingJobCollection.cs | 6 +- ...mple_MachineLearningLabelingJobResource.cs | 6 +- ...ple_MachineLearningModelVersionResource.cs | 8 +- ...ineLearningOutboundRuleBasicCollection.cs} | 48 +- ...chineLearningOutboundRuleBasicResource.cs} | 44 +- ...ample_MachineLearningRegistryCollection.cs | 14 +- ...ineLearningRegistryModelVersionResource.cs | 8 +- .../Sample_MachineLearningRegistryResource.cs | 14 +- .../ArmMachineLearningModelFactory.cs | 150 +-- .../Extensions/MachineLearningExtensions.cs | 14 +- .../FeaturesetJobOperationSource.cs | 31 - ...ineLearningFeatureSetJobOperationSource.cs | 31 + ...earningOutboundRuleBasicOperationSource.cs | 40 + ...s => ModelPackageResultOperationSource.cs} | 10 +- ...utboundRuleBasicResourceOperationSource.cs | 40 - .../Generated/MachineLearningFeatureData.cs | 6 +- .../MachineLearningFeatureSetContainerData.cs | 6 +- .../MachineLearningFeatureSetVersionData.cs | 6 +- ...achineLearningFeatureSetVersionResource.cs | 20 +- ...LearningFeatureStoreEntityContainerData.cs | 6 +- ...neLearningFeaturestoreEntityVersionData.cs | 6 +- .../MachineLearningModelVersionResource.cs | 24 +- ...ineLearningOutboundRuleBasicCollection.cs} | 110 +- ...> MachineLearningOutboundRuleBasicData.cs} | 20 +- ...chineLearningOutboundRuleBasicResource.cs} | 82 +- .../Generated/MachineLearningRegistryData.cs | 2 +- ...ineLearningRegistryModelVersionResource.cs | 24 +- .../Generated/MachineLearningWorkspaceData.cs | 4 +- .../MachineLearningWorkspaceResource.cs | 16 +- .../Models/ArmResourceId.Serialization.cs | 4 +- .../src/Generated/Models/ArmResourceId.cs | 6 +- .../Models/AssetProvisioningState.cs | 63 -- .../Models/AutoMLJob.Serialization.cs | 4 +- .../src/Generated/Models/AutoMLJob.cs | 4 +- .../AutologgerSettings.Serialization.cs | 4 +- .../Generated/Models/AutologgerSettings.cs | 4 +- .../AzureDevOpsWebhook.Serialization.cs | 4 +- .../Generated/Models/AzureDevOpsWebhook.cs | 6 +- .../BaseEnvironmentSource.Serialization.cs | 2 +- .../Generated/Models/BaseEnvironmentSource.cs | 2 +- ...s => BaseEnvironmentType.Serialization.cs} | 10 +- ...nvironmentId.cs => BaseEnvironmentType.cs} | 12 +- ...eferenceForConsumptionDto.Serialization.cs | 4 +- .../Models/BlobReferenceForConsumptionDto.cs | 5 +- ...nstanceAutologgerSettings.Serialization.cs | 4 +- .../ComputeInstanceAutologgerSettings.cs | 4 +- .../Models/ContainerCommunicationProtocol.cs | 54 + ....cs => ContainerEndpoint.Serialization.cs} | 10 +- .../{Endpoint.cs => ContainerEndpoint.cs} | 14 +- .../Models/CustomService.Serialization.cs | 14 +- .../src/Generated/Models/CustomService.cs | 10 +- ...ion.cs => DataCollection.Serialization.cs} | 6 +- .../{Collection.cs => DataCollection.cs} | 12 +- .../Models/DataCollector.Serialization.cs | 6 +- .../src/Generated/Models/DataCollector.cs | 6 +- ...tion.cs => DockerSetting.Serialization.cs} | 6 +- .../Models/{Docker.cs => DockerSetting.cs} | 12 +- ...etVersionBackfillContent.Serialization.cs} | 2 +- ...cs => FeatureSetVersionBackfillContent.cs} | 6 +- ...storeJobType.cs => FeatureStoreJobType.cs} | 28 +- ...esetJobArmPaginatedResult.Serialization.cs | 6 +- .../Models/FeaturesetJobArmPaginatedResult.cs | 6 +- .../Models/FqdnOutboundRule.Serialization.cs | 14 +- .../src/Generated/Models/FqdnOutboundRule.cs | 10 +- ...ation.cs => ImageSetting.Serialization.cs} | 6 +- .../Models/{Image.cs => ImageSetting.cs} | 12 +- ...zation.cs => JobAllNodes.Serialization.cs} | 6 +- .../Models/{AllNodes.cs => JobAllNodes.cs} | 10 +- ...alization.cs => JobNodes.Serialization.cs} | 6 +- .../Models/{Nodes.cs => JobNodes.cs} | 14 +- ...n.cs => JobQueueSettings.Serialization.cs} | 6 +- .../{QueueSettings.cs => JobQueueSettings.cs} | 12 +- ...n.cs => JobStatusMessage.Serialization.cs} | 10 +- .../{StatusMessage.cs => JobStatusMessage.cs} | 12 +- .../Generated/Models/JobStatusMessageLevel.cs | 54 + .../Models/LabelCategory.Serialization.cs | 4 +- .../src/Generated/Models/LabelCategory.cs | 4 +- .../Models/LabelCategoryMultiSelect.cs | 51 + .../LabelingJobProperties.Serialization.cs | 10 +- .../Generated/Models/LabelingJobProperties.cs | 16 +- .../Generated/Models/MLAssistConfiguration.cs | 32 - .../Models/MLAssistConfigurationDisabled.cs | 2 +- .../Generated/Models/MLFlowAutologgerState.cs | 51 - ...rningAssistConfiguration.Serialization.cs} | 6 +- .../MachineLearningAssistConfiguration.cs | 32 + ...sistEnabledConfiguration.Serialization.cs} | 6 +- ...hineLearningAssistEnabledConfiguration.cs} | 10 +- ...ngCodeContainerProperties.Serialization.cs | 4 +- .../MachineLearningCodeContainerProperties.cs | 4 +- ...ningCodeVersionProperties.Serialization.cs | 4 +- .../MachineLearningCodeVersionProperties.cs | 4 +- ...MachineLearningCommandJob.Serialization.cs | 4 +- .../Models/MachineLearningCommandJob.cs | 12 +- ...ponentContainerProperties.Serialization.cs | 4 +- ...ineLearningComponentContainerProperties.cs | 4 +- ...omponentVersionProperties.Serialization.cs | 4 +- ...chineLearningComponentVersionProperties.cs | 4 +- ...achineLearningComputeInstanceProperties.cs | 2 +- .../MachineLearningConnectionCategory.cs | 12 +- ...DistributionConfiguration.Serialization.cs | 2 +- ...achineLearningDistributionConfiguration.cs | 2 +- ...LearningEncryptionSetting.Serialization.cs | 28 +- .../MachineLearningEncryptionSetting.cs | 12 +- ...onmentContainerProperties.Serialization.cs | 4 +- ...eLearningEnvironmentContainerProperties.cs | 4 +- ...ironmentVersionProperties.Serialization.cs | 4 +- ...ineLearningEnvironmentVersionProperties.cs | 4 +- ...achineLearningFeatureData.Serialization.cs | 4 +- ...earningFeatureProperties.Serialization.cs} | 6 +- ...cs => MachineLearningFeatureProperties.cs} | 10 +- ...ngFeatureSetContainerData.Serialization.cs | 4 +- ...reSetContainerProperties.Serialization.cs} | 10 +- ...eLearningFeatureSetContainerProperties.cs} | 12 +- ...ineLearningFeatureSetJob.Serialization.cs} | 10 +- ...Job.cs => MachineLearningFeatureSetJob.cs} | 16 +- ...ningFeatureSetVersionData.Serialization.cs | 4 +- ...tureSetVersionProperties.Serialization.cs} | 10 +- ...ineLearningFeatureSetVersionProperties.cs} | 12 +- ...eStoreEntityContainerData.Serialization.cs | 4 +- ...ntityContainerProperties.Serialization.cs} | 10 +- ...gFeatureStoreEntityContainerProperties.cs} | 12 +- ...eEntityVersionProperties.Serialization.cs} | 10 +- ...ingFeatureStoreEntityVersionProperties.cs} | 12 +- ...urestoreEntityVersionData.Serialization.cs | 4 +- .../Models/MachineLearningJobPatch.cs | 4 +- ...MachineLearningJobService.Serialization.cs | 4 +- .../Models/MachineLearningJobService.cs | 12 +- ...gModelContainerProperties.Serialization.cs | 4 +- ...MachineLearningModelContainerProperties.cs | 4 +- ...ingModelVersionProperties.Serialization.cs | 4 +- .../MachineLearningModelVersionProperties.cs | 4 +- ...hineLearningOutboundRule.Serialization.cs} | 6 +- ...Rule.cs => MachineLearningOutboundRule.cs} | 22 +- ...ingOutboundRuleBasicData.Serialization.cs} | 10 +- .../MachineLearningSweepJob.Serialization.cs | 4 +- .../Models/MachineLearningSweepJob.cs | 4 +- .../Models/MachineLearningTrialComponent.cs | 4 +- ...> MachineLearningWebhook.Serialization.cs} | 4 +- .../{Webhook.cs => MachineLearningWebhook.cs} | 14 +- .../Models/MachineLearningWebhookType.cs | 48 + ...hineLearningWorkspaceData.Serialization.cs | 8 +- .../Models/MachineLearningflowAutologger.cs | 51 + .../MachineLearningflowAutologgerState.cs | 51 + .../ManagedNetworkSettings.Serialization.cs | 6 +- .../Models/ManagedNetworkSettings.cs | 10 +- .../src/Generated/Models/MlflowAutologger.cs | 51 - ...s => ModelPackageContent.Serialization.cs} | 2 +- ...ckageRequest.cs => ModelPackageContent.cs} | 8 +- ...cs => ModelPackageResult.Serialization.cs} | 6 +- ...ckageResponse.cs => ModelPackageResult.cs} | 14 +- ...n.cs => MountBindOptions.Serialization.cs} | 12 +- .../{BindOptions.cs => MountBindOptions.cs} | 18 +- .../src/Generated/Models/MultiSelect.cs | 51 - .../Generated/Models/NetworkingRuleAction.cs | 51 + .../NotificationSetting.Serialization.cs | 6 +- .../Generated/Models/NotificationSetting.cs | 10 +- .../Generated/Models/OutboundRuleCategory.cs | 54 + .../OutboundRuleListResult.Serialization.cs | 6 +- .../Models/OutboundRuleListResult.cs | 6 +- .../Generated/Models/OutboundRuleStatus.cs | 51 + .../src/Generated/Models/OutboundRuleType.cs | 54 + .../PackageInputPathId.Serialization.cs | 4 +- .../Generated/Models/PackageInputPathId.cs | 6 +- .../src/Generated/Models/PartialJobBase.cs | 4 +- .../Models/PartialNotificationSetting.cs | 6 +- ...s => PrivateEndpointBase.Serialization.cs} | 14 +- ...vateEndpoint.cs => PrivateEndpointBase.cs} | 14 +- ...rivateEndpointDestination.Serialization.cs | 4 +- .../Models/PrivateEndpointDestination.cs | 4 +- ...ivateEndpointOutboundRule.Serialization.cs | 14 +- .../Models/PrivateEndpointOutboundRule.cs | 10 +- .../src/Generated/Models/Protocol.cs | 54 - ...istributionConfiguration.Serialization.cs} | 6 +- ...Ray.cs => RayDistributionConfiguration.cs} | 10 +- ...cs => RegistryAcrDetails.Serialization.cs} | 6 +- .../{AcrDetails.cs => RegistryAcrDetails.cs} | 14 +- .../Models/RegistryAssetProvisioningState.cs | 63 ++ ... RegistryPrivateEndpoint.Serialization.cs} | 18 +- ...Resource.cs => RegistryPrivateEndpoint.cs} | 14 +- ...PrivateEndpointConnection.Serialization.cs | 8 +- .../RegistryPrivateEndpointConnection.cs | 6 +- .../RegistryRegionArmDetails.Serialization.cs | 6 +- .../Models/RegistryRegionArmDetails.cs | 6 +- .../src/Generated/Models/RuleAction.cs | 51 - .../src/Generated/Models/RuleCategory.cs | 54 - .../src/Generated/Models/RuleStatus.cs | 51 - .../src/Generated/Models/RuleType.cs | 54 - .../ServiceTagDestination.Serialization.cs | 4 +- .../Generated/Models/ServiceTagDestination.cs | 4 +- .../ServiceTagOutboundRule.Serialization.cs | 14 +- .../Models/ServiceTagOutboundRule.cs | 10 +- .../Models/SparkJob.Serialization.cs | 4 +- .../src/Generated/Models/SparkJob.cs | 4 +- .../Generated/Models/StatusMessageLevel.cs | 54 - .../Generated/Models/StorageAccountDetails.cs | 4 +- .../Models/SystemCreatedAcrAccount.cs | 4 +- .../Models/SystemCreatedStorageAccount.cs | 4 +- .../Models/UnknownMLAssistConfiguration.cs | 2 +- .../src/Generated/Models/UnknownNodes.cs | 2 +- .../UnknownOutboundRule.Serialization.cs | 14 +- .../Generated/Models/UnknownOutboundRule.cs | 8 +- .../Models/UnknownWebhook.Serialization.cs | 4 +- .../src/Generated/Models/UnknownWebhook.cs | 4 +- .../Generated/Models/UserCreatedAcrAccount.cs | 4 +- .../Models/UserCreatedStorageAccount.cs | 4 +- .../Models/VolumeDefinition.Serialization.cs | 4 +- .../src/Generated/Models/VolumeDefinition.cs | 4 +- .../src/Generated/Models/WebhookType.cs | 48 - .../FeaturesetVersionsRestOperations.cs | 6 +- ...anagedNetworkSettingsRuleRestOperations.cs | 22 +- .../ModelVersionsRestOperations.cs | 28 +- .../RegistryModelVersionsRestOperations.cs | 28 +- .../src/autorest.md | 56 + 225 files changed, 2224 insertions(+), 2123 deletions(-) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_OutboundRuleBasicResourceCollection.cs => Sample_MachineLearningOutboundRuleBasicCollection.cs} (82%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/{Sample_OutboundRuleBasicResource.cs => Sample_MachineLearningOutboundRuleBasicResource.cs} (63%) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetJobOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetJobOperationSource.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningOutboundRuleBasicOperationSource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/{PackageResponseOperationSource.cs => ModelPackageResultOperationSource.cs} (52%) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/OutboundRuleBasicResourceOperationSource.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{OutboundRuleBasicResourceCollection.cs => MachineLearningOutboundRuleBasicCollection.cs} (62%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{OutboundRuleBasicResourceData.cs => MachineLearningOutboundRuleBasicData.cs} (55%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/{OutboundRuleBasicResource.cs => MachineLearningOutboundRuleBasicResource.cs} (65%) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AssetProvisioningState.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{BaseEnvironmentId.Serialization.cs => BaseEnvironmentType.Serialization.cs} (77%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{BaseEnvironmentId.cs => BaseEnvironmentType.cs} (76%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerCommunicationProtocol.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Endpoint.Serialization.cs => ContainerEndpoint.Serialization.cs} (88%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Endpoint.cs => ContainerEndpoint.cs} (74%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Collection.Serialization.cs => DataCollection.Serialization.cs} (92%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Collection.cs => DataCollection.cs} (81%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Docker.Serialization.cs => DockerSetting.Serialization.cs} (90%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Docker.cs => DockerSetting.cs} (85%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetVersionBackfillContent.Serialization.cs => FeatureSetVersionBackfillContent.Serialization.cs} (97%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetVersionBackfillContent.cs => FeatureSetVersionBackfillContent.cs} (90%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreJobType.cs => FeatureStoreJobType.cs} (56%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Image.Serialization.cs => ImageSetting.Serialization.cs} (90%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Image.cs => ImageSetting.cs} (86%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{AllNodes.Serialization.cs => JobAllNodes.Serialization.cs} (84%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{AllNodes.cs => JobAllNodes.cs} (63%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Nodes.Serialization.cs => JobNodes.Serialization.cs} (81%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Nodes.cs => JobNodes.cs} (50%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{QueueSettings.Serialization.cs => JobQueueSettings.Serialization.cs} (88%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{QueueSettings.cs => JobQueueSettings.cs} (66%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{StatusMessage.Serialization.cs => JobStatusMessage.Serialization.cs} (83%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{StatusMessage.cs => JobStatusMessage.cs} (74%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessageLevel.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategoryMultiSelect.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLFlowAutologgerState.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{MLAssistConfiguration.Serialization.cs => MachineLearningAssistConfiguration.Serialization.cs} (75%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistConfiguration.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{MLAssistConfigurationEnabled.Serialization.cs => MachineLearningAssistEnabledConfiguration.Serialization.cs} (83%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{MLAssistConfigurationEnabled.cs => MachineLearningAssistEnabledConfiguration.cs} (75%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeatureProperties.Serialization.cs => MachineLearningFeatureProperties.Serialization.cs} (93%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeatureProperties.cs => MachineLearningFeatureProperties.cs} (64%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetContainerProperties.Serialization.cs => MachineLearningFeatureSetContainerProperties.Serialization.cs} (89%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetContainerProperties.cs => MachineLearningFeatureSetContainerProperties.cs} (57%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetJob.Serialization.cs => MachineLearningFeatureSetJob.Serialization.cs} (89%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetJob.cs => MachineLearningFeatureSetJob.cs} (75%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetVersionProperties.Serialization.cs => MachineLearningFeatureSetVersionProperties.Serialization.cs} (92%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturesetVersionProperties.cs => MachineLearningFeatureSetVersionProperties.cs} (75%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreEntityContainerProperties.Serialization.cs => MachineLearningFeatureStoreEntityContainerProperties.Serialization.cs} (89%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreEntityContainerProperties.cs => MachineLearningFeatureStoreEntityContainerProperties.cs} (56%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreEntityVersionProperties.Serialization.cs => MachineLearningFeatureStoreEntityVersionProperties.Serialization.cs} (91%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{FeaturestoreEntityVersionProperties.cs => MachineLearningFeatureStoreEntityVersionProperties.cs} (67%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{OutboundRule.Serialization.cs => MachineLearningOutboundRule.Serialization.cs} (86%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{OutboundRule.cs => MachineLearningOutboundRule.cs} (52%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{OutboundRuleBasicResourceData.Serialization.cs => MachineLearningOutboundRuleBasicData.Serialization.cs} (80%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Webhook.Serialization.cs => MachineLearningWebhook.Serialization.cs} (89%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Webhook.cs => MachineLearningWebhook.cs} (56%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhookType.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MlflowAutologger.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{PackageRequest.Serialization.cs => ModelPackageContent.Serialization.cs} (97%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{PackageRequest.cs => ModelPackageContent.cs} (93%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{PackageResponse.Serialization.cs => ModelPackageResult.Serialization.cs} (93%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{PackageResponse.cs => ModelPackageResult.cs} (88%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{BindOptions.Serialization.cs => MountBindOptions.Serialization.cs} (86%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{BindOptions.cs => MountBindOptions.cs} (55%) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MultiSelect.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NetworkingRuleAction.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleCategory.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleStatus.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleType.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{PrivateEndpoint.Serialization.cs => PrivateEndpointBase.Serialization.cs} (60%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{PrivateEndpoint.cs => PrivateEndpointBase.cs} (71%) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Protocol.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Ray.Serialization.cs => RayDistributionConfiguration.Serialization.cs} (93%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{Ray.cs => RayDistributionConfiguration.cs} (79%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{AcrDetails.Serialization.cs => RegistryAcrDetails.Serialization.cs} (90%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{AcrDetails.cs => RegistryAcrDetails.cs} (81%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAssetProvisioningState.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{PrivateEndpointResource.Serialization.cs => RegistryPrivateEndpoint.Serialization.cs} (69%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{PrivateEndpointResource.cs => RegistryPrivateEndpoint.cs} (57%) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleAction.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleCategory.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleStatus.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleType.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessageLevel.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WebhookType.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs index 30075d202671..c3452acca185 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs @@ -530,6 +530,7 @@ public static partial class MachineLearningExtensions public static Azure.ResourceManager.MachineLearning.MachineLearningModelVersionResource GetMachineLearningModelVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineDeploymentResource GetMachineLearningOnlineDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointResource GetMachineLearningOnlineEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningOutboundRuleBasicResource GetMachineLearningOutboundRuleBasicResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetMachineLearningQuotas(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetMachineLearningQuotasAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -565,7 +566,6 @@ public static partial class MachineLearningExtensions public static Azure.AsyncPageable GetMachineLearningWorkspacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skip, System.Threading.CancellationToken cancellationToken) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearninRegistryComponentContainerResource GetMachineLearninRegistryComponentContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearninRegistryComponentVersionResource GetMachineLearninRegistryComponentVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.MachineLearning.OutboundRuleBasicResource GetOutboundRuleBasicResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable UpdateMachineLearningQuotas(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable UpdateMachineLearningQuotasAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -586,8 +586,8 @@ protected MachineLearningFeatureCollection() { } } public partial class MachineLearningFeatureData : Azure.ResourceManager.Models.ResourceData { - public MachineLearningFeatureData(Azure.ResourceManager.MachineLearning.Models.FeatureProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeatureProperties Properties { get { throw null; } set { } } + public MachineLearningFeatureData(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureProperties Properties { get { throw null; } set { } } } public partial class MachineLearningFeatureResource : Azure.ResourceManager.ArmResource { @@ -618,8 +618,8 @@ protected MachineLearningFeatureSetContainerCollection() { } } public partial class MachineLearningFeatureSetContainerData : Azure.ResourceManager.Models.ResourceData { - public MachineLearningFeatureSetContainerData(Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties Properties { get { throw null; } set { } } + public MachineLearningFeatureSetContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetContainerProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetContainerProperties Properties { get { throw null; } set { } } } public partial class MachineLearningFeatureSetContainerResource : Azure.ResourceManager.ArmResource { @@ -657,8 +657,8 @@ protected MachineLearningFeatureSetVersionCollection() { } } public partial class MachineLearningFeatureSetVersionData : Azure.ResourceManager.Models.ResourceData { - public MachineLearningFeatureSetVersionData(Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties Properties { get { throw null; } set { } } + public MachineLearningFeatureSetVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetVersionProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetVersionProperties Properties { get { throw null; } set { } } } public partial class MachineLearningFeatureSetVersionResource : Azure.ResourceManager.ArmResource { @@ -666,8 +666,8 @@ public partial class MachineLearningFeatureSetVersionResource : Azure.ResourceMa protected MachineLearningFeatureSetVersionResource() { } public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.ResourceManager.ArmOperation Backfill(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> BackfillAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Backfill(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeatureSetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> BackfillAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.FeatureSetVersionBackfillContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -676,8 +676,8 @@ protected MachineLearningFeatureSetVersionResource() { } public virtual Azure.Response GetMachineLearningFeature(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningFeatureAsync(string featureName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningFeatureCollection GetMachineLearningFeatures() { throw null; } - public virtual Azure.Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -700,8 +700,8 @@ protected MachineLearningFeatureStoreEntityContainerCollection() { } } public partial class MachineLearningFeatureStoreEntityContainerData : Azure.ResourceManager.Models.ResourceData { - public MachineLearningFeatureStoreEntityContainerData(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties Properties { get { throw null; } set { } } + public MachineLearningFeatureStoreEntityContainerData(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityContainerProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityContainerProperties Properties { get { throw null; } set { } } } public partial class MachineLearningFeatureStoreEntityContainerResource : Azure.ResourceManager.ArmResource { @@ -739,8 +739,8 @@ protected MachineLearningFeaturestoreEntityVersionCollection() { } } public partial class MachineLearningFeaturestoreEntityVersionData : Azure.ResourceManager.Models.ResourceData { - public MachineLearningFeaturestoreEntityVersionData(Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties) { } - public Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties Properties { get { throw null; } set { } } + public MachineLearningFeaturestoreEntityVersionData(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityVersionProperties properties) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityVersionProperties Properties { get { throw null; } set { } } } public partial class MachineLearningFeaturestoreEntityVersionResource : Azure.ResourceManager.ArmResource { @@ -918,8 +918,8 @@ protected MachineLearningModelVersionResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ModelPackageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ModelPackageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -1028,6 +1028,42 @@ protected MachineLearningOnlineEndpointResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatchWithIdentity body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourcePatchWithIdentity body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class MachineLearningOutboundRuleBasicCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MachineLearningOutboundRuleBasicCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.MachineLearningOutboundRuleBasicData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.MachineLearningOutboundRuleBasicData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MachineLearningOutboundRuleBasicData : Azure.ResourceManager.Models.ResourceData + { + public MachineLearningOutboundRuleBasicData(Azure.ResourceManager.MachineLearning.Models.MachineLearningOutboundRule properties) { } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningOutboundRule Properties { get { throw null; } set { } } + } + public partial class MachineLearningOutboundRuleBasicResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MachineLearningOutboundRuleBasicResource() { } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningOutboundRuleBasicData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningOutboundRuleBasicData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningOutboundRuleBasicData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class MachineLearningPrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected MachineLearningPrivateEndpointConnectionCollection() { } @@ -1165,7 +1201,7 @@ public MachineLearningRegistryData(Azure.Core.AzureLocation location) : base (de public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public string IntellectualPropertyPublisher { get { throw null; } set { } } public string Kind { get { throw null; } set { } } - public string ManagedResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ManagedResourceId { get { throw null; } set { } } public System.Uri MlFlowRegistryUri { get { throw null; } set { } } public System.Collections.Generic.IList PrivateEndpointConnections { get { throw null; } set { } } public string PublicNetworkAccess { get { throw null; } set { } } @@ -1368,8 +1404,8 @@ protected MachineLearningRegistryModelVersionResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.PackageRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Package(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ModelPackageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.Models.ModelPackageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -1525,7 +1561,7 @@ public MachineLearningWorkspaceData(Azure.Core.AzureLocation location) : base (d public System.Collections.Generic.IList ExistingWorkspaces { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.FeatureStoreSettings FeatureStoreSettings { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } - public string HubResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier HubResourceId { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public string ImageBuildCompute { get { throw null; } set { } } public bool? IsHbiWorkspace { get { throw null; } set { } } @@ -1615,6 +1651,9 @@ protected MachineLearningWorkspaceResource() { } public virtual Azure.Response GetMachineLearningOnlineEndpoint(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningOnlineEndpointAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointCollection GetMachineLearningOnlineEndpoints() { throw null; } + public virtual Azure.Response GetMachineLearningOutboundRuleBasic(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMachineLearningOutboundRuleBasicAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.MachineLearning.MachineLearningOutboundRuleBasicCollection GetMachineLearningOutboundRuleBasics() { throw null; } public virtual Azure.Response GetMachineLearningPrivateEndpointConnection(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMachineLearningPrivateEndpointConnectionAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionCollection GetMachineLearningPrivateEndpointConnections() { throw null; } @@ -1630,9 +1669,6 @@ protected MachineLearningWorkspaceResource() { } public virtual System.Threading.Tasks.Task> GetNotebookKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetOutboundRuleBasicResource(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetOutboundRuleBasicResourceAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceCollection GetOutboundRuleBasicResources() { throw null; } public virtual Azure.Pageable GetPrivateLinkResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetPrivateLinkResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetStorageAccountKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1717,42 +1753,6 @@ protected MachineLearninRegistryComponentVersionResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class OutboundRuleBasicResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected OutboundRuleBasicResource() { } - public virtual Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class OutboundRuleBasicResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected OutboundRuleBasicResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ruleName, Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class OutboundRuleBasicResourceData : Azure.ResourceManager.Models.ResourceData - { - public OutboundRuleBasicResourceData(Azure.ResourceManager.MachineLearning.Models.OutboundRule properties) { } - public Azure.ResourceManager.MachineLearning.Models.OutboundRule Properties { get { throw null; } set { } } - } } namespace Azure.ResourceManager.MachineLearning.Models { @@ -1761,20 +1761,10 @@ public partial class AccessKeyAuthTypeWorkspaceConnectionProperties : Azure.Reso public AccessKeyAuthTypeWorkspaceConnectionProperties() { } public Azure.ResourceManager.MachineLearning.Models.WorkspaceConnectionAccessKey Credentials { get { throw null; } set { } } } - public partial class AcrDetails - { - public AcrDetails() { } - public string ArmResourceId { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.SystemCreatedAcrAccount SystemCreatedAcrAccount { get { throw null; } set { } } - } public partial class AllFeatures : Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureFilterBase { public AllFeatures() { } } - public partial class AllNodes : Azure.ResourceManager.MachineLearning.Models.Nodes - { - public AllNodes() { } - } public partial class AmlCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { public AmlCompute() { } @@ -1836,20 +1826,16 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.AmlCompute AmlCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.AmlComputeProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.AmlComputeNodeInformation AmlComputeNodeInformation(string nodeId = null, System.Net.IPAddress privateIPAddress = null, System.Net.IPAddress publicIPAddress = null, int? port = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState? nodeState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeState?), string runId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.AmlComputeProperties AmlComputeProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType? osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType?), string vmSize = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority? vmPriority = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority?), string virtualMachineImageId = null, bool? isolatedNetwork = default(bool?), Azure.ResourceManager.MachineLearning.Models.AmlComputeScaleSettings scaleSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningUserAccountCredentials userAccountCredentials = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess? remoteLoginPortPublicAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess?), Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState? allocationState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState?), System.DateTimeOffset? allocationStateTransitionOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null, int? currentNodeCount = default(int?), int? targetNodeCount = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeStateCounts nodeStateCounts = null, bool? enableNodePublicIP = default(bool?), System.BinaryData propertyBag = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.AutoMLJob AutoMLJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary outputs = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null, Azure.ResourceManager.MachineLearning.Models.AutoMLVertical taskDetails = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.BlobReferenceForConsumptionDto BlobReferenceForConsumptionDto(System.Uri blobUri = null, Azure.ResourceManager.MachineLearning.Models.PendingUploadCredentialDto credential = null, string storageAccountArmId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.AutoMLJob AutoMLJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary outputs = null, Azure.ResourceManager.MachineLearning.Models.JobQueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null, Azure.ResourceManager.MachineLearning.Models.AutoMLVertical taskDetails = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.BlobReferenceForConsumptionDto BlobReferenceForConsumptionDto(System.Uri blobUri = null, Azure.ResourceManager.MachineLearning.Models.PendingUploadCredentialDto credential = null, Azure.Core.ResourceIdentifier storageAccountArmId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.CocoExportSummary CocoExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string containerName = null, string snapshotPath = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.CsvExportSummary CsvExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string containerName = null, string snapshotPath = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.DatasetExportSummary DatasetExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string labeledAssetName = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ExportSummary ExportSummary(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), long? exportedRowCount = default(long?), string format = "Unknown", string labelingJobId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties FeaturesetContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.FeaturesetJob FeaturesetJob(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string displayName = null, System.TimeSpan? duration = default(System.TimeSpan?), string experimentId = null, Azure.ResourceManager.MachineLearning.Models.FeatureWindow featureWindow = null, string jobId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType? featurestoreJobType = default(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties FeaturesetVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable entities = null, Azure.ResourceManager.MachineLearning.Models.MaterializationSettings materializationSettings = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string specificationPath = null, string stage = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties FeaturestoreEntityContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties FeaturestoreEntityVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable indexColumns = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.HdfsDatastore HdfsDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), string hdfsServerCertificate = null, string nameNodeAddress = null, string protocol = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ImageMetadata ImageMetadata(string currentImageVersion = null, string latestImageVersion = null, bool? isLatestOSImageVersion = default(bool?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties LabelingJobProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.LabelingDataConfiguration dataConfiguration = null, System.Uri jobInstructionsUri = null, System.Collections.Generic.IDictionary labelCategories = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties labelingJobMediaProperties = null, Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration mlAssistConfiguration = null, Azure.ResourceManager.MachineLearning.Models.ProgressMetrics progressMetrics = null, System.Guid? projectId = default(System.Guid?), Azure.ResourceManager.MachineLearning.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.JobProvisioningState?), System.Collections.Generic.IEnumerable statusMessages = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.JobStatusMessage JobStatusMessage(string code = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel? level = default(Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel?), string message = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties LabelingJobProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.LabelingDataConfiguration dataConfiguration = null, System.Uri jobInstructionsUri = null, System.Collections.Generic.IDictionary labelCategories = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties labelingJobMediaProperties = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningAssistConfiguration mlAssistConfiguration = null, Azure.ResourceManager.MachineLearning.Models.ProgressMetrics progressMetrics = null, System.Guid? projectId = default(System.Guid?), Azure.ResourceManager.MachineLearning.Models.JobProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.JobProvisioningState?), System.Collections.Generic.IEnumerable statusMessages = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAksCompute MachineLearningAksCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeProperties MachineLearningAksComputeProperties(string clusterFqdn = null, System.Collections.Generic.IEnumerable systemServices = null, int? agentCount = default(int?), string agentVmSize = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose? clusterPurpose = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningClusterPurpose?), Azure.ResourceManager.MachineLearning.Models.MachineLearningSslConfiguration sslConfiguration = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningAksNetworkingConfiguration aksNetworkingConfiguration = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType? loadBalancerType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLoadBalancerType?), string loadBalancerSubnet = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningAksComputeSecrets MachineLearningAksComputeSecrets(string userKubeConfig = null, string adminKubeConfig = null, string imagePullSecretName = null) { throw null; } @@ -1863,14 +1849,14 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.MachineLearningBatchEndpointData MachineLearningBatchEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchEndpointProperties properties = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningBatchEndpointProperties MachineLearningBatchEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode), string description = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = null, System.Collections.Generic.IDictionary properties = null, System.Uri scoringUri = null, System.Uri swaggerUri = null, string defaultsDeploymentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningCodeContainerData MachineLearningCodeContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData MachineLearningCodeVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Uri codeUri = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJob MachineLearningCommandJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState? mlflowAutologger = default(Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState?), Azure.Core.ResourceIdentifier codeId = null, string command = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration distribution = null, Azure.Core.ResourceIdentifier environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits limits = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData parameters = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Uri codeUri = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJob MachineLearningCommandJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState? mlflowAutologger = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState?), Azure.Core.ResourceIdentifier codeId = null, string command = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration distribution = null, Azure.Core.ResourceIdentifier environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits limits = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData parameters = null, Azure.ResourceManager.MachineLearning.Models.JobQueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData MachineLearningComponentContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData MachineLearningComponentVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.BinaryData componentSpec = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.BinaryData componentSpec = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComputeData MachineLearningComputeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstance MachineLearningComputeInstance(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceApplication MachineLearningComputeInstanceApplication(string displayName = null, System.Uri endpointUri = null) { throw null; } @@ -1901,17 +1887,22 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthToken MachineLearningEndpointAuthToken(string accessToken = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? refreshOn = default(System.DateTimeOffset?), string tokenType = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProperties MachineLearningEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode), string description = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = null, System.Collections.Generic.IDictionary properties = null, System.Uri scoringUri = null, System.Uri swaggerUri = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentContainerData MachineLearningEnvironmentContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningEnvironmentVersionData MachineLearningEnvironmentVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting? autoRebuild = default(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting?), Azure.ResourceManager.MachineLearning.Models.MachineLearningBuildContext build = null, string condaFile = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType? environmentType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType?), string image = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerProperties inferenceConfig = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType? osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType?), Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting? autoRebuild = default(Azure.ResourceManager.MachineLearning.Models.AutoRebuildSetting?), Azure.ResourceManager.MachineLearning.Models.MachineLearningBuildContext build = null, string condaFile = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType? environmentType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEnvironmentType?), string image = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerProperties inferenceConfig = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType? osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType?), Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningError MachineLearningError(Azure.ResponseError error = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrice MachineLearningEstimatedVmPrice(double retailPrice = 0, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType osType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriceOSType), Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier vmTier = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices MachineLearningEstimatedVmPrices(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency billingCurrency = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningBillingCurrency), Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure unitOfMeasure = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningUnitOfMeasure), System.Collections.Generic.IEnumerable values = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureData MachineLearningFeatureData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeatureProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerData MachineLearningFeatureSetContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturesetContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData MachineLearningFeatureSetVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturesetVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerData MachineLearningFeatureStoreEntityContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionData MachineLearningFeaturestoreEntityVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.FeaturestoreEntityVersionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureData MachineLearningFeatureData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetContainerData MachineLearningFeatureSetContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetContainerProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetContainerProperties MachineLearningFeatureSetContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetJob MachineLearningFeatureSetJob(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string displayName = null, System.TimeSpan? duration = default(System.TimeSpan?), string experimentId = null, Azure.ResourceManager.MachineLearning.Models.FeatureWindow featureWindow = null, string jobId = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType? featureStoreJobType = default(Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureSetVersionData MachineLearningFeatureSetVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetVersionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureSetVersionProperties MachineLearningFeatureSetVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable entities = null, Azure.ResourceManager.MachineLearning.Models.MaterializationSettings materializationSettings = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?), string specificationPath = null, string stage = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeatureStoreEntityContainerData MachineLearningFeatureStoreEntityContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityContainerProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityContainerProperties MachineLearningFeatureStoreEntityContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningFeaturestoreEntityVersionData MachineLearningFeaturestoreEntityVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityVersionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureStoreEntityVersionProperties MachineLearningFeatureStoreEntityVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IEnumerable indexColumns = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoint MachineLearningFqdnEndpoint(string domainName = null, System.Collections.Generic.IEnumerable endpointDetails = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetail(int? port = default(int?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(Azure.ResourceManager.MachineLearning.Models.MachineLearningFqdnEndpointsProperties properties = null) { throw null; } @@ -1919,15 +1910,15 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningHDInsightCompute MachineLearningHDInsightCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningHDInsightProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningJobData MachineLearningJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties MachineLearningJobProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), string jobType = "Unknown", Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, Azure.ResourceManager.MachineLearning.Models.Nodes nodes = null, int? port = default(int?), System.Collections.Generic.IDictionary properties = null, string status = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, Azure.ResourceManager.MachineLearning.Models.JobNodes nodes = null, int? port = default(int?), System.Collections.Generic.IDictionary properties = null, string status = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesCompute MachineLearningKubernetesCompute(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningKubernetesOnlineDeployment MachineLearningKubernetesOnlineDeployment(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerResourceRequirements containerResourceRequirements = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningLabelingJobData MachineLearningLabelingJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.LabelingJobProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningManagedOnlineDeployment MachineLearningManagedOnlineDeployment(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningModelContainerData MachineLearningModelContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningModelVersionData MachineLearningModelVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IDictionary flavors = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, string jobName = null, string modelType = null, System.Uri modelUri = null, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState?), string stage = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Collections.Generic.IDictionary flavors = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, string jobName = null, string modelType = null, System.Uri modelUri = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?), string stage = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeStateCounts MachineLearningNodeStateCounts(int? idleNodeCount = default(int?), int? runningNodeCount = default(int?), int? preparingNodeCount = default(int?), int? unusableNodeCount = default(int?), int? leavingNodeCount = default(int?), int? preemptedNodeCount = default(int?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookPreparationError MachineLearningNotebookPreparationError(string errorMessage = null, int? statusCode = default(int?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo MachineLearningNotebookResourceInfo(string fqdn = null, bool? isPrivateLinkEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookPreparationError notebookPreparationError = null, string resourceId = null) { throw null; } @@ -1935,12 +1926,13 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineDeploymentProperties MachineLearningOnlineDeploymentProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = null, string description = null, string environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary properties = null, bool? appInsightsEnabled = default(bool?), Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType?), string endpointComputeType = "Unknown", string instanceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = null, string model = null, string modelMountPath = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointData MachineLearningOnlineEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineEndpointProperties properties = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode), string description = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = null, System.Collections.Generic.IDictionary properties = null, System.Uri scoringUri = null, System.Uri swaggerUri = null, string compute = null, System.Collections.Generic.IDictionary mirrorTraffic = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), System.Collections.Generic.IDictionary traffic = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningOutboundRuleBasicData MachineLearningOutboundRuleBasicData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningOutboundRule properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPasswordDetail MachineLearningPasswordDetail(string name = null, string value = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPipelineJob MachineLearningPipelineJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IDictionary inputs = null, System.Collections.Generic.IDictionary jobs = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData settings = null, Azure.Core.ResourceIdentifier sourceJobId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier subnetArmId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpoint privateEndpoint = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningPrivateLinkResource MachineLearningPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryData MachineLearningRegistryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, System.Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, System.Uri mlFlowRegistryUri = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, System.Collections.Generic.IEnumerable regionDetails = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningRegistryData MachineLearningRegistryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, System.Uri discoveryUri = null, string intellectualPropertyPublisher = null, Azure.Core.ResourceIdentifier managedResourceId = null, System.Uri mlFlowRegistryUri = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, System.Collections.Generic.IEnumerable regionDetails = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName MachineLearningResourceName(string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceQuota MachineLearningResourceQuota(string id = null, string amlWorkspaceLocation = null, string resourceQuotaType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceName name = null, long? limit = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? unit = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningScheduleData MachineLearningScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleProperties properties = null) { throw null; } @@ -1948,7 +1940,7 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuCapacity MachineLearningSkuCapacity(int? @default = default(int?), int? maximum = default(int?), int? minimum = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType? scaleType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuScaleType?)) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuDetail MachineLearningSkuDetail(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuCapacity capacity = null, string resourceType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuSetting sku = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuSetting MachineLearningSkuSetting(string name = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier? tier = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningSkuTier?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJob MachineLearningSweepJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy earlyTermination = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJobLimits limits = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective objective = null, System.Collections.Generic.IDictionary outputs = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm samplingAlgorithm = null, System.BinaryData searchSpace = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent trial = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJob MachineLearningSweepJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEarlyTerminationPolicy earlyTermination = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJobLimits limits = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective objective = null, System.Collections.Generic.IDictionary outputs = null, Azure.ResourceManager.MachineLearning.Models.JobQueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm samplingAlgorithm = null, System.BinaryData searchSpace = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent trial = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningSynapseSpark MachineLearningSynapseSpark(string computeLocation = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), string description = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier resourceId = null, System.Collections.Generic.IEnumerable provisioningErrors = null, bool? isAttachedCompute = default(bool?), bool? disableLocalAuth = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningSynapseSparkProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUsage MachineLearningUsage(string id = null, string amlWorkspaceLocation = null, string usageType = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit? unit = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageUnit?), long? currentValue = default(long?), long? limit = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageName name = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningUsageName MachineLearningUsageName(string value = null, string localizedValue = null) { throw null; } @@ -1957,51 +1949,27 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVirtualMachineSecrets MachineLearningVirtualMachineSecrets(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSshCredentials administratorAccount = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningVmSize MachineLearningVmSize(string name = null, string family = null, int? vCpus = default(int?), int? gpus = default(int?), int? osVhdSizeMB = default(int?), int? maxResourceVolumeMB = default(int?), double? memoryGB = default(double?), bool? lowPriorityCapable = default(bool?), bool? isPremiumIOSupported = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEstimatedVmPrices estimatedVmPrices = null, System.Collections.Generic.IEnumerable supportedComputeTypes = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceConnectionData MachineLearningWorkspaceConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceConnectionProperties properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceData MachineLearningWorkspaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = default(bool?), string applicationInsights = null, System.Collections.Generic.IEnumerable associatedWorkspaces = null, System.Collections.Generic.IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, System.Uri discoveryUri = null, bool? enableDataIsolation = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionSetting encryption = null, System.Collections.Generic.IEnumerable existingWorkspaces = null, Azure.ResourceManager.MachineLearning.Models.FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = default(bool?), string hubResourceId = null, string imageBuildCompute = null, string keyVault = null, System.Collections.Generic.IEnumerable keyVaults = null, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings managedNetwork = null, System.Uri mlFlowTrackingUri = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, int? privateLinkCount = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccessType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), int? cosmosDbCollectionsThroughput = default(int?), string serviceProvisionedResourceGroup = null, System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = default(int?), string storageAccount = null, System.Collections.Generic.IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = default(bool?), string systemDatastoresAuthMode = null, System.Guid? tenantId = default(System.Guid?), bool? isV1LegacyMode = default(bool?), Azure.ResourceManager.MachineLearning.Models.WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceData MachineLearningWorkspaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string kind = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = default(bool?), string applicationInsights = null, System.Collections.Generic.IEnumerable associatedWorkspaces = null, System.Collections.Generic.IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, System.Uri discoveryUri = null, bool? enableDataIsolation = default(bool?), Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionSetting encryption = null, System.Collections.Generic.IEnumerable existingWorkspaces = null, Azure.ResourceManager.MachineLearning.Models.FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = default(bool?), Azure.Core.ResourceIdentifier hubResourceId = null, string imageBuildCompute = null, string keyVault = null, System.Collections.Generic.IEnumerable keyVaults = null, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings managedNetwork = null, System.Uri mlFlowTrackingUri = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, int? privateLinkCount = default(int?), Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningProvisioningState?), Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccessType = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType?), int? cosmosDbCollectionsThroughput = default(int?), string serviceProvisionedResourceGroup = null, System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = default(int?), string storageAccount = null, System.Collections.Generic.IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = default(bool?), string systemDatastoresAuthMode = null, System.Guid? tenantId = default(System.Guid?), bool? isV1LegacyMode = default(bool?), Azure.ResourceManager.MachineLearning.Models.WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceDiagnoseResult MachineLearningWorkspaceDiagnoseResult(Azure.ResourceManager.MachineLearning.Models.MachineLearningDiagnoseResultValue value = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string appInsightsInstrumentationKey = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null, string userStorageResourceId = null, string userStorageKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetNotebookKeysResult MachineLearningWorkspaceGetNotebookKeysResult(string primaryAccessKey = null, string secondaryAccessKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceGetStorageAccountKeysResult MachineLearningWorkspaceGetStorageAccountKeysResult(string userStorageKey = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceNotebookAccessTokenResult MachineLearningWorkspaceNotebookAccessTokenResult(string accessToken = null, int? expiresIn = default(int?), string hostName = null, string notebookResourceId = null, string publicDns = null, string refreshToken = null, string scope = null, string tokenType = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaUpdate MachineLearningWorkspaceQuotaUpdate(string id = null, string updateWorkspaceQuotasType = null, long? limit = default(long?), Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit? unit = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningQuotaUnit?), Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningWorkspaceQuotaStatus?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings ManagedNetworkSettings(Azure.ResourceManager.MachineLearning.Models.IsolationMode? isolationMode = default(Azure.ResourceManager.MachineLearning.Models.IsolationMode?), string networkId = null, System.Collections.Generic.IDictionary outboundRules = null, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionStatus status = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ManagedNetworkSettings ManagedNetworkSettings(Azure.ResourceManager.MachineLearning.Models.IsolationMode? isolationMode = default(Azure.ResourceManager.MachineLearning.Models.IsolationMode?), string networkId = null, System.Collections.Generic.IDictionary outboundRules = null, Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionStatus status = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ModelPackageResult ModelPackageResult(Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource baseEnvironmentSource = null, string buildId = null, Azure.ResourceManager.MachineLearning.Models.PackageBuildState? buildState = default(Azure.ResourceManager.MachineLearning.Models.PackageBuildState?), System.Collections.Generic.IReadOnlyDictionary environmentVariables = null, Azure.ResourceManager.MachineLearning.Models.InferencingServer inferencingServer = null, System.Collections.Generic.IEnumerable inputs = null, System.Uri logUri = null, Azure.ResourceManager.MachineLearning.Models.ModelConfiguration modelConfiguration = null, System.Collections.Generic.IReadOnlyDictionary tags = null, string targetEnvironmentId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.OneLakeDatastore OneLakeDatastore(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDatastoreCredentials credentials = null, Azure.ResourceManager.MachineLearning.Models.IntellectualProperty intellectualProperty = null, bool? isDefault = default(bool?), Azure.ResourceManager.MachineLearning.Models.OneLakeArtifact artifact = null, string endpoint = null, string oneLakeWorkspaceName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningServiceDataAccessAuthIdentity?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.OutboundRuleBasicResourceData OutboundRuleBasicResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.OutboundRule properties = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.PackageResponse PackageResponse(Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource baseEnvironmentSource = null, string buildId = null, Azure.ResourceManager.MachineLearning.Models.PackageBuildState? buildState = default(Azure.ResourceManager.MachineLearning.Models.PackageBuildState?), System.Collections.Generic.IReadOnlyDictionary environmentVariables = null, Azure.ResourceManager.MachineLearning.Models.InferencingServer inferencingServer = null, System.Collections.Generic.IEnumerable inputs = null, System.Uri logUri = null, Azure.ResourceManager.MachineLearning.Models.ModelConfiguration modelConfiguration = null, System.Collections.Generic.IReadOnlyDictionary tags = null, string targetEnvironmentId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.PendingUploadResponseDto PendingUploadResponseDto(Azure.ResourceManager.MachineLearning.Models.BlobReferenceForConsumptionDto blobReferenceForConsumption = null, string pendingUploadId = null, Azure.ResourceManager.MachineLearning.Models.PendingUploadType? pendingUploadType = default(Azure.ResourceManager.MachineLearning.Models.PendingUploadType?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpoint PrivateEndpoint(string id = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpointResource PrivateEndpointResource(string id = null, string subnetArmId = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.PrivateEndpointBase PrivateEndpointBase(Azure.Core.ResourceIdentifier id = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.ProgressMetrics ProgressMetrics(long? completedDatapointCount = default(long?), System.DateTimeOffset? incrementalDataLastRefreshOn = default(System.DateTimeOffset?), long? skippedDatapointCount = default(long?), long? totalDatapointCount = default(long?)) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.RegistryPrivateEndpoint RegistryPrivateEndpoint(Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier subnetArmId = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.SasCredentialDto SasCredentialDto(System.Uri sasUri = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ServiceTagDestination ServiceTagDestination(Azure.ResourceManager.MachineLearning.Models.RuleAction? action = default(Azure.ResourceManager.MachineLearning.Models.RuleAction?), System.Collections.Generic.IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.SparkJob SparkJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IEnumerable archives = null, string args = null, string codeId = null, System.Collections.Generic.IDictionary conf = null, Azure.ResourceManager.MachineLearning.Models.SparkJobEntry entry = null, string environmentId = null, System.Collections.Generic.IEnumerable files = null, System.Collections.Generic.IDictionary inputs = null, System.Collections.Generic.IEnumerable jars = null, System.Collections.Generic.IDictionary outputs = null, System.Collections.Generic.IEnumerable pyFiles = null, Azure.ResourceManager.MachineLearning.Models.QueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.SparkResourceConfiguration resources = null) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.StatusMessage StatusMessage(string code = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel? level = default(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel?), string message = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ServiceTagDestination ServiceTagDestination(Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction? action = default(Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction?), System.Collections.Generic.IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.SparkJob SparkJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), System.Collections.Generic.IEnumerable archives = null, string args = null, string codeId = null, System.Collections.Generic.IDictionary conf = null, Azure.ResourceManager.MachineLearning.Models.SparkJobEntry entry = null, string environmentId = null, System.Collections.Generic.IEnumerable files = null, System.Collections.Generic.IDictionary inputs = null, System.Collections.Generic.IEnumerable jars = null, System.Collections.Generic.IDictionary outputs = null, System.Collections.Generic.IEnumerable pyFiles = null, Azure.ResourceManager.MachineLearning.Models.JobQueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.SparkResourceConfiguration resources = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.TextClassificationMultilabel TextClassificationMultilabel(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? logVerbosity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity?), string targetColumnName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData = null, Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric? primaryMetric = default(Azure.ResourceManager.MachineLearning.Models.ClassificationMultilabelPrimaryMetric?), string featurizationDatasetLanguage = null, Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters fixedParameters = null, Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings limitSettings = null, System.Collections.Generic.IEnumerable searchSpace = null, Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings sweepSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput validationData = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.TextNer TextNer(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity? logVerbosity = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningLogVerbosity?), string targetColumnName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput trainingData = null, Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric? primaryMetric = default(Azure.ResourceManager.MachineLearning.Models.ClassificationPrimaryMetric?), string featurizationDatasetLanguage = null, Azure.ResourceManager.MachineLearning.Models.NlpFixedParameters fixedParameters = null, Azure.ResourceManager.MachineLearning.Models.NlpVerticalLimitSettings limitSettings = null, System.Collections.Generic.IEnumerable searchSpace = null, Azure.ResourceManager.MachineLearning.Models.NlpSweepSettings sweepSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput validationData = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AssetProvisioningState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AssetProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState left, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState left, Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AutoDeleteCondition : System.IEquatable { private readonly object _dummy; @@ -2035,7 +2003,7 @@ public AutoMLJob(Azure.ResourceManager.MachineLearning.Models.AutoMLVertical tas public string EnvironmentId { get { throw null; } set { } } public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.QueueSettings QueueSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.JobQueueSettings QueueSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration Resources { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.AutoMLVertical TaskDetails { get { throw null; } set { } } } @@ -2148,7 +2116,7 @@ public partial class AzMonMonitoringAlertNotificationSettings : Azure.ResourceMa { public AzMonMonitoringAlertNotificationSettings() { } } - public partial class AzureDevOpsWebhook : Azure.ResourceManager.MachineLearning.Models.Webhook + public partial class AzureDevOpsWebhook : Azure.ResourceManager.MachineLearning.Models.MachineLearningWebhook { public AzureDevOpsWebhook() { } } @@ -2168,15 +2136,15 @@ public BanditPolicy() { } public float? SlackAmount { get { throw null; } set { } } public float? SlackFactor { get { throw null; } set { } } } - public partial class BaseEnvironmentId : Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource - { - public BaseEnvironmentId(string resourceId) { } - public string ResourceId { get { throw null; } set { } } - } public abstract partial class BaseEnvironmentSource { protected BaseEnvironmentSource() { } } + public partial class BaseEnvironmentType : Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource + { + public BaseEnvironmentType(Azure.Core.ResourceIdentifier resourceId) { } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + } public abstract partial class BatchDeploymentConfiguration { protected BatchDeploymentConfiguration() { } @@ -2193,19 +2161,12 @@ public partial class BayesianSamplingAlgorithm : Azure.ResourceManager.MachineLe { public BayesianSamplingAlgorithm() { } } - public partial class BindOptions - { - public BindOptions() { } - public bool? CreateHostPath { get { throw null; } set { } } - public string Propagation { get { throw null; } set { } } - public string Selinux { get { throw null; } set { } } - } public partial class BlobReferenceForConsumptionDto { internal BlobReferenceForConsumptionDto() { } public System.Uri BlobUri { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.PendingUploadCredentialDto Credential { get { throw null; } } - public string StorageAccountArmId { get { throw null; } } + public Azure.Core.ResourceIdentifier StorageAccountArmId { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct BlockedTransformer : System.IEquatable @@ -2432,14 +2393,6 @@ public CocoExportSummary() { } public string ContainerName { get { throw null; } } public string SnapshotPath { get { throw null; } } } - public partial class Collection - { - public Collection() { } - public string ClientId { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.DataCollectionMode? DataCollectionMode { get { throw null; } set { } } - public string DataId { get { throw null; } set { } } - public double? SamplingRate { get { throw null; } set { } } - } public partial class ColumnTransformer { public ColumnTransformer() { } @@ -2462,6 +2415,34 @@ public ComputeStartStopRecurrenceSchedule() { } public string StartTime { get { throw null; } set { } } public string TimeZone { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerCommunicationProtocol : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerCommunicationProtocol(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol Http { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol Tcp { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol Udp { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol left, Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol left, Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ContainerEndpoint + { + public ContainerEndpoint() { } + public string HostIP { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ContainerCommunicationProtocol? Protocol { get { throw null; } set { } } + public int? Published { get { throw null; } set { } } + public int? Target { get { throw null; } set { } } + } public partial class CreateMonitorAction : Azure.ResourceManager.MachineLearning.Models.MachineLearningScheduleAction { public CreateMonitorAction(Azure.ResourceManager.MachineLearning.Models.MonitorDefinition monitorDefinition) { } @@ -2522,10 +2503,10 @@ public partial class CustomService { public CustomService() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.Docker Docker { get { throw null; } set { } } - public System.Collections.Generic.IList Endpoints { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.DockerSetting Docker { get { throw null; } set { } } + public System.Collections.Generic.IList Endpoints { get { throw null; } } public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.Image Image { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ImageSetting Image { get { throw null; } set { } } public string Name { get { throw null; } set { } } public System.Collections.Generic.IList Volumes { get { throw null; } } } @@ -2547,6 +2528,14 @@ public DatabaseSource() { } public System.Collections.Generic.IList> StoredProcedureParams { get { throw null; } set { } } public string TableName { get { throw null; } set { } } } + public partial class DataCollection + { + public DataCollection() { } + public string ClientId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.DataCollectionMode? DataCollectionMode { get { throw null; } set { } } + public string DataId { get { throw null; } set { } } + public double? SamplingRate { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct DataCollectionMode : System.IEquatable { @@ -2567,8 +2556,8 @@ public DatabaseSource() { } } public partial class DataCollector { - public DataCollector(System.Collections.Generic.IDictionary collections) { } - public System.Collections.Generic.IDictionary Collections { get { throw null; } } + public DataCollector(System.Collections.Generic.IDictionary collections) { } + public System.Collections.Generic.IDictionary Collections { get { throw null; } } public System.Collections.Generic.IList RequestLoggingCaptureHeaders { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.RollingRateType? RollingRate { get { throw null; } set { } } } @@ -2617,9 +2606,9 @@ public partial class DatasetExportSummary : Azure.ResourceManager.MachineLearnin public DatasetExportSummary() { } public string LabeledAssetName { get { throw null; } } } - public partial class Docker + public partial class DockerSetting { - public Docker() { } + public DockerSetting() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } public bool? Privileged { get { throw null; } set { } } } @@ -2658,15 +2647,6 @@ public EncryptionUpdateProperties(Azure.ResourceManager.MachineLearning.Models.E public EncryptionUpdateProperties(string keyIdentifier) { } public string KeyIdentifier { get { throw null; } } } - public partial class Endpoint - { - public Endpoint() { } - public string HostIP { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.Protocol? Protocol { get { throw null; } set { } } - public int? Published { get { throw null; } set { } } - public int? Target { get { throw null; } set { } } - } public partial class EnvironmentVariable { public EnvironmentVariable() { } @@ -2753,33 +2733,9 @@ public FeatureAttributionMetricThreshold(Azure.ResourceManager.MachineLearning.M public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.FeatureDataType left, Azure.ResourceManager.MachineLearning.Models.FeatureDataType right) { throw null; } public override string ToString() { throw null; } } - public partial class FeatureProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase - { - public FeatureProperties() { } - public Azure.ResourceManager.MachineLearning.Models.FeatureDataType? DataType { get { throw null; } set { } } - public string FeatureName { get { throw null; } set { } } - } - public partial class FeaturesetContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer - { - public FeaturesetContainerProperties() { } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } - } - public partial class FeaturesetJob - { - internal FeaturesetJob() { } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public string DisplayName { get { throw null; } } - public System.TimeSpan? Duration { get { throw null; } } - public string ExperimentId { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType? FeaturestoreJobType { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.FeatureWindow FeatureWindow { get { throw null; } } - public string JobId { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? Status { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } - } - public partial class FeaturesetVersionBackfillContent + public partial class FeatureSetVersionBackfillContent { - public FeaturesetVersionBackfillContent() { } + public FeatureSetVersionBackfillContent() { } public string Description { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.FeatureWindow FeatureWindow { get { throw null; } set { } } @@ -2787,43 +2743,22 @@ public FeaturesetVersionBackfillContent() { } public System.Collections.Generic.IDictionary SparkConfiguration { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } - public partial class FeaturesetVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase - { - public FeaturesetVersionProperties() { } - public System.Collections.Generic.IList Entities { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MaterializationSettings MaterializationSettings { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } - public string SpecificationPath { get { throw null; } set { } } - public string Stage { get { throw null; } set { } } - } - public partial class FeaturestoreEntityContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer - { - public FeaturestoreEntityContainerProperties() { } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } - } - public partial class FeaturestoreEntityVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase - { - public FeaturestoreEntityVersionProperties() { } - public System.Collections.Generic.IList IndexColumns { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } - public string Stage { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct FeaturestoreJobType : System.IEquatable + public readonly partial struct FeatureStoreJobType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public FeaturestoreJobType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType BackfillMaterialization { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType RecurrentMaterialization { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType other) { throw null; } + public FeatureStoreJobType(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType BackfillMaterialization { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType RecurrentMaterialization { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType left, Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType left, Azure.ResourceManager.MachineLearning.Models.FeaturestoreJobType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType left, Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType left, Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType right) { throw null; } public override string ToString() { throw null; } } public partial class FeatureStoreSettings @@ -2940,7 +2875,7 @@ public ForecastingTrainingSettings() { } public System.Collections.Generic.IList AllowedTrainingAlgorithms { get { throw null; } set { } } public System.Collections.Generic.IList BlockedTrainingAlgorithms { get { throw null; } set { } } } - public partial class FqdnOutboundRule : Azure.ResourceManager.MachineLearning.Models.OutboundRule + public partial class FqdnOutboundRule : Azure.ResourceManager.MachineLearning.Models.MachineLearningOutboundRule { public FqdnOutboundRule() { } public string Destination { get { throw null; } set { } } @@ -3032,13 +2967,6 @@ public partial class IdleShutdownSetting public IdleShutdownSetting() { } public string IdleTimeBeforeShutdown { get { throw null; } set { } } } - public partial class Image - { - public Image() { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.ImageType? ImageType { get { throw null; } set { } } - public string Reference { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ImageAnnotationType : System.IEquatable { @@ -3236,6 +3164,13 @@ public ImageObjectDetection(Azure.ResourceManager.MachineLearning.Models.Machine public Azure.ResourceManager.MachineLearning.Models.MachineLearningTableJobInput ValidationData { get { throw null; } set { } } public double? ValidationDataSize { get { throw null; } set { } } } + public partial class ImageSetting + { + public ImageSetting() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.ImageType? ImageType { get { throw null; } set { } } + public string Reference { get { throw null; } set { } } + } public partial class ImageSweepSettings { public ImageSweepSettings(Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithmType samplingAlgorithm) { } @@ -3335,6 +3270,10 @@ public IntellectualProperty(string publisher) { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.IsolationMode left, Azure.ResourceManager.MachineLearning.Models.IsolationMode right) { throw null; } public override string ToString() { throw null; } } + public partial class JobAllNodes : Azure.ResourceManager.MachineLearning.Models.JobNodes + { + public JobAllNodes() { } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct JobInputType : System.IEquatable { @@ -3358,6 +3297,10 @@ public IntellectualProperty(string publisher) { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.JobInputType left, Azure.ResourceManager.MachineLearning.Models.JobInputType right) { throw null; } public override string ToString() { throw null; } } + public abstract partial class JobNodes + { + protected JobNodes() { } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct JobProvisioningState : System.IEquatable { @@ -3378,6 +3321,39 @@ public IntellectualProperty(string publisher) { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.JobProvisioningState left, Azure.ResourceManager.MachineLearning.Models.JobProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class JobQueueSettings + { + public JobQueueSettings() { } + public Azure.ResourceManager.MachineLearning.Models.JobTier? JobTier { get { throw null; } set { } } + public int? Priority { get { throw null; } set { } } + } + public partial class JobStatusMessage + { + internal JobStatusMessage() { } + public string Code { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel? Level { get { throw null; } } + public string Message { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct JobStatusMessageLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JobStatusMessageLevel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel Error { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel Information { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel left, Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel left, Azure.ResourceManager.MachineLearning.Models.JobStatusMessageLevel right) { throw null; } + public override string ToString() { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct JobTier : System.IEquatable { @@ -3430,7 +3406,25 @@ public partial class LabelCategory public LabelCategory() { } public System.Collections.Generic.IDictionary Classes { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MultiSelect? MultiSelect { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect? MultiSelect { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct LabelCategoryMultiSelect : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LabelCategoryMultiSelect(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect left, Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect left, Azure.ResourceManager.MachineLearning.Models.LabelCategoryMultiSelect right) { throw null; } + public override string ToString() { throw null; } } public partial class LabelClass { @@ -3461,11 +3455,11 @@ public LabelingJobProperties() { } public System.Uri JobInstructionsUri { get { throw null; } set { } } public System.Collections.Generic.IDictionary LabelCategories { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties LabelingJobMediaProperties { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration MlAssistConfiguration { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningAssistConfiguration MlAssistConfiguration { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ProgressMetrics ProgressMetrics { get { throw null; } } public System.Guid? ProjectId { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.JobProvisioningState? ProvisioningState { get { throw null; } } - public System.Collections.Generic.IReadOnlyList StatusMessages { get { throw null; } } + public System.Collections.Generic.IReadOnlyList StatusMessages { get { throw null; } } } public partial class LabelingJobTextProperties : Azure.ResourceManager.MachineLearning.Models.LabelingJobMediaProperties { @@ -3628,6 +3622,16 @@ public abstract partial class MachineLearningAssetReferenceBase { protected MachineLearningAssetReferenceBase() { } } + public abstract partial class MachineLearningAssistConfiguration + { + protected MachineLearningAssistConfiguration() { } + } + public partial class MachineLearningAssistEnabledConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssistConfiguration + { + public MachineLearningAssistEnabledConfiguration(string inferencingComputeBinding, string trainingComputeBinding) { } + public string InferencingComputeBinding { get { throw null; } set { } } + public string TrainingComputeBinding { get { throw null; } set { } } + } public partial class MachineLearningAutoPauseProperties { public MachineLearningAutoPauseProperties() { } @@ -3838,13 +3842,13 @@ public MachineLearningCodeConfiguration(string scoringScript) { } public partial class MachineLearningCodeContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { public MachineLearningCodeContainerProperties() { } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } } public partial class MachineLearningCodeVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { public MachineLearningCodeVersionProperties() { } public System.Uri CodeUri { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } } public partial class MachineLearningCommandJob : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobProperties { @@ -3856,10 +3860,10 @@ public MachineLearningCommandJob(string command, Azure.Core.ResourceIdentifier e public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits Limits { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState? MlflowAutologger { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState? MlflowAutologger { get { throw null; } set { } } public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } public System.BinaryData Parameters { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.QueueSettings QueueSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.JobQueueSettings QueueSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration Resources { get { throw null; } set { } } } public partial class MachineLearningCommandJobLimits : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobLimits @@ -3869,13 +3873,13 @@ public MachineLearningCommandJobLimits() { } public partial class MachineLearningComponentContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { public MachineLearningComponentContainerProperties() { } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } } public partial class MachineLearningComponentVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase { public MachineLearningComponentVersionProperties() { } public System.BinaryData ComponentSpec { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } public string Stage { get { throw null; } set { } } } public partial class MachineLearningComputeInstance : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties @@ -4005,7 +4009,7 @@ public MachineLearningComputeInstanceProperties() { } public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } public string IdleTimeBeforeShutdown { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation LastOperation { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MlflowAutologger? MlflowAutologger { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger? MlflowAutologger { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ImageMetadata OSImageMetadata { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAssignedUser PersonalComputeInstanceAssignedUser { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList SchedulesComputeStartStop { get { throw null; } } @@ -4145,10 +4149,10 @@ internal MachineLearningComputeSystemService() { } public MachineLearningConnectionCategory(string value) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AdlsGen2 { get { throw null; } } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory ApiKey { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureMySqlDb { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureMySqlDB { get { throw null; } } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureOpenAI { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzurePostgresDb { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureSqlDb { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzurePostgresDB { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureSqlDB { get { throw null; } } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory AzureSynapseAnalytics { get { throw null; } } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory CognitiveSearch { get { throw null; } } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningConnectionCategory CognitiveService { get { throw null; } } @@ -4467,11 +4471,11 @@ public partial class MachineLearningEncryptionSetting public MachineLearningEncryptionSetting(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionKeyVaultProperties keyVaultProperties, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus status) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public MachineLearningEncryptionSetting(Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus status, Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionKeyVaultProperties keyVaultProperties) { } - public string CosmosDbResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier CosmosDBResourceId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } - public string SearchAccountResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SearchAccountResourceId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningEncryptionStatus Status { get { throw null; } set { } } - public string StorageAccountResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier StorageAccountResourceId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier UserAssignedIdentity { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -4599,7 +4603,7 @@ public MachineLearningEndpointScheduleAction(System.BinaryData endpointInvocatio public partial class MachineLearningEnvironmentContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { public MachineLearningEnvironmentContainerProperties() { } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningEnvironmentType : System.IEquatable @@ -4630,7 +4634,7 @@ public MachineLearningEnvironmentVersionProperties() { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerProperties InferenceConfig { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.IntellectualProperty IntellectualProperty { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningOperatingSystemType? OSType { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } public string Stage { get { throw null; } set { } } } public partial class MachineLearningError @@ -4670,6 +4674,12 @@ internal MachineLearningEstimatedVmPrices() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFeatureLag right) { throw null; } public override string ToString() { throw null; } } + public partial class MachineLearningFeatureProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase + { + public MachineLearningFeatureProperties() { } + public Azure.ResourceManager.MachineLearning.Models.FeatureDataType? DataType { get { throw null; } set { } } + public string FeatureName { get { throw null; } set { } } + } public partial class MachineLearningFeatureSetContainerCollectionGetAllOptions { public MachineLearningFeatureSetContainerCollectionGetAllOptions() { } @@ -4681,6 +4691,24 @@ public MachineLearningFeatureSetContainerCollectionGetAllOptions() { } public string Skip { get { throw null; } set { } } public string Tags { get { throw null; } set { } } } + public partial class MachineLearningFeatureSetContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer + { + public MachineLearningFeatureSetContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } + } + public partial class MachineLearningFeatureSetJob + { + internal MachineLearningFeatureSetJob() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public string DisplayName { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } } + public string ExperimentId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.FeatureStoreJobType? FeatureStoreJobType { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.FeatureWindow FeatureWindow { get { throw null; } } + public string JobId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? Status { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } + } public partial class MachineLearningFeatureSetVersionCollectionGetAllOptions { public MachineLearningFeatureSetVersionCollectionGetAllOptions() { } @@ -4694,6 +4722,15 @@ public MachineLearningFeatureSetVersionCollectionGetAllOptions() { } public string Version { get { throw null; } set { } } public string VersionName { get { throw null; } set { } } } + public partial class MachineLearningFeatureSetVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase + { + public MachineLearningFeatureSetVersionProperties() { } + public System.Collections.Generic.IList Entities { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MaterializationSettings MaterializationSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } + public string SpecificationPath { get { throw null; } set { } } + public string Stage { get { throw null; } set { } } + } public partial class MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions { public MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions() { } @@ -4705,6 +4742,11 @@ public MachineLearningFeatureStoreEntityContainerCollectionGetAllOptions() { } public string Skip { get { throw null; } set { } } public string Tags { get { throw null; } set { } } } + public partial class MachineLearningFeatureStoreEntityContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer + { + public MachineLearningFeatureStoreEntityContainerProperties() { } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } + } public partial class MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions { public MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions() { } @@ -4718,6 +4760,13 @@ public MachineLearningFeaturestoreEntityVersionCollectionGetAllOptions() { } public string Version { get { throw null; } set { } } public string VersionName { get { throw null; } set { } } } + public partial class MachineLearningFeatureStoreEntityVersionProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetBase + { + public MachineLearningFeatureStoreEntityVersionProperties() { } + public System.Collections.Generic.IList IndexColumns { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } + public string Stage { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningFeaturizationMode : System.IEquatable { @@ -4747,6 +4796,42 @@ public partial class MachineLearningFlavorData public MachineLearningFlavorData() { } public System.Collections.Generic.IDictionary Data { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningflowAutologger : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningflowAutologger(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MachineLearningflowAutologgerState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MachineLearningflowAutologgerState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState right) { throw null; } + public override string ToString() { throw null; } + } public partial class MachineLearningFlowModelJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput { public MachineLearningFlowModelJobInput(System.Uri uri) { } @@ -4918,7 +5003,7 @@ protected MachineLearningJobOutput() { } public partial class MachineLearningJobPatch { public MachineLearningJobPatch() { } - public System.Collections.Generic.IDictionary NotificationSettingWebhooks { get { throw null; } set { } } + public System.Collections.Generic.IDictionary NotificationSettingWebhooks { get { throw null; } set { } } } public partial class MachineLearningJobProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningResourceBase { @@ -4951,7 +5036,7 @@ public MachineLearningJobService() { } public string Endpoint { get { throw null; } set { } } public string ErrorMessage { get { throw null; } } public string JobServiceType { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.Nodes Nodes { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.JobNodes Nodes { get { throw null; } set { } } public int? Port { get { throw null; } set { } } public System.Collections.Generic.IDictionary Properties { get { throw null; } set { } } public string Status { get { throw null; } } @@ -5110,7 +5195,7 @@ public MachineLearningManagedOnlineDeployment() { } public partial class MachineLearningModelContainerProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssetContainer { public MachineLearningModelContainerProperties() { } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningModelSize : System.IEquatable @@ -5156,7 +5241,7 @@ public MachineLearningModelVersionProperties() { } public string JobName { get { throw null; } set { } } public string ModelType { get { throw null; } set { } } public System.Uri ModelUri { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.AssetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? ProvisioningState { get { throw null; } } public string Stage { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -5449,6 +5534,12 @@ protected MachineLearningOnlineScaleSettings() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType left, Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType right) { throw null; } public override string ToString() { throw null; } } + public abstract partial class MachineLearningOutboundRule + { + protected MachineLearningOutboundRule() { } + public Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory? Category { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus? Status { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningOutputDeliveryMode : System.IEquatable { @@ -6155,7 +6246,7 @@ public MachineLearningSweepJob(Azure.ResourceManager.MachineLearning.Models.Mach public Azure.ResourceManager.MachineLearning.Models.MachineLearningSweepJobLimits Limits { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningObjective Objective { get { throw null; } set { } } public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.QueueSettings QueueSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.JobQueueSettings QueueSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm SamplingAlgorithm { get { throw null; } set { } } public System.BinaryData SearchSpace { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent Trial { get { throw null; } set { } } @@ -6541,6 +6632,11 @@ public MachineLearningVmSshCredentials() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier left, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmTier right) { throw null; } public override string ToString() { throw null; } } + public abstract partial class MachineLearningWebhook + { + protected MachineLearningWebhook() { } + public string EventType { get { throw null; } set { } } + } public partial class MachineLearningWorkspaceConnectionManagedIdentity { public MachineLearningWorkspaceConnectionManagedIdentity() { } @@ -6702,7 +6798,7 @@ public partial class ManagedNetworkSettings public ManagedNetworkSettings() { } public Azure.ResourceManager.MachineLearning.Models.IsolationMode? IsolationMode { get { throw null; } set { } } public string NetworkId { get { throw null; } } - public System.Collections.Generic.IDictionary OutboundRules { get { throw null; } set { } } + public System.Collections.Generic.IDictionary OutboundRules { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ManagedNetworkProvisionStatus Status { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -6756,62 +6852,27 @@ public partial class MedianStoppingPolicy : Azure.ResourceManager.MachineLearnin { public MedianStoppingPolicy() { } } - public abstract partial class MLAssistConfiguration - { - protected MLAssistConfiguration() { } - } - public partial class MLAssistConfigurationDisabled : Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration + public partial class MLAssistConfigurationDisabled : Azure.ResourceManager.MachineLearning.Models.MachineLearningAssistConfiguration { public MLAssistConfigurationDisabled() { } } - public partial class MLAssistConfigurationEnabled : Azure.ResourceManager.MachineLearning.Models.MLAssistConfiguration - { - public MLAssistConfigurationEnabled(string inferencingComputeBinding, string trainingComputeBinding) { } - public string InferencingComputeBinding { get { throw null; } set { } } - public string TrainingComputeBinding { get { throw null; } set { } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MlflowAutologger : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MlflowAutologger(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MlflowAutologger Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MlflowAutologger Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MlflowAutologger other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MlflowAutologger left, Azure.ResourceManager.MachineLearning.Models.MlflowAutologger right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MlflowAutologger (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MlflowAutologger left, Azure.ResourceManager.MachineLearning.Models.MlflowAutologger right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MLFlowAutologgerState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MLFlowAutologgerState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState left, Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState left, Azure.ResourceManager.MachineLearning.Models.MLFlowAutologgerState right) { throw null; } - public override string ToString() { throw null; } - } public partial class ModelConfiguration { public ModelConfiguration() { } public Azure.ResourceManager.MachineLearning.Models.PackageInputDeliveryMode? Mode { get { throw null; } set { } } public string MountPath { get { throw null; } set { } } } + public partial class ModelPackageContent + { + public ModelPackageContent(Azure.ResourceManager.MachineLearning.Models.InferencingServer inferencingServer, string targetEnvironmentId) { } + public Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource BaseEnvironmentSource { get { throw null; } set { } } + public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.InferencingServer InferencingServer { get { throw null; } } + public System.Collections.Generic.IList Inputs { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.ModelConfiguration ModelConfiguration { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + public string TargetEnvironmentId { get { throw null; } } + } public partial class ModelPackageInput { public ModelPackageInput(Azure.ResourceManager.MachineLearning.Models.PackageInputType inputType, Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase path) { } @@ -6820,6 +6881,20 @@ public ModelPackageInput(Azure.ResourceManager.MachineLearning.Models.PackageInp public string MountPath { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase Path { get { throw null; } set { } } } + public partial class ModelPackageResult + { + internal ModelPackageResult() { } + public Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource BaseEnvironmentSource { get { throw null; } } + public string BuildId { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.PackageBuildState? BuildState { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary EnvironmentVariables { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.InferencingServer InferencingServer { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Inputs { get { throw null; } } + public System.Uri LogUri { get { throw null; } } + public Azure.ResourceManager.MachineLearning.Models.ModelConfiguration ModelConfiguration { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } + public string TargetEnvironmentId { get { throw null; } } + } public abstract partial class ModelPerformanceMetricThresholdBase { protected ModelPerformanceMetricThresholdBase() { } @@ -6970,33 +7045,40 @@ public MonitorServerlessSparkCompute(Azure.ResourceManager.MachineLearning.Model public string InstanceType { get { throw null; } set { } } public string RuntimeVersion { get { throw null; } set { } } } + public partial class MountBindOptions + { + public MountBindOptions() { } + public bool? DoesCreateHostPath { get { throw null; } set { } } + public string Propagation { get { throw null; } set { } } + public string Selinux { get { throw null; } set { } } + } public partial class MpiDistributionConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration { public MpiDistributionConfiguration() { } public int? ProcessCountPerInstance { get { throw null; } set { } } } + public abstract partial class NCrossValidations + { + protected NCrossValidations() { } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MultiSelect : System.IEquatable + public readonly partial struct NetworkingRuleAction : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MultiSelect(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MultiSelect Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MultiSelect Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MultiSelect other) { throw null; } + public NetworkingRuleAction(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction Allow { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction Deny { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MultiSelect left, Azure.ResourceManager.MachineLearning.Models.MultiSelect right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MultiSelect (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MultiSelect left, Azure.ResourceManager.MachineLearning.Models.MultiSelect right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction left, Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction left, Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class NCrossValidations - { - protected NCrossValidations() { } - } public partial class NlpFixedParameters { public NlpFixedParameters() { } @@ -7061,16 +7143,12 @@ public NlpVerticalLimitSettings() { } public System.TimeSpan? Timeout { get { throw null; } set { } } public System.TimeSpan? TrialTimeout { get { throw null; } set { } } } - public abstract partial class Nodes - { - protected Nodes() { } - } public partial class NotificationSetting { public NotificationSetting() { } public System.Collections.Generic.IList EmailOn { get { throw null; } set { } } public System.Collections.Generic.IList Emails { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Webhooks { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Webhooks { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct NumericalDataDriftMetric : System.IEquatable @@ -7185,11 +7263,42 @@ public OnlineInferenceConfiguration() { } public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute ReadinessRoute { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningInferenceContainerRoute ScoringRoute { get { throw null; } set { } } } - public abstract partial class OutboundRule + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct OutboundRuleCategory : System.IEquatable { - protected OutboundRule() { } - public Azure.ResourceManager.MachineLearning.Models.RuleCategory? Category { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.RuleStatus? Status { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public OutboundRuleCategory(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory Recommended { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory Required { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory UserDefined { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory left, Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory left, Azure.ResourceManager.MachineLearning.Models.OutboundRuleCategory right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct OutboundRuleStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public OutboundRuleStatus(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus Active { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus Inactive { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus left, Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus left, Azure.ResourceManager.MachineLearning.Models.OutboundRuleStatus right) { throw null; } + public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct PackageBuildState : System.IEquatable @@ -7236,7 +7345,7 @@ protected PackageInputPathBase() { } public partial class PackageInputPathId : Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase { public PackageInputPathId() { } - public string ResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } } public partial class PackageInputPathUri : Azure.ResourceManager.MachineLearning.Models.PackageInputPathBase { @@ -7267,31 +7376,6 @@ public PackageInputPathVersion() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.PackageInputType left, Azure.ResourceManager.MachineLearning.Models.PackageInputType right) { throw null; } public override string ToString() { throw null; } } - public partial class PackageRequest - { - public PackageRequest(Azure.ResourceManager.MachineLearning.Models.InferencingServer inferencingServer, string targetEnvironmentId) { } - public Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource BaseEnvironmentSource { get { throw null; } set { } } - public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.InferencingServer InferencingServer { get { throw null; } } - public System.Collections.Generic.IList Inputs { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.ModelConfiguration ModelConfiguration { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } - public string TargetEnvironmentId { get { throw null; } } - } - public partial class PackageResponse - { - internal PackageResponse() { } - public Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource BaseEnvironmentSource { get { throw null; } } - public string BuildId { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.PackageBuildState? BuildState { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary EnvironmentVariables { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.InferencingServer InferencingServer { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Inputs { get { throw null; } } - public System.Uri LogUri { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.ModelConfiguration ModelConfiguration { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } - public string TargetEnvironmentId { get { throw null; } } - } public abstract partial class PendingUploadCredentialDto { protected PendingUploadCredentialDto() { } @@ -7340,29 +7424,24 @@ public PredictionDriftMonitoringSignal(System.Collections.Generic.IEnumerable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public Protocol(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.Protocol Http { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.Protocol Tcp { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.Protocol Udp { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.Protocol other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.Protocol left, Azure.ResourceManager.MachineLearning.Models.Protocol right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.Protocol (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.Protocol left, Azure.ResourceManager.MachineLearning.Models.Protocol right) { throw null; } - public override string ToString() { throw null; } - } public partial class PyTorchDistributionConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration { public PyTorchDistributionConfiguration() { } public int? ProcessCountPerInstance { get { throw null; } set { } } } - public partial class QueueSettings - { - public QueueSettings() { } - public Azure.ResourceManager.MachineLearning.Models.JobTier? JobTier { get { throw null; } set { } } - public int? Priority { get { throw null; } set { } } - } public partial class RandomSamplingAlgorithm : Azure.ResourceManager.MachineLearning.Models.SamplingAlgorithm { public RandomSamplingAlgorithm() { } @@ -7444,9 +7498,9 @@ public RandomSamplingAlgorithm() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RandomSamplingAlgorithmRule left, Azure.ResourceManager.MachineLearning.Models.RandomSamplingAlgorithmRule right) { throw null; } public override string ToString() { throw null; } } - public partial class Ray : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration + public partial class RayDistributionConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration { - public Ray() { } + public RayDistributionConfiguration() { } public string Address { get { throw null; } set { } } public int? DashboardPort { get { throw null; } set { } } public string HeadNodeAdditionalArgs { get { throw null; } set { } } @@ -7454,13 +7508,46 @@ public Ray() { } public int? Port { get { throw null; } set { } } public string WorkerNodeAdditionalArgs { get { throw null; } set { } } } + public partial class RegistryAcrDetails + { + public RegistryAcrDetails() { } + public Azure.Core.ResourceIdentifier ArmResourceId { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.SystemCreatedAcrAccount SystemCreatedAcrAccount { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RegistryAssetProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RegistryAssetProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState left, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState left, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class RegistryPrivateEndpoint : Azure.ResourceManager.MachineLearning.Models.PrivateEndpointBase + { + public RegistryPrivateEndpoint() { } + public Azure.Core.ResourceIdentifier SubnetArmId { get { throw null; } set { } } + } public partial class RegistryPrivateEndpointConnection { public RegistryPrivateEndpointConnection() { } public System.Collections.Generic.IList GroupIds { get { throw null; } set { } } - public string Id { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.PrivateEndpointResource PrivateEndpoint { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.RegistryPrivateEndpoint PrivateEndpoint { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.RegistryPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public string ProvisioningState { get { throw null; } set { } } } @@ -7474,7 +7561,7 @@ public RegistryPrivateLinkServiceConnectionState() { } public partial class RegistryRegionArmDetails { public RegistryRegionArmDetails() { } - public System.Collections.Generic.IList AcrDetails { get { throw null; } set { } } + public System.Collections.Generic.IList AcrDetails { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } public System.Collections.Generic.IList StorageAccountDetails { get { throw null; } set { } } } @@ -7529,61 +7616,6 @@ public RegressionTrainingSettings() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RollingRateType left, Azure.ResourceManager.MachineLearning.Models.RollingRateType right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RuleAction : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RuleAction(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.RuleAction Allow { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.RuleAction Deny { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.RuleAction other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RuleAction left, Azure.ResourceManager.MachineLearning.Models.RuleAction right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.RuleAction (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RuleAction left, Azure.ResourceManager.MachineLearning.Models.RuleAction right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RuleCategory : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RuleCategory(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.RuleCategory Recommended { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.RuleCategory Required { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.RuleCategory UserDefined { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.RuleCategory other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RuleCategory left, Azure.ResourceManager.MachineLearning.Models.RuleCategory right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.RuleCategory (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RuleCategory left, Azure.ResourceManager.MachineLearning.Models.RuleCategory right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RuleStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RuleStatus(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.RuleStatus Active { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.RuleStatus Inactive { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.RuleStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.RuleStatus left, Azure.ResourceManager.MachineLearning.Models.RuleStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.RuleStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.RuleStatus left, Azure.ResourceManager.MachineLearning.Models.RuleStatus right) { throw null; } - public override string ToString() { throw null; } - } public abstract partial class SamplingAlgorithm { protected SamplingAlgorithm() { } @@ -7626,13 +7658,13 @@ public ServicePrincipalAuthTypeWorkspaceConnectionProperties() { } public partial class ServiceTagDestination { public ServiceTagDestination() { } - public Azure.ResourceManager.MachineLearning.Models.RuleAction? Action { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.NetworkingRuleAction? Action { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList AddressPrefixes { get { throw null; } } public string PortRanges { get { throw null; } set { } } public string Protocol { get { throw null; } set { } } public string ServiceTag { get { throw null; } set { } } } - public partial class ServiceTagOutboundRule : Azure.ResourceManager.MachineLearning.Models.OutboundRule + public partial class ServiceTagOutboundRule : Azure.ResourceManager.MachineLearning.Models.MachineLearningOutboundRule { public ServiceTagOutboundRule() { } public Azure.ResourceManager.MachineLearning.Models.ServiceTagDestination Destination { get { throw null; } set { } } @@ -7651,7 +7683,7 @@ public SparkJob(string codeId, Azure.ResourceManager.MachineLearning.Models.Spar public System.Collections.Generic.IList Jars { get { throw null; } set { } } public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } public System.Collections.Generic.IList PyFiles { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.QueueSettings QueueSettings { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.JobQueueSettings QueueSettings { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.SparkResourceConfiguration Resources { get { throw null; } set { } } } public abstract partial class SparkJobEntry @@ -7681,33 +7713,6 @@ public partial class StaticInputData : Azure.ResourceManager.MachineLearning.Mod public System.DateTimeOffset WindowEnd { get { throw null; } set { } } public System.DateTimeOffset WindowStart { get { throw null; } set { } } } - public partial class StatusMessage - { - internal StatusMessage() { } - public string Code { get { throw null; } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel? Level { get { throw null; } } - public string Message { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct StatusMessageLevel : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public StatusMessageLevel(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel Error { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel Information { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel Warning { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel left, Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel left, Azure.ResourceManager.MachineLearning.Models.StatusMessageLevel right) { throw null; } - public override string ToString() { throw null; } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct StochasticOptimizer : System.IEquatable { @@ -7731,7 +7736,7 @@ internal StatusMessage() { } public partial class StorageAccountDetails { public StorageAccountDetails() { } - public string ArmResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ArmResourceId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.SystemCreatedStorageAccount SystemCreatedStorageAccount { get { throw null; } set { } } } public partial class SystemCreatedAcrAccount @@ -7739,13 +7744,13 @@ public partial class SystemCreatedAcrAccount public SystemCreatedAcrAccount() { } public string AcrAccountName { get { throw null; } set { } } public string AcrAccountSku { get { throw null; } set { } } - public string ArmResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ArmResourceId { get { throw null; } set { } } } public partial class SystemCreatedStorageAccount { public SystemCreatedStorageAccount() { } public bool? AllowBlobPublicAccess { get { throw null; } set { } } - public string ArmResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ArmResourceId { get { throw null; } set { } } public bool? StorageAccountHnsEnabled { get { throw null; } set { } } public string StorageAccountName { get { throw null; } set { } } public string StorageAccountType { get { throw null; } set { } } @@ -7977,7 +7982,7 @@ public TruncationSelectionPolicy() { } public partial class VolumeDefinition { public VolumeDefinition() { } - public Azure.ResourceManager.MachineLearning.Models.BindOptions Bind { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MountBindOptions Bind { get { throw null; } set { } } public string Consistency { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType? DefinitionType { get { throw null; } set { } } public bool? Nocopy { get { throw null; } set { } } @@ -8006,11 +8011,6 @@ public VolumeDefinition() { } public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType left, Azure.ResourceManager.MachineLearning.Models.VolumeDefinitionType right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class Webhook - { - protected Webhook() { } - public string EventType { get { throw null; } set { } } - } public partial class WorkspaceConnectionAccessKey { public WorkspaceConnectionAccessKey() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs index b1cf633e691d..e71a08aaa143 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs @@ -737,7 +737,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceCompute() VmSize = "STANDARD_NC6", SubnetId = new ResourceIdentifier("test-subnet-resource-id"), ApplicationSharingPolicy = MachineLearningApplicationSharingPolicy.Personal, - MlflowAutologger = MlflowAutologger.Enabled, + MlflowAutologger = MachineLearningflowAutologger.Enabled, SshSettings = new MachineLearningComputeInstanceSshSettings() { SshPublicAccess = MachineLearningSshPublicAccess.Disabled, @@ -747,7 +747,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceCompute() new CustomService() { Name = "rstudio-workbench", -Image = new Image() +Image = new ImageSetting() { ImageType = ImageType.Docker, Reference = "ghcr.io/azure/rstudio-workbench:latest", @@ -760,15 +760,15 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceCompute() Value = "XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX", }, }, -Docker = new Docker() +Docker = new DockerSetting() { Privileged = true, }, Endpoints = { -new Endpoint() +new ContainerEndpoint() { -Protocol = Protocol.Http, +Protocol = ContainerCommunicationProtocol.Http, Name = "connect", Target = 8787, Published = 4444, diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs index fe58ce3e9bae..7533a784625d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs @@ -246,7 +246,7 @@ public async Task UpdateCustomServices_UpdateCustomServices() new CustomService() { Name = "rstudio-workbench", -Image = new Image() +Image = new ImageSetting() { ImageType = ImageType.Docker, Reference = "ghcr.io/azure/rstudio-workbench:latest", @@ -259,15 +259,15 @@ public async Task UpdateCustomServices_UpdateCustomServices() Value = "XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX", }, }, -Docker = new Docker() +Docker = new DockerSetting() { Privileged = true, }, Endpoints = { -new Endpoint() +new ContainerEndpoint() { -Protocol = Protocol.Http, +Protocol = ContainerCommunicationProtocol.Http, Name = "connect", Target = 8787, Published = 4444, diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs index 747c43719840..aefe41905f95 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs @@ -191,7 +191,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetContainer() // invoke the operation string name = "string"; - MachineLearningFeatureSetContainerData data = new MachineLearningFeatureSetContainerData(new FeaturesetContainerProperties() + MachineLearningFeatureSetContainerData data = new MachineLearningFeatureSetContainerData(new MachineLearningFeatureSetContainerProperties() { IsArchived = false, Description = "string", diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs index cdc1be138e2e..38a2243fcdd0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs @@ -101,7 +101,7 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturesetContainer() MachineLearningFeatureSetContainerResource machineLearningFeatureSetContainer = client.GetMachineLearningFeatureSetContainerResource(machineLearningFeatureSetContainerResourceId); // invoke the operation - MachineLearningFeatureSetContainerData data = new MachineLearningFeatureSetContainerData(new FeaturesetContainerProperties() + MachineLearningFeatureSetContainerData data = new MachineLearningFeatureSetContainerData(new MachineLearningFeatureSetContainerProperties() { IsArchived = false, Description = "string", diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs index bec46a60b656..fb0eed2588a5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs @@ -196,7 +196,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetVersion() // invoke the operation string version = "string"; - MachineLearningFeatureSetVersionData data = new MachineLearningFeatureSetVersionData(new FeaturesetVersionProperties() + MachineLearningFeatureSetVersionData data = new MachineLearningFeatureSetVersionData(new MachineLearningFeatureSetVersionProperties() { Entities = { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs index 79f09825eb9e..5157491e58e6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs @@ -104,7 +104,7 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturesetVersion() MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); // invoke the operation - MachineLearningFeatureSetVersionData data = new MachineLearningFeatureSetVersionData(new FeaturesetVersionProperties() + MachineLearningFeatureSetVersionData data = new MachineLearningFeatureSetVersionData(new MachineLearningFeatureSetVersionProperties() { Entities = { @@ -201,7 +201,7 @@ public async Task Backfill_BackfillWorkspaceFeaturesetVersion() MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId); // invoke the operation - FeaturesetVersionBackfillContent content = new FeaturesetVersionBackfillContent() + FeatureSetVersionBackfillContent content = new FeatureSetVersionBackfillContent() { Description = "string", DisplayName = "string", @@ -220,8 +220,8 @@ public async Task Backfill_BackfillWorkspaceFeaturesetVersion() ["string"] = "string", }, }; - ArmOperation lro = await machineLearningFeatureSetVersion.BackfillAsync(WaitUntil.Completed, content); - FeaturesetJob result = lro.Value; + ArmOperation lro = await machineLearningFeatureSetVersion.BackfillAsync(WaitUntil.Completed, content); + MachineLearningFeatureSetJob result = lro.Value; Console.WriteLine($"Succeeded: {result}"); } @@ -253,7 +253,7 @@ public async Task GetMaterializationJobs_ListMaterializationJobsWorkspaceFeature string filters = "string"; string featureWindowStart = "string"; string featureWindowEnd = "string"; - await foreach (FeaturesetJob item in machineLearningFeatureSetVersion.GetMaterializationJobsAsync(filters: filters, featureWindowStart: featureWindowStart, featureWindowEnd: featureWindowEnd)) + await foreach (MachineLearningFeatureSetJob item in machineLearningFeatureSetVersion.GetMaterializationJobsAsync(filters: filters, featureWindowStart: featureWindowStart, featureWindowEnd: featureWindowEnd)) { Console.WriteLine($"Succeeded: {item}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs index 38d10b7fc627..882d0b120c32 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs @@ -191,7 +191,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityContai // invoke the operation string name = "string"; - MachineLearningFeatureStoreEntityContainerData data = new MachineLearningFeatureStoreEntityContainerData(new FeaturestoreEntityContainerProperties() + MachineLearningFeatureStoreEntityContainerData data = new MachineLearningFeatureStoreEntityContainerData(new MachineLearningFeatureStoreEntityContainerProperties() { IsArchived = false, Description = "string", diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs index 53fae258a058..e28ffe24b5a7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs @@ -101,7 +101,7 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityContainer() MachineLearningFeatureStoreEntityContainerResource machineLearningFeatureStoreEntityContainer = client.GetMachineLearningFeatureStoreEntityContainerResource(machineLearningFeatureStoreEntityContainerResourceId); // invoke the operation - MachineLearningFeatureStoreEntityContainerData data = new MachineLearningFeatureStoreEntityContainerData(new FeaturestoreEntityContainerProperties() + MachineLearningFeatureStoreEntityContainerData data = new MachineLearningFeatureStoreEntityContainerData(new MachineLearningFeatureStoreEntityContainerProperties() { IsArchived = false, Description = "string", diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs index fad331d96c57..dba359c9996b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs @@ -196,7 +196,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityVersio // invoke the operation string version = "string"; - MachineLearningFeaturestoreEntityVersionData data = new MachineLearningFeaturestoreEntityVersionData(new FeaturestoreEntityVersionProperties() + MachineLearningFeaturestoreEntityVersionData data = new MachineLearningFeaturestoreEntityVersionData(new MachineLearningFeatureStoreEntityVersionProperties() { IndexColumns = { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs index f9291c5920f6..0ba6b513a2a9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs @@ -104,7 +104,7 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityVersion() MachineLearningFeaturestoreEntityVersionResource machineLearningFeaturestoreEntityVersion = client.GetMachineLearningFeaturestoreEntityVersionResource(machineLearningFeaturestoreEntityVersionResourceId); // invoke the operation - MachineLearningFeaturestoreEntityVersionData data = new MachineLearningFeaturestoreEntityVersionData(new FeaturestoreEntityVersionProperties() + MachineLearningFeaturestoreEntityVersionData data = new MachineLearningFeaturestoreEntityVersionData(new MachineLearningFeatureStoreEntityVersionProperties() { IndexColumns = { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs index 59b20dbf3952..a19cbb1247c1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs @@ -636,7 +636,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob() string id = "string"; MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { - MlflowAutologger = MLFlowAutologgerState.Disabled, + MlflowAutologger = MachineLearningflowAutologgerState.Disabled, CodeId = new ResourceIdentifier("string"), Distribution = new TensorFlowDistributionConfiguration() { @@ -669,7 +669,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob() Description = "string", }, }, - QueueSettings = new QueueSettings() + QueueSettings = new JobQueueSettings() { JobTier = JobTier.Premium, Priority = 1, @@ -714,7 +714,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob() { Endpoint = "string", JobServiceType = "string", -Nodes = new AllNodes(), +Nodes = new JobAllNodes(), Port = 1, Properties = { @@ -770,7 +770,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob() string id = "string"; MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { - MlflowAutologger = MLFlowAutologgerState.Disabled, + MlflowAutologger = MachineLearningflowAutologgerState.Disabled, CodeId = new ResourceIdentifier("string"), Distribution = new TensorFlowDistributionConfiguration() { @@ -803,7 +803,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob() Description = "string", }, }, - QueueSettings = new QueueSettings() + QueueSettings = new JobQueueSettings() { JobTier = JobTier.Basic, Priority = 1, @@ -848,7 +848,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob() { Endpoint = "string", JobServiceType = "string", -Nodes = new AllNodes(), +Nodes = new JobAllNodes(), Port = 1, Properties = { @@ -987,7 +987,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSweepJob() string id = "string"; MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { - MlflowAutologger = MLFlowAutologgerState.Disabled, + MlflowAutologger = MachineLearningflowAutologgerState.Disabled, CodeId = new ResourceIdentifier("string"), Distribution = new TensorFlowDistributionConfiguration() { @@ -1020,7 +1020,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSweepJob() Description = "string", }, }, - QueueSettings = new QueueSettings() + QueueSettings = new JobQueueSettings() { JobTier = JobTier.Basic, Priority = 1, @@ -1065,7 +1065,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSweepJob() { Endpoint = "string", JobServiceType = "string", -Nodes = new AllNodes(), +Nodes = new JobAllNodes(), Port = 1, Properties = { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs index 69864a160671..8cf965d0ed95 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs @@ -221,7 +221,7 @@ public async Task CreateOrUpdate_CreateOrUpdateLabelingJob() }, }, DisplayName = "myCategory1Title", -MultiSelect = MultiSelect.Disabled, +MultiSelect = LabelCategoryMultiSelect.Disabled, }, ["myCategory2"] = new LabelCategory() { @@ -243,11 +243,11 @@ public async Task CreateOrUpdate_CreateOrUpdateLabelingJob() }, }, DisplayName = "myCategory2Title", -MultiSelect = MultiSelect.Disabled, +MultiSelect = LabelCategoryMultiSelect.Disabled, }, }, LabelingJobMediaProperties = new LabelingJobImageProperties(), - MlAssistConfiguration = new MLAssistConfigurationEnabled("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute"), + MlAssistConfiguration = new MachineLearningAssistEnabledConfiguration("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute"), Description = "string", Properties = { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs index 95abefae92a1..4aceca2b4305 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs @@ -128,7 +128,7 @@ public async Task Update_CreateOrUpdateLabelingJob() }, }, DisplayName = "myCategory1Title", -MultiSelect = MultiSelect.Disabled, +MultiSelect = LabelCategoryMultiSelect.Disabled, }, ["myCategory2"] = new LabelCategory() { @@ -150,11 +150,11 @@ public async Task Update_CreateOrUpdateLabelingJob() }, }, DisplayName = "myCategory2Title", -MultiSelect = MultiSelect.Disabled, +MultiSelect = LabelCategoryMultiSelect.Disabled, }, }, LabelingJobMediaProperties = new LabelingJobImageProperties(), - MlAssistConfiguration = new MLAssistConfigurationEnabled("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute"), + MlAssistConfiguration = new MachineLearningAssistEnabledConfiguration("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute"), Description = "string", Properties = { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs index 1db10ec4e12a..31ac7bd9562e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs @@ -163,7 +163,7 @@ public async Task Package_PackageWorkspaceModelVersion() MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId); // invoke the operation - PackageRequest body = new PackageRequest(new AzureMLBatchInferencingServer() + ModelPackageContent content = new ModelPackageContent(new AzureMLBatchInferencingServer() { CodeConfiguration = new MachineLearningCodeConfiguration("string") { @@ -171,7 +171,7 @@ public async Task Package_PackageWorkspaceModelVersion() }, }, "string") { - BaseEnvironmentSource = new BaseEnvironmentId("string"), + BaseEnvironmentSource = new BaseEnvironmentType(new ResourceIdentifier("string")), EnvironmentVariables = { ["string"] = "string", @@ -197,8 +197,8 @@ public async Task Package_PackageWorkspaceModelVersion() ["string"] = "string", }, }; - ArmOperation lro = await machineLearningModelVersion.PackageAsync(WaitUntil.Completed, body); - PackageResponse result = lro.Value; + ArmOperation lro = await machineLearningModelVersion.PackageAsync(WaitUntil.Completed, content); + ModelPackageResult result = lro.Value; Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResourceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicCollection.cs similarity index 82% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResourceCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicCollection.cs index a13668354680..149d13d581d0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResourceCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_OutboundRuleBasicResourceCollection + public partial class Sample_MachineLearningOutboundRuleBasicCollection { // List ManagedNetworkSettingsRule [NUnit.Framework.Test] @@ -39,15 +39,15 @@ public async Task GetAll_ListManagedNetworkSettingsRule() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this OutboundRuleBasicResource - OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + // get the collection of this MachineLearningOutboundRuleBasicResource + MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics(); // invoke the operation and iterate over the result - await foreach (OutboundRuleBasicResource item in collection.GetAllAsync()) + await foreach (MachineLearningOutboundRuleBasicResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - OutboundRuleBasicResourceData resourceData = item.Data; + MachineLearningOutboundRuleBasicData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -76,16 +76,16 @@ public async Task Get_GetManagedNetworkSettingsRule() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this OutboundRuleBasicResource - OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + // get the collection of this MachineLearningOutboundRuleBasicResource + MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics(); // invoke the operation string ruleName = "some_string"; - OutboundRuleBasicResource result = await collection.GetAsync(ruleName); + MachineLearningOutboundRuleBasicResource result = await collection.GetAsync(ruleName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - OutboundRuleBasicResourceData resourceData = result.Data; + MachineLearningOutboundRuleBasicData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -111,8 +111,8 @@ public async Task Exists_GetManagedNetworkSettingsRule() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this OutboundRuleBasicResource - OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + // get the collection of this MachineLearningOutboundRuleBasicResource + MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics(); // invoke the operation string ruleName = "some_string"; @@ -142,13 +142,13 @@ public async Task GetIfExists_GetManagedNetworkSettingsRule() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this OutboundRuleBasicResource - OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + // get the collection of this MachineLearningOutboundRuleBasicResource + MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics(); // invoke the operation string ruleName = "some_string"; - NullableResponse response = await collection.GetIfExistsAsync(ruleName); - OutboundRuleBasicResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(ruleName); + MachineLearningOutboundRuleBasicResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -158,7 +158,7 @@ public async Task GetIfExists_GetManagedNetworkSettingsRule() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - OutboundRuleBasicResourceData resourceData = result.Data; + MachineLearningOutboundRuleBasicData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -185,23 +185,23 @@ public async Task CreateOrUpdate_CreateOrUpdateManagedNetworkSettingsRule() ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - // get the collection of this OutboundRuleBasicResource - OutboundRuleBasicResourceCollection collection = machineLearningWorkspace.GetOutboundRuleBasicResources(); + // get the collection of this MachineLearningOutboundRuleBasicResource + MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics(); // invoke the operation string ruleName = "some_string"; - OutboundRuleBasicResourceData data = new OutboundRuleBasicResourceData(new FqdnOutboundRule() + MachineLearningOutboundRuleBasicData data = new MachineLearningOutboundRuleBasicData(new FqdnOutboundRule() { Destination = "some_string", - Category = RuleCategory.UserDefined, - Status = RuleStatus.Active, + Category = OutboundRuleCategory.UserDefined, + Status = OutboundRuleStatus.Active, }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, data); - OutboundRuleBasicResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, data); + MachineLearningOutboundRuleBasicResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - OutboundRuleBasicResourceData resourceData = result.Data; + MachineLearningOutboundRuleBasicData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicResource.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicResource.cs index ebfd17410557..b0b72162bd6a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_OutboundRuleBasicResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.MachineLearning.Samples { - public partial class Sample_OutboundRuleBasicResource + public partial class Sample_MachineLearningOutboundRuleBasicResource { // Delete ManagedNetworkSettingsRule [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Delete_DeleteManagedNetworkSettingsRule() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this OutboundRuleBasicResource created on azure - // for more information of creating OutboundRuleBasicResource, please refer to the document of OutboundRuleBasicResource + // this example assumes you already have this MachineLearningOutboundRuleBasicResource created on azure + // for more information of creating MachineLearningOutboundRuleBasicResource, please refer to the document of MachineLearningOutboundRuleBasicResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "aml-workspace-name"; string ruleName = "some_string"; - ResourceIdentifier outboundRuleBasicResourceId = OutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); - OutboundRuleBasicResource outboundRuleBasicResource = client.GetOutboundRuleBasicResource(outboundRuleBasicResourceId); + ResourceIdentifier machineLearningOutboundRuleBasicResourceId = MachineLearningOutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + MachineLearningOutboundRuleBasicResource machineLearningOutboundRuleBasic = client.GetMachineLearningOutboundRuleBasicResource(machineLearningOutboundRuleBasicResourceId); // invoke the operation - await outboundRuleBasicResource.DeleteAsync(WaitUntil.Completed); + await machineLearningOutboundRuleBasic.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -59,21 +59,21 @@ public async Task Get_GetManagedNetworkSettingsRule() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this OutboundRuleBasicResource created on azure - // for more information of creating OutboundRuleBasicResource, please refer to the document of OutboundRuleBasicResource + // this example assumes you already have this MachineLearningOutboundRuleBasicResource created on azure + // for more information of creating MachineLearningOutboundRuleBasicResource, please refer to the document of MachineLearningOutboundRuleBasicResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "aml-workspace-name"; string ruleName = "some_string"; - ResourceIdentifier outboundRuleBasicResourceId = OutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); - OutboundRuleBasicResource outboundRuleBasicResource = client.GetOutboundRuleBasicResource(outboundRuleBasicResourceId); + ResourceIdentifier machineLearningOutboundRuleBasicResourceId = MachineLearningOutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + MachineLearningOutboundRuleBasicResource machineLearningOutboundRuleBasic = client.GetMachineLearningOutboundRuleBasicResource(machineLearningOutboundRuleBasicResourceId); // invoke the operation - OutboundRuleBasicResource result = await outboundRuleBasicResource.GetAsync(); + MachineLearningOutboundRuleBasicResource result = await machineLearningOutboundRuleBasic.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - OutboundRuleBasicResourceData resourceData = result.Data; + MachineLearningOutboundRuleBasicData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -91,28 +91,28 @@ public async Task Update_CreateOrUpdateManagedNetworkSettingsRule() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this OutboundRuleBasicResource created on azure - // for more information of creating OutboundRuleBasicResource, please refer to the document of OutboundRuleBasicResource + // this example assumes you already have this MachineLearningOutboundRuleBasicResource created on azure + // for more information of creating MachineLearningOutboundRuleBasicResource, please refer to the document of MachineLearningOutboundRuleBasicResource string subscriptionId = "00000000-1111-2222-3333-444444444444"; string resourceGroupName = "test-rg"; string workspaceName = "aml-workspace-name"; string ruleName = "some_string"; - ResourceIdentifier outboundRuleBasicResourceId = OutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); - OutboundRuleBasicResource outboundRuleBasicResource = client.GetOutboundRuleBasicResource(outboundRuleBasicResourceId); + ResourceIdentifier machineLearningOutboundRuleBasicResourceId = MachineLearningOutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + MachineLearningOutboundRuleBasicResource machineLearningOutboundRuleBasic = client.GetMachineLearningOutboundRuleBasicResource(machineLearningOutboundRuleBasicResourceId); // invoke the operation - OutboundRuleBasicResourceData data = new OutboundRuleBasicResourceData(new FqdnOutboundRule() + MachineLearningOutboundRuleBasicData data = new MachineLearningOutboundRuleBasicData(new FqdnOutboundRule() { Destination = "some_string", - Category = RuleCategory.UserDefined, - Status = RuleStatus.Active, + Category = OutboundRuleCategory.UserDefined, + Status = OutboundRuleStatus.Active, }); - ArmOperation lro = await outboundRuleBasicResource.UpdateAsync(WaitUntil.Completed, data); - OutboundRuleBasicResource result = lro.Value; + ArmOperation lro = await machineLearningOutboundRuleBasic.UpdateAsync(WaitUntil.Completed, data); + MachineLearningOutboundRuleBasicResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - OutboundRuleBasicResourceData resourceData = result.Data; + MachineLearningOutboundRuleBasicData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs index 60ad5520a5a9..4a1479b6f55c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs @@ -206,21 +206,21 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts }, DiscoveryUri = new Uri("string"), IntellectualPropertyPublisher = "string", - ManagedResourceId = "string", + ManagedResourceId = new ResourceIdentifier("string"), MlFlowRegistryUri = new Uri("string"), PrivateEndpointConnections = { new RegistryPrivateEndpointConnection() { -Id = "string", +Id = new ResourceIdentifier("string"), Location = new AzureLocation("string"), GroupIds = { "string" }, -PrivateEndpoint = new PrivateEndpointResource() +PrivateEndpoint = new RegistryPrivateEndpoint() { -SubnetArmId = "string", +SubnetArmId = new ResourceIdentifier("string"), }, PrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState() { @@ -238,13 +238,13 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts { AcrDetails = { -new AcrDetails() +new RegistryAcrDetails() { SystemCreatedAcrAccount = new SystemCreatedAcrAccount() { AcrAccountName = "string", AcrAccountSku = "string", -ArmResourceId = "string", +ArmResourceId = new ResourceIdentifier("string"), }, } }, @@ -256,7 +256,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts SystemCreatedStorageAccount = new SystemCreatedStorageAccount() { AllowBlobPublicAccess = false, -ArmResourceId = "string", +ArmResourceId = new ResourceIdentifier("string"), StorageAccountHnsEnabled = false, StorageAccountName = "string", StorageAccountType = "string", diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs index fbe036252019..53ff19c1b030 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs @@ -163,7 +163,7 @@ public async Task Package_PackageRegistryModelVersion() MachineLearningRegistryModelVersionResource machineLearningRegistryModelVersion = client.GetMachineLearningRegistryModelVersionResource(machineLearningRegistryModelVersionResourceId); // invoke the operation - PackageRequest body = new PackageRequest(new AzureMLBatchInferencingServer() + ModelPackageContent content = new ModelPackageContent(new AzureMLBatchInferencingServer() { CodeConfiguration = new MachineLearningCodeConfiguration("string") { @@ -171,7 +171,7 @@ public async Task Package_PackageRegistryModelVersion() }, }, "string") { - BaseEnvironmentSource = new BaseEnvironmentId("string"), + BaseEnvironmentSource = new BaseEnvironmentType(new ResourceIdentifier("string")), EnvironmentVariables = { ["string"] = "string", @@ -197,8 +197,8 @@ public async Task Package_PackageRegistryModelVersion() ["string"] = "string", }, }; - ArmOperation lro = await machineLearningRegistryModelVersion.PackageAsync(WaitUntil.Completed, body); - PackageResponse result = lro.Value; + ArmOperation lro = await machineLearningRegistryModelVersion.PackageAsync(WaitUntil.Completed, content); + ModelPackageResult result = lro.Value; Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs index 80c8ac66f12a..dc9902c8ab35 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs @@ -203,21 +203,21 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() }, DiscoveryUri = new Uri("string"), IntellectualPropertyPublisher = "string", - ManagedResourceId = "string", + ManagedResourceId = new ResourceIdentifier("string"), MlFlowRegistryUri = new Uri("string"), PrivateEndpointConnections = { new RegistryPrivateEndpointConnection() { -Id = "string", +Id = new ResourceIdentifier("string"), Location = new AzureLocation("string"), GroupIds = { "string" }, -PrivateEndpoint = new PrivateEndpointResource() +PrivateEndpoint = new RegistryPrivateEndpoint() { -SubnetArmId = "string", +SubnetArmId = new ResourceIdentifier("string"), }, PrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState() { @@ -235,13 +235,13 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() { AcrDetails = { -new AcrDetails() +new RegistryAcrDetails() { SystemCreatedAcrAccount = new SystemCreatedAcrAccount() { AcrAccountName = "string", AcrAccountSku = "string", -ArmResourceId = "string", +ArmResourceId = new ResourceIdentifier("string"), }, } }, @@ -253,7 +253,7 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() SystemCreatedStorageAccount = new SystemCreatedStorageAccount() { AllowBlobPublicAccess = false, -ArmResourceId = "string", +ArmResourceId = new ResourceIdentifier("string"), StorageAccountHnsEnabled = false, StorageAccountName = "string", StorageAccountType = "string", diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs index 9fabefce25ed..b8bd87f7e028 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs @@ -201,7 +201,7 @@ public static MachineLearningCodeContainerData MachineLearningCodeContainerData( /// The next auto incremental version. /// Provisioning state for the code container. /// A new instance for mocking. - public static MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) + public static MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -247,7 +247,7 @@ public static MachineLearningCodeVersionData MachineLearningCodeVersionData(Reso /// Uri where code is located. /// Provisioning state for the code version. /// A new instance for mocking. - public static MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, Uri codeUri = null, AssetProvisioningState? provisioningState = null) + public static MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, Uri codeUri = null, RegistryAssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -277,7 +277,7 @@ public static PendingUploadResponseDto PendingUploadResponseDto(BlobReferenceFor /// /// Arm ID of the storage account to use. /// A new instance for mocking. - public static BlobReferenceForConsumptionDto BlobReferenceForConsumptionDto(Uri blobUri = null, PendingUploadCredentialDto credential = null, string storageAccountArmId = null) + public static BlobReferenceForConsumptionDto BlobReferenceForConsumptionDto(Uri blobUri = null, PendingUploadCredentialDto credential = null, ResourceIdentifier storageAccountArmId = null) { return new BlobReferenceForConsumptionDto(blobUri, credential, storageAccountArmId); } @@ -303,7 +303,7 @@ public static MachineLearningComponentContainerData MachineLearningComponentCont /// The next auto incremental version. /// Provisioning state for the component container. /// A new instance for mocking. - public static MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) + public static MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -337,7 +337,7 @@ public static MachineLearningComponentVersionData MachineLearningComponentVersio /// Provisioning state for the component version. /// Stage in the component lifecycle. /// A new instance for mocking. - public static MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, BinaryData componentSpec = null, AssetProvisioningState? provisioningState = null, string stage = null) + public static MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, BinaryData componentSpec = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -411,7 +411,7 @@ public static MachineLearningEnvironmentContainerData MachineLearningEnvironment /// The next auto incremental version. /// Provisioning state for the environment container. /// A new instance for mocking. - public static MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) + public static MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -458,7 +458,7 @@ public static MachineLearningEnvironmentVersionData MachineLearningEnvironmentVe /// Provisioning state for the environment version. /// Stage in the environment lifecycle assigned to this environment. /// A new instance for mocking. - public static MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, AutoRebuildSetting? autoRebuild = null, MachineLearningBuildContext build = null, string condaFile = null, MachineLearningEnvironmentType? environmentType = null, string image = null, MachineLearningInferenceContainerProperties inferenceConfig = null, IntellectualProperty intellectualProperty = null, MachineLearningOperatingSystemType? osType = null, AssetProvisioningState? provisioningState = null, string stage = null) + public static MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, AutoRebuildSetting? autoRebuild = null, MachineLearningBuildContext build = null, string condaFile = null, MachineLearningEnvironmentType? environmentType = null, string image = null, MachineLearningInferenceContainerProperties inferenceConfig = null, IntellectualProperty intellectualProperty = null, MachineLearningOperatingSystemType? osType = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -487,7 +487,7 @@ public static MachineLearningModelContainerData MachineLearningModelContainerDat /// The next auto incremental version. /// Provisioning state for the model container. /// A new instance for mocking. - public static MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) + public static MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -522,7 +522,7 @@ public static MachineLearningModelVersionData MachineLearningModelVersionData(Re /// Provisioning state for the model version. /// Stage in the model lifecycle assigned to this model. /// A new instance for mocking. - public static MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IDictionary flavors = null, IntellectualProperty intellectualProperty = null, string jobName = null, string modelType = null, Uri modelUri = null, AssetProvisioningState? provisioningState = null, string stage = null) + public static MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IDictionary flavors = null, IntellectualProperty intellectualProperty = null, string jobName = null, string modelType = null, Uri modelUri = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -531,11 +531,11 @@ public static MachineLearningModelVersionProperties MachineLearningModelVersionP return new MachineLearningModelVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, flavors, intellectualProperty, jobName, modelType, modelUri, provisioningState, stage); } - /// Initializes a new instance of PackageResponse. + /// Initializes a new instance of ModelPackageResult. /// /// Base environment to start with. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// The available derived classes include . /// /// Build id of the image build operation. /// Build state of the image build operation. @@ -550,14 +550,14 @@ public static MachineLearningModelVersionProperties MachineLearningModelVersionP /// Model configuration including the mount mode. /// Tag dictionary. Tags can be added, removed, and updated. /// Asset ID of the target environment created by package operation. - /// A new instance for mocking. - public static PackageResponse PackageResponse(BaseEnvironmentSource baseEnvironmentSource = null, string buildId = null, PackageBuildState? buildState = null, IReadOnlyDictionary environmentVariables = null, InferencingServer inferencingServer = null, IEnumerable inputs = null, Uri logUri = null, ModelConfiguration modelConfiguration = null, IReadOnlyDictionary tags = null, string targetEnvironmentId = null) + /// A new instance for mocking. + public static ModelPackageResult ModelPackageResult(BaseEnvironmentSource baseEnvironmentSource = null, string buildId = null, PackageBuildState? buildState = null, IReadOnlyDictionary environmentVariables = null, InferencingServer inferencingServer = null, IEnumerable inputs = null, Uri logUri = null, ModelConfiguration modelConfiguration = null, IReadOnlyDictionary tags = null, string targetEnvironmentId = null) { environmentVariables ??= new Dictionary(); inputs ??= new List(); tags ??= new Dictionary(); - return new PackageResponse(baseEnvironmentSource, buildId, buildState, environmentVariables, inferencingServer, inputs?.ToList(), logUri, modelConfiguration, tags, targetEnvironmentId); + return new ModelPackageResult(baseEnvironmentSource, buildId, buildState, environmentVariables, inferencingServer, inputs?.ToList(), logUri, modelConfiguration, tags, targetEnvironmentId); } /// Initializes a new instance of MachineLearningBatchEndpointData. @@ -731,12 +731,12 @@ public static MachineLearningDatastoreProperties MachineLearningDatastorePropert /// The systemData. /// [Required] Additional attributes of the entity. /// A new instance for mocking. - public static MachineLearningFeatureSetContainerData MachineLearningFeatureSetContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturesetContainerProperties properties = null) + public static MachineLearningFeatureSetContainerData MachineLearningFeatureSetContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureSetContainerProperties properties = null) { return new MachineLearningFeatureSetContainerData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of FeaturesetContainerProperties. + /// Initializes a new instance of MachineLearningFeatureSetContainerProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. @@ -744,13 +744,13 @@ public static MachineLearningFeatureSetContainerData MachineLearningFeatureSetCo /// The latest version inside this container. /// The next auto incremental version. /// Provisioning state for the featureset container. - /// A new instance for mocking. - public static FeaturesetContainerProperties FeaturesetContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) + /// A new instance for mocking. + public static MachineLearningFeatureSetContainerProperties MachineLearningFeatureSetContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new FeaturesetContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); + return new MachineLearningFeatureSetContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); } /// Initializes a new instance of MachineLearningFeatureData. @@ -760,7 +760,7 @@ public static FeaturesetContainerProperties FeaturesetContainerProperties(string /// The systemData. /// [Required] Additional attributes of the entity. /// A new instance for mocking. - public static MachineLearningFeatureData MachineLearningFeatureData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeatureProperties properties = null) + public static MachineLearningFeatureData MachineLearningFeatureData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureProperties properties = null) { return new MachineLearningFeatureData(id, name, resourceType, systemData, properties); } @@ -772,12 +772,12 @@ public static MachineLearningFeatureData MachineLearningFeatureData(ResourceIden /// The systemData. /// [Required] Additional attributes of the entity. /// A new instance for mocking. - public static MachineLearningFeatureSetVersionData MachineLearningFeatureSetVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturesetVersionProperties properties = null) + public static MachineLearningFeatureSetVersionData MachineLearningFeatureSetVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureSetVersionProperties properties = null) { return new MachineLearningFeatureSetVersionData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of FeaturesetVersionProperties. + /// Initializes a new instance of MachineLearningFeatureSetVersionProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. @@ -789,17 +789,17 @@ public static MachineLearningFeatureSetVersionData MachineLearningFeatureSetVers /// Provisioning state for the featureset version container. /// Specifies the feature spec details. /// Specifies the asset stage. - /// A new instance for mocking. - public static FeaturesetVersionProperties FeaturesetVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable entities = null, MaterializationSettings materializationSettings = null, AssetProvisioningState? provisioningState = null, string specificationPath = null, string stage = null) + /// A new instance for mocking. + public static MachineLearningFeatureSetVersionProperties MachineLearningFeatureSetVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable entities = null, MaterializationSettings materializationSettings = null, RegistryAssetProvisioningState? provisioningState = null, string specificationPath = null, string stage = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); entities ??= new List(); - return new FeaturesetVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, entities?.ToList(), materializationSettings, provisioningState, specificationPath != null ? new FeaturesetSpecification(specificationPath) : null, stage); + return new MachineLearningFeatureSetVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, entities?.ToList(), materializationSettings, provisioningState, specificationPath != null ? new FeaturesetSpecification(specificationPath) : null, stage); } - /// Initializes a new instance of FeaturesetJob. + /// Initializes a new instance of MachineLearningFeatureSetJob. /// Specifies the created date. /// Specifies the display name. /// Specifies the duration. @@ -808,13 +808,13 @@ public static FeaturesetVersionProperties FeaturesetVersionProperties(string des /// Specifies the job id. /// Specifies the job status. /// Specifies the tags if any. - /// Specifies the feature store job type. - /// A new instance for mocking. - public static FeaturesetJob FeaturesetJob(DateTimeOffset? createdOn = null, string displayName = null, TimeSpan? duration = null, string experimentId = null, FeatureWindow featureWindow = null, string jobId = null, MachineLearningJobStatus? status = null, IReadOnlyDictionary tags = null, FeaturestoreJobType? featurestoreJobType = null) + /// Specifies the feature store job type. + /// A new instance for mocking. + public static MachineLearningFeatureSetJob MachineLearningFeatureSetJob(DateTimeOffset? createdOn = null, string displayName = null, TimeSpan? duration = null, string experimentId = null, FeatureWindow featureWindow = null, string jobId = null, MachineLearningJobStatus? status = null, IReadOnlyDictionary tags = null, FeatureStoreJobType? featureStoreJobType = null) { tags ??= new Dictionary(); - return new FeaturesetJob(createdOn, displayName, duration, experimentId, featureWindow, jobId, status, tags, featurestoreJobType); + return new MachineLearningFeatureSetJob(createdOn, displayName, duration, experimentId, featureWindow, jobId, status, tags, featureStoreJobType); } /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerData. @@ -824,12 +824,12 @@ public static FeaturesetJob FeaturesetJob(DateTimeOffset? createdOn = null, stri /// The systemData. /// [Required] Additional attributes of the entity. /// A new instance for mocking. - public static MachineLearningFeatureStoreEntityContainerData MachineLearningFeatureStoreEntityContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturestoreEntityContainerProperties properties = null) + public static MachineLearningFeatureStoreEntityContainerData MachineLearningFeatureStoreEntityContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureStoreEntityContainerProperties properties = null) { return new MachineLearningFeatureStoreEntityContainerData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of FeaturestoreEntityContainerProperties. + /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. @@ -837,13 +837,13 @@ public static MachineLearningFeatureStoreEntityContainerData MachineLearningFeat /// The latest version inside this container. /// The next auto incremental version. /// Provisioning state for the featurestore entity container. - /// A new instance for mocking. - public static FeaturestoreEntityContainerProperties FeaturestoreEntityContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, AssetProvisioningState? provisioningState = null) + /// A new instance for mocking. + public static MachineLearningFeatureStoreEntityContainerProperties MachineLearningFeatureStoreEntityContainerProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); - return new FeaturestoreEntityContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); + return new MachineLearningFeatureStoreEntityContainerProperties(description, properties, tags, isArchived, latestVersion, nextVersion, provisioningState); } /// Initializes a new instance of MachineLearningFeaturestoreEntityVersionData. @@ -853,12 +853,12 @@ public static FeaturestoreEntityContainerProperties FeaturestoreEntityContainerP /// The systemData. /// [Required] Additional attributes of the entity. /// A new instance for mocking. - public static MachineLearningFeaturestoreEntityVersionData MachineLearningFeaturestoreEntityVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, FeaturestoreEntityVersionProperties properties = null) + public static MachineLearningFeaturestoreEntityVersionData MachineLearningFeaturestoreEntityVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureStoreEntityVersionProperties properties = null) { return new MachineLearningFeaturestoreEntityVersionData(id, name, resourceType, systemData, properties); } - /// Initializes a new instance of FeaturestoreEntityVersionProperties. + /// Initializes a new instance of MachineLearningFeatureStoreEntityVersionProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. @@ -868,14 +868,14 @@ public static MachineLearningFeaturestoreEntityVersionData MachineLearningFeatur /// Specifies index columns. /// Provisioning state for the featurestore entity version. /// Specifies the asset stage. - /// A new instance for mocking. - public static FeaturestoreEntityVersionProperties FeaturestoreEntityVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable indexColumns = null, AssetProvisioningState? provisioningState = null, string stage = null) + /// A new instance for mocking. + public static MachineLearningFeatureStoreEntityVersionProperties MachineLearningFeatureStoreEntityVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable indexColumns = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); indexColumns ??= new List(); - return new FeaturestoreEntityVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, indexColumns?.ToList(), provisioningState, stage); + return new MachineLearningFeatureStoreEntityVersionProperties(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived, indexColumns?.ToList(), provisioningState, stage); } /// Initializes a new instance of MachineLearningJobData. @@ -935,14 +935,14 @@ public static MachineLearningJobProperties MachineLearningJobProperties(string d /// /// 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. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// /// Port for endpoint set by user. /// Additional properties to set on the endpoint. /// Status of endpoint. /// A new instance for mocking. - public static MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, Nodes nodes = null, int? port = null, IDictionary properties = null, string status = null) + public static MachineLearningJobService MachineLearningJobService(string endpoint = null, string errorMessage = null, string jobServiceType = null, JobNodes nodes = null, int? port = null, IDictionary properties = null, string status = null) { properties ??= new Dictionary(); @@ -994,22 +994,22 @@ public static MachineLearningLabelingJobData MachineLearningLabelingJobData(Reso /// /// /// Configuration of MLAssist feature in the job. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// /// Progress metrics of the job. /// Internal id of the job(Previously called project). /// Specifies the labeling job provisioning state. /// Status messages of the job. /// A new instance for mocking. - public static LabelingJobProperties LabelingJobProperties(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, DateTimeOffset? createdOn = null, LabelingDataConfiguration dataConfiguration = null, Uri jobInstructionsUri = null, IDictionary labelCategories = null, LabelingJobMediaProperties labelingJobMediaProperties = null, MLAssistConfiguration mlAssistConfiguration = null, ProgressMetrics progressMetrics = null, Guid? projectId = null, JobProvisioningState? provisioningState = null, IEnumerable statusMessages = null) + public static LabelingJobProperties LabelingJobProperties(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, DateTimeOffset? createdOn = null, LabelingDataConfiguration dataConfiguration = null, Uri jobInstructionsUri = null, IDictionary labelCategories = null, LabelingJobMediaProperties labelingJobMediaProperties = null, MachineLearningAssistConfiguration mlAssistConfiguration = null, ProgressMetrics progressMetrics = null, Guid? projectId = null, JobProvisioningState? provisioningState = null, IEnumerable statusMessages = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); secretsConfiguration ??= new Dictionary(); services ??= new Dictionary(); labelCategories ??= new Dictionary(); - statusMessages ??= new List(); + statusMessages ??= new List(); return new LabelingJobProperties(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, JobType.Labeling, notificationSetting, secretsConfiguration, services, status, createdOn, dataConfiguration, jobInstructionsUri != null ? new LabelingJobInstructions(jobInstructionsUri) : null, labelCategories, labelingJobMediaProperties, mlAssistConfiguration, progressMetrics, projectId, provisioningState, statusMessages?.ToList()); } @@ -1025,15 +1025,15 @@ public static ProgressMetrics ProgressMetrics(long? completedDatapointCount = nu return new ProgressMetrics(completedDatapointCount, incrementalDataLastRefreshOn, skippedDatapointCount, totalDatapointCount); } - /// Initializes a new instance of StatusMessage. + /// Initializes a new instance of JobStatusMessage. /// Service-defined message code. /// Time in UTC at which the message was created. /// Severity level of message. /// A human-readable representation of the message code. - /// A new instance for mocking. - public static StatusMessage StatusMessage(string code = null, DateTimeOffset? createdOn = null, StatusMessageLevel? level = null, string message = null) + /// A new instance for mocking. + public static JobStatusMessage JobStatusMessage(string code = null, DateTimeOffset? createdOn = null, JobStatusMessageLevel? level = null, string message = null) { - return new StatusMessage(code, createdOn, level, message); + return new JobStatusMessage(code, createdOn, level, message); } /// Initializes a new instance of ExportSummary. @@ -1260,7 +1260,7 @@ public static MachineLearningScheduleProperties MachineLearningSchedulePropertie /// /// Details of each region the registry is in. /// A new instance for mocking. - public static MachineLearningRegistryData MachineLearningRegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, string managedResourceId = null, Uri mlFlowRegistryUri = null, IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null) + public static MachineLearningRegistryData MachineLearningRegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, ResourceIdentifier managedResourceId = null, Uri mlFlowRegistryUri = null, IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); @@ -1269,21 +1269,21 @@ public static MachineLearningRegistryData MachineLearningRegistryData(ResourceId return new MachineLearningRegistryData(id, name, resourceType, systemData, tags, location, identity, kind, sku, discoveryUri, intellectualPropertyPublisher, managedResourceId != null ? new ArmResourceId(managedResourceId) : null, mlFlowRegistryUri, privateEndpointConnections?.ToList(), publicNetworkAccess, regionDetails?.ToList()); } - /// Initializes a new instance of PrivateEndpointResource. + /// Initializes a new instance of RegistryPrivateEndpoint. /// The ARM identifier for Private Endpoint. /// The subnetId that the private endpoint is connected to. - /// A new instance for mocking. - public static PrivateEndpointResource PrivateEndpointResource(string id = null, string subnetArmId = null) + /// A new instance for mocking. + public static RegistryPrivateEndpoint RegistryPrivateEndpoint(ResourceIdentifier id = null, ResourceIdentifier subnetArmId = null) { - return new PrivateEndpointResource(id, subnetArmId); + return new RegistryPrivateEndpoint(id, subnetArmId); } - /// Initializes a new instance of PrivateEndpoint. + /// Initializes a new instance of PrivateEndpointBase. /// The ARM identifier for Private Endpoint. - /// A new instance for mocking. - public static PrivateEndpoint PrivateEndpoint(string id = null) + /// A new instance for mocking. + public static PrivateEndpointBase PrivateEndpointBase(ResourceIdentifier id = null) { - return new PrivateEndpoint(id); + return new PrivateEndpointBase(id); } /// Initializes a new instance of MachineLearningUserFeature. @@ -1344,7 +1344,7 @@ public static MachineLearningUserFeature MachineLearningUserFeature(string id = /// WorkspaceHub's configuration object. /// The immutable id associated with this workspace. /// A new instance for mocking. - public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = null, string applicationInsights = null, IEnumerable associatedWorkspaces = null, IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, Uri discoveryUri = null, bool? enableDataIsolation = null, MachineLearningEncryptionSetting encryption = null, IEnumerable existingWorkspaces = null, FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = null, string hubResourceId = null, string imageBuildCompute = null, string keyVault = null, IEnumerable keyVaults = null, ManagedNetworkSettings managedNetwork = null, Uri mlFlowTrackingUri = null, MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, IEnumerable privateEndpointConnections = null, int? privateLinkCount = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccessType = null, int? cosmosDbCollectionsThroughput = null, string serviceProvisionedResourceGroup = null, IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = null, string storageAccount = null, IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = null, string systemDatastoresAuthMode = null, Guid? tenantId = null, bool? isV1LegacyMode = null, WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) + public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = null, string applicationInsights = null, IEnumerable associatedWorkspaces = null, IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, Uri discoveryUri = null, bool? enableDataIsolation = null, MachineLearningEncryptionSetting encryption = null, IEnumerable existingWorkspaces = null, FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = null, ResourceIdentifier hubResourceId = null, string imageBuildCompute = null, string keyVault = null, IEnumerable keyVaults = null, ManagedNetworkSettings managedNetwork = null, Uri mlFlowTrackingUri = null, MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, IEnumerable privateEndpointConnections = null, int? privateLinkCount = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccessType = null, int? cosmosDbCollectionsThroughput = null, string serviceProvisionedResourceGroup = null, IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = null, string storageAccount = null, IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = null, string systemDatastoresAuthMode = null, Guid? tenantId = null, bool? isV1LegacyMode = null, WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null) { tags ??= new Dictionary(); associatedWorkspaces ??= new List(); @@ -1363,14 +1363,14 @@ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(Resource /// /// /// Dictionary of <OutboundRule> - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// /// Status of the Provisioning for the managed network of a machine learning workspace. /// A new instance for mocking. - public static ManagedNetworkSettings ManagedNetworkSettings(IsolationMode? isolationMode = null, string networkId = null, IDictionary outboundRules = null, ManagedNetworkProvisionStatus status = null) + public static ManagedNetworkSettings ManagedNetworkSettings(IsolationMode? isolationMode = null, string networkId = null, IDictionary outboundRules = null, ManagedNetworkProvisionStatus status = null) { - outboundRules ??= new Dictionary(); + outboundRules ??= new Dictionary(); return new ManagedNetworkSettings(isolationMode, networkId, outboundRules, status); } @@ -1586,20 +1586,20 @@ public static MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetai return new MachineLearningFqdnEndpointDetail(port); } - /// Initializes a new instance of OutboundRuleBasicResourceData. + /// Initializes a new instance of MachineLearningOutboundRuleBasicData. /// The id. /// The name. /// The resourceType. /// The systemData. /// /// Outbound Rule for the managed network of a machine learning workspace. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// - /// A new instance for mocking. - public static OutboundRuleBasicResourceData OutboundRuleBasicResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, OutboundRule properties = null) + /// A new instance for mocking. + public static MachineLearningOutboundRuleBasicData MachineLearningOutboundRuleBasicData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningOutboundRule properties = null) { - return new OutboundRuleBasicResourceData(id, name, resourceType, systemData, properties); + return new MachineLearningOutboundRuleBasicData(id, name, resourceType, systemData, properties); } /// Initializes a new instance of MachineLearningPrivateLinkResource. @@ -2072,7 +2072,7 @@ public static MachineLearningDatabricksComputeSecrets MachineLearningDatabricksC /// The available derived classes include , , , , , , , , and . /// /// A new instance for mocking. - public static AutoMLJob AutoMLJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary outputs = null, QueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null, AutoMLVertical taskDetails = null) + public static AutoMLJob AutoMLJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary outputs = null, JobQueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null, AutoMLVertical taskDetails = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -2230,7 +2230,7 @@ public static CocoExportSummary CocoExportSummary(DateTimeOffset? endOn = null, /// /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, Ray, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , and . /// /// [Required] The ARM resource ID of the Environment specification for the job. /// Environment variables included in the job. @@ -2249,7 +2249,7 @@ public static CocoExportSummary CocoExportSummary(DateTimeOffset? endOn = null, /// Queue settings for the job. /// Compute Resource configuration for the job. /// A new instance for mocking. - public static MachineLearningCommandJob MachineLearningCommandJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, MLFlowAutologgerState? mlflowAutologger = null, ResourceIdentifier codeId = null, string command = null, MachineLearningDistributionConfiguration distribution = null, ResourceIdentifier environmentId = null, IDictionary environmentVariables = null, IDictionary inputs = null, MachineLearningCommandJobLimits limits = null, IDictionary outputs = null, BinaryData parameters = null, QueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null) + public static MachineLearningCommandJob MachineLearningCommandJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, MachineLearningflowAutologgerState? mlflowAutologger = null, ResourceIdentifier codeId = null, string command = null, MachineLearningDistributionConfiguration distribution = null, ResourceIdentifier environmentId = null, IDictionary environmentVariables = null, IDictionary inputs = null, MachineLearningCommandJobLimits limits = null, IDictionary outputs = null, BinaryData parameters = null, JobQueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -2510,7 +2510,7 @@ public static SasCredentialDto SasCredentialDto(Uri sasUri = null) /// Queue settings for the job. /// Compute Resource configuration for the job. /// A new instance for mocking. - public static SparkJob SparkJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, IEnumerable archives = null, string args = null, string codeId = null, IDictionary conf = null, SparkJobEntry entry = null, string environmentId = null, IEnumerable files = null, IDictionary inputs = null, IEnumerable jars = null, IDictionary outputs = null, IEnumerable pyFiles = null, QueueSettings queueSettings = null, SparkResourceConfiguration resources = null) + public static SparkJob SparkJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, IEnumerable archives = null, string args = null, string codeId = null, IDictionary conf = null, SparkJobEntry entry = null, string environmentId = null, IEnumerable files = null, IDictionary inputs = null, IEnumerable jars = null, IDictionary outputs = null, IEnumerable pyFiles = null, JobQueueSettings queueSettings = null, SparkResourceConfiguration resources = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -2575,7 +2575,7 @@ public static SparkJob SparkJob(string description = null, IDictionary [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter. /// [Required] Trial component definition. /// A new instance for mocking. - public static MachineLearningSweepJob MachineLearningSweepJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, MachineLearningEarlyTerminationPolicy earlyTermination = null, IDictionary inputs = null, MachineLearningSweepJobLimits limits = null, MachineLearningObjective objective = null, IDictionary outputs = null, QueueSettings queueSettings = null, SamplingAlgorithm samplingAlgorithm = null, BinaryData searchSpace = null, MachineLearningTrialComponent trial = null) + public static MachineLearningSweepJob MachineLearningSweepJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, MachineLearningEarlyTerminationPolicy earlyTermination = null, IDictionary inputs = null, MachineLearningSweepJobLimits limits = null, MachineLearningObjective objective = null, IDictionary outputs = null, JobQueueSettings queueSettings = null, SamplingAlgorithm samplingAlgorithm = null, BinaryData searchSpace = null, MachineLearningTrialComponent trial = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); @@ -2644,7 +2644,7 @@ public static TextNer TextNer(MachineLearningLogVerbosity? logVerbosity = null, /// /// /// A new instance for mocking. - public static ServiceTagDestination ServiceTagDestination(RuleAction? action = null, IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) + public static ServiceTagDestination ServiceTagDestination(NetworkingRuleAction? action = null, IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) { addressPrefixes ??= new List(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs index d0505d9aaa27..2f27418ea6ce 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs @@ -753,20 +753,20 @@ public static MachineLearningWorkspaceConnectionResource GetMachineLearningWorks } #endregion - #region OutboundRuleBasicResource + #region MachineLearningOutboundRuleBasicResource /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static OutboundRuleBasicResource GetOutboundRuleBasicResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static MachineLearningOutboundRuleBasicResource GetMachineLearningOutboundRuleBasicResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - OutboundRuleBasicResource.ValidateResourceId(id); - return new OutboundRuleBasicResource(client, id); + MachineLearningOutboundRuleBasicResource.ValidateResourceId(id); + return new MachineLearningOutboundRuleBasicResource(client, id); } ); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetJobOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetJobOperationSource.cs deleted file mode 100644 index 8ebacd0def7d..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/FeaturesetJobOperationSource.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager.MachineLearning.Models; - -namespace Azure.ResourceManager.MachineLearning -{ - internal class FeaturesetJobOperationSource : IOperationSource - { - FeaturesetJob IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - return FeaturesetJob.DeserializeFeaturesetJob(document.RootElement); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - return FeaturesetJob.DeserializeFeaturesetJob(document.RootElement); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetJobOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetJobOperationSource.cs new file mode 100644 index 000000000000..6efc3616279e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningFeatureSetJobOperationSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.MachineLearning.Models; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class MachineLearningFeatureSetJobOperationSource : IOperationSource + { + MachineLearningFeatureSetJob IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return MachineLearningFeatureSetJob.DeserializeMachineLearningFeatureSetJob(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return MachineLearningFeatureSetJob.DeserializeMachineLearningFeatureSetJob(document.RootElement); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningOutboundRuleBasicOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningOutboundRuleBasicOperationSource.cs new file mode 100644 index 000000000000..e8be0633ac6a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningOutboundRuleBasicOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class MachineLearningOutboundRuleBasicOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal MachineLearningOutboundRuleBasicOperationSource(ArmClient client) + { + _client = client; + } + + MachineLearningOutboundRuleBasicResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = MachineLearningOutboundRuleBasicData.DeserializeMachineLearningOutboundRuleBasicData(document.RootElement); + return new MachineLearningOutboundRuleBasicResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = MachineLearningOutboundRuleBasicData.DeserializeMachineLearningOutboundRuleBasicData(document.RootElement); + return new MachineLearningOutboundRuleBasicResource(_client, data); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/PackageResponseOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ModelPackageResultOperationSource.cs similarity index 52% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/PackageResponseOperationSource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ModelPackageResultOperationSource.cs index 21cb0719efa9..5ad0b1584798 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/PackageResponseOperationSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/ModelPackageResultOperationSource.cs @@ -14,18 +14,18 @@ namespace Azure.ResourceManager.MachineLearning { - internal class PackageResponseOperationSource : IOperationSource + internal class ModelPackageResultOperationSource : IOperationSource { - PackageResponse IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + ModelPackageResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); - return PackageResponse.DeserializePackageResponse(document.RootElement); + return ModelPackageResult.DeserializeModelPackageResult(document.RootElement); } - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - return PackageResponse.DeserializePackageResponse(document.RootElement); + return ModelPackageResult.DeserializeModelPackageResult(document.RootElement); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/OutboundRuleBasicResourceOperationSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/OutboundRuleBasicResourceOperationSource.cs deleted file mode 100644 index 684287a81b9d..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/OutboundRuleBasicResourceOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.MachineLearning -{ - internal class OutboundRuleBasicResourceOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal OutboundRuleBasicResourceOperationSource(ArmClient client) - { - _client = client; - } - - OutboundRuleBasicResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(document.RootElement); - return new OutboundRuleBasicResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(document.RootElement); - return new OutboundRuleBasicResource(_client, data); - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureData.cs index f0a701839fc8..245d0b74e546 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureData.cs @@ -21,7 +21,7 @@ public partial class MachineLearningFeatureData : ResourceData /// Initializes a new instance of MachineLearningFeatureData. /// [Required] Additional attributes of the entity. /// is null. - public MachineLearningFeatureData(FeatureProperties properties) + public MachineLearningFeatureData(MachineLearningFeatureProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -34,12 +34,12 @@ public MachineLearningFeatureData(FeatureProperties properties) /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal MachineLearningFeatureData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeatureProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeatureData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningFeatureProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } /// [Required] Additional attributes of the entity. - public FeatureProperties Properties { get; set; } + public MachineLearningFeatureProperties Properties { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerData.cs index c68fa514d8c1..7052acbecbae 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetContainerData.cs @@ -21,7 +21,7 @@ public partial class MachineLearningFeatureSetContainerData : ResourceData /// Initializes a new instance of MachineLearningFeatureSetContainerData. /// [Required] Additional attributes of the entity. /// is null. - public MachineLearningFeatureSetContainerData(FeaturesetContainerProperties properties) + public MachineLearningFeatureSetContainerData(MachineLearningFeatureSetContainerProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -34,12 +34,12 @@ public MachineLearningFeatureSetContainerData(FeaturesetContainerProperties prop /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal MachineLearningFeatureSetContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturesetContainerProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeatureSetContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningFeatureSetContainerProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } /// [Required] Additional attributes of the entity. - public FeaturesetContainerProperties Properties { get; set; } + public MachineLearningFeatureSetContainerProperties Properties { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionData.cs index 435a690408a9..e1f13c9e18de 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionData.cs @@ -21,7 +21,7 @@ public partial class MachineLearningFeatureSetVersionData : ResourceData /// Initializes a new instance of MachineLearningFeatureSetVersionData. /// [Required] Additional attributes of the entity. /// is null. - public MachineLearningFeatureSetVersionData(FeaturesetVersionProperties properties) + public MachineLearningFeatureSetVersionData(MachineLearningFeatureSetVersionProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -34,12 +34,12 @@ public MachineLearningFeatureSetVersionData(FeaturesetVersionProperties properti /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal MachineLearningFeatureSetVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturesetVersionProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeatureSetVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningFeatureSetVersionProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } /// [Required] Additional attributes of the entity. - public FeaturesetVersionProperties Properties { get; set; } + public MachineLearningFeatureSetVersionProperties Properties { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionResource.cs index 7cdb95d637e6..cb1865ffa9e0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureSetVersionResource.cs @@ -366,7 +366,7 @@ public virtual ArmOperation Update(Wai /// Feature set version backfill request entity. /// The cancellation token to use. /// is null. - public virtual async Task> BackfillAsync(WaitUntil waitUntil, FeaturesetVersionBackfillContent content, CancellationToken cancellationToken = default) + public virtual async Task> BackfillAsync(WaitUntil waitUntil, FeatureSetVersionBackfillContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -375,7 +375,7 @@ public virtual async Task> BackfillAsync(WaitUntil w try { var response = await _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.BackfillAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new FeaturesetJobOperationSource(), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetJobOperationSource(), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -404,7 +404,7 @@ public virtual async Task> BackfillAsync(WaitUntil w /// Feature set version backfill request entity. /// The cancellation token to use. /// is null. - public virtual ArmOperation Backfill(WaitUntil waitUntil, FeaturesetVersionBackfillContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation Backfill(WaitUntil waitUntil, FeatureSetVersionBackfillContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -413,7 +413,7 @@ public virtual ArmOperation Backfill(WaitUntil waitUntil, Feature try { var response = _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.Backfill(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new MachineLearningArmOperation(new FeaturesetJobOperationSource(), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new MachineLearningArmOperation(new MachineLearningFeatureSetJobOperationSource(), _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateBackfillRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -443,12 +443,12 @@ public virtual ArmOperation Backfill(WaitUntil waitUntil, Feature /// Start time of the feature window to filter materialization jobs. /// End time of the feature window to filter materialization jobs. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetMaterializationJobsAsync(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListMaterializationJobsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListMaterializationJobsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, FeaturesetJob.DeserializeFeaturesetJob, _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, "MachineLearningFeatureSetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, MachineLearningFeatureSetJob.DeserializeMachineLearningFeatureSetJob, _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, "MachineLearningFeatureSetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); } /// @@ -469,12 +469,12 @@ public virtual AsyncPageable GetMaterializationJobsAsync(string s /// Start time of the feature window to filter materialization jobs. /// End time of the feature window to filter materialization jobs. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetMaterializationJobs(string skip = null, string filters = null, string featureWindowStart = null, string featureWindowEnd = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListMaterializationJobsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningFeatureSetVersionFeaturesetVersionsRestClient.CreateListMaterializationJobsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, skip, filters, featureWindowStart, featureWindowEnd); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, FeaturesetJob.DeserializeFeaturesetJob, _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, "MachineLearningFeatureSetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, MachineLearningFeatureSetJob.DeserializeMachineLearningFeatureSetJob, _machineLearningFeatureSetVersionFeaturesetVersionsClientDiagnostics, Pipeline, "MachineLearningFeatureSetVersionResource.GetMaterializationJobs", "value", "nextLink", cancellationToken); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerData.cs index 9af0ddca6b57..5de19144ab21 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeatureStoreEntityContainerData.cs @@ -21,7 +21,7 @@ public partial class MachineLearningFeatureStoreEntityContainerData : ResourceDa /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerData. /// [Required] Additional attributes of the entity. /// is null. - public MachineLearningFeatureStoreEntityContainerData(FeaturestoreEntityContainerProperties properties) + public MachineLearningFeatureStoreEntityContainerData(MachineLearningFeatureStoreEntityContainerProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -34,12 +34,12 @@ public MachineLearningFeatureStoreEntityContainerData(FeaturestoreEntityContaine /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal MachineLearningFeatureStoreEntityContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturestoreEntityContainerProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeatureStoreEntityContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningFeatureStoreEntityContainerProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } /// [Required] Additional attributes of the entity. - public FeaturestoreEntityContainerProperties Properties { get; set; } + public MachineLearningFeatureStoreEntityContainerProperties Properties { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionData.cs index af4e4b4a9f2c..ec54840c542f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningFeaturestoreEntityVersionData.cs @@ -21,7 +21,7 @@ public partial class MachineLearningFeaturestoreEntityVersionData : ResourceData /// Initializes a new instance of MachineLearningFeaturestoreEntityVersionData. /// [Required] Additional attributes of the entity. /// is null. - public MachineLearningFeaturestoreEntityVersionData(FeaturestoreEntityVersionProperties properties) + public MachineLearningFeaturestoreEntityVersionData(MachineLearningFeatureStoreEntityVersionProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -34,12 +34,12 @@ public MachineLearningFeaturestoreEntityVersionData(FeaturestoreEntityVersionPro /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - internal MachineLearningFeaturestoreEntityVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, FeaturestoreEntityVersionProperties properties) : base(id, name, resourceType, systemData) + internal MachineLearningFeaturestoreEntityVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningFeatureStoreEntityVersionProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } /// [Required] Additional attributes of the entity. - public FeaturestoreEntityVersionProperties Properties { get; set; } + public MachineLearningFeatureStoreEntityVersionProperties Properties { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs index fc39886ce6d2..ea8ad9ecda33 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs @@ -309,19 +309,19 @@ public virtual ArmOperation Update(WaitUnti /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Package operation request body. + /// Package operation request body. /// The cancellation token to use. - /// is null. - public virtual async Task> PackageAsync(WaitUntil waitUntil, PackageRequest body, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> PackageAsync(WaitUntil waitUntil, ModelPackageContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Package"); scope.Start(); try { - var response = await _machineLearningModelVersionModelVersionsRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, _machineLearningModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningModelVersionModelVersionsRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new ModelPackageResultOperationSource(), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, _machineLearningModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -347,19 +347,19 @@ public virtual async Task> PackageAsync(WaitUntil /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Package operation request body. + /// Package operation request body. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Package(WaitUntil waitUntil, PackageRequest body, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation Package(WaitUntil waitUntil, ModelPackageContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _machineLearningModelVersionModelVersionsClientDiagnostics.CreateScope("MachineLearningModelVersionResource.Package"); scope.Start(); try { - var response = _machineLearningModelVersionModelVersionsRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); - var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, _machineLearningModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningModelVersionModelVersionsRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new MachineLearningArmOperation(new ModelPackageResultOperationSource(), _machineLearningModelVersionModelVersionsClientDiagnostics, Pipeline, _machineLearningModelVersionModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicCollection.cs similarity index 62% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicCollection.cs index d7505a659327..9c76053dcc94 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetOutboundRuleBasicResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMachineLearningOutboundRuleBasics method from an instance of . /// - public partial class OutboundRuleBasicResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class MachineLearningOutboundRuleBasicCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics; - private readonly ManagedNetworkSettingsRuleRestOperations _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient; + private readonly ClientDiagnostics _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics; + private readonly ManagedNetworkSettingsRuleRestOperations _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient; - /// Initializes a new instance of the class for mocking. - protected OutboundRuleBasicResourceCollection() + /// Initializes a new instance of the class for mocking. + protected MachineLearningOutboundRuleBasicCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal OutboundRuleBasicResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningOutboundRuleBasicCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", OutboundRuleBasicResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(OutboundRuleBasicResource.ResourceType, out string outboundRuleBasicResourceManagedNetworkSettingsRuleApiVersion); - _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient = new ManagedNetworkSettingsRuleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, outboundRuleBasicResourceManagedNetworkSettingsRuleApiVersion); + _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningOutboundRuleBasicResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MachineLearningOutboundRuleBasicResource.ResourceType, out string machineLearningOutboundRuleBasicManagedNetworkSettingsRuleApiVersion); + _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient = new ManagedNetworkSettingsRuleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningOutboundRuleBasicManagedNetworkSettingsRuleApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleName, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleName, MachineLearningOutboundRuleBasicData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.CreateOrUpdate"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new OutboundRuleBasicResourceOperationSource(Client), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningOutboundRuleBasicOperationSource(Client), _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> CreateOrUpdat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleName, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleName, MachineLearningOutboundRuleBasicData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.CreateOrUpdate"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicCollection.CreateOrUpdate"); scope.Start(); try { - var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data, cancellationToken); - var operation = new MachineLearningArmOperation(new OutboundRuleBasicResourceOperationSource(Client), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningOutboundRuleBasicOperationSource(Client), _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string ruleName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.Get"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicCollection.Get"); scope.Start(); try { - var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningOutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync(string r /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string ruleName, CancellationToken cancellationToken = default) + public virtual Response Get(string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.Get"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicCollection.Get"); scope.Start(); try { - var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken); + var response = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningOutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -223,12 +223,12 @@ public virtual Response Get(string ruleName, Cancella /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new OutboundRuleBasicResource(Client, OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(e)), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, "OutboundRuleBasicResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningOutboundRuleBasicResource(Client, MachineLearningOutboundRuleBasicData.DeserializeMachineLearningOutboundRuleBasicData(e)), _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics, Pipeline, "MachineLearningOutboundRuleBasicCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -245,12 +245,12 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new OutboundRuleBasicResource(Client, OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(e)), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, "OutboundRuleBasicResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningOutboundRuleBasicResource(Client, MachineLearningOutboundRuleBasicData.DeserializeMachineLearningOutboundRuleBasicData(e)), _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics, Pipeline, "MachineLearningOutboundRuleBasicCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -274,11 +274,11 @@ public virtual async Task> ExistsAsync(string ruleName, Cancellat { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.Exists"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicCollection.Exists"); scope.Start(); try { - var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -309,11 +309,11 @@ public virtual Response Exists(string ruleName, CancellationToken cancella { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.Exists"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicCollection.Exists"); scope.Start(); try { - var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); + var response = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -340,18 +340,18 @@ public virtual Response Exists(string ruleName, CancellationToken cancella /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string ruleName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.GetIfExists"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicCollection.GetIfExists"); scope.Start(); try { - var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningOutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -377,18 +377,18 @@ public virtual async Task> GetIfExis /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string ruleName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResourceCollection.GetIfExists"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicCollection.GetIfExists"); scope.Start(); try { - var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); + var response = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new MachineLearningOutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -397,7 +397,7 @@ public virtual NullableResponse GetIfExists(string ru } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -407,7 +407,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicData.cs similarity index 55% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceData.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicData.cs index 4100c18c9aeb..ab8d8e14091e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResourceData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicData.cs @@ -13,45 +13,45 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A class representing the OutboundRuleBasicResource data model. + /// A class representing the MachineLearningOutboundRuleBasic data model. /// Outbound Rule Basic Resource for the managed network of a machine learning workspace. /// - public partial class OutboundRuleBasicResourceData : ResourceData + public partial class MachineLearningOutboundRuleBasicData : ResourceData { - /// Initializes a new instance of OutboundRuleBasicResourceData. + /// Initializes a new instance of MachineLearningOutboundRuleBasicData. /// /// Outbound Rule for the managed network of a machine learning workspace. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// /// is null. - public OutboundRuleBasicResourceData(OutboundRule properties) + public MachineLearningOutboundRuleBasicData(MachineLearningOutboundRule properties) { Argument.AssertNotNull(properties, nameof(properties)); Properties = properties; } - /// Initializes a new instance of OutboundRuleBasicResourceData. + /// Initializes a new instance of MachineLearningOutboundRuleBasicData. /// The id. /// The name. /// The resourceType. /// The systemData. /// /// Outbound Rule for the managed network of a machine learning workspace. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// - internal OutboundRuleBasicResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, OutboundRule properties) : base(id, name, resourceType, systemData) + internal MachineLearningOutboundRuleBasicData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, MachineLearningOutboundRule properties) : base(id, name, resourceType, systemData) { Properties = properties; } /// /// Outbound Rule for the managed network of a machine learning workspace. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// - public OutboundRule Properties { get; set; } + public MachineLearningOutboundRule Properties { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicResource.cs similarity index 65% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicResource.cs index 136df30cee27..fa2ebf1c4729 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/OutboundRuleBasicResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningOutboundRuleBasicResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.MachineLearning { /// - /// A Class representing an OutboundRuleBasicResource along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetOutboundRuleBasicResource method. - /// Otherwise you can get one from its parent resource using the GetOutboundRuleBasicResource method. + /// A Class representing a MachineLearningOutboundRuleBasic along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMachineLearningOutboundRuleBasicResource method. + /// Otherwise you can get one from its parent resource using the GetMachineLearningOutboundRuleBasic method. /// - public partial class OutboundRuleBasicResource : ArmResource + public partial class MachineLearningOutboundRuleBasicResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics; - private readonly ManagedNetworkSettingsRuleRestOperations _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient; - private readonly OutboundRuleBasicResourceData _data; + private readonly ClientDiagnostics _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics; + private readonly ManagedNetworkSettingsRuleRestOperations _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient; + private readonly MachineLearningOutboundRuleBasicData _data; - /// Initializes a new instance of the class for mocking. - protected OutboundRuleBasicResource() + /// Initializes a new instance of the class for mocking. + protected MachineLearningOutboundRuleBasicResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal OutboundRuleBasicResource(ArmClient client, OutboundRuleBasicResourceData data) : this(client, data.Id) + internal MachineLearningOutboundRuleBasicResource(ArmClient client, MachineLearningOutboundRuleBasicData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal OutboundRuleBasicResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal MachineLearningOutboundRuleBasicResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string outboundRuleBasicResourceManagedNetworkSettingsRuleApiVersion); - _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient = new ManagedNetworkSettingsRuleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, outboundRuleBasicResourceManagedNetworkSettingsRuleApiVersion); + _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string machineLearningOutboundRuleBasicManagedNetworkSettingsRuleApiVersion); + _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient = new ManagedNetworkSettingsRuleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningOutboundRuleBasicManagedNetworkSettingsRuleApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,7 +70,7 @@ internal OutboundRuleBasicResource(ArmClient client, ResourceIdentifier id) : ba /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual OutboundRuleBasicResourceData Data + public virtual MachineLearningOutboundRuleBasicData Data { get { @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Get"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicResource.Get"); scope.Start(); try { - var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningOutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync(Cancella /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Get"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicResource.Get"); scope.Start(); try { - var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new OutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new MachineLearningOutboundRuleBasicResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,12 +167,12 @@ public virtual Response Get(CancellationToken cancell /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Delete"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicResource.Delete"); scope.Start(); try { - var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(_outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(_machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -201,12 +201,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Delete"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicResource.Delete"); scope.Start(); try { - var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(_outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new MachineLearningArmOperation(_machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Outbound Rule to be created or updated in the managed network of a machine learning workspace. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, MachineLearningOutboundRuleBasicData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Update"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicResource.Update"); scope.Start(); try { - var response = await _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new OutboundRuleBasicResourceOperationSource(Client), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new MachineLearningOutboundRuleBasicOperationSource(Client), _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> UpdateAsync(W /// Outbound Rule to be created or updated in the managed network of a machine learning workspace. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, MachineLearningOutboundRuleBasicData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics.CreateScope("OutboundRuleBasicResource.Update"); + using var scope = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics.CreateScope("MachineLearningOutboundRuleBasicResource.Update"); scope.Start(); try { - var response = _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(new OutboundRuleBasicResourceOperationSource(Client), _outboundRuleBasicResourceManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _outboundRuleBasicResourceManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new MachineLearningArmOperation(new MachineLearningOutboundRuleBasicOperationSource(Client), _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleClientDiagnostics, Pipeline, _machineLearningOutboundRuleBasicManagedNetworkSettingsRuleRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryData.cs index 100792cd087d..54d94c1f2c8f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryData.cs @@ -74,7 +74,7 @@ internal MachineLearningRegistryData(ResourceIdentifier id, string name, Resourc /// 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}" /// - public string ManagedResourceId + public ResourceIdentifier ManagedResourceId { get => ManagedResourceGroup is null ? default : ManagedResourceGroup.ResourceId; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionResource.cs index 721135afd208..388c0e1eb154 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningRegistryModelVersionResource.cs @@ -309,19 +309,19 @@ public virtual ArmOperation Update( /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Package operation request body. + /// Package operation request body. /// The cancellation token to use. - /// is null. - public virtual async Task> PackageAsync(WaitUntil waitUntil, PackageRequest body, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> PackageAsync(WaitUntil waitUntil, ModelPackageContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Package"); scope.Start(); try { - var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = await _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.PackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new MachineLearningArmOperation(new ModelPackageResultOperationSource(), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -347,19 +347,19 @@ public virtual async Task> PackageAsync(WaitUntil /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Package operation request body. + /// Package operation request body. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Package(WaitUntil waitUntil, PackageRequest body, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation Package(WaitUntil waitUntil, ModelPackageContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics.CreateScope("MachineLearningRegistryModelVersionResource.Package"); scope.Start(); try { - var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); - var operation = new MachineLearningArmOperation(new PackageResponseOperationSource(), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.Package(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new MachineLearningArmOperation(new ModelPackageResultOperationSource(), _machineLearningRegistryModelVersionRegistryModelVersionsClientDiagnostics, Pipeline, _machineLearningRegistryModelVersionRegistryModelVersionsRestClient.CreatePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs index 3e5a72c34115..20d57add08b8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceData.cs @@ -79,7 +79,7 @@ public MachineLearningWorkspaceData(AzureLocation location) : base(location) /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. /// WorkspaceHub's configuration object. /// The immutable id associated with this workspace. - internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string kind, MachineLearningSku sku, bool? allowPublicAccessWhenBehindVnet, string applicationInsights, IList associatedWorkspaces, IList containerRegistries, string containerRegistry, string description, Uri discoveryUri, bool? enableDataIsolation, MachineLearningEncryptionSetting encryption, IList existingWorkspaces, FeatureStoreSettings featureStoreSettings, string friendlyName, bool? isHbiWorkspace, string hubResourceId, string imageBuildCompute, string keyVault, IList keyVaults, ManagedNetworkSettings managedNetwork, Uri mlFlowTrackingUri, MachineLearningNotebookResourceInfo notebookInfo, string primaryUserAssignedIdentity, IReadOnlyList privateEndpointConnections, int? privateLinkCount, MachineLearningProvisioningState? provisioningState, MachineLearningPublicNetworkAccessType? publicNetworkAccessType, ServiceManagedResourcesSettings serviceManagedResourcesSettings, string serviceProvisionedResourceGroup, IList sharedPrivateLinkResources, int? softDeleteRetentionInDays, string storageAccount, IList storageAccounts, bool? isStorageHnsEnabled, string systemDatastoresAuthMode, Guid? tenantId, bool? isV1LegacyMode, WorkspaceHubConfig workspaceHubConfig, string workspaceId) : base(id, name, resourceType, systemData, tags, location) + internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string kind, MachineLearningSku sku, bool? allowPublicAccessWhenBehindVnet, string applicationInsights, IList associatedWorkspaces, IList containerRegistries, string containerRegistry, string description, Uri discoveryUri, bool? enableDataIsolation, MachineLearningEncryptionSetting encryption, IList existingWorkspaces, FeatureStoreSettings featureStoreSettings, string friendlyName, bool? isHbiWorkspace, ResourceIdentifier hubResourceId, string imageBuildCompute, string keyVault, IList keyVaults, ManagedNetworkSettings managedNetwork, Uri mlFlowTrackingUri, MachineLearningNotebookResourceInfo notebookInfo, string primaryUserAssignedIdentity, IReadOnlyList privateEndpointConnections, int? privateLinkCount, MachineLearningProvisioningState? provisioningState, MachineLearningPublicNetworkAccessType? publicNetworkAccessType, ServiceManagedResourcesSettings serviceManagedResourcesSettings, string serviceProvisionedResourceGroup, IList sharedPrivateLinkResources, int? softDeleteRetentionInDays, string storageAccount, IList storageAccounts, bool? isStorageHnsEnabled, string systemDatastoresAuthMode, Guid? tenantId, bool? isV1LegacyMode, WorkspaceHubConfig workspaceHubConfig, string workspaceId) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; Kind = kind; @@ -156,7 +156,7 @@ internal MachineLearningWorkspaceData(ResourceIdentifier id, string name, Resour /// The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service. public bool? IsHbiWorkspace { get; set; } /// Gets or sets the hub resource id. - public string HubResourceId { get; set; } + public ResourceIdentifier HubResourceId { get; set; } /// The compute name for image build. public string ImageBuildCompute { get; set; } /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs index 8bae04bad533..e67a157de249 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs @@ -901,11 +901,11 @@ public virtual Response GetMachineLe return GetMachineLearningWorkspaceConnections().Get(connectionName, cancellationToken); } - /// Gets a collection of OutboundRuleBasicResources in the MachineLearningWorkspace. - /// An object representing collection of OutboundRuleBasicResources and their operations over a OutboundRuleBasicResource. - public virtual OutboundRuleBasicResourceCollection GetOutboundRuleBasicResources() + /// Gets a collection of MachineLearningOutboundRuleBasicResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningOutboundRuleBasicResources and their operations over a MachineLearningOutboundRuleBasicResource. + public virtual MachineLearningOutboundRuleBasicCollection GetMachineLearningOutboundRuleBasics() { - return GetCachedClient(Client => new OutboundRuleBasicResourceCollection(Client, Id)); + return GetCachedClient(Client => new MachineLearningOutboundRuleBasicCollection(Client, Id)); } /// @@ -926,9 +926,9 @@ public virtual OutboundRuleBasicResourceCollection GetOutboundRuleBasicResources /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetOutboundRuleBasicResourceAsync(string ruleName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningOutboundRuleBasicAsync(string ruleName, CancellationToken cancellationToken = default) { - return await GetOutboundRuleBasicResources().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningOutboundRuleBasics().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); } /// @@ -949,9 +949,9 @@ public virtual async Task> GetOutboundRuleBa /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetOutboundRuleBasicResource(string ruleName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningOutboundRuleBasic(string ruleName, CancellationToken cancellationToken = default) { - return GetOutboundRuleBasicResources().Get(ruleName, cancellationToken); + return GetMachineLearningOutboundRuleBasics().Get(ruleName, cancellationToken); } /// Gets a collection of MachineLearningPrivateEndpointConnectionResources in the MachineLearningWorkspace. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.Serialization.cs index 796180b3c4b3..595662ffbc75 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.Serialization.cs @@ -36,7 +36,7 @@ internal static ArmResourceId DeserializeArmResourceId(JsonElement element) { return null; } - Optional resourceId = default; + Optional resourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("resourceId"u8)) @@ -46,7 +46,7 @@ internal static ArmResourceId DeserializeArmResourceId(JsonElement element) resourceId = null; continue; } - resourceId = property.Value.GetString(); + resourceId = new ResourceIdentifier(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.cs index 5dcfcf53539d..3518d9c61b3d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ArmResourceId.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// ARM ResourceId of a resource. @@ -20,7 +22,7 @@ public 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}" /// - internal ArmResourceId(string resourceId) + internal ArmResourceId(ResourceIdentifier resourceId) { ResourceId = resourceId; } @@ -29,6 +31,6 @@ internal ArmResourceId(string resourceId) /// 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}" /// - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AssetProvisioningState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AssetProvisioningState.cs deleted file mode 100644 index 246e97f431a7..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AssetProvisioningState.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Provisioning state of registry asset. - public readonly partial struct AssetProvisioningState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public AssetProvisioningState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string SucceededValue = "Succeeded"; - private const string FailedValue = "Failed"; - private const string CanceledValue = "Canceled"; - private const string CreatingValue = "Creating"; - private const string UpdatingValue = "Updating"; - private const string DeletingValue = "Deleting"; - - /// Succeeded. - public static AssetProvisioningState Succeeded { get; } = new AssetProvisioningState(SucceededValue); - /// Failed. - public static AssetProvisioningState Failed { get; } = new AssetProvisioningState(FailedValue); - /// Canceled. - public static AssetProvisioningState Canceled { get; } = new AssetProvisioningState(CanceledValue); - /// Creating. - public static AssetProvisioningState Creating { get; } = new AssetProvisioningState(CreatingValue); - /// Updating. - public static AssetProvisioningState Updating { get; } = new AssetProvisioningState(UpdatingValue); - /// Deleting. - public static AssetProvisioningState Deleting { get; } = new AssetProvisioningState(DeletingValue); - /// Determines if two values are the same. - public static bool operator ==(AssetProvisioningState left, AssetProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(AssetProvisioningState left, AssetProvisioningState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator AssetProvisioningState(string value) => new AssetProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is AssetProvisioningState other && Equals(other); - /// - public bool Equals(AssetProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.Serialization.cs index 62f48194eea2..08a48896e15b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.Serialization.cs @@ -251,7 +251,7 @@ internal static AutoMLJob DeserializeAutoMLJob(JsonElement element) Optional environmentId = default; Optional> environmentVariables = default; Optional> outputs = default; - Optional queueSettings = default; + Optional queueSettings = default; Optional resources = default; AutoMLVertical taskDetails = default; Optional componentId = default; @@ -317,7 +317,7 @@ internal static AutoMLJob DeserializeAutoMLJob(JsonElement element) queueSettings = null; continue; } - queueSettings = QueueSettings.DeserializeQueueSettings(property.Value); + queueSettings = JobQueueSettings.DeserializeJobQueueSettings(property.Value); continue; } if (property.NameEquals("resources"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.cs index 3fc0aeeabab4..67a456c991b6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLJob.cs @@ -75,7 +75,7 @@ public AutoMLJob(AutoMLVertical taskDetails) /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , and . /// - internal AutoMLJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, string environmentId, IDictionary environmentVariables, IDictionary outputs, QueueSettings queueSettings, MachineLearningJobResourceConfiguration resources, AutoMLVertical taskDetails) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) + internal AutoMLJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, string environmentId, IDictionary environmentVariables, IDictionary outputs, JobQueueSettings queueSettings, MachineLearningJobResourceConfiguration resources, AutoMLVertical taskDetails) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { EnvironmentId = environmentId; EnvironmentVariables = environmentVariables; @@ -100,7 +100,7 @@ internal AutoMLJob(string description, IDictionary properties, I /// public IDictionary Outputs { get; set; } /// Queue settings for the job. - public QueueSettings QueueSettings { get; set; } + public JobQueueSettings QueueSettings { get; set; } /// Compute Resource configuration for the job. public MachineLearningJobResourceConfiguration Resources { get; set; } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs index 42d42cb54626..41c6fd970d10 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs @@ -26,12 +26,12 @@ internal static AutologgerSettings DeserializeAutologgerSettings(JsonElement ele { return null; } - MLFlowAutologgerState mlflowAutologger = default; + MachineLearningflowAutologgerState mlflowAutologger = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("mlflowAutologger"u8)) { - mlflowAutologger = new MLFlowAutologgerState(property.Value.GetString()); + mlflowAutologger = new MachineLearningflowAutologgerState(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs index cdffc64f8883..9f9ff8e511f7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs @@ -12,12 +12,12 @@ internal partial class AutologgerSettings { /// Initializes a new instance of AutologgerSettings. /// [Required] Indicates whether mlflow autologger is enabled. - public AutologgerSettings(MLFlowAutologgerState mlflowAutologger) + public AutologgerSettings(MachineLearningflowAutologgerState mlflowAutologger) { MlflowAutologger = mlflowAutologger; } /// [Required] Indicates whether mlflow autologger is enabled. - public MLFlowAutologgerState MlflowAutologger { get; set; } + public MachineLearningflowAutologgerState MlflowAutologger { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.Serialization.cs index 3aaacf354524..a0b02d9d8e62 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.Serialization.cs @@ -39,7 +39,7 @@ internal static AzureDevOpsWebhook DeserializeAzureDevOpsWebhook(JsonElement ele return null; } Optional eventType = default; - WebhookType webhookType = default; + MachineLearningWebhookType webhookType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("eventType"u8)) @@ -54,7 +54,7 @@ internal static AzureDevOpsWebhook DeserializeAzureDevOpsWebhook(JsonElement ele } if (property.NameEquals("webhookType"u8)) { - webhookType = new WebhookType(property.Value.GetString()); + webhookType = new MachineLearningWebhookType(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.cs index 256162d37b45..be6a7962a15a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AzureDevOpsWebhook.cs @@ -8,18 +8,18 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Webhook details specific for Azure DevOps. - public partial class AzureDevOpsWebhook : Webhook + public partial class AzureDevOpsWebhook : MachineLearningWebhook { /// Initializes a new instance of AzureDevOpsWebhook. public AzureDevOpsWebhook() { - WebhookType = WebhookType.AzureDevOps; + WebhookType = MachineLearningWebhookType.AzureDevOps; } /// Initializes a new instance of AzureDevOpsWebhook. /// Send callback on a specified notification event. /// [Required] Specifies the type of service to send a callback. - internal AzureDevOpsWebhook(string eventType, WebhookType webhookType) : base(eventType, webhookType) + internal AzureDevOpsWebhook(string eventType, MachineLearningWebhookType webhookType) : base(eventType, webhookType) { WebhookType = webhookType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.Serialization.cs index c2b156e21bd0..da4d6c020756 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.Serialization.cs @@ -30,7 +30,7 @@ internal static BaseEnvironmentSource DeserializeBaseEnvironmentSource(JsonEleme { switch (discriminator.GetString()) { - case "EnvironmentAsset": return BaseEnvironmentId.DeserializeBaseEnvironmentId(element); + case "EnvironmentAsset": return BaseEnvironmentType.DeserializeBaseEnvironmentType(element); } } return UnknownBaseEnvironmentSource.DeserializeUnknownBaseEnvironmentSource(element); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.cs index 9157406346e4..6499d819c080 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentSource.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// The BaseEnvironmentSource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// The available derived classes include . /// public abstract partial class BaseEnvironmentSource { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentType.Serialization.cs similarity index 77% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentType.Serialization.cs index e33cf53c217c..8206968347d8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentType.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class BaseEnvironmentId : IUtf8JsonSerializable + public partial class BaseEnvironmentType : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,19 +22,19 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BaseEnvironmentId DeserializeBaseEnvironmentId(JsonElement element) + internal static BaseEnvironmentType DeserializeBaseEnvironmentType(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - string resourceId = default; + ResourceIdentifier resourceId = default; BaseEnvironmentSourceType baseEnvironmentSourceType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("resourceId"u8)) { - resourceId = property.Value.GetString(); + resourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("baseEnvironmentSourceType"u8)) @@ -43,7 +43,7 @@ internal static BaseEnvironmentId DeserializeBaseEnvironmentId(JsonElement eleme continue; } } - return new BaseEnvironmentId(baseEnvironmentSourceType, resourceId); + return new BaseEnvironmentType(baseEnvironmentSourceType, resourceId); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentType.cs similarity index 76% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentType.cs index 549f457920e4..82d3b04831ef 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentId.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BaseEnvironmentType.cs @@ -11,12 +11,12 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Base environment type. - public partial class BaseEnvironmentId : BaseEnvironmentSource + public partial class BaseEnvironmentType : BaseEnvironmentSource { - /// Initializes a new instance of BaseEnvironmentId. + /// Initializes a new instance of BaseEnvironmentType. /// [Required] Resource id accepting ArmId or AzureMlId. /// is null. - public BaseEnvironmentId(string resourceId) + public BaseEnvironmentType(ResourceIdentifier resourceId) { Argument.AssertNotNull(resourceId, nameof(resourceId)); @@ -24,16 +24,16 @@ public BaseEnvironmentId(string resourceId) BaseEnvironmentSourceType = BaseEnvironmentSourceType.EnvironmentAsset; } - /// Initializes a new instance of BaseEnvironmentId. + /// Initializes a new instance of BaseEnvironmentType. /// [Required] Base environment type. /// [Required] Resource id accepting ArmId or AzureMlId. - internal BaseEnvironmentId(BaseEnvironmentSourceType baseEnvironmentSourceType, string resourceId) : base(baseEnvironmentSourceType) + internal BaseEnvironmentType(BaseEnvironmentSourceType baseEnvironmentSourceType, ResourceIdentifier resourceId) : base(baseEnvironmentSourceType) { ResourceId = resourceId; BaseEnvironmentSourceType = baseEnvironmentSourceType; } /// [Required] Resource id accepting ArmId or AzureMlId. - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.Serialization.cs index 05b7cc18eb3d..3ab7a7b5c413 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.Serialization.cs @@ -21,7 +21,7 @@ internal static BlobReferenceForConsumptionDto DeserializeBlobReferenceForConsum } Optional blobUri = default; Optional credential = default; - Optional storageAccountArmId = default; + Optional storageAccountArmId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("blobUri"u8)) @@ -51,7 +51,7 @@ internal static BlobReferenceForConsumptionDto DeserializeBlobReferenceForConsum storageAccountArmId = null; continue; } - storageAccountArmId = property.Value.GetString(); + storageAccountArmId = new ResourceIdentifier(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.cs index e7edd8c33323..1a5a00753dc3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BlobReferenceForConsumptionDto.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.MachineLearning.Models { @@ -28,7 +29,7 @@ internal BlobReferenceForConsumptionDto() /// The available derived classes include . /// /// Arm ID of the storage account to use. - internal BlobReferenceForConsumptionDto(Uri blobUri, PendingUploadCredentialDto credential, string storageAccountArmId) + internal BlobReferenceForConsumptionDto(Uri blobUri, PendingUploadCredentialDto credential, ResourceIdentifier storageAccountArmId) { BlobUri = blobUri; Credential = credential; @@ -47,6 +48,6 @@ internal BlobReferenceForConsumptionDto(Uri blobUri, PendingUploadCredentialDto /// public PendingUploadCredentialDto Credential { get; } /// Arm ID of the storage account to use. - public string StorageAccountArmId { get; } + public ResourceIdentifier StorageAccountArmId { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs index d5ca44c9d932..a0b73fecbdd0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs @@ -29,7 +29,7 @@ internal static ComputeInstanceAutologgerSettings DeserializeComputeInstanceAuto { return null; } - Optional mlflowAutologger = default; + Optional mlflowAutologger = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("mlflowAutologger"u8)) @@ -38,7 +38,7 @@ internal static ComputeInstanceAutologgerSettings DeserializeComputeInstanceAuto { continue; } - mlflowAutologger = new MlflowAutologger(property.Value.GetString()); + mlflowAutologger = new MachineLearningflowAutologger(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs index cb611673b178..034217f19914 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs @@ -17,12 +17,12 @@ public ComputeInstanceAutologgerSettings() /// Initializes a new instance of ComputeInstanceAutologgerSettings. /// Indicates whether mlflow autologger is enabled for notebooks. - internal ComputeInstanceAutologgerSettings(MlflowAutologger? mlflowAutologger) + internal ComputeInstanceAutologgerSettings(MachineLearningflowAutologger? mlflowAutologger) { MlflowAutologger = mlflowAutologger; } /// Indicates whether mlflow autologger is enabled for notebooks. - public MlflowAutologger? MlflowAutologger { get; set; } + public MachineLearningflowAutologger? MlflowAutologger { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerCommunicationProtocol.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerCommunicationProtocol.cs new file mode 100644 index 000000000000..839a89e34913 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerCommunicationProtocol.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Protocol over which communication will happen over this endpoint. + public readonly partial struct ContainerCommunicationProtocol : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerCommunicationProtocol(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TcpValue = "tcp"; + private const string UdpValue = "udp"; + private const string HttpValue = "http"; + + /// tcp. + public static ContainerCommunicationProtocol Tcp { get; } = new ContainerCommunicationProtocol(TcpValue); + /// udp. + public static ContainerCommunicationProtocol Udp { get; } = new ContainerCommunicationProtocol(UdpValue); + /// http. + public static ContainerCommunicationProtocol Http { get; } = new ContainerCommunicationProtocol(HttpValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerCommunicationProtocol left, ContainerCommunicationProtocol right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerCommunicationProtocol left, ContainerCommunicationProtocol right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerCommunicationProtocol(string value) => new ContainerCommunicationProtocol(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerCommunicationProtocol other && Equals(other); + /// + public bool Equals(ContainerCommunicationProtocol other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerEndpoint.Serialization.cs similarity index 88% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerEndpoint.Serialization.cs index 4265434bff7e..0f253b91063e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerEndpoint.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Endpoint : IUtf8JsonSerializable + public partial class ContainerEndpoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -57,13 +57,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Endpoint DeserializeEndpoint(JsonElement element) + internal static ContainerEndpoint DeserializeContainerEndpoint(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional protocol = default; + Optional protocol = default; Optional name = default; Optional target = default; Optional published = default; @@ -76,7 +76,7 @@ internal static Endpoint DeserializeEndpoint(JsonElement element) { continue; } - protocol = new Protocol(property.Value.GetString()); + protocol = new ContainerCommunicationProtocol(property.Value.GetString()); continue; } if (property.NameEquals("name"u8)) @@ -114,7 +114,7 @@ internal static Endpoint DeserializeEndpoint(JsonElement element) continue; } } - return new Endpoint(Optional.ToNullable(protocol), name.Value, Optional.ToNullable(target), Optional.ToNullable(published), hostIP.Value); + return new ContainerEndpoint(Optional.ToNullable(protocol), name.Value, Optional.ToNullable(target), Optional.ToNullable(published), hostIP.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerEndpoint.cs similarity index 74% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerEndpoint.cs index f589bf5758ce..1fdd0ecb71c9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Endpoint.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ContainerEndpoint.cs @@ -7,21 +7,21 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The Endpoint. - public partial class Endpoint + /// The ContainerEndpoint. + public partial class ContainerEndpoint { - /// Initializes a new instance of Endpoint. - public Endpoint() + /// Initializes a new instance of ContainerEndpoint. + public ContainerEndpoint() { } - /// Initializes a new instance of Endpoint. + /// Initializes a new instance of ContainerEndpoint. /// Protocol over which communication will happen over this endpoint. /// Name of the Endpoint. /// Application port inside the container. /// Port over which the application is exposed from container. /// Host IP over which the application is exposed from the container. - internal Endpoint(Protocol? protocol, string name, int? target, int? published, string hostIP) + internal ContainerEndpoint(ContainerCommunicationProtocol? protocol, string name, int? target, int? published, string hostIP) { Protocol = protocol; Name = name; @@ -31,7 +31,7 @@ internal Endpoint(Protocol? protocol, string name, int? target, int? published, } /// Protocol over which communication will happen over this endpoint. - public Protocol? Protocol { get; set; } + public ContainerCommunicationProtocol? Protocol { get; set; } /// Name of the Endpoint. public string Name { get; set; } /// Application port inside the container. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.Serialization.cs index 82ae1791018c..35fea5816e80 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.Serialization.cs @@ -89,10 +89,10 @@ internal static CustomService DeserializeCustomService(JsonElement element) return null; } Optional name = default; - Optional image = default; + Optional image = default; Optional> environmentVariables = default; - Optional docker = default; - Optional> endpoints = default; + Optional docker = default; + Optional> endpoints = default; Optional> volumes = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -109,7 +109,7 @@ internal static CustomService DeserializeCustomService(JsonElement element) { continue; } - image = Image.DeserializeImage(property.Value); + image = ImageSetting.DeserializeImageSetting(property.Value); continue; } if (property.NameEquals("environmentVariables"u8)) @@ -133,7 +133,7 @@ internal static CustomService DeserializeCustomService(JsonElement element) docker = null; continue; } - docker = Docker.DeserializeDocker(property.Value); + docker = DockerSetting.DeserializeDockerSetting(property.Value); continue; } if (property.NameEquals("endpoints"u8)) @@ -142,10 +142,10 @@ internal static CustomService DeserializeCustomService(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(Endpoint.DeserializeEndpoint(item)); + array.Add(ContainerEndpoint.DeserializeContainerEndpoint(item)); } endpoints = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs index 8293b75febbd..cbfa1f34b52d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs @@ -18,7 +18,7 @@ public partial class CustomService public CustomService() { EnvironmentVariables = new ChangeTrackingDictionary(); - Endpoints = new ChangeTrackingList(); + Endpoints = new ChangeTrackingList(); Volumes = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); } @@ -31,7 +31,7 @@ public CustomService() /// Configuring the endpoints for the container. /// Configuring the volumes for the container. /// Additional Properties. - internal CustomService(string name, Image image, IDictionary environmentVariables, Docker docker, IList endpoints, IList volumes, IDictionary additionalProperties) + internal CustomService(string name, ImageSetting image, IDictionary environmentVariables, DockerSetting docker, IList endpoints, IList volumes, IDictionary additionalProperties) { Name = name; Image = image; @@ -45,13 +45,13 @@ internal CustomService(string name, Image image, IDictionary Name of the Custom Service. public string Name { get; set; } /// Describes the Image Specifications. - public Image Image { get; set; } + public ImageSetting Image { get; set; } /// Environment Variable for the container. public IDictionary EnvironmentVariables { get; } /// Describes the docker settings for the image. - public Docker Docker { get; set; } + public DockerSetting Docker { get; set; } /// Configuring the endpoints for the container. - public IList Endpoints { get; } + public IList Endpoints { get; } /// Configuring the volumes for the container. public IList Volumes { get; } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.Serialization.cs similarity index 92% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.Serialization.cs index 609a9175783a..d3446757f7de 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Collection : IUtf8JsonSerializable + public partial class DataCollection : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -52,7 +52,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Collection DeserializeCollection(JsonElement element) + internal static DataCollection DeserializeDataCollection(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -103,7 +103,7 @@ internal static Collection DeserializeCollection(JsonElement element) continue; } } - return new Collection(clientId.Value, Optional.ToNullable(dataCollectionMode), dataId.Value, Optional.ToNullable(samplingRate)); + return new DataCollection(clientId.Value, Optional.ToNullable(dataCollectionMode), dataId.Value, Optional.ToNullable(samplingRate)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.cs index dd8f977a57ff..dbfd7bb848d0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Collection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.cs @@ -7,20 +7,20 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The Collection. - public partial class Collection + /// The DataCollection. + public partial class DataCollection { - /// Initializes a new instance of Collection. - public Collection() + /// Initializes a new instance of DataCollection. + public DataCollection() { } - /// Initializes a new instance of Collection. + /// Initializes a new instance of DataCollection. /// The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth. /// Enable or disable data collection. /// 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. /// The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default. - internal Collection(string clientId, DataCollectionMode? dataCollectionMode, string dataId, double? samplingRate) + internal DataCollection(string clientId, DataCollectionMode? dataCollectionMode, string dataId, double? samplingRate) { ClientId = clientId; DataCollectionMode = dataCollectionMode; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs index 2b32599fa43d..862e18085eb1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs @@ -50,17 +50,17 @@ internal static DataCollector DeserializeDataCollector(JsonElement element) { return null; } - IDictionary collections = default; + IDictionary collections = default; Optional requestLogging = default; Optional rollingRate = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("collections"u8)) { - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, Collection.DeserializeCollection(property0.Value)); + dictionary.Add(property0.Name, DataCollection.DeserializeDataCollection(property0.Value)); } collections = dictionary; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs index e9cc59817f5b..2aebac9b5f98 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs @@ -20,7 +20,7 @@ public partial class DataCollector /// 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. /// /// is null. - public DataCollector(IDictionary collections) + public DataCollector(IDictionary collections) { Argument.AssertNotNull(collections, nameof(collections)); @@ -39,7 +39,7 @@ public DataCollector(IDictionary collections) /// 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. /// - internal DataCollector(IDictionary collections, RequestLogging requestLogging, RollingRateType? rollingRate) + internal DataCollector(IDictionary collections, RequestLogging requestLogging, RollingRateType? rollingRate) { Collections = collections; RequestLogging = requestLogging; @@ -50,7 +50,7 @@ internal DataCollector(IDictionary collections, RequestLoggi /// [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. /// - public IDictionary Collections { get; } + public IDictionary Collections { get; } /// The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. internal RequestLogging RequestLogging { get; set; } /// 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. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DockerSetting.Serialization.cs similarity index 90% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DockerSetting.Serialization.cs index 10995a02d9c7..2ac0d0c5ff99 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DockerSetting.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Docker : IUtf8JsonSerializable + public partial class DockerSetting : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -41,7 +41,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Docker DeserializeDocker(JsonElement element) + internal static DockerSetting DeserializeDockerSetting(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static Docker DeserializeDocker(JsonElement element) additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new Docker(Optional.ToNullable(privileged), additionalProperties); + return new DockerSetting(Optional.ToNullable(privileged), additionalProperties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DockerSetting.cs similarity index 85% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DockerSetting.cs index 6292ed849f2b..94c190525812 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Docker.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DockerSetting.cs @@ -11,19 +11,19 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The Docker. - public partial class Docker + /// The DockerSetting. + public partial class DockerSetting { - /// Initializes a new instance of Docker. - public Docker() + /// Initializes a new instance of DockerSetting. + public DockerSetting() { AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of Docker. + /// Initializes a new instance of DockerSetting. /// Indicate whether container shall run in privileged or non-privileged mode. /// Additional Properties. - internal Docker(bool? privileged, IDictionary additionalProperties) + internal DockerSetting(bool? privileged, IDictionary additionalProperties) { Privileged = privileged; AdditionalProperties = additionalProperties; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSetVersionBackfillContent.Serialization.cs similarity index 97% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSetVersionBackfillContent.Serialization.cs index b241beb1c344..7d2b24c8bad5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSetVersionBackfillContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class FeaturesetVersionBackfillContent : IUtf8JsonSerializable + public partial class FeatureSetVersionBackfillContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSetVersionBackfillContent.cs similarity index 90% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSetVersionBackfillContent.cs index bcabb4a8130b..72a24a2c4311 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionBackfillContent.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureSetVersionBackfillContent.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Request payload for creating a backfill request for a given feature set version. - public partial class FeaturesetVersionBackfillContent + public partial class FeatureSetVersionBackfillContent { - /// Initializes a new instance of FeaturesetVersionBackfillContent. - public FeaturesetVersionBackfillContent() + /// Initializes a new instance of FeatureSetVersionBackfillContent. + public FeatureSetVersionBackfillContent() { SparkConfiguration = new ChangeTrackingDictionary(); Tags = new ChangeTrackingDictionary(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreJobType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreJobType.cs similarity index 56% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreJobType.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreJobType.cs index 1b591d1ec72f..11a92eac137c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreJobType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureStoreJobType.cs @@ -10,14 +10,14 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The FeaturestoreJobType. - public readonly partial struct FeaturestoreJobType : IEquatable + /// The FeatureStoreJobType. + public readonly partial struct FeatureStoreJobType : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public FeaturestoreJobType(string value) + public FeatureStoreJobType(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -26,21 +26,21 @@ public FeaturestoreJobType(string value) private const string BackfillMaterializationValue = "BackfillMaterialization"; /// RecurrentMaterialization. - public static FeaturestoreJobType RecurrentMaterialization { get; } = new FeaturestoreJobType(RecurrentMaterializationValue); + public static FeatureStoreJobType RecurrentMaterialization { get; } = new FeatureStoreJobType(RecurrentMaterializationValue); /// BackfillMaterialization. - public static FeaturestoreJobType BackfillMaterialization { get; } = new FeaturestoreJobType(BackfillMaterializationValue); - /// Determines if two values are the same. - public static bool operator ==(FeaturestoreJobType left, FeaturestoreJobType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(FeaturestoreJobType left, FeaturestoreJobType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator FeaturestoreJobType(string value) => new FeaturestoreJobType(value); + public static FeatureStoreJobType BackfillMaterialization { get; } = new FeatureStoreJobType(BackfillMaterializationValue); + /// Determines if two values are the same. + public static bool operator ==(FeatureStoreJobType left, FeatureStoreJobType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FeatureStoreJobType left, FeatureStoreJobType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FeatureStoreJobType(string value) => new FeatureStoreJobType(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is FeaturestoreJobType other && Equals(other); + public override bool Equals(object obj) => obj is FeatureStoreJobType other && Equals(other); /// - public bool Equals(FeaturestoreJobType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(FeatureStoreJobType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.Serialization.cs index 2435005569e8..49d9aed06760 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.Serialization.cs @@ -20,7 +20,7 @@ internal static FeaturesetJobArmPaginatedResult DeserializeFeaturesetJobArmPagin return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -34,10 +34,10 @@ internal static FeaturesetJobArmPaginatedResult DeserializeFeaturesetJobArmPagin { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(FeaturesetJob.DeserializeFeaturesetJob(item)); + array.Add(MachineLearningFeatureSetJob.DeserializeMachineLearningFeatureSetJob(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs index db3ff1c29527..de34e6851f7b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs @@ -16,13 +16,13 @@ internal partial class FeaturesetJobArmPaginatedResult /// Initializes a new instance of FeaturesetJobArmPaginatedResult. internal FeaturesetJobArmPaginatedResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of FeaturesetJobArmPaginatedResult. /// The link to the next page of FeaturesetJob objects. If null, there are no additional pages. /// An array of objects of type FeaturesetJob. - internal FeaturesetJobArmPaginatedResult(string nextLink, IReadOnlyList value) + internal FeaturesetJobArmPaginatedResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -31,6 +31,6 @@ internal FeaturesetJobArmPaginatedResult(string nextLink, IReadOnlyList The link to the next page of FeaturesetJob objects. If null, there are no additional pages. public string NextLink { get; } /// An array of objects of type FeaturesetJob. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.Serialization.cs index eb31ee093dbc..9948e84a3826 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.Serialization.cs @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Status.Value.ToString()); } writer.WritePropertyName("type"u8); - writer.WriteStringValue(RuleType.ToString()); + writer.WriteStringValue(OutboundRuleType.ToString()); writer.WriteEndObject(); } @@ -42,9 +42,9 @@ internal static FqdnOutboundRule DeserializeFqdnOutboundRule(JsonElement element return null; } Optional destination = default; - Optional category = default; - Optional status = default; - RuleType type = default; + Optional category = default; + Optional status = default; + OutboundRuleType type = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("destination"u8)) @@ -58,7 +58,7 @@ internal static FqdnOutboundRule DeserializeFqdnOutboundRule(JsonElement element { continue; } - category = new RuleCategory(property.Value.GetString()); + category = new OutboundRuleCategory(property.Value.GetString()); continue; } if (property.NameEquals("status"u8)) @@ -67,12 +67,12 @@ internal static FqdnOutboundRule DeserializeFqdnOutboundRule(JsonElement element { continue; } - status = new RuleStatus(property.Value.GetString()); + status = new OutboundRuleStatus(property.Value.GetString()); continue; } if (property.NameEquals("type"u8)) { - type = new RuleType(property.Value.GetString()); + type = new OutboundRuleType(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.cs index df2fbcef7a0b..c557c28890b4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FqdnOutboundRule.cs @@ -8,23 +8,23 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// FQDN Outbound Rule for the managed network of a machine learning workspace. - public partial class FqdnOutboundRule : OutboundRule + public partial class FqdnOutboundRule : MachineLearningOutboundRule { /// Initializes a new instance of FqdnOutboundRule. public FqdnOutboundRule() { - RuleType = RuleType.Fqdn; + OutboundRuleType = OutboundRuleType.Fqdn; } /// Initializes a new instance of FqdnOutboundRule. /// Category of a managed network Outbound Rule of a machine learning workspace. /// Type of a managed network Outbound Rule of a machine learning workspace. - /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. /// - internal FqdnOutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType, string destination) : base(category, status, ruleType) + internal FqdnOutboundRule(OutboundRuleCategory? category, OutboundRuleStatus? status, OutboundRuleType outboundRuleType, string destination) : base(category, status, outboundRuleType) { Destination = destination; - RuleType = ruleType; + OutboundRuleType = outboundRuleType; } /// Gets or sets the destination. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageSetting.Serialization.cs similarity index 90% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageSetting.Serialization.cs index 2715a76b2531..3a88a42f92b6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageSetting.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Image : IUtf8JsonSerializable + public partial class ImageSetting : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,7 +39,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Image DeserializeImage(JsonElement element) + internal static ImageSetting DeserializeImageSetting(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -68,7 +68,7 @@ internal static Image DeserializeImage(JsonElement element) additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new Image(Optional.ToNullable(type), reference.Value, additionalProperties); + return new ImageSetting(Optional.ToNullable(type), reference.Value, additionalProperties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageSetting.cs similarity index 86% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageSetting.cs index 4e7c198abca7..ab1be0fc18b5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Image.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageSetting.cs @@ -11,20 +11,20 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The Image. - public partial class Image + /// The ImageSetting. + public partial class ImageSetting { - /// Initializes a new instance of Image. - public Image() + /// Initializes a new instance of ImageSetting. + public ImageSetting() { AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of Image. + /// Initializes a new instance of ImageSetting. /// Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images. /// Image reference URL. /// Additional Properties. - internal Image(ImageType? imageType, string reference, IDictionary additionalProperties) + internal ImageSetting(ImageType? imageType, string reference, IDictionary additionalProperties) { ImageType = imageType; Reference = reference; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobAllNodes.Serialization.cs similarity index 84% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobAllNodes.Serialization.cs index fe539a524764..45626b113c37 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobAllNodes.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class AllNodes : IUtf8JsonSerializable + public partial class JobAllNodes : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AllNodes DeserializeAllNodes(JsonElement element) + internal static JobAllNodes DeserializeJobAllNodes(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -35,7 +35,7 @@ internal static AllNodes DeserializeAllNodes(JsonElement element) continue; } } - return new AllNodes(nodesValueType); + return new JobAllNodes(nodesValueType); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobAllNodes.cs similarity index 63% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobAllNodes.cs index e68a8e4e9d30..ef292e4a345c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllNodes.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobAllNodes.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// All nodes means the service will be running on all of the nodes of the job. - public partial class AllNodes : Nodes + public partial class JobAllNodes : JobNodes { - /// Initializes a new instance of AllNodes. - public AllNodes() + /// Initializes a new instance of JobAllNodes. + public JobAllNodes() { NodesValueType = NodesValueType.All; } - /// Initializes a new instance of AllNodes. + /// Initializes a new instance of JobAllNodes. /// [Required] Type of the Nodes value. - internal AllNodes(NodesValueType nodesValueType) : base(nodesValueType) + internal JobAllNodes(NodesValueType nodesValueType) : base(nodesValueType) { NodesValueType = nodesValueType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobNodes.Serialization.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobNodes.Serialization.cs index 3ac5f4dcad5c..b853059f4aa3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobNodes.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Nodes : IUtf8JsonSerializable + public partial class JobNodes : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Nodes DeserializeNodes(JsonElement element) + internal static JobNodes DeserializeJobNodes(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -30,7 +30,7 @@ internal static Nodes DeserializeNodes(JsonElement element) { switch (discriminator.GetString()) { - case "All": return AllNodes.DeserializeAllNodes(element); + case "All": return JobAllNodes.DeserializeJobAllNodes(element); } } return UnknownNodes.DeserializeUnknownNodes(element); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobNodes.cs similarity index 50% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobNodes.cs index baf4967362d8..4681353862a1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Nodes.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobNodes.cs @@ -9,19 +9,19 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// /// Abstract Nodes definition - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public abstract partial class Nodes + public abstract partial class JobNodes { - /// Initializes a new instance of Nodes. - protected Nodes() + /// Initializes a new instance of JobNodes. + protected JobNodes() { } - /// Initializes a new instance of Nodes. + /// Initializes a new instance of JobNodes. /// [Required] Type of the Nodes value. - internal Nodes(NodesValueType nodesValueType) + internal JobNodes(NodesValueType nodesValueType) { NodesValueType = nodesValueType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobQueueSettings.Serialization.cs similarity index 88% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobQueueSettings.Serialization.cs index 1a00ac91915e..46b18b8bf491 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobQueueSettings.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class QueueSettings : IUtf8JsonSerializable + public partial class JobQueueSettings : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,7 +35,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static QueueSettings DeserializeQueueSettings(JsonElement element) + internal static JobQueueSettings DeserializeJobQueueSettings(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static QueueSettings DeserializeQueueSettings(JsonElement element) continue; } } - return new QueueSettings(Optional.ToNullable(jobTier), Optional.ToNullable(priority)); + return new JobQueueSettings(Optional.ToNullable(jobTier), Optional.ToNullable(priority)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobQueueSettings.cs similarity index 66% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobQueueSettings.cs index 694ce0f90620..d3e61f1e9668 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/QueueSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobQueueSettings.cs @@ -7,18 +7,18 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The QueueSettings. - public partial class QueueSettings + /// The JobQueueSettings. + public partial class JobQueueSettings { - /// Initializes a new instance of QueueSettings. - public QueueSettings() + /// Initializes a new instance of JobQueueSettings. + public JobQueueSettings() { } - /// Initializes a new instance of QueueSettings. + /// Initializes a new instance of JobQueueSettings. /// Controls the compute job tier. /// Controls the priority of the job on a compute. - internal QueueSettings(JobTier? jobTier, int? priority) + internal JobQueueSettings(JobTier? jobTier, int? priority) { JobTier = jobTier; Priority = priority; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessage.Serialization.cs similarity index 83% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessage.Serialization.cs index 83b8150b151e..c196cd00aa71 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessage.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class StatusMessage + public partial class JobStatusMessage { - internal static StatusMessage DeserializeStatusMessage(JsonElement element) + internal static JobStatusMessage DeserializeJobStatusMessage(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -21,7 +21,7 @@ internal static StatusMessage DeserializeStatusMessage(JsonElement element) } Optional code = default; Optional createdDateTime = default; - Optional level = default; + Optional level = default; Optional message = default; foreach (var property in element.EnumerateObject()) { @@ -51,7 +51,7 @@ internal static StatusMessage DeserializeStatusMessage(JsonElement element) { continue; } - level = new StatusMessageLevel(property.Value.GetString()); + level = new JobStatusMessageLevel(property.Value.GetString()); continue; } if (property.NameEquals("message"u8)) @@ -65,7 +65,7 @@ internal static StatusMessage DeserializeStatusMessage(JsonElement element) continue; } } - return new StatusMessage(code.Value, Optional.ToNullable(createdDateTime), Optional.ToNullable(level), message.Value); + return new JobStatusMessage(code.Value, Optional.ToNullable(createdDateTime), Optional.ToNullable(level), message.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessage.cs similarity index 74% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessage.cs index 729172ca0aeb..052471b3fd45 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessage.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessage.cs @@ -10,19 +10,19 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Active message associated with project. - public partial class StatusMessage + public partial class JobStatusMessage { - /// Initializes a new instance of StatusMessage. - internal StatusMessage() + /// Initializes a new instance of JobStatusMessage. + internal JobStatusMessage() { } - /// Initializes a new instance of StatusMessage. + /// Initializes a new instance of JobStatusMessage. /// Service-defined message code. /// Time in UTC at which the message was created. /// Severity level of message. /// A human-readable representation of the message code. - internal StatusMessage(string code, DateTimeOffset? createdOn, StatusMessageLevel? level, string message) + internal JobStatusMessage(string code, DateTimeOffset? createdOn, JobStatusMessageLevel? level, string message) { Code = code; CreatedOn = createdOn; @@ -35,7 +35,7 @@ internal StatusMessage(string code, DateTimeOffset? createdOn, StatusMessageLeve /// Time in UTC at which the message was created. public DateTimeOffset? CreatedOn { get; } /// Severity level of message. - public StatusMessageLevel? Level { get; } + public JobStatusMessageLevel? Level { get; } /// A human-readable representation of the message code. public string Message { get; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessageLevel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessageLevel.cs new file mode 100644 index 000000000000..b787e1211498 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobStatusMessageLevel.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The JobStatusMessageLevel. + public readonly partial struct JobStatusMessageLevel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public JobStatusMessageLevel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ErrorValue = "Error"; + private const string InformationValue = "Information"; + private const string WarningValue = "Warning"; + + /// Error. + public static JobStatusMessageLevel Error { get; } = new JobStatusMessageLevel(ErrorValue); + /// Information. + public static JobStatusMessageLevel Information { get; } = new JobStatusMessageLevel(InformationValue); + /// Warning. + public static JobStatusMessageLevel Warning { get; } = new JobStatusMessageLevel(WarningValue); + /// Determines if two values are the same. + public static bool operator ==(JobStatusMessageLevel left, JobStatusMessageLevel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(JobStatusMessageLevel left, JobStatusMessageLevel right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator JobStatusMessageLevel(string value) => new JobStatusMessageLevel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is JobStatusMessageLevel other && Equals(other); + /// + public bool Equals(JobStatusMessageLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.Serialization.cs index f984e7591f59..c12499d0cd69 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.Serialization.cs @@ -62,7 +62,7 @@ internal static LabelCategory DeserializeLabelCategory(JsonElement element) } Optional> classes = default; Optional displayName = default; - Optional multiSelect = default; + Optional multiSelect = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("classes"u8)) @@ -96,7 +96,7 @@ internal static LabelCategory DeserializeLabelCategory(JsonElement element) { continue; } - multiSelect = new MultiSelect(property.Value.GetString()); + multiSelect = new LabelCategoryMultiSelect(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.cs index cb88b50b992a..9574363a118c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategory.cs @@ -23,7 +23,7 @@ public LabelCategory() /// Dictionary of label classes in this category. /// Display name of the label category. /// Indicates whether it is allowed to select multiple classes in this category. - internal LabelCategory(IDictionary classes, string displayName, MultiSelect? multiSelect) + internal LabelCategory(IDictionary classes, string displayName, LabelCategoryMultiSelect? multiSelect) { Classes = classes; DisplayName = displayName; @@ -35,6 +35,6 @@ internal LabelCategory(IDictionary classes, string displayNa /// Display name of the label category. public string DisplayName { get; set; } /// Indicates whether it is allowed to select multiple classes in this category. - public MultiSelect? MultiSelect { get; set; } + public LabelCategoryMultiSelect? MultiSelect { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategoryMultiSelect.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategoryMultiSelect.cs new file mode 100644 index 000000000000..02a56aa22a78 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelCategoryMultiSelect.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Whether multiSelect is enabled. + public readonly partial struct LabelCategoryMultiSelect : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public LabelCategoryMultiSelect(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static LabelCategoryMultiSelect Enabled { get; } = new LabelCategoryMultiSelect(EnabledValue); + /// Disabled. + public static LabelCategoryMultiSelect Disabled { get; } = new LabelCategoryMultiSelect(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(LabelCategoryMultiSelect left, LabelCategoryMultiSelect right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(LabelCategoryMultiSelect left, LabelCategoryMultiSelect right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator LabelCategoryMultiSelect(string value) => new LabelCategoryMultiSelect(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is LabelCategoryMultiSelect other && Equals(other); + /// + public bool Equals(LabelCategoryMultiSelect other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.Serialization.cs index 9d2fc64341c4..7a5791d4f454 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.Serialization.cs @@ -246,11 +246,11 @@ internal static LabelingJobProperties DeserializeLabelingJobProperties(JsonEleme Optional jobInstructions = default; Optional> labelCategories = default; Optional labelingJobMediaProperties = default; - Optional mlAssistConfiguration = default; + Optional mlAssistConfiguration = default; Optional progressMetrics = default; Optional projectId = default; Optional provisioningState = default; - Optional> statusMessages = default; + Optional> statusMessages = default; Optional componentId = default; Optional computeId = default; Optional displayName = default; @@ -328,7 +328,7 @@ internal static LabelingJobProperties DeserializeLabelingJobProperties(JsonEleme { continue; } - mlAssistConfiguration = MLAssistConfiguration.DeserializeMLAssistConfiguration(property.Value); + mlAssistConfiguration = MachineLearningAssistConfiguration.DeserializeMachineLearningAssistConfiguration(property.Value); continue; } if (property.NameEquals("progressMetrics"u8)) @@ -366,10 +366,10 @@ internal static LabelingJobProperties DeserializeLabelingJobProperties(JsonEleme statusMessages = null; continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(StatusMessage.DeserializeStatusMessage(item)); + array.Add(JobStatusMessage.DeserializeJobStatusMessage(item)); } statusMessages = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs index d35a46486b73..45e40d3bc3ff 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs @@ -18,7 +18,7 @@ public partial class LabelingJobProperties : MachineLearningJobProperties public LabelingJobProperties() { LabelCategories = new ChangeTrackingDictionary(); - StatusMessages = new ChangeTrackingList(); + StatusMessages = new ChangeTrackingList(); JobType = JobType.Labeling; } @@ -56,14 +56,14 @@ public LabelingJobProperties() /// /// /// Configuration of MLAssist feature in the job. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// /// Progress metrics of the job. /// Internal id of the job(Previously called project). /// Specifies the labeling job provisioning state. /// Status messages of the job. - internal LabelingJobProperties(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, DateTimeOffset? createdOn, LabelingDataConfiguration dataConfiguration, LabelingJobInstructions jobInstructions, IDictionary labelCategories, LabelingJobMediaProperties labelingJobMediaProperties, MLAssistConfiguration mlAssistConfiguration, ProgressMetrics progressMetrics, Guid? projectId, JobProvisioningState? provisioningState, IReadOnlyList statusMessages) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) + internal LabelingJobProperties(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, DateTimeOffset? createdOn, LabelingDataConfiguration dataConfiguration, LabelingJobInstructions jobInstructions, IDictionary labelCategories, LabelingJobMediaProperties labelingJobMediaProperties, MachineLearningAssistConfiguration mlAssistConfiguration, ProgressMetrics progressMetrics, Guid? projectId, JobProvisioningState? provisioningState, IReadOnlyList statusMessages) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { CreatedOn = createdOn; DataConfiguration = dataConfiguration; @@ -106,10 +106,10 @@ public Uri JobInstructionsUri public LabelingJobMediaProperties LabelingJobMediaProperties { get; set; } /// /// Configuration of MLAssist feature in the job. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public MLAssistConfiguration MlAssistConfiguration { get; set; } + public MachineLearningAssistConfiguration MlAssistConfiguration { get; set; } /// Progress metrics of the job. public ProgressMetrics ProgressMetrics { get; } /// Internal id of the job(Previously called project). @@ -117,6 +117,6 @@ public Uri JobInstructionsUri /// Specifies the labeling job provisioning state. public JobProvisioningState? ProvisioningState { get; } /// Status messages of the job. - public IReadOnlyList StatusMessages { get; } + public IReadOnlyList StatusMessages { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.cs deleted file mode 100644 index 39fb7c169741..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// - /// Labeling MLAssist configuration definition - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public abstract partial class MLAssistConfiguration - { - /// Initializes a new instance of MLAssistConfiguration. - protected MLAssistConfiguration() - { - } - - /// Initializes a new instance of MLAssistConfiguration. - /// [Required] Indicates whether MLAssist feature is enabled. - internal MLAssistConfiguration(MLAssistConfigurationType mlAssist) - { - MlAssist = mlAssist; - } - - /// [Required] Indicates whether MLAssist feature is enabled. - internal MLAssistConfigurationType MlAssist { get; set; } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.cs index 4dbd3126c9b5..a575c709380c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationDisabled.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Labeling MLAssist configuration definition when MLAssist is disabled. - public partial class MLAssistConfigurationDisabled : MLAssistConfiguration + public partial class MLAssistConfigurationDisabled : MachineLearningAssistConfiguration { /// Initializes a new instance of MLAssistConfigurationDisabled. public MLAssistConfigurationDisabled() diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLFlowAutologgerState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLFlowAutologgerState.cs deleted file mode 100644 index 30a422b21936..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLFlowAutologgerState.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Enum to determine the state of mlflow autologger. - public readonly partial struct MLFlowAutologgerState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MLFlowAutologgerState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static MLFlowAutologgerState Enabled { get; } = new MLFlowAutologgerState(EnabledValue); - /// Disabled. - public static MLFlowAutologgerState Disabled { get; } = new MLFlowAutologgerState(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(MLFlowAutologgerState left, MLFlowAutologgerState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MLFlowAutologgerState left, MLFlowAutologgerState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MLFlowAutologgerState(string value) => new MLFlowAutologgerState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MLFlowAutologgerState other && Equals(other); - /// - public bool Equals(MLFlowAutologgerState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistConfiguration.Serialization.cs similarity index 75% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistConfiguration.Serialization.cs index 48686dc885fb..b3f58d9e99cc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfiguration.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistConfiguration.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class MLAssistConfiguration : IUtf8JsonSerializable + public partial class MachineLearningAssistConfiguration : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static MLAssistConfiguration DeserializeMLAssistConfiguration(JsonElement element) + internal static MachineLearningAssistConfiguration DeserializeMachineLearningAssistConfiguration(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -31,7 +31,7 @@ internal static MLAssistConfiguration DeserializeMLAssistConfiguration(JsonEleme switch (discriminator.GetString()) { case "Disabled": return MLAssistConfigurationDisabled.DeserializeMLAssistConfigurationDisabled(element); - case "Enabled": return MLAssistConfigurationEnabled.DeserializeMLAssistConfigurationEnabled(element); + case "Enabled": return MachineLearningAssistEnabledConfiguration.DeserializeMachineLearningAssistEnabledConfiguration(element); } } return UnknownMLAssistConfiguration.DeserializeUnknownMLAssistConfiguration(element); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistConfiguration.cs new file mode 100644 index 000000000000..8e61d97a6bca --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistConfiguration.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// + /// Labeling MLAssist configuration definition + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public abstract partial class MachineLearningAssistConfiguration + { + /// Initializes a new instance of MachineLearningAssistConfiguration. + protected MachineLearningAssistConfiguration() + { + } + + /// Initializes a new instance of MachineLearningAssistConfiguration. + /// [Required] Indicates whether MLAssist feature is enabled. + internal MachineLearningAssistConfiguration(MLAssistConfigurationType mlAssist) + { + MlAssist = mlAssist; + } + + /// [Required] Indicates whether MLAssist feature is enabled. + internal MLAssistConfigurationType MlAssist { get; set; } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistEnabledConfiguration.Serialization.cs similarity index 83% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistEnabledConfiguration.Serialization.cs index 0639ec03fa66..7562b206f27e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistEnabledConfiguration.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class MLAssistConfigurationEnabled : IUtf8JsonSerializable + public partial class MachineLearningAssistEnabledConfiguration : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -24,7 +24,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static MLAssistConfigurationEnabled DeserializeMLAssistConfigurationEnabled(JsonElement element) + internal static MachineLearningAssistEnabledConfiguration DeserializeMachineLearningAssistEnabledConfiguration(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -51,7 +51,7 @@ internal static MLAssistConfigurationEnabled DeserializeMLAssistConfigurationEna continue; } } - return new MLAssistConfigurationEnabled(mlAssist, inferencingComputeBinding, trainingComputeBinding); + return new MachineLearningAssistEnabledConfiguration(mlAssist, inferencingComputeBinding, trainingComputeBinding); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistEnabledConfiguration.cs similarity index 75% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistEnabledConfiguration.cs index 05aad45b95dd..563d8db61a96 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MLAssistConfigurationEnabled.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAssistEnabledConfiguration.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Labeling MLAssist configuration definition when MLAssist is enabled. - public partial class MLAssistConfigurationEnabled : MLAssistConfiguration + public partial class MachineLearningAssistEnabledConfiguration : MachineLearningAssistConfiguration { - /// Initializes a new instance of MLAssistConfigurationEnabled. + /// Initializes a new instance of MachineLearningAssistEnabledConfiguration. /// [Required] AML compute binding used in inferencing. /// [Required] AML compute binding used in training. /// or is null. - public MLAssistConfigurationEnabled(string inferencingComputeBinding, string trainingComputeBinding) + public MachineLearningAssistEnabledConfiguration(string inferencingComputeBinding, string trainingComputeBinding) { Argument.AssertNotNull(inferencingComputeBinding, nameof(inferencingComputeBinding)); Argument.AssertNotNull(trainingComputeBinding, nameof(trainingComputeBinding)); @@ -27,11 +27,11 @@ public MLAssistConfigurationEnabled(string inferencingComputeBinding, string tra MlAssist = MLAssistConfigurationType.Enabled; } - /// Initializes a new instance of MLAssistConfigurationEnabled. + /// Initializes a new instance of MachineLearningAssistEnabledConfiguration. /// [Required] Indicates whether MLAssist feature is enabled. /// [Required] AML compute binding used in inferencing. /// [Required] AML compute binding used in training. - internal MLAssistConfigurationEnabled(MLAssistConfigurationType mlAssist, string inferencingComputeBinding, string trainingComputeBinding) : base(mlAssist) + internal MachineLearningAssistEnabledConfiguration(MLAssistConfigurationType mlAssist, string inferencingComputeBinding, string trainingComputeBinding) : base(mlAssist) { InferencingComputeBinding = inferencingComputeBinding; TrainingComputeBinding = trainingComputeBinding; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.Serialization.cs index 20dd4ed5dd15..9351c299b588 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.Serialization.cs @@ -78,7 +78,7 @@ internal static MachineLearningCodeContainerProperties DeserializeMachineLearnin { return null; } - Optional provisioningState = default; + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -93,7 +93,7 @@ internal static MachineLearningCodeContainerProperties DeserializeMachineLearnin { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("isArchived"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.cs index 640732df1f07..6e723b94b7a6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerProperties.cs @@ -25,12 +25,12 @@ public MachineLearningCodeContainerProperties() /// The latest version inside this container. /// The next auto incremental version. /// Provisioning state for the code container. - internal MachineLearningCodeContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + internal MachineLearningCodeContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, RegistryAssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { ProvisioningState = provisioningState; } /// Provisioning state for the code container. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.Serialization.cs index 95e756664838..2d450d12e943 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.Serialization.cs @@ -109,7 +109,7 @@ internal static MachineLearningCodeVersionProperties DeserializeMachineLearningC return null; } Optional codeUri = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional autoDeleteSetting = default; Optional isAnonymous = default; Optional isArchived = default; @@ -134,7 +134,7 @@ internal static MachineLearningCodeVersionProperties DeserializeMachineLearningC { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("autoDeleteSetting"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.cs index 81bc1886f3eb..9c0c24af25db 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionProperties.cs @@ -27,7 +27,7 @@ public MachineLearningCodeVersionProperties() /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived. /// Uri where code is located. /// Provisioning state for the code version. - internal MachineLearningCodeVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, Uri codeUri, AssetProvisioningState? provisioningState) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) + internal MachineLearningCodeVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, Uri codeUri, RegistryAssetProvisioningState? provisioningState) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { CodeUri = codeUri; ProvisioningState = provisioningState; @@ -36,6 +36,6 @@ internal MachineLearningCodeVersionProperties(string description, IDictionary Uri where code is located. public Uri CodeUri { get; set; } /// Provisioning state for the code version. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs index f7d1928119ed..bcbaf08d2d3d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs @@ -315,7 +315,7 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J Optional limits = default; Optional> outputs = default; Optional parameters = default; - Optional queueSettings = default; + Optional queueSettings = default; Optional resources = default; Optional componentId = default; Optional computeId = default; @@ -445,7 +445,7 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J queueSettings = null; continue; } - queueSettings = QueueSettings.DeserializeQueueSettings(property.Value); + queueSettings = JobQueueSettings.DeserializeJobQueueSettings(property.Value); continue; } if (property.NameEquals("resources"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs index 78ec4b44273f..7d5fab267659 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs @@ -60,7 +60,7 @@ public MachineLearningCommandJob(string command, ResourceIdentifier environmentI /// /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, Ray, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , and . /// /// [Required] The ARM resource ID of the Environment specification for the job. /// Environment variables included in the job. @@ -78,7 +78,7 @@ public MachineLearningCommandJob(string command, ResourceIdentifier environmentI /// Input parameters. /// Queue settings for the job. /// Compute Resource configuration for the job. - internal MachineLearningCommandJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, AutologgerSettings autologgerSettings, ResourceIdentifier codeId, string command, MachineLearningDistributionConfiguration distribution, ResourceIdentifier environmentId, IDictionary environmentVariables, IDictionary inputs, MachineLearningCommandJobLimits limits, IDictionary outputs, BinaryData parameters, QueueSettings queueSettings, MachineLearningJobResourceConfiguration resources) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) + internal MachineLearningCommandJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, AutologgerSettings autologgerSettings, ResourceIdentifier codeId, string command, MachineLearningDistributionConfiguration distribution, ResourceIdentifier environmentId, IDictionary environmentVariables, IDictionary inputs, MachineLearningCommandJobLimits limits, IDictionary outputs, BinaryData parameters, JobQueueSettings queueSettings, MachineLearningJobResourceConfiguration resources) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { AutologgerSettings = autologgerSettings; CodeId = codeId; @@ -98,9 +98,9 @@ internal MachineLearningCommandJob(string description, IDictionary Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. internal AutologgerSettings AutologgerSettings { get; set; } /// [Required] Indicates whether mlflow autologger is enabled. - public MLFlowAutologgerState? MlflowAutologger + public MachineLearningflowAutologgerState? MlflowAutologger { - get => AutologgerSettings is null ? default(MLFlowAutologgerState?) : AutologgerSettings.MlflowAutologger; + get => AutologgerSettings is null ? default(MachineLearningflowAutologgerState?) : AutologgerSettings.MlflowAutologger; set { AutologgerSettings = value.HasValue ? new AutologgerSettings(value.Value) : null; @@ -114,7 +114,7 @@ public MLFlowAutologgerState? MlflowAutologger /// /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, Ray, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , and . /// public MachineLearningDistributionConfiguration Distribution { get; set; } /// [Required] The ARM resource ID of the Environment specification for the job. @@ -167,7 +167,7 @@ public MLFlowAutologgerState? MlflowAutologger /// public BinaryData Parameters { get; } /// Queue settings for the job. - public QueueSettings QueueSettings { get; set; } + public JobQueueSettings QueueSettings { get; set; } /// Compute Resource configuration for the job. public MachineLearningJobResourceConfiguration Resources { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.Serialization.cs index 68dacfc6826f..3f1e9221c4c6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.Serialization.cs @@ -78,7 +78,7 @@ internal static MachineLearningComponentContainerProperties DeserializeMachineLe { return null; } - Optional provisioningState = default; + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -93,7 +93,7 @@ internal static MachineLearningComponentContainerProperties DeserializeMachineLe { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("isArchived"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.cs index e1ad6c2db8c1..1cfc81f1fc23 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerProperties.cs @@ -28,12 +28,12 @@ public MachineLearningComponentContainerProperties() /// The latest version inside this container. /// The next auto incremental version. /// Provisioning state for the component container. - internal MachineLearningComponentContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + internal MachineLearningComponentContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, RegistryAssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { ProvisioningState = provisioningState; } /// Provisioning state for the component container. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs index 59898ff1c37f..1818ae09118e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs @@ -125,7 +125,7 @@ internal static MachineLearningComponentVersionProperties DeserializeMachineLear return null; } Optional componentSpec = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional stage = default; Optional autoDeleteSetting = default; Optional isAnonymous = default; @@ -151,7 +151,7 @@ internal static MachineLearningComponentVersionProperties DeserializeMachineLear { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("stage"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.cs index b6008f30c7c6..8a9c1110f8d4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.cs @@ -31,7 +31,7 @@ public MachineLearningComponentVersionProperties() /// /// Provisioning state for the component version. /// Stage in the component lifecycle. - internal MachineLearningComponentVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, BinaryData componentSpec, AssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) + internal MachineLearningComponentVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, BinaryData componentSpec, RegistryAssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { ComponentSpec = componentSpec; ProvisioningState = provisioningState; @@ -71,7 +71,7 @@ internal MachineLearningComponentVersionProperties(string description, IDictiona /// public BinaryData ComponentSpec { get; set; } /// Provisioning state for the component version. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } /// Stage in the component lifecycle. public string Stage { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs index 4cd13d969160..3ae8afd2b685 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs @@ -91,7 +91,7 @@ public ResourceIdentifier SubnetId /// Specifies settings for autologger. internal ComputeInstanceAutologgerSettings AutologgerSettings { get; set; } /// Indicates whether mlflow autologger is enabled for notebooks. - public MlflowAutologger? MlflowAutologger + public MachineLearningflowAutologger? MlflowAutologger { get => AutologgerSettings is null ? default : AutologgerSettings.MlflowAutologger; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionCategory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionCategory.cs index 67057f569911..95bf0a9810db 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionCategory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningConnectionCategory.cs @@ -27,10 +27,10 @@ public MachineLearningConnectionCategory(string value) private const string GitValue = "Git"; private const string S3Value = "S3"; private const string SnowflakeValue = "Snowflake"; - private const string AzureSqlDbValue = "AzureSqlDb"; + private const string AzureSqlDBValue = "AzureSqlDb"; private const string AzureSynapseAnalyticsValue = "AzureSynapseAnalytics"; - private const string AzureMySqlDbValue = "AzureMySqlDb"; - private const string AzurePostgresDbValue = "AzurePostgresDb"; + private const string AzureMySqlDBValue = "AzureMySqlDb"; + private const string AzurePostgresDBValue = "AzurePostgresDb"; private const string AdlsGen2Value = "ADLSGen2"; private const string RedisValue = "Redis"; private const string ApiKeyValue = "ApiKey"; @@ -50,13 +50,13 @@ public MachineLearningConnectionCategory(string value) /// Snowflake. public static MachineLearningConnectionCategory Snowflake { get; } = new MachineLearningConnectionCategory(SnowflakeValue); /// AzureSqlDb. - public static MachineLearningConnectionCategory AzureSqlDb { get; } = new MachineLearningConnectionCategory(AzureSqlDbValue); + public static MachineLearningConnectionCategory AzureSqlDB { get; } = new MachineLearningConnectionCategory(AzureSqlDBValue); /// AzureSynapseAnalytics. public static MachineLearningConnectionCategory AzureSynapseAnalytics { get; } = new MachineLearningConnectionCategory(AzureSynapseAnalyticsValue); /// AzureMySqlDb. - public static MachineLearningConnectionCategory AzureMySqlDb { get; } = new MachineLearningConnectionCategory(AzureMySqlDbValue); + public static MachineLearningConnectionCategory AzureMySqlDB { get; } = new MachineLearningConnectionCategory(AzureMySqlDBValue); /// AzurePostgresDb. - public static MachineLearningConnectionCategory AzurePostgresDb { get; } = new MachineLearningConnectionCategory(AzurePostgresDbValue); + public static MachineLearningConnectionCategory AzurePostgresDB { get; } = new MachineLearningConnectionCategory(AzurePostgresDBValue); /// ADLSGen2. public static MachineLearningConnectionCategory AdlsGen2 { get; } = new MachineLearningConnectionCategory(AdlsGen2Value); /// Redis. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.Serialization.cs index 25983fb5f30b..5727fc58774f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.Serialization.cs @@ -32,7 +32,7 @@ internal static MachineLearningDistributionConfiguration DeserializeMachineLearn { case "Mpi": return MpiDistributionConfiguration.DeserializeMpiDistributionConfiguration(element); case "PyTorch": return PyTorchDistributionConfiguration.DeserializePyTorchDistributionConfiguration(element); - case "Ray": return Ray.DeserializeRay(element); + case "Ray": return RayDistributionConfiguration.DeserializeRayDistributionConfiguration(element); case "TensorFlow": return TensorFlowDistributionConfiguration.DeserializeTensorFlowDistributionConfiguration(element); } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.cs index fe06b7fd1062..c2cb3df0f1c0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDistributionConfiguration.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// Base definition for job distribution configuration. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , and . /// public abstract partial class MachineLearningDistributionConfiguration { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs index 76ddbdacbaed..1b9418781ec0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.Serialization.cs @@ -15,10 +15,10 @@ public partial class MachineLearningEncryptionSetting : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(CosmosDbResourceId)) + if (Optional.IsDefined(CosmosDBResourceId)) { writer.WritePropertyName("cosmosDbResourceId"u8); - writer.WriteStringValue(CosmosDbResourceId); + writer.WriteStringValue(CosmosDBResourceId); } if (Optional.IsDefined(Identity)) { @@ -48,17 +48,21 @@ internal static MachineLearningEncryptionSetting DeserializeMachineLearningEncry { return null; } - Optional cosmosDbResourceId = default; + Optional cosmosDbResourceId = default; Optional identity = default; MachineLearningEncryptionKeyVaultProperties keyVaultProperties = default; - Optional searchAccountResourceId = default; + Optional searchAccountResourceId = default; MachineLearningEncryptionStatus status = default; - Optional storageAccountResourceId = default; + Optional storageAccountResourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("cosmosDbResourceId"u8)) { - cosmosDbResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + cosmosDbResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("identity"u8)) @@ -77,7 +81,11 @@ internal static MachineLearningEncryptionSetting DeserializeMachineLearningEncry } if (property.NameEquals("searchAccountResourceId"u8)) { - searchAccountResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + searchAccountResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("status"u8)) @@ -87,7 +95,11 @@ internal static MachineLearningEncryptionSetting DeserializeMachineLearningEncry } if (property.NameEquals("storageAccountResourceId"u8)) { - storageAccountResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageAccountResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs index 139826069b8b..e1c0f1b6428e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEncryptionSetting.cs @@ -26,7 +26,7 @@ public MachineLearningEncryptionSetting(MachineLearningEncryptionKeyVaultPropert } /// Initializes a new instance of MachineLearningEncryptionSetting. - /// + /// /// The byok cosmosdb account that customer brings to store customer's data /// with encryption /// @@ -41,9 +41,9 @@ public MachineLearningEncryptionSetting(MachineLearningEncryptionKeyVaultPropert /// The byok storage account that customer brings to store customer's data /// with encryption /// - internal MachineLearningEncryptionSetting(string cosmosDbResourceId, MachineLearningCmkIdentity identity, MachineLearningEncryptionKeyVaultProperties keyVaultProperties, string searchAccountResourceId, MachineLearningEncryptionStatus status, string storageAccountResourceId) + internal MachineLearningEncryptionSetting(ResourceIdentifier cosmosDBResourceId, MachineLearningCmkIdentity identity, MachineLearningEncryptionKeyVaultProperties keyVaultProperties, ResourceIdentifier searchAccountResourceId, MachineLearningEncryptionStatus status, ResourceIdentifier storageAccountResourceId) { - CosmosDbResourceId = cosmosDbResourceId; + CosmosDBResourceId = cosmosDBResourceId; Identity = identity; KeyVaultProperties = keyVaultProperties; SearchAccountResourceId = searchAccountResourceId; @@ -55,7 +55,7 @@ internal MachineLearningEncryptionSetting(string cosmosDbResourceId, MachineLear /// The byok cosmosdb account that customer brings to store customer's data /// with encryption /// - public string CosmosDbResourceId { get; set; } + public ResourceIdentifier CosmosDBResourceId { get; set; } /// Identity to be used with the keyVault. internal MachineLearningCmkIdentity Identity { get; set; } /// UserAssignedIdentity to be used to fetch the encryption key from keyVault. @@ -76,13 +76,13 @@ public ResourceIdentifier UserAssignedIdentity /// The byok search account that customer brings to store customer's data /// with encryption /// - public string SearchAccountResourceId { get; set; } + public ResourceIdentifier SearchAccountResourceId { get; set; } /// Indicates whether or not the encryption is enabled for the workspace. public MachineLearningEncryptionStatus Status { get; set; } /// /// The byok storage account that customer brings to store customer's data /// with encryption /// - public string StorageAccountResourceId { get; set; } + public ResourceIdentifier StorageAccountResourceId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.Serialization.cs index 168d896bedbe..b6c4c376ceb3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.Serialization.cs @@ -78,7 +78,7 @@ internal static MachineLearningEnvironmentContainerProperties DeserializeMachine { return null; } - Optional provisioningState = default; + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -93,7 +93,7 @@ internal static MachineLearningEnvironmentContainerProperties DeserializeMachine { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("isArchived"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.cs index 0f883e6735cf..65dc84457602 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerProperties.cs @@ -25,12 +25,12 @@ public MachineLearningEnvironmentContainerProperties() /// The latest version inside this container. /// The next auto incremental version. /// Provisioning state for the environment container. - internal MachineLearningEnvironmentContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + internal MachineLearningEnvironmentContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, RegistryAssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { ProvisioningState = provisioningState; } /// Provisioning state for the environment container. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.Serialization.cs index fc3344c239a0..93004bf39b0f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.Serialization.cs @@ -157,7 +157,7 @@ internal static MachineLearningEnvironmentVersionProperties DeserializeMachineLe Optional inferenceConfig = default; Optional intellectualProperty = default; Optional osType = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional stage = default; Optional autoDeleteSetting = default; Optional isAnonymous = default; @@ -238,7 +238,7 @@ internal static MachineLearningEnvironmentVersionProperties DeserializeMachineLe { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("stage"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.cs index 66bc03c9026b..49d1851d74d3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionProperties.cs @@ -43,7 +43,7 @@ public MachineLearningEnvironmentVersionProperties() /// The OS type of the environment. /// Provisioning state for the environment version. /// Stage in the environment lifecycle assigned to this environment. - internal MachineLearningEnvironmentVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, AutoRebuildSetting? autoRebuild, MachineLearningBuildContext build, string condaFile, MachineLearningEnvironmentType? environmentType, string image, MachineLearningInferenceContainerProperties inferenceConfig, IntellectualProperty intellectualProperty, MachineLearningOperatingSystemType? osType, AssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) + internal MachineLearningEnvironmentVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, AutoRebuildSetting? autoRebuild, MachineLearningBuildContext build, string condaFile, MachineLearningEnvironmentType? environmentType, string image, MachineLearningInferenceContainerProperties inferenceConfig, IntellectualProperty intellectualProperty, MachineLearningOperatingSystemType? osType, RegistryAssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { AutoRebuild = autoRebuild; Build = build; @@ -83,7 +83,7 @@ internal MachineLearningEnvironmentVersionProperties(string description, IDictio /// The OS type of the environment. public MachineLearningOperatingSystemType? OSType { get; set; } /// Provisioning state for the environment version. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } /// Stage in the environment lifecycle assigned to this environment. public string Stage { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureData.Serialization.cs index ea07e57afde0..128724d0cbc6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureData.Serialization.cs @@ -28,7 +28,7 @@ internal static MachineLearningFeatureData DeserializeMachineLearningFeatureData { return null; } - FeatureProperties properties = default; + MachineLearningFeatureProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -37,7 +37,7 @@ internal static MachineLearningFeatureData DeserializeMachineLearningFeatureData { if (property.NameEquals("properties"u8)) { - properties = FeatureProperties.DeserializeFeatureProperties(property.Value); + properties = MachineLearningFeatureProperties.DeserializeMachineLearningFeatureProperties(property.Value); continue; } if (property.NameEquals("id"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureProperties.Serialization.cs similarity index 93% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureProperties.Serialization.cs index 9bec453131e3..f957ac91f4d9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class FeatureProperties : IUtf8JsonSerializable + public partial class MachineLearningFeatureProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -84,7 +84,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeatureProperties DeserializeFeatureProperties(JsonElement element) + internal static MachineLearningFeatureProperties DeserializeMachineLearningFeatureProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -157,7 +157,7 @@ internal static FeatureProperties DeserializeFeatureProperties(JsonElement eleme continue; } } - return new FeatureProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(dataType), featureName.Value); + return new MachineLearningFeatureProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(dataType), featureName.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureProperties.cs similarity index 64% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureProperties.cs index 9b20353efe6c..27b6f2c260da 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureProperties.cs @@ -10,20 +10,20 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Dto object representing feature. - public partial class FeatureProperties : MachineLearningResourceBase + public partial class MachineLearningFeatureProperties : MachineLearningResourceBase { - /// Initializes a new instance of FeatureProperties. - public FeatureProperties() + /// Initializes a new instance of MachineLearningFeatureProperties. + public MachineLearningFeatureProperties() { } - /// Initializes a new instance of FeatureProperties. + /// Initializes a new instance of MachineLearningFeatureProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. /// Specifies type. /// Specifies name. - internal FeatureProperties(string description, IDictionary properties, IDictionary tags, FeatureDataType? dataType, string featureName) : base(description, properties, tags) + internal MachineLearningFeatureProperties(string description, IDictionary properties, IDictionary tags, FeatureDataType? dataType, string featureName) : base(description, properties, tags) { DataType = dataType; FeatureName = featureName; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerData.Serialization.cs index 7e0c5e50c122..8d02b0d27097 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerData.Serialization.cs @@ -28,7 +28,7 @@ internal static MachineLearningFeatureSetContainerData DeserializeMachineLearnin { return null; } - FeaturesetContainerProperties properties = default; + MachineLearningFeatureSetContainerProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -37,7 +37,7 @@ internal static MachineLearningFeatureSetContainerData DeserializeMachineLearnin { if (property.NameEquals("properties"u8)) { - properties = FeaturesetContainerProperties.DeserializeFeaturesetContainerProperties(property.Value); + properties = MachineLearningFeatureSetContainerProperties.DeserializeMachineLearningFeatureSetContainerProperties(property.Value); continue; } if (property.NameEquals("id"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerProperties.Serialization.cs similarity index 89% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerProperties.Serialization.cs index c23071fb0f30..9d58e6d19f91 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class FeaturesetContainerProperties : IUtf8JsonSerializable + public partial class MachineLearningFeatureSetContainerProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -72,13 +72,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeaturesetContainerProperties DeserializeFeaturesetContainerProperties(JsonElement element) + internal static MachineLearningFeatureSetContainerProperties DeserializeMachineLearningFeatureSetContainerProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional provisioningState = default; + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -93,7 +93,7 @@ internal static FeaturesetContainerProperties DeserializeFeaturesetContainerProp { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("isArchived"u8)) @@ -166,7 +166,7 @@ internal static FeaturesetContainerProperties DeserializeFeaturesetContainerProp continue; } } - return new FeaturesetContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); + return new MachineLearningFeatureSetContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerProperties.cs similarity index 57% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerProperties.cs index abe7ba08753b..c55abe18e1e6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerProperties.cs @@ -10,14 +10,14 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Dto object representing feature set. - public partial class FeaturesetContainerProperties : MachineLearningAssetContainer + public partial class MachineLearningFeatureSetContainerProperties : MachineLearningAssetContainer { - /// Initializes a new instance of FeaturesetContainerProperties. - public FeaturesetContainerProperties() + /// Initializes a new instance of MachineLearningFeatureSetContainerProperties. + public MachineLearningFeatureSetContainerProperties() { } - /// Initializes a new instance of FeaturesetContainerProperties. + /// Initializes a new instance of MachineLearningFeatureSetContainerProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. @@ -25,12 +25,12 @@ public FeaturesetContainerProperties() /// The latest version inside this container. /// The next auto incremental version. /// Provisioning state for the featureset container. - internal FeaturesetContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + internal MachineLearningFeatureSetContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, RegistryAssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { ProvisioningState = provisioningState; } /// Provisioning state for the featureset container. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetJob.Serialization.cs similarity index 89% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetJob.Serialization.cs index 6662bc7b0a51..b8b50482858d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetJob.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class FeaturesetJob + public partial class MachineLearningFeatureSetJob { - internal static FeaturesetJob DeserializeFeaturesetJob(JsonElement element) + internal static MachineLearningFeatureSetJob DeserializeMachineLearningFeatureSetJob(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -28,7 +28,7 @@ internal static FeaturesetJob DeserializeFeaturesetJob(JsonElement element) Optional jobId = default; Optional status = default; Optional> tags = default; - Optional type = default; + Optional type = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("createdDate"u8)) @@ -121,11 +121,11 @@ internal static FeaturesetJob DeserializeFeaturesetJob(JsonElement element) { continue; } - type = new FeaturestoreJobType(property.Value.GetString()); + type = new FeatureStoreJobType(property.Value.GetString()); continue; } } - return new FeaturesetJob(Optional.ToNullable(createdDate), displayName.Value, Optional.ToNullable(duration), experimentId.Value, featureWindow.Value, jobId.Value, Optional.ToNullable(status), Optional.ToDictionary(tags), Optional.ToNullable(type)); + return new MachineLearningFeatureSetJob(Optional.ToNullable(createdDate), displayName.Value, Optional.ToNullable(duration), experimentId.Value, featureWindow.Value, jobId.Value, Optional.ToNullable(status), Optional.ToDictionary(tags), Optional.ToNullable(type)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetJob.cs similarity index 75% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetJob.cs index ff94fa8ba78f..c9ca8d274df0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetJob.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Dto object representing the feature set job. - public partial class FeaturesetJob + public partial class MachineLearningFeatureSetJob { - /// Initializes a new instance of FeaturesetJob. - internal FeaturesetJob() + /// Initializes a new instance of MachineLearningFeatureSetJob. + internal MachineLearningFeatureSetJob() { Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of FeaturesetJob. + /// Initializes a new instance of MachineLearningFeatureSetJob. /// Specifies the created date. /// Specifies the display name. /// Specifies the duration. @@ -29,8 +29,8 @@ internal FeaturesetJob() /// Specifies the job id. /// Specifies the job status. /// Specifies the tags if any. - /// Specifies the feature store job type. - internal FeaturesetJob(DateTimeOffset? createdOn, string displayName, TimeSpan? duration, string experimentId, FeatureWindow featureWindow, string jobId, MachineLearningJobStatus? status, IReadOnlyDictionary tags, FeaturestoreJobType? featurestoreJobType) + /// Specifies the feature store job type. + internal MachineLearningFeatureSetJob(DateTimeOffset? createdOn, string displayName, TimeSpan? duration, string experimentId, FeatureWindow featureWindow, string jobId, MachineLearningJobStatus? status, IReadOnlyDictionary tags, FeatureStoreJobType? featureStoreJobType) { CreatedOn = createdOn; DisplayName = displayName; @@ -40,7 +40,7 @@ internal FeaturesetJob(DateTimeOffset? createdOn, string displayName, TimeSpan? JobId = jobId; Status = status; Tags = tags; - FeaturestoreJobType = featurestoreJobType; + FeatureStoreJobType = featureStoreJobType; } /// Specifies the created date. @@ -60,6 +60,6 @@ internal FeaturesetJob(DateTimeOffset? createdOn, string displayName, TimeSpan? /// Specifies the tags if any. public IReadOnlyDictionary Tags { get; } /// Specifies the feature store job type. - public FeaturestoreJobType? FeaturestoreJobType { get; } + public FeatureStoreJobType? FeatureStoreJobType { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionData.Serialization.cs index 7a015c8e1ecc..b291e1b33b3b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionData.Serialization.cs @@ -28,7 +28,7 @@ internal static MachineLearningFeatureSetVersionData DeserializeMachineLearningF { return null; } - FeaturesetVersionProperties properties = default; + MachineLearningFeatureSetVersionProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -37,7 +37,7 @@ internal static MachineLearningFeatureSetVersionData DeserializeMachineLearningF { if (property.NameEquals("properties"u8)) { - properties = FeaturesetVersionProperties.DeserializeFeaturesetVersionProperties(property.Value); + properties = MachineLearningFeatureSetVersionProperties.DeserializeMachineLearningFeatureSetVersionProperties(property.Value); continue; } if (property.NameEquals("id"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.Serialization.cs similarity index 92% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.Serialization.cs index d5646c5c4b85..36cbca0dde77 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class FeaturesetVersionProperties : IUtf8JsonSerializable + public partial class MachineLearningFeatureSetVersionProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -142,7 +142,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeaturesetVersionProperties DeserializeFeaturesetVersionProperties(JsonElement element) + internal static MachineLearningFeatureSetVersionProperties DeserializeMachineLearningFeatureSetVersionProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -150,7 +150,7 @@ internal static FeaturesetVersionProperties DeserializeFeaturesetVersionProperti } Optional> entities = default; Optional materializationSettings = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional specification = default; Optional stage = default; Optional autoDeleteSetting = default; @@ -192,7 +192,7 @@ internal static FeaturesetVersionProperties DeserializeFeaturesetVersionProperti { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("specification"u8)) @@ -284,7 +284,7 @@ internal static FeaturesetVersionProperties DeserializeFeaturesetVersionProperti continue; } } - return new FeaturesetVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToList(entities), materializationSettings.Value, Optional.ToNullable(provisioningState), specification.Value, stage.Value); + return new MachineLearningFeatureSetVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToList(entities), materializationSettings.Value, Optional.ToNullable(provisioningState), specification.Value, stage.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.cs similarity index 75% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.cs index 693af73da79c..91511e73304a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Dto object representing feature set version. - public partial class FeaturesetVersionProperties : MachineLearningAssetBase + public partial class MachineLearningFeatureSetVersionProperties : MachineLearningAssetBase { - /// Initializes a new instance of FeaturesetVersionProperties. - public FeaturesetVersionProperties() + /// Initializes a new instance of MachineLearningFeatureSetVersionProperties. + public MachineLearningFeatureSetVersionProperties() { Entities = new ChangeTrackingList(); } - /// Initializes a new instance of FeaturesetVersionProperties. + /// Initializes a new instance of MachineLearningFeatureSetVersionProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. @@ -31,7 +31,7 @@ public FeaturesetVersionProperties() /// Provisioning state for the featureset version container. /// Specifies the feature spec details. /// Specifies the asset stage. - internal FeaturesetVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IList entities, MaterializationSettings materializationSettings, AssetProvisioningState? provisioningState, FeaturesetSpecification specification, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) + internal MachineLearningFeatureSetVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IList entities, MaterializationSettings materializationSettings, RegistryAssetProvisioningState? provisioningState, FeaturesetSpecification specification, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { Entities = entities; MaterializationSettings = materializationSettings; @@ -45,7 +45,7 @@ internal FeaturesetVersionProperties(string description, IDictionary Specifies the materialization settings. public MaterializationSettings MaterializationSettings { get; set; } /// Provisioning state for the featureset version container. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } /// Specifies the feature spec details. internal FeaturesetSpecification Specification { get; set; } /// Specifies the spec path. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerData.Serialization.cs index c297dbc63d4f..9bf6985bbcdb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerData.Serialization.cs @@ -28,7 +28,7 @@ internal static MachineLearningFeatureStoreEntityContainerData DeserializeMachin { return null; } - FeaturestoreEntityContainerProperties properties = default; + MachineLearningFeatureStoreEntityContainerProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -37,7 +37,7 @@ internal static MachineLearningFeatureStoreEntityContainerData DeserializeMachin { if (property.NameEquals("properties"u8)) { - properties = FeaturestoreEntityContainerProperties.DeserializeFeaturestoreEntityContainerProperties(property.Value); + properties = MachineLearningFeatureStoreEntityContainerProperties.DeserializeMachineLearningFeatureStoreEntityContainerProperties(property.Value); continue; } if (property.NameEquals("id"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerProperties.Serialization.cs similarity index 89% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerProperties.Serialization.cs index c59d992bc69e..8a45bf28e0d8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class FeaturestoreEntityContainerProperties : IUtf8JsonSerializable + public partial class MachineLearningFeatureStoreEntityContainerProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -72,13 +72,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeaturestoreEntityContainerProperties DeserializeFeaturestoreEntityContainerProperties(JsonElement element) + internal static MachineLearningFeatureStoreEntityContainerProperties DeserializeMachineLearningFeatureStoreEntityContainerProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional provisioningState = default; + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -93,7 +93,7 @@ internal static FeaturestoreEntityContainerProperties DeserializeFeaturestoreEnt { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("isArchived"u8)) @@ -166,7 +166,7 @@ internal static FeaturestoreEntityContainerProperties DeserializeFeaturestoreEnt continue; } } - return new FeaturestoreEntityContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); + return new MachineLearningFeatureStoreEntityContainerProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), Optional.ToNullable(isArchived), latestVersion.Value, nextVersion.Value, Optional.ToNullable(provisioningState)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerProperties.cs similarity index 56% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerProperties.cs index 9a9b56011cab..927917acab3a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerProperties.cs @@ -10,14 +10,14 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Dto object representing feature entity. - public partial class FeaturestoreEntityContainerProperties : MachineLearningAssetContainer + public partial class MachineLearningFeatureStoreEntityContainerProperties : MachineLearningAssetContainer { - /// Initializes a new instance of FeaturestoreEntityContainerProperties. - public FeaturestoreEntityContainerProperties() + /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerProperties. + public MachineLearningFeatureStoreEntityContainerProperties() { } - /// Initializes a new instance of FeaturestoreEntityContainerProperties. + /// Initializes a new instance of MachineLearningFeatureStoreEntityContainerProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. @@ -25,12 +25,12 @@ public FeaturestoreEntityContainerProperties() /// The latest version inside this container. /// The next auto incremental version. /// Provisioning state for the featurestore entity container. - internal FeaturestoreEntityContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + internal MachineLearningFeatureStoreEntityContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, RegistryAssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { ProvisioningState = provisioningState; } /// Provisioning state for the featurestore entity container. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.Serialization.cs similarity index 91% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.Serialization.cs index 7f3990153464..529bff6d111f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class FeaturestoreEntityVersionProperties : IUtf8JsonSerializable + public partial class MachineLearningFeatureStoreEntityVersionProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -118,14 +118,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FeaturestoreEntityVersionProperties DeserializeFeaturestoreEntityVersionProperties(JsonElement element) + internal static MachineLearningFeatureStoreEntityVersionProperties DeserializeMachineLearningFeatureStoreEntityVersionProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } Optional> indexColumns = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional stage = default; Optional autoDeleteSetting = default; Optional isAnonymous = default; @@ -156,7 +156,7 @@ internal static FeaturestoreEntityVersionProperties DeserializeFeaturestoreEntit { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("stage"u8)) @@ -238,7 +238,7 @@ internal static FeaturestoreEntityVersionProperties DeserializeFeaturestoreEntit continue; } } - return new FeaturestoreEntityVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToList(indexColumns), Optional.ToNullable(provisioningState), stage.Value); + return new MachineLearningFeatureStoreEntityVersionProperties(description.Value, Optional.ToDictionary(properties), Optional.ToDictionary(tags), autoDeleteSetting.Value, Optional.ToNullable(isAnonymous), Optional.ToNullable(isArchived), Optional.ToList(indexColumns), Optional.ToNullable(provisioningState), stage.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.cs similarity index 67% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.cs index 064380b91fb6..60edf266936b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Dto object representing feature entity version. - public partial class FeaturestoreEntityVersionProperties : MachineLearningAssetBase + public partial class MachineLearningFeatureStoreEntityVersionProperties : MachineLearningAssetBase { - /// Initializes a new instance of FeaturestoreEntityVersionProperties. - public FeaturestoreEntityVersionProperties() + /// Initializes a new instance of MachineLearningFeatureStoreEntityVersionProperties. + public MachineLearningFeatureStoreEntityVersionProperties() { IndexColumns = new ChangeTrackingList(); } - /// Initializes a new instance of FeaturestoreEntityVersionProperties. + /// Initializes a new instance of MachineLearningFeatureStoreEntityVersionProperties. /// The asset description text. /// The asset property dictionary. /// Tag dictionary. Tags can be added, removed, and updated. @@ -29,7 +29,7 @@ public FeaturestoreEntityVersionProperties() /// Specifies index columns. /// Provisioning state for the featurestore entity version. /// Specifies the asset stage. - internal FeaturestoreEntityVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IList indexColumns, AssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) + internal MachineLearningFeatureStoreEntityVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IList indexColumns, RegistryAssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { IndexColumns = indexColumns; ProvisioningState = provisioningState; @@ -39,7 +39,7 @@ internal FeaturestoreEntityVersionProperties(string description, IDictionary Specifies index columns. public IList IndexColumns { get; set; } /// Provisioning state for the featurestore entity version. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } /// Specifies the asset stage. public string Stage { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionData.Serialization.cs index 3a6bdc56fbf6..d57e571b0817 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionData.Serialization.cs @@ -28,7 +28,7 @@ internal static MachineLearningFeaturestoreEntityVersionData DeserializeMachineL { return null; } - FeaturestoreEntityVersionProperties properties = default; + MachineLearningFeatureStoreEntityVersionProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -37,7 +37,7 @@ internal static MachineLearningFeaturestoreEntityVersionData DeserializeMachineL { if (property.NameEquals("properties"u8)) { - properties = FeaturestoreEntityVersionProperties.DeserializeFeaturestoreEntityVersionProperties(property.Value); + properties = MachineLearningFeatureStoreEntityVersionProperties.DeserializeMachineLearningFeatureStoreEntityVersionProperties(property.Value); continue; } if (property.NameEquals("id"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.cs index 8b7eb989f69c..94342d10d0c9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobPatch.cs @@ -21,10 +21,10 @@ public MachineLearningJobPatch() internal PartialJobBase Properties { get; set; } /// /// Send webhook callback to a service. Key is a user-provided name for the webhook. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// - public IDictionary NotificationSettingWebhooks + public IDictionary NotificationSettingWebhooks { get => Properties is null ? default : Properties.NotificationSettingWebhooks; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.Serialization.cs index 27b81213831e..3bb5b53b1d2e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.Serialization.cs @@ -94,7 +94,7 @@ internal static MachineLearningJobService DeserializeMachineLearningJobService(J Optional endpoint = default; Optional errorMessage = default; Optional jobServiceType = default; - Optional nodes = default; + Optional nodes = default; Optional port = default; Optional> properties = default; Optional status = default; @@ -137,7 +137,7 @@ internal static MachineLearningJobService DeserializeMachineLearningJobService(J nodes = null; continue; } - nodes = Nodes.DeserializeNodes(property.Value); + nodes = JobNodes.DeserializeJobNodes(property.Value); continue; } if (property.NameEquals("port"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs index 1089319f266c..fa9dc4af76e7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobService.cs @@ -26,13 +26,13 @@ public MachineLearningJobService() /// /// 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. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// /// Port for endpoint set by user. /// Additional properties to set on the endpoint. /// Status of endpoint. - internal MachineLearningJobService(string endpoint, string errorMessage, string jobServiceType, Nodes nodes, int? port, IDictionary properties, string status) + internal MachineLearningJobService(string endpoint, string errorMessage, string jobServiceType, JobNodes nodes, int? port, IDictionary properties, string status) { Endpoint = endpoint; ErrorMessage = errorMessage; @@ -52,10 +52,10 @@ internal MachineLearningJobService(string endpoint, string errorMessage, string /// /// 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. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public Nodes Nodes { get; set; } + public JobNodes Nodes { get; set; } /// Port for endpoint set by user. public int? Port { get; set; } /// Additional properties to set on the endpoint. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.Serialization.cs index 45f9a133e5eb..5bc24973f3c5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.Serialization.cs @@ -78,7 +78,7 @@ internal static MachineLearningModelContainerProperties DeserializeMachineLearni { return null; } - Optional provisioningState = default; + Optional provisioningState = default; Optional isArchived = default; Optional latestVersion = default; Optional nextVersion = default; @@ -93,7 +93,7 @@ internal static MachineLearningModelContainerProperties DeserializeMachineLearni { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("isArchived"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.cs index 4fa0b239b620..626b3f4f1be2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerProperties.cs @@ -25,12 +25,12 @@ public MachineLearningModelContainerProperties() /// The latest version inside this container. /// The next auto incremental version. /// Provisioning state for the model container. - internal MachineLearningModelContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, AssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) + internal MachineLearningModelContainerProperties(string description, IDictionary properties, IDictionary tags, bool? isArchived, string latestVersion, string nextVersion, RegistryAssetProvisioningState? provisioningState) : base(description, properties, tags, isArchived, latestVersion, nextVersion) { ProvisioningState = provisioningState; } /// Provisioning state for the model container. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.Serialization.cs index 0a28fcb83b24..9cfc67e01938 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.Serialization.cs @@ -179,7 +179,7 @@ internal static MachineLearningModelVersionProperties DeserializeMachineLearning Optional jobName = default; Optional modelType = default; Optional modelUri = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional stage = default; Optional autoDeleteSetting = default; Optional isAnonymous = default; @@ -250,7 +250,7 @@ internal static MachineLearningModelVersionProperties DeserializeMachineLearning { continue; } - provisioningState = new AssetProvisioningState(property.Value.GetString()); + provisioningState = new RegistryAssetProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("stage"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.cs index 1028507ed797..860f70203c48 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionProperties.cs @@ -34,7 +34,7 @@ public MachineLearningModelVersionProperties() /// The URI path to the model contents. /// Provisioning state for the model version. /// Stage in the model lifecycle assigned to this model. - internal MachineLearningModelVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IDictionary flavors, IntellectualProperty intellectualProperty, string jobName, string modelType, Uri modelUri, AssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) + internal MachineLearningModelVersionProperties(string description, IDictionary properties, IDictionary tags, AutoDeleteSetting autoDeleteSetting, bool? isAnonymous, bool? isArchived, IDictionary flavors, IntellectualProperty intellectualProperty, string jobName, string modelType, Uri modelUri, RegistryAssetProvisioningState? provisioningState, string stage) : base(description, properties, tags, autoDeleteSetting, isAnonymous, isArchived) { Flavors = flavors; IntellectualProperty = intellectualProperty; @@ -56,7 +56,7 @@ internal MachineLearningModelVersionProperties(string description, IDictionary The URI path to the model contents. public Uri ModelUri { get; set; } /// Provisioning state for the model version. - public AssetProvisioningState? ProvisioningState { get; } + public RegistryAssetProvisioningState? ProvisioningState { get; } /// Stage in the model lifecycle assigned to this model. public string Stage { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRule.Serialization.cs similarity index 86% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRule.Serialization.cs index 8c3d5231a561..be73a5e607fb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRule.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class OutboundRule : IUtf8JsonSerializable + public partial class MachineLearningOutboundRule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -26,11 +26,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Status.Value.ToString()); } writer.WritePropertyName("type"u8); - writer.WriteStringValue(RuleType.ToString()); + writer.WriteStringValue(OutboundRuleType.ToString()); writer.WriteEndObject(); } - internal static OutboundRule DeserializeOutboundRule(JsonElement element) + internal static MachineLearningOutboundRule DeserializeMachineLearningOutboundRule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRule.cs similarity index 52% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRule.cs index ab2a8ab0fb28..f403652ba649 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRule.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRule.cs @@ -9,32 +9,32 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// /// Outbound Rule for the managed network of a machine learning workspace. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// - public abstract partial class OutboundRule + public abstract partial class MachineLearningOutboundRule { - /// Initializes a new instance of OutboundRule. - protected OutboundRule() + /// Initializes a new instance of MachineLearningOutboundRule. + protected MachineLearningOutboundRule() { } - /// Initializes a new instance of OutboundRule. + /// Initializes a new instance of MachineLearningOutboundRule. /// Category of a managed network Outbound Rule of a machine learning workspace. /// Type of a managed network Outbound Rule of a machine learning workspace. - /// Type of a managed network Outbound Rule of a machine learning workspace. - internal OutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType) + /// Type of a managed network Outbound Rule of a machine learning workspace. + internal MachineLearningOutboundRule(OutboundRuleCategory? category, OutboundRuleStatus? status, OutboundRuleType outboundRuleType) { Category = category; Status = status; - RuleType = ruleType; + OutboundRuleType = outboundRuleType; } /// Category of a managed network Outbound Rule of a machine learning workspace. - public RuleCategory? Category { get; set; } + public OutboundRuleCategory? Category { get; set; } /// Type of a managed network Outbound Rule of a machine learning workspace. - public RuleStatus? Status { get; set; } + public OutboundRuleStatus? Status { get; set; } /// Type of a managed network Outbound Rule of a machine learning workspace. - internal RuleType RuleType { get; set; } + internal OutboundRuleType OutboundRuleType { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleBasicResourceData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRuleBasicData.Serialization.cs similarity index 80% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleBasicResourceData.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRuleBasicData.Serialization.cs index a1fc1a6071f8..0bae35d4d256 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleBasicResourceData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRuleBasicData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.MachineLearning { - public partial class OutboundRuleBasicResourceData : IUtf8JsonSerializable + public partial class MachineLearningOutboundRuleBasicData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,13 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static OutboundRuleBasicResourceData DeserializeOutboundRuleBasicResourceData(JsonElement element) + internal static MachineLearningOutboundRuleBasicData DeserializeMachineLearningOutboundRuleBasicData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - OutboundRule properties = default; + MachineLearningOutboundRule properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -37,7 +37,7 @@ internal static OutboundRuleBasicResourceData DeserializeOutboundRuleBasicResour { if (property.NameEquals("properties"u8)) { - properties = OutboundRule.DeserializeOutboundRule(property.Value); + properties = MachineLearningOutboundRule.DeserializeMachineLearningOutboundRule(property.Value); continue; } if (property.NameEquals("id"u8)) @@ -65,7 +65,7 @@ internal static OutboundRuleBasicResourceData DeserializeOutboundRuleBasicResour continue; } } - return new OutboundRuleBasicResourceData(id, name, type, systemData.Value, properties); + return new MachineLearningOutboundRuleBasicData(id, name, type, systemData.Value, properties); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.Serialization.cs index 93298b72ae5a..bba8a245e8b3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.Serialization.cs @@ -264,7 +264,7 @@ internal static MachineLearningSweepJob DeserializeMachineLearningSweepJob(JsonE Optional limits = default; MachineLearningObjective objective = default; Optional> outputs = default; - Optional queueSettings = default; + Optional queueSettings = default; SamplingAlgorithm samplingAlgorithm = default; BinaryData searchSpace = default; MachineLearningTrialComponent trial = default; @@ -345,7 +345,7 @@ internal static MachineLearningSweepJob DeserializeMachineLearningSweepJob(JsonE queueSettings = null; continue; } - queueSettings = QueueSettings.DeserializeQueueSettings(property.Value); + queueSettings = JobQueueSettings.DeserializeJobQueueSettings(property.Value); continue; } if (property.NameEquals("samplingAlgorithm"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.cs index 42d91ccf67f9..e0e60006135a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSweepJob.cs @@ -88,7 +88,7 @@ public MachineLearningSweepJob(MachineLearningObjective objective, SamplingAlgor /// /// [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter. /// [Required] Trial component definition. - internal MachineLearningSweepJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, MachineLearningEarlyTerminationPolicy earlyTermination, IDictionary inputs, MachineLearningSweepJobLimits limits, MachineLearningObjective objective, IDictionary outputs, QueueSettings queueSettings, SamplingAlgorithm samplingAlgorithm, BinaryData searchSpace, MachineLearningTrialComponent trial) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) + internal MachineLearningSweepJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, MachineLearningEarlyTerminationPolicy earlyTermination, IDictionary inputs, MachineLearningSweepJobLimits limits, MachineLearningObjective objective, IDictionary outputs, JobQueueSettings queueSettings, SamplingAlgorithm samplingAlgorithm, BinaryData searchSpace, MachineLearningTrialComponent trial) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { EarlyTermination = earlyTermination; Inputs = inputs; @@ -125,7 +125,7 @@ internal MachineLearningSweepJob(string description, IDictionary /// public IDictionary Outputs { get; set; } /// Queue settings for the job. - public QueueSettings QueueSettings { get; set; } + public JobQueueSettings QueueSettings { get; set; } /// /// [Required] The hyperparameter sampling algorithm /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrialComponent.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrialComponent.cs index 257496cc30ed..c30612891db0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrialComponent.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTrialComponent.cs @@ -34,7 +34,7 @@ public MachineLearningTrialComponent(string command, ResourceIdentifier environm /// /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , and . /// /// [Required] The ARM resource ID of the Environment specification for the job. /// Environment variables included in the job. @@ -56,7 +56,7 @@ internal MachineLearningTrialComponent(ResourceIdentifier codeId, string command /// /// Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , and . /// public MachineLearningDistributionConfiguration Distribution { get; set; } /// [Required] The ARM resource ID of the Environment specification for the job. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhook.Serialization.cs similarity index 89% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhook.Serialization.cs index a6fec1d6bc74..5f53c87168e1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhook.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Webhook : IUtf8JsonSerializable + public partial class MachineLearningWebhook : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -32,7 +32,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Webhook DeserializeWebhook(JsonElement element) + internal static MachineLearningWebhook DeserializeMachineLearningWebhook(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhook.cs similarity index 56% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhook.cs index d689f85b9fcc..70ad7b8f19b7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Webhook.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhook.cs @@ -9,20 +9,20 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// /// Webhook base - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// - public abstract partial class Webhook + public abstract partial class MachineLearningWebhook { - /// Initializes a new instance of Webhook. - protected Webhook() + /// Initializes a new instance of MachineLearningWebhook. + protected MachineLearningWebhook() { } - /// Initializes a new instance of Webhook. + /// Initializes a new instance of MachineLearningWebhook. /// Send callback on a specified notification event. /// [Required] Specifies the type of service to send a callback. - internal Webhook(string eventType, WebhookType webhookType) + internal MachineLearningWebhook(string eventType, MachineLearningWebhookType webhookType) { EventType = eventType; WebhookType = webhookType; @@ -31,6 +31,6 @@ internal Webhook(string eventType, WebhookType webhookType) /// Send callback on a specified notification event. public string EventType { get; set; } /// [Required] Specifies the type of service to send a callback. - internal WebhookType WebhookType { get; set; } + internal MachineLearningWebhookType WebhookType { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhookType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhookType.cs new file mode 100644 index 000000000000..8e04dba24e1e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWebhookType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the webhook callback service type. + internal readonly partial struct MachineLearningWebhookType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MachineLearningWebhookType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureDevOpsValue = "AzureDevOps"; + + /// AzureDevOps. + public static MachineLearningWebhookType AzureDevOps { get; } = new MachineLearningWebhookType(AzureDevOpsValue); + /// Determines if two values are the same. + public static bool operator ==(MachineLearningWebhookType left, MachineLearningWebhookType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MachineLearningWebhookType left, MachineLearningWebhookType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MachineLearningWebhookType(string value) => new MachineLearningWebhookType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MachineLearningWebhookType other && Equals(other); + /// + public bool Equals(MachineLearningWebhookType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs index e659a2d7619a..1beb1c533b26 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceData.Serialization.cs @@ -252,7 +252,7 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace Optional featureStoreSettings = default; Optional friendlyName = default; Optional hbiWorkspace = default; - Optional hubResourceId = default; + Optional hubResourceId = default; Optional imageBuildCompute = default; Optional keyVault = default; Optional> keyVaults = default; @@ -472,7 +472,11 @@ internal static MachineLearningWorkspaceData DeserializeMachineLearningWorkspace } if (property0.NameEquals("hubResourceId"u8)) { - hubResourceId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + hubResourceId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("imageBuildCompute"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs new file mode 100644 index 000000000000..01e09425d6c3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Indicates whether mlflow autologger is enabled for notebooks. + public readonly partial struct MachineLearningflowAutologger : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MachineLearningflowAutologger(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MachineLearningflowAutologger Enabled { get; } = new MachineLearningflowAutologger(EnabledValue); + /// Disabled. + public static MachineLearningflowAutologger Disabled { get; } = new MachineLearningflowAutologger(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MachineLearningflowAutologger left, MachineLearningflowAutologger right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MachineLearningflowAutologger left, MachineLearningflowAutologger right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MachineLearningflowAutologger(string value) => new MachineLearningflowAutologger(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MachineLearningflowAutologger other && Equals(other); + /// + public bool Equals(MachineLearningflowAutologger other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs new file mode 100644 index 000000000000..3d8f02dd50e6 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the state of mlflow autologger. + public readonly partial struct MachineLearningflowAutologgerState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MachineLearningflowAutologgerState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MachineLearningflowAutologgerState Enabled { get; } = new MachineLearningflowAutologgerState(EnabledValue); + /// Disabled. + public static MachineLearningflowAutologgerState Disabled { get; } = new MachineLearningflowAutologgerState(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MachineLearningflowAutologgerState left, MachineLearningflowAutologgerState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MachineLearningflowAutologgerState left, MachineLearningflowAutologgerState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MachineLearningflowAutologgerState(string value) => new MachineLearningflowAutologgerState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MachineLearningflowAutologgerState other && Equals(other); + /// + public bool Equals(MachineLearningflowAutologgerState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.Serialization.cs index c81a69b38164..bc690862c0d7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.Serialization.cs @@ -55,7 +55,7 @@ internal static ManagedNetworkSettings DeserializeManagedNetworkSettings(JsonEle } Optional isolationMode = default; Optional networkId = default; - Optional> outboundRules = default; + Optional> outboundRules = default; Optional status = default; foreach (var property in element.EnumerateObject()) { @@ -80,10 +80,10 @@ internal static ManagedNetworkSettings DeserializeManagedNetworkSettings(JsonEle outboundRules = null; continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, OutboundRule.DeserializeOutboundRule(property0.Value)); + dictionary.Add(property0.Name, MachineLearningOutboundRule.DeserializeMachineLearningOutboundRule(property0.Value)); } outboundRules = dictionary; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.cs index 2646aacfce37..7ba817e3499c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ManagedNetworkSettings.cs @@ -16,7 +16,7 @@ public partial class ManagedNetworkSettings /// Initializes a new instance of ManagedNetworkSettings. public ManagedNetworkSettings() { - OutboundRules = new ChangeTrackingDictionary(); + OutboundRules = new ChangeTrackingDictionary(); } /// Initializes a new instance of ManagedNetworkSettings. @@ -24,11 +24,11 @@ public ManagedNetworkSettings() /// /// /// Dictionary of <OutboundRule> - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// /// Status of the Provisioning for the managed network of a machine learning workspace. - internal ManagedNetworkSettings(IsolationMode? isolationMode, string networkId, IDictionary outboundRules, ManagedNetworkProvisionStatus status) + internal ManagedNetworkSettings(IsolationMode? isolationMode, string networkId, IDictionary outboundRules, ManagedNetworkProvisionStatus status) { IsolationMode = isolationMode; NetworkId = networkId; @@ -42,10 +42,10 @@ internal ManagedNetworkSettings(IsolationMode? isolationMode, string networkId, public string NetworkId { get; } /// /// Dictionary of <OutboundRule> - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// - public IDictionary OutboundRules { get; set; } + public IDictionary OutboundRules { get; set; } /// Status of the Provisioning for the managed network of a machine learning workspace. public ManagedNetworkProvisionStatus Status { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MlflowAutologger.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MlflowAutologger.cs deleted file mode 100644 index d612008a14fe..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MlflowAutologger.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Indicates whether mlflow autologger is enabled for notebooks. - public readonly partial struct MlflowAutologger : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MlflowAutologger(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static MlflowAutologger Enabled { get; } = new MlflowAutologger(EnabledValue); - /// Disabled. - public static MlflowAutologger Disabled { get; } = new MlflowAutologger(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(MlflowAutologger left, MlflowAutologger right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MlflowAutologger left, MlflowAutologger right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MlflowAutologger(string value) => new MlflowAutologger(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MlflowAutologger other && Equals(other); - /// - public bool Equals(MlflowAutologger other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.Serialization.cs similarity index 97% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.Serialization.cs index f09d44e5f240..47050f6f2ad1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class PackageRequest : IUtf8JsonSerializable + public partial class ModelPackageContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.cs similarity index 93% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.cs index 490f2de3d005..bd30ae5d04b5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageRequest.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Model package operation request properties. - public partial class PackageRequest + public partial class ModelPackageContent { - /// Initializes a new instance of PackageRequest. + /// Initializes a new instance of ModelPackageContent. /// /// [Required] Inferencing server configurations. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -22,7 +22,7 @@ public partial class PackageRequest /// /// [Required] Arm ID of the target environment to be created by package operation. /// or is null. - public PackageRequest(InferencingServer inferencingServer, string targetEnvironmentId) + public ModelPackageContent(InferencingServer inferencingServer, string targetEnvironmentId) { Argument.AssertNotNull(inferencingServer, nameof(inferencingServer)); Argument.AssertNotNull(targetEnvironmentId, nameof(targetEnvironmentId)); @@ -37,7 +37,7 @@ public PackageRequest(InferencingServer inferencingServer, string targetEnvironm /// /// Base environment to start with. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// The available derived classes include . /// public BaseEnvironmentSource BaseEnvironmentSource { get; set; } /// Collection of environment variables. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.Serialization.cs similarity index 93% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.Serialization.cs index fdf987c9929b..2277dc856f51 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class PackageResponse + public partial class ModelPackageResult { - internal static PackageResponse DeserializePackageResponse(JsonElement element) + internal static ModelPackageResult DeserializeModelPackageResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -147,7 +147,7 @@ internal static PackageResponse DeserializePackageResponse(JsonElement element) continue; } } - return new PackageResponse(baseEnvironmentSource.Value, buildId.Value, Optional.ToNullable(buildState), Optional.ToDictionary(environmentVariables), inferencingServer.Value, Optional.ToList(inputs), logUrl.Value, modelConfiguration.Value, Optional.ToDictionary(tags), targetEnvironmentId.Value); + return new ModelPackageResult(baseEnvironmentSource.Value, buildId.Value, Optional.ToNullable(buildState), Optional.ToDictionary(environmentVariables), inferencingServer.Value, Optional.ToList(inputs), logUrl.Value, modelConfiguration.Value, Optional.ToDictionary(tags), targetEnvironmentId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.cs similarity index 88% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.cs index 7dbb3283d235..3379a3ec8292 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageResponse.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.cs @@ -12,21 +12,21 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Package response returned after async package operation completes successfully. - public partial class PackageResponse + public partial class ModelPackageResult { - /// Initializes a new instance of PackageResponse. - internal PackageResponse() + /// Initializes a new instance of ModelPackageResult. + internal ModelPackageResult() { EnvironmentVariables = new ChangeTrackingDictionary(); Inputs = new ChangeTrackingList(); Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of PackageResponse. + /// Initializes a new instance of ModelPackageResult. /// /// Base environment to start with. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// The available derived classes include . /// /// Build id of the image build operation. /// Build state of the image build operation. @@ -41,7 +41,7 @@ internal PackageResponse() /// Model configuration including the mount mode. /// Tag dictionary. Tags can be added, removed, and updated. /// Asset ID of the target environment created by package operation. - internal PackageResponse(BaseEnvironmentSource baseEnvironmentSource, string buildId, PackageBuildState? buildState, IReadOnlyDictionary environmentVariables, InferencingServer inferencingServer, IReadOnlyList inputs, Uri logUri, ModelConfiguration modelConfiguration, IReadOnlyDictionary tags, string targetEnvironmentId) + internal ModelPackageResult(BaseEnvironmentSource baseEnvironmentSource, string buildId, PackageBuildState? buildState, IReadOnlyDictionary environmentVariables, InferencingServer inferencingServer, IReadOnlyList inputs, Uri logUri, ModelConfiguration modelConfiguration, IReadOnlyDictionary tags, string targetEnvironmentId) { BaseEnvironmentSource = baseEnvironmentSource; BuildId = buildId; @@ -58,7 +58,7 @@ internal PackageResponse(BaseEnvironmentSource baseEnvironmentSource, string bui /// /// Base environment to start with. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// The available derived classes include . /// public BaseEnvironmentSource BaseEnvironmentSource { get; } /// Build id of the image build operation. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MountBindOptions.Serialization.cs similarity index 86% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MountBindOptions.Serialization.cs index 2ab5b1eee140..3dc871dfb64d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MountBindOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class BindOptions : IUtf8JsonSerializable + public partial class MountBindOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -27,12 +27,12 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNull("propagation"); } } - if (Optional.IsDefined(CreateHostPath)) + if (Optional.IsDefined(DoesCreateHostPath)) { - if (CreateHostPath != null) + if (DoesCreateHostPath != null) { writer.WritePropertyName("createHostPath"u8); - writer.WriteBooleanValue(CreateHostPath.Value); + writer.WriteBooleanValue(DoesCreateHostPath.Value); } else { @@ -54,7 +54,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BindOptions DeserializeBindOptions(JsonElement element) + internal static MountBindOptions DeserializeMountBindOptions(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -96,7 +96,7 @@ internal static BindOptions DeserializeBindOptions(JsonElement element) continue; } } - return new BindOptions(propagation.Value, Optional.ToNullable(createHostPath), selinux.Value); + return new MountBindOptions(propagation.Value, Optional.ToNullable(createHostPath), selinux.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MountBindOptions.cs similarity index 55% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MountBindOptions.cs index 743e446aeda3..199ec7fbdbc0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BindOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MountBindOptions.cs @@ -7,29 +7,29 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The BindOptions. - public partial class BindOptions + /// The MountBindOptions. + public partial class MountBindOptions { - /// Initializes a new instance of BindOptions. - public BindOptions() + /// Initializes a new instance of MountBindOptions. + public MountBindOptions() { } - /// Initializes a new instance of BindOptions. + /// Initializes a new instance of MountBindOptions. /// Type of Bind Option. - /// Indicate whether to create host path. + /// Indicate whether to create host path. /// Mention the selinux options. - internal BindOptions(string propagation, bool? createHostPath, string selinux) + internal MountBindOptions(string propagation, bool? doesCreateHostPath, string selinux) { Propagation = propagation; - CreateHostPath = createHostPath; + DoesCreateHostPath = doesCreateHostPath; Selinux = selinux; } /// Type of Bind Option. public string Propagation { get; set; } /// Indicate whether to create host path. - public bool? CreateHostPath { get; set; } + public bool? DoesCreateHostPath { get; set; } /// Mention the selinux options. public string Selinux { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MultiSelect.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MultiSelect.cs deleted file mode 100644 index 644a4f943188..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MultiSelect.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Whether multiSelect is enabled. - public readonly partial struct MultiSelect : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MultiSelect(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static MultiSelect Enabled { get; } = new MultiSelect(EnabledValue); - /// Disabled. - public static MultiSelect Disabled { get; } = new MultiSelect(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(MultiSelect left, MultiSelect right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MultiSelect left, MultiSelect right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MultiSelect(string value) => new MultiSelect(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MultiSelect other && Equals(other); - /// - public bool Equals(MultiSelect other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NetworkingRuleAction.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NetworkingRuleAction.cs new file mode 100644 index 000000000000..42e6de326713 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NetworkingRuleAction.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// The action enum for networking rule. + public readonly partial struct NetworkingRuleAction : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NetworkingRuleAction(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllowValue = "Allow"; + private const string DenyValue = "Deny"; + + /// Allow. + public static NetworkingRuleAction Allow { get; } = new NetworkingRuleAction(AllowValue); + /// Deny. + public static NetworkingRuleAction Deny { get; } = new NetworkingRuleAction(DenyValue); + /// Determines if two values are the same. + public static bool operator ==(NetworkingRuleAction left, NetworkingRuleAction right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkingRuleAction left, NetworkingRuleAction right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NetworkingRuleAction(string value) => new NetworkingRuleAction(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkingRuleAction other && Equals(other); + /// + public bool Equals(NetworkingRuleAction other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.Serialization.cs index dc673c22929b..3cff01d1d381 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.Serialization.cs @@ -79,7 +79,7 @@ internal static NotificationSetting DeserializeNotificationSetting(JsonElement e } Optional> emailOn = default; Optional> emails = default; - Optional> webhooks = default; + Optional> webhooks = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("emailOn"u8)) @@ -119,10 +119,10 @@ internal static NotificationSetting DeserializeNotificationSetting(JsonElement e webhooks = null; continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, Webhook.DeserializeWebhook(property0.Value)); + dictionary.Add(property0.Name, MachineLearningWebhook.DeserializeMachineLearningWebhook(property0.Value)); } webhooks = dictionary; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs index be697d64e55c..1edf7dddc6bd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs @@ -18,7 +18,7 @@ public NotificationSetting() { EmailOn = new ChangeTrackingList(); Emails = new ChangeTrackingList(); - Webhooks = new ChangeTrackingDictionary(); + Webhooks = new ChangeTrackingDictionary(); } /// Initializes a new instance of NotificationSetting. @@ -26,10 +26,10 @@ public NotificationSetting() /// This is the email recipient list which has a limitation of 499 characters in total concat with comma separator. /// /// Send webhook callback to a service. Key is a user-provided name for the webhook. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// - internal NotificationSetting(IList emailOn, IList emails, IDictionary webhooks) + internal NotificationSetting(IList emailOn, IList emails, IDictionary webhooks) { EmailOn = emailOn; Emails = emails; @@ -42,9 +42,9 @@ internal NotificationSetting(IList emailOn, IList Emails { get; set; } /// /// Send webhook callback to a service. Key is a user-provided name for the webhook. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// - public IDictionary Webhooks { get; set; } + public IDictionary Webhooks { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleCategory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleCategory.cs new file mode 100644 index 000000000000..4da832e1d42a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleCategory.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Category of a managed network Outbound Rule of a machine learning workspace. + public readonly partial struct OutboundRuleCategory : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public OutboundRuleCategory(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RequiredValue = "Required"; + private const string RecommendedValue = "Recommended"; + private const string UserDefinedValue = "UserDefined"; + + /// Required. + public static OutboundRuleCategory Required { get; } = new OutboundRuleCategory(RequiredValue); + /// Recommended. + public static OutboundRuleCategory Recommended { get; } = new OutboundRuleCategory(RecommendedValue); + /// UserDefined. + public static OutboundRuleCategory UserDefined { get; } = new OutboundRuleCategory(UserDefinedValue); + /// Determines if two values are the same. + public static bool operator ==(OutboundRuleCategory left, OutboundRuleCategory right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(OutboundRuleCategory left, OutboundRuleCategory right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator OutboundRuleCategory(string value) => new OutboundRuleCategory(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is OutboundRuleCategory other && Equals(other); + /// + public bool Equals(OutboundRuleCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.Serialization.cs index f488270e7340..51690f7438ea 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.Serialization.cs @@ -21,7 +21,7 @@ internal static OutboundRuleListResult DeserializeOutboundRuleListResult(JsonEle return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,10 +35,10 @@ internal static OutboundRuleListResult DeserializeOutboundRuleListResult(JsonEle { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(item)); + array.Add(MachineLearningOutboundRuleBasicData.DeserializeMachineLearningOutboundRuleBasicData(item)); } value = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs index 6519d2b1de09..e8f8016ddc2c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs @@ -17,13 +17,13 @@ internal partial class OutboundRuleListResult /// Initializes a new instance of OutboundRuleListResult. internal OutboundRuleListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of OutboundRuleListResult. /// The link to the next page constructed using the continuationToken. If null, there are no additional pages. /// 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. - internal OutboundRuleListResult(string nextLink, IReadOnlyList value) + internal OutboundRuleListResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal OutboundRuleListResult(string nextLink, IReadOnlyList The link to the next page constructed using the continuationToken. If null, there are no additional pages. public string NextLink { get; } /// 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. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleStatus.cs new file mode 100644 index 000000000000..4ff196e9491d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleStatus.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of a managed network Outbound Rule of a machine learning workspace. + public readonly partial struct OutboundRuleStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public OutboundRuleStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InactiveValue = "Inactive"; + private const string ActiveValue = "Active"; + + /// Inactive. + public static OutboundRuleStatus Inactive { get; } = new OutboundRuleStatus(InactiveValue); + /// Active. + public static OutboundRuleStatus Active { get; } = new OutboundRuleStatus(ActiveValue); + /// Determines if two values are the same. + public static bool operator ==(OutboundRuleStatus left, OutboundRuleStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(OutboundRuleStatus left, OutboundRuleStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator OutboundRuleStatus(string value) => new OutboundRuleStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is OutboundRuleStatus other && Equals(other); + /// + public bool Equals(OutboundRuleStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleType.cs new file mode 100644 index 000000000000..0e84f22f0a07 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Type of a managed network Outbound Rule of a machine learning workspace. + internal readonly partial struct OutboundRuleType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public OutboundRuleType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FqdnValue = "FQDN"; + private const string PrivateEndpointValue = "PrivateEndpoint"; + private const string ServiceTagValue = "ServiceTag"; + + /// FQDN. + public static OutboundRuleType Fqdn { get; } = new OutboundRuleType(FqdnValue); + /// PrivateEndpoint. + public static OutboundRuleType PrivateEndpoint { get; } = new OutboundRuleType(PrivateEndpointValue); + /// ServiceTag. + public static OutboundRuleType ServiceTag { get; } = new OutboundRuleType(ServiceTagValue); + /// Determines if two values are the same. + public static bool operator ==(OutboundRuleType left, OutboundRuleType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(OutboundRuleType left, OutboundRuleType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator OutboundRuleType(string value) => new OutboundRuleType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is OutboundRuleType other && Equals(other); + /// + public bool Equals(OutboundRuleType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.Serialization.cs index 5a4676629d5d..30635c3bf5b5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.Serialization.cs @@ -38,7 +38,7 @@ internal static PackageInputPathId DeserializePackageInputPathId(JsonElement ele { return null; } - Optional resourceId = default; + Optional resourceId = default; InputPathType inputPathType = default; foreach (var property in element.EnumerateObject()) { @@ -49,7 +49,7 @@ internal static PackageInputPathId DeserializePackageInputPathId(JsonElement ele resourceId = null; continue; } - resourceId = property.Value.GetString(); + resourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("inputPathType"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.cs index a9072e18a264..0d4ad2564998 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PackageInputPathId.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// Package input path specified with a resource id. @@ -19,13 +21,13 @@ public PackageInputPathId() /// Initializes a new instance of PackageInputPathId. /// [Required] Input path type for package inputs. /// Input resource id. - internal PackageInputPathId(InputPathType inputPathType, string resourceId) : base(inputPathType) + internal PackageInputPathId(InputPathType inputPathType, ResourceIdentifier resourceId) : base(inputPathType) { ResourceId = resourceId; InputPathType = inputPathType; } /// Input resource id. - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.cs index f9531cdab2a6..d4209216ab1f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialJobBase.cs @@ -21,10 +21,10 @@ public PartialJobBase() internal PartialNotificationSetting NotificationSetting { get; set; } /// /// Send webhook callback to a service. Key is a user-provided name for the webhook. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// - public IDictionary NotificationSettingWebhooks + public IDictionary NotificationSettingWebhooks { get => NotificationSetting is null ? default : NotificationSetting.Webhooks; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.cs index dbc1e6c99dcf..5ab6d65110b2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PartialNotificationSetting.cs @@ -16,14 +16,14 @@ internal partial class PartialNotificationSetting /// Initializes a new instance of PartialNotificationSetting. public PartialNotificationSetting() { - Webhooks = new ChangeTrackingDictionary(); + Webhooks = new ChangeTrackingDictionary(); } /// /// Send webhook callback to a service. Key is a user-provided name for the webhook. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include . /// - public IDictionary Webhooks { get; set; } + public IDictionary Webhooks { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointBase.Serialization.cs similarity index 60% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointBase.Serialization.cs index df70f243d43c..a8ed691c0558 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointBase.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class PrivateEndpoint : IUtf8JsonSerializable + public partial class PrivateEndpointBase : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -18,22 +18,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static PrivateEndpoint DeserializePrivateEndpoint(JsonElement element) + internal static PrivateEndpointBase DeserializePrivateEndpointBase(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional id = default; + Optional id = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } } - return new PrivateEndpoint(id.Value); + return new PrivateEndpointBase(id.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointBase.cs similarity index 71% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointBase.cs index 58ad9036dcb1..4a615a9e5979 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpoint.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointBase.cs @@ -5,24 +5,26 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// The Private Endpoint resource. - public partial class PrivateEndpoint + public partial class PrivateEndpointBase { - /// Initializes a new instance of PrivateEndpoint. - public PrivateEndpoint() + /// Initializes a new instance of PrivateEndpointBase. + public PrivateEndpointBase() { } - /// Initializes a new instance of PrivateEndpoint. + /// Initializes a new instance of PrivateEndpointBase. /// The ARM identifier for Private Endpoint. - internal PrivateEndpoint(string id) + internal PrivateEndpointBase(ResourceIdentifier id) { Id = id; } /// The ARM identifier for Private Endpoint. - public string Id { get; } + public ResourceIdentifier Id { get; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.Serialization.cs index 83141bac23b7..e4f7788fd90d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.Serialization.cs @@ -46,7 +46,7 @@ internal static PrivateEndpointDestination DeserializePrivateEndpointDestination } Optional serviceResourceId = default; Optional sparkEnabled = default; - Optional sparkStatus = default; + Optional sparkStatus = default; Optional subresourceTarget = default; foreach (var property in element.EnumerateObject()) { @@ -70,7 +70,7 @@ internal static PrivateEndpointDestination DeserializePrivateEndpointDestination { continue; } - sparkStatus = new RuleStatus(property.Value.GetString()); + sparkStatus = new OutboundRuleStatus(property.Value.GetString()); continue; } if (property.NameEquals("subresourceTarget"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.cs index dbd3ea8a3e52..8d9eadfc609f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointDestination.cs @@ -20,7 +20,7 @@ public PrivateEndpointDestination() /// /// Type of a managed network Outbound Rule of a machine learning workspace. /// - internal PrivateEndpointDestination(string serviceResourceId, bool? sparkEnabled, RuleStatus? sparkStatus, string subresourceTarget) + internal PrivateEndpointDestination(string serviceResourceId, bool? sparkEnabled, OutboundRuleStatus? sparkStatus, string subresourceTarget) { ServiceResourceId = serviceResourceId; SparkEnabled = sparkEnabled; @@ -33,7 +33,7 @@ internal PrivateEndpointDestination(string serviceResourceId, bool? sparkEnabled /// Gets or sets the spark enabled. public bool? SparkEnabled { get; set; } /// Type of a managed network Outbound Rule of a machine learning workspace. - public RuleStatus? SparkStatus { get; set; } + public OutboundRuleStatus? SparkStatus { get; set; } /// Gets or sets the subresource target. public string SubresourceTarget { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.Serialization.cs index ad9b4da44adc..09b54ab03cea 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.Serialization.cs @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Status.Value.ToString()); } writer.WritePropertyName("type"u8); - writer.WriteStringValue(RuleType.ToString()); + writer.WriteStringValue(OutboundRuleType.ToString()); writer.WriteEndObject(); } @@ -42,9 +42,9 @@ internal static PrivateEndpointOutboundRule DeserializePrivateEndpointOutboundRu return null; } Optional destination = default; - Optional category = default; - Optional status = default; - RuleType type = default; + Optional category = default; + Optional status = default; + OutboundRuleType type = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("destination"u8)) @@ -62,7 +62,7 @@ internal static PrivateEndpointOutboundRule DeserializePrivateEndpointOutboundRu { continue; } - category = new RuleCategory(property.Value.GetString()); + category = new OutboundRuleCategory(property.Value.GetString()); continue; } if (property.NameEquals("status"u8)) @@ -71,12 +71,12 @@ internal static PrivateEndpointOutboundRule DeserializePrivateEndpointOutboundRu { continue; } - status = new RuleStatus(property.Value.GetString()); + status = new OutboundRuleStatus(property.Value.GetString()); continue; } if (property.NameEquals("type"u8)) { - type = new RuleType(property.Value.GetString()); + type = new OutboundRuleType(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.cs index c66b0c6e1473..e8b49c7b5303 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointOutboundRule.cs @@ -8,23 +8,23 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Private Endpoint Outbound Rule for the managed network of a machine learning workspace. - public partial class PrivateEndpointOutboundRule : OutboundRule + public partial class PrivateEndpointOutboundRule : MachineLearningOutboundRule { /// Initializes a new instance of PrivateEndpointOutboundRule. public PrivateEndpointOutboundRule() { - RuleType = RuleType.PrivateEndpoint; + OutboundRuleType = OutboundRuleType.PrivateEndpoint; } /// Initializes a new instance of PrivateEndpointOutboundRule. /// Category of a managed network Outbound Rule of a machine learning workspace. /// Type of a managed network Outbound Rule of a machine learning workspace. - /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. /// Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. - internal PrivateEndpointOutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType, PrivateEndpointDestination destination) : base(category, status, ruleType) + internal PrivateEndpointOutboundRule(OutboundRuleCategory? category, OutboundRuleStatus? status, OutboundRuleType outboundRuleType, PrivateEndpointDestination destination) : base(category, status, outboundRuleType) { Destination = destination; - RuleType = ruleType; + OutboundRuleType = outboundRuleType; } /// Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Protocol.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Protocol.cs deleted file mode 100644 index c2fff38e36df..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Protocol.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Protocol over which communication will happen over this endpoint. - public readonly partial struct Protocol : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public Protocol(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string TcpValue = "tcp"; - private const string UdpValue = "udp"; - private const string HttpValue = "http"; - - /// tcp. - public static Protocol Tcp { get; } = new Protocol(TcpValue); - /// udp. - public static Protocol Udp { get; } = new Protocol(UdpValue); - /// http. - public static Protocol Http { get; } = new Protocol(HttpValue); - /// Determines if two values are the same. - public static bool operator ==(Protocol left, Protocol right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Protocol left, Protocol right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator Protocol(string value) => new Protocol(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Protocol other && Equals(other); - /// - public bool Equals(Protocol other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RayDistributionConfiguration.Serialization.cs similarity index 93% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RayDistributionConfiguration.Serialization.cs index 2456cf066836..6e23095dc160 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RayDistributionConfiguration.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class Ray : IUtf8JsonSerializable + public partial class RayDistributionConfiguration : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -92,7 +92,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Ray DeserializeRay(JsonElement element) + internal static RayDistributionConfiguration DeserializeRayDistributionConfiguration(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -173,7 +173,7 @@ internal static Ray DeserializeRay(JsonElement element) continue; } } - return new Ray(distributionType, address.Value, Optional.ToNullable(dashboardPort), headNodeAdditionalArgs.Value, Optional.ToNullable(includeDashboard), Optional.ToNullable(port), workerNodeAdditionalArgs.Value); + return new RayDistributionConfiguration(distributionType, address.Value, Optional.ToNullable(dashboardPort), headNodeAdditionalArgs.Value, Optional.ToNullable(includeDashboard), Optional.ToNullable(port), workerNodeAdditionalArgs.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RayDistributionConfiguration.cs similarity index 79% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RayDistributionConfiguration.cs index f0a3ab027a6f..d398b5daedb1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/Ray.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RayDistributionConfiguration.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Ray distribution configuration. - public partial class Ray : MachineLearningDistributionConfiguration + public partial class RayDistributionConfiguration : MachineLearningDistributionConfiguration { - /// Initializes a new instance of Ray. - public Ray() + /// Initializes a new instance of RayDistributionConfiguration. + public RayDistributionConfiguration() { DistributionType = DistributionType.Ray; } - /// Initializes a new instance of Ray. + /// Initializes a new instance of RayDistributionConfiguration. /// [Required] Specifies the type of distribution framework. /// The address of Ray head node. /// The port to bind the dashboard server to. @@ -24,7 +24,7 @@ public Ray() /// Provide this argument to start the Ray dashboard GUI. /// The port of the head ray process. /// Additional arguments passed to ray start in worker node. - internal Ray(DistributionType distributionType, string address, int? dashboardPort, string headNodeAdditionalArgs, bool? includeDashboard, int? port, string workerNodeAdditionalArgs) : base(distributionType) + internal RayDistributionConfiguration(DistributionType distributionType, string address, int? dashboardPort, string headNodeAdditionalArgs, bool? includeDashboard, int? port, string workerNodeAdditionalArgs) : base(distributionType) { Address = address; DashboardPort = dashboardPort; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.Serialization.cs similarity index 90% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.Serialization.cs index 62bf8f2fdc5f..a6dc589ecb4a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class AcrDetails : IUtf8JsonSerializable + public partial class RegistryAcrDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -42,7 +42,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AcrDetails DeserializeAcrDetails(JsonElement element) + internal static RegistryAcrDetails DeserializeRegistryAcrDetails(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -73,7 +73,7 @@ internal static AcrDetails DeserializeAcrDetails(JsonElement element) continue; } } - return new AcrDetails(systemCreatedAcrAccount.Value, userCreatedAcrAccount.Value); + return new RegistryAcrDetails(systemCreatedAcrAccount.Value, userCreatedAcrAccount.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.cs similarity index 81% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.cs index 100cc78dc205..5aa2eca5a995 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AcrDetails.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.cs @@ -5,20 +5,22 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// Details of ACR account to be used for the Registry. - public partial class AcrDetails + public partial class RegistryAcrDetails { - /// Initializes a new instance of AcrDetails. - public AcrDetails() + /// Initializes a new instance of RegistryAcrDetails. + public RegistryAcrDetails() { } - /// Initializes a new instance of AcrDetails. + /// Initializes a new instance of RegistryAcrDetails. /// Details of system created ACR account to be used for the Registry. /// Details of user created ACR account to be used for the Registry. Not supported in most cases and will throw 400 error if provided. - internal AcrDetails(SystemCreatedAcrAccount systemCreatedAcrAccount, UserCreatedAcrAccount userCreatedAcrAccount) + internal RegistryAcrDetails(SystemCreatedAcrAccount systemCreatedAcrAccount, UserCreatedAcrAccount userCreatedAcrAccount) { SystemCreatedAcrAccount = systemCreatedAcrAccount; UserCreatedAcrAccount = userCreatedAcrAccount; @@ -32,7 +34,7 @@ internal AcrDetails(SystemCreatedAcrAccount systemCreatedAcrAccount, UserCreated /// 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}" /// - public string ArmResourceId + public ResourceIdentifier ArmResourceId { get => UserCreatedAcrAccount is null ? default : UserCreatedAcrAccount.ArmResourceId; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAssetProvisioningState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAssetProvisioningState.cs new file mode 100644 index 000000000000..a24593c3ebd9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAssetProvisioningState.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Provisioning state of registry asset. + public readonly partial struct RegistryAssetProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RegistryAssetProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string CreatingValue = "Creating"; + private const string UpdatingValue = "Updating"; + private const string DeletingValue = "Deleting"; + + /// Succeeded. + public static RegistryAssetProvisioningState Succeeded { get; } = new RegistryAssetProvisioningState(SucceededValue); + /// Failed. + public static RegistryAssetProvisioningState Failed { get; } = new RegistryAssetProvisioningState(FailedValue); + /// Canceled. + public static RegistryAssetProvisioningState Canceled { get; } = new RegistryAssetProvisioningState(CanceledValue); + /// Creating. + public static RegistryAssetProvisioningState Creating { get; } = new RegistryAssetProvisioningState(CreatingValue); + /// Updating. + public static RegistryAssetProvisioningState Updating { get; } = new RegistryAssetProvisioningState(UpdatingValue); + /// Deleting. + public static RegistryAssetProvisioningState Deleting { get; } = new RegistryAssetProvisioningState(DeletingValue); + /// Determines if two values are the same. + public static bool operator ==(RegistryAssetProvisioningState left, RegistryAssetProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RegistryAssetProvisioningState left, RegistryAssetProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RegistryAssetProvisioningState(string value) => new RegistryAssetProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RegistryAssetProvisioningState other && Equals(other); + /// + public bool Equals(RegistryAssetProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpoint.Serialization.cs similarity index 69% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpoint.Serialization.cs index 7262178eac8b..6da0bbbe9a9a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpoint.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class PrivateEndpointResource : IUtf8JsonSerializable + public partial class RegistryPrivateEndpoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,14 +30,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static PrivateEndpointResource DeserializePrivateEndpointResource(JsonElement element) + internal static RegistryPrivateEndpoint DeserializeRegistryPrivateEndpoint(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional subnetArmId = default; - Optional id = default; + Optional subnetArmId = default; + Optional id = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("subnetArmId"u8)) @@ -47,16 +47,20 @@ internal static PrivateEndpointResource DeserializePrivateEndpointResource(JsonE subnetArmId = null; continue; } - subnetArmId = property.Value.GetString(); + subnetArmId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("id"u8)) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } } - return new PrivateEndpointResource(id.Value, subnetArmId.Value); + return new RegistryPrivateEndpoint(id.Value, subnetArmId.Value); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpoint.cs similarity index 57% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpoint.cs index 2842de9674b4..a53d2a95286a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PrivateEndpointResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpoint.cs @@ -5,25 +5,27 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// The PE network resource that is linked to this PE connection. - public partial class PrivateEndpointResource : PrivateEndpoint + public partial class RegistryPrivateEndpoint : PrivateEndpointBase { - /// Initializes a new instance of PrivateEndpointResource. - public PrivateEndpointResource() + /// Initializes a new instance of RegistryPrivateEndpoint. + public RegistryPrivateEndpoint() { } - /// Initializes a new instance of PrivateEndpointResource. + /// Initializes a new instance of RegistryPrivateEndpoint. /// The ARM identifier for Private Endpoint. /// The subnetId that the private endpoint is connected to. - internal PrivateEndpointResource(string id, string subnetArmId) : base(id) + internal RegistryPrivateEndpoint(ResourceIdentifier id, ResourceIdentifier subnetArmId) : base(id) { SubnetArmId = subnetArmId; } /// The subnetId that the private endpoint is connected to. - public string SubnetArmId { get; set; } + public ResourceIdentifier SubnetArmId { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.Serialization.cs index caa664e82ef0..5b0275705456 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.Serialization.cs @@ -105,10 +105,10 @@ internal static RegistryPrivateEndpointConnection DeserializeRegistryPrivateEndp { return null; } - Optional id = default; + Optional id = default; Optional location = default; Optional> groupIds = default; - Optional privateEndpoint = default; + Optional privateEndpoint = default; Optional privateLinkServiceConnectionState = default; Optional provisioningState = default; foreach (var property in element.EnumerateObject()) @@ -120,7 +120,7 @@ internal static RegistryPrivateEndpointConnection DeserializeRegistryPrivateEndp id = null; continue; } - id = property.Value.GetString(); + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("location"u8)) @@ -164,7 +164,7 @@ internal static RegistryPrivateEndpointConnection DeserializeRegistryPrivateEndp privateEndpoint = null; continue; } - privateEndpoint = PrivateEndpointResource.DeserializePrivateEndpointResource(property0.Value); + privateEndpoint = RegistryPrivateEndpoint.DeserializeRegistryPrivateEndpoint(property0.Value); continue; } if (property0.NameEquals("privateLinkServiceConnectionState"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs index 0bb4d7c22ea8..d943869aa73d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs @@ -29,7 +29,7 @@ public RegistryPrivateEndpointConnection() /// The PE network resource that is linked to this PE connection. /// The connection state. /// One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null. - internal RegistryPrivateEndpointConnection(string id, AzureLocation? location, IList groupIds, PrivateEndpointResource privateEndpoint, RegistryPrivateLinkServiceConnectionState privateLinkServiceConnectionState, string provisioningState) + internal RegistryPrivateEndpointConnection(ResourceIdentifier id, AzureLocation? location, IList groupIds, RegistryPrivateEndpoint privateEndpoint, RegistryPrivateLinkServiceConnectionState privateLinkServiceConnectionState, string provisioningState) { Id = id; Location = location; @@ -43,13 +43,13 @@ internal RegistryPrivateEndpointConnection(string id, AzureLocation? location, I /// This is the private endpoint connection name created on SRP /// Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/privateEndpointConnections/{peConnectionName} /// - public string Id { get; set; } + public ResourceIdentifier Id { get; set; } /// Same as workspace location. public AzureLocation? Location { get; set; } /// The group ids. public IList GroupIds { get; set; } /// The PE network resource that is linked to this PE connection. - public PrivateEndpointResource PrivateEndpoint { get; set; } + public RegistryPrivateEndpoint PrivateEndpoint { get; set; } /// The connection state. public RegistryPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } /// One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.Serialization.cs index 2a3d3ce614f5..03a6fef22c80 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.Serialization.cs @@ -71,7 +71,7 @@ internal static RegistryRegionArmDetails DeserializeRegistryRegionArmDetails(Jso { return null; } - Optional> acrDetails = default; + Optional> acrDetails = default; Optional location = default; Optional> storageAccountDetails = default; foreach (var property in element.EnumerateObject()) @@ -83,10 +83,10 @@ internal static RegistryRegionArmDetails DeserializeRegistryRegionArmDetails(Jso acrDetails = null; continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(Models.AcrDetails.DeserializeAcrDetails(item)); + array.Add(RegistryAcrDetails.DeserializeRegistryAcrDetails(item)); } acrDetails = array; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs index 5eda876039f7..6c2806add2fc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs @@ -16,7 +16,7 @@ public partial class RegistryRegionArmDetails /// Initializes a new instance of RegistryRegionArmDetails. public RegistryRegionArmDetails() { - AcrDetails = new ChangeTrackingList(); + AcrDetails = new ChangeTrackingList(); StorageAccountDetails = new ChangeTrackingList(); } @@ -24,7 +24,7 @@ public RegistryRegionArmDetails() /// List of ACR accounts. /// The location where the registry exists. /// List of storage accounts. - internal RegistryRegionArmDetails(IList acrDetails, AzureLocation? location, IList storageAccountDetails) + internal RegistryRegionArmDetails(IList acrDetails, AzureLocation? location, IList storageAccountDetails) { AcrDetails = acrDetails; Location = location; @@ -32,7 +32,7 @@ internal RegistryRegionArmDetails(IList acrDetails, AzureLocation? l } /// List of ACR accounts. - public IList AcrDetails { get; set; } + public IList AcrDetails { get; set; } /// The location where the registry exists. public AzureLocation? Location { get; set; } /// List of storage accounts. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleAction.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleAction.cs deleted file mode 100644 index 42544e675545..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleAction.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The action enum for networking rule. - public readonly partial struct RuleAction : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RuleAction(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AllowValue = "Allow"; - private const string DenyValue = "Deny"; - - /// Allow. - public static RuleAction Allow { get; } = new RuleAction(AllowValue); - /// Deny. - public static RuleAction Deny { get; } = new RuleAction(DenyValue); - /// Determines if two values are the same. - public static bool operator ==(RuleAction left, RuleAction right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RuleAction left, RuleAction right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RuleAction(string value) => new RuleAction(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RuleAction other && Equals(other); - /// - public bool Equals(RuleAction other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleCategory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleCategory.cs deleted file mode 100644 index d5c2d1c2a530..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleCategory.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Category of a managed network Outbound Rule of a machine learning workspace. - public readonly partial struct RuleCategory : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RuleCategory(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string RequiredValue = "Required"; - private const string RecommendedValue = "Recommended"; - private const string UserDefinedValue = "UserDefined"; - - /// Required. - public static RuleCategory Required { get; } = new RuleCategory(RequiredValue); - /// Recommended. - public static RuleCategory Recommended { get; } = new RuleCategory(RecommendedValue); - /// UserDefined. - public static RuleCategory UserDefined { get; } = new RuleCategory(UserDefinedValue); - /// Determines if two values are the same. - public static bool operator ==(RuleCategory left, RuleCategory right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RuleCategory left, RuleCategory right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RuleCategory(string value) => new RuleCategory(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RuleCategory other && Equals(other); - /// - public bool Equals(RuleCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleStatus.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleStatus.cs deleted file mode 100644 index 4ba4e77818c1..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleStatus.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Type of a managed network Outbound Rule of a machine learning workspace. - public readonly partial struct RuleStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RuleStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InactiveValue = "Inactive"; - private const string ActiveValue = "Active"; - - /// Inactive. - public static RuleStatus Inactive { get; } = new RuleStatus(InactiveValue); - /// Active. - public static RuleStatus Active { get; } = new RuleStatus(ActiveValue); - /// Determines if two values are the same. - public static bool operator ==(RuleStatus left, RuleStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RuleStatus left, RuleStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RuleStatus(string value) => new RuleStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RuleStatus other && Equals(other); - /// - public bool Equals(RuleStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleType.cs deleted file mode 100644 index 10c600fa9b7c..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RuleType.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Type of a managed network Outbound Rule of a machine learning workspace. - internal readonly partial struct RuleType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RuleType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string FqdnValue = "FQDN"; - private const string PrivateEndpointValue = "PrivateEndpoint"; - private const string ServiceTagValue = "ServiceTag"; - - /// FQDN. - public static RuleType Fqdn { get; } = new RuleType(FqdnValue); - /// PrivateEndpoint. - public static RuleType PrivateEndpoint { get; } = new RuleType(PrivateEndpointValue); - /// ServiceTag. - public static RuleType ServiceTag { get; } = new RuleType(ServiceTagValue); - /// Determines if two values are the same. - public static bool operator ==(RuleType left, RuleType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RuleType left, RuleType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RuleType(string value) => new RuleType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RuleType other && Equals(other); - /// - public bool Equals(RuleType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.Serialization.cs index 9066a5293482..884efb2b4188 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.Serialization.cs @@ -45,7 +45,7 @@ internal static ServiceTagDestination DeserializeServiceTagDestination(JsonEleme { return null; } - Optional action = default; + Optional action = default; Optional> addressPrefixes = default; Optional portRanges = default; Optional protocol = default; @@ -58,7 +58,7 @@ internal static ServiceTagDestination DeserializeServiceTagDestination(JsonEleme { continue; } - action = new RuleAction(property.Value.GetString()); + action = new NetworkingRuleAction(property.Value.GetString()); continue; } if (property.NameEquals("addressPrefixes"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs index 5411256b2ba9..906ea63d899b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs @@ -25,7 +25,7 @@ public ServiceTagDestination() /// /// /// - internal ServiceTagDestination(RuleAction? action, IReadOnlyList addressPrefixes, string portRanges, string protocol, string serviceTag) + internal ServiceTagDestination(NetworkingRuleAction? action, IReadOnlyList addressPrefixes, string portRanges, string protocol, string serviceTag) { Action = action; AddressPrefixes = addressPrefixes; @@ -35,7 +35,7 @@ internal ServiceTagDestination(RuleAction? action, IReadOnlyList address } /// The action enum for networking rule. - public RuleAction? Action { get; set; } + public NetworkingRuleAction? Action { get; set; } /// Optional, if provided, the ServiceTag property will be ignored. public IReadOnlyList AddressPrefixes { get; } /// Gets or sets the port ranges. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.Serialization.cs index 243ecf20779c..83982032934b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.Serialization.cs @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Status.Value.ToString()); } writer.WritePropertyName("type"u8); - writer.WriteStringValue(RuleType.ToString()); + writer.WriteStringValue(OutboundRuleType.ToString()); writer.WriteEndObject(); } @@ -42,9 +42,9 @@ internal static ServiceTagOutboundRule DeserializeServiceTagOutboundRule(JsonEle return null; } Optional destination = default; - Optional category = default; - Optional status = default; - RuleType type = default; + Optional category = default; + Optional status = default; + OutboundRuleType type = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("destination"u8)) @@ -62,7 +62,7 @@ internal static ServiceTagOutboundRule DeserializeServiceTagOutboundRule(JsonEle { continue; } - category = new RuleCategory(property.Value.GetString()); + category = new OutboundRuleCategory(property.Value.GetString()); continue; } if (property.NameEquals("status"u8)) @@ -71,12 +71,12 @@ internal static ServiceTagOutboundRule DeserializeServiceTagOutboundRule(JsonEle { continue; } - status = new RuleStatus(property.Value.GetString()); + status = new OutboundRuleStatus(property.Value.GetString()); continue; } if (property.NameEquals("type"u8)) { - type = new RuleType(property.Value.GetString()); + type = new OutboundRuleType(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.cs index bfe9761aba7d..c8e159fa5447 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagOutboundRule.cs @@ -8,23 +8,23 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// Service Tag Outbound Rule for the managed network of a machine learning workspace. - public partial class ServiceTagOutboundRule : OutboundRule + public partial class ServiceTagOutboundRule : MachineLearningOutboundRule { /// Initializes a new instance of ServiceTagOutboundRule. public ServiceTagOutboundRule() { - RuleType = RuleType.ServiceTag; + OutboundRuleType = OutboundRuleType.ServiceTag; } /// Initializes a new instance of ServiceTagOutboundRule. /// Category of a managed network Outbound Rule of a machine learning workspace. /// Type of a managed network Outbound Rule of a machine learning workspace. - /// Type of a managed network Outbound Rule of a machine learning workspace. + /// Type of a managed network Outbound Rule of a machine learning workspace. /// Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. - internal ServiceTagOutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType, ServiceTagDestination destination) : base(category, status, ruleType) + internal ServiceTagOutboundRule(OutboundRuleCategory? category, OutboundRuleStatus? status, OutboundRuleType outboundRuleType, ServiceTagDestination destination) : base(category, status, outboundRuleType) { Destination = destination; - RuleType = ruleType; + OutboundRuleType = outboundRuleType; } /// Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.Serialization.cs index 076044b8f50e..4dbc063ccf01 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.Serialization.cs @@ -366,7 +366,7 @@ internal static SparkJob DeserializeSparkJob(JsonElement element) Optional> jars = default; Optional> outputs = default; Optional> pyFiles = default; - Optional queueSettings = default; + Optional queueSettings = default; Optional resources = default; Optional componentId = default; Optional computeId = default; @@ -526,7 +526,7 @@ internal static SparkJob DeserializeSparkJob(JsonElement element) queueSettings = null; continue; } - queueSettings = QueueSettings.DeserializeQueueSettings(property.Value); + queueSettings = JobQueueSettings.DeserializeJobQueueSettings(property.Value); continue; } if (property.NameEquals("resources"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs index 133f1ea1733f..0819130f9e02 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs @@ -87,7 +87,7 @@ public SparkJob(string codeId, SparkJobEntry entry) /// Python files used in the job. /// Queue settings for the job. /// Compute Resource configuration for the job. - internal SparkJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, IList archives, string args, string codeId, IDictionary conf, SparkJobEntry entry, string environmentId, IList files, IDictionary inputs, IList jars, IDictionary outputs, IList pyFiles, QueueSettings queueSettings, SparkResourceConfiguration resources) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) + internal SparkJob(string description, IDictionary properties, IDictionary tags, ResourceIdentifier componentId, ResourceIdentifier computeId, string displayName, string experimentName, MachineLearningIdentityConfiguration identity, bool? isArchived, JobType jobType, NotificationSetting notificationSetting, IDictionary secretsConfiguration, IDictionary services, MachineLearningJobStatus? status, IList archives, string args, string codeId, IDictionary conf, SparkJobEntry entry, string environmentId, IList files, IDictionary inputs, IList jars, IDictionary outputs, IList pyFiles, JobQueueSettings queueSettings, SparkResourceConfiguration resources) : base(description, properties, tags, componentId, computeId, displayName, experimentName, identity, isArchived, jobType, notificationSetting, secretsConfiguration, services, status) { Archives = archives; Args = args; @@ -140,7 +140,7 @@ internal SparkJob(string description, IDictionary properties, ID /// Python files used in the job. public IList PyFiles { get; set; } /// Queue settings for the job. - public QueueSettings QueueSettings { get; set; } + public JobQueueSettings QueueSettings { get; set; } /// Compute Resource configuration for the job. public SparkResourceConfiguration Resources { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessageLevel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessageLevel.cs deleted file mode 100644 index 6f6864cba6fa..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StatusMessageLevel.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The StatusMessageLevel. - public readonly partial struct StatusMessageLevel : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public StatusMessageLevel(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ErrorValue = "Error"; - private const string InformationValue = "Information"; - private const string WarningValue = "Warning"; - - /// Error. - public static StatusMessageLevel Error { get; } = new StatusMessageLevel(ErrorValue); - /// Information. - public static StatusMessageLevel Information { get; } = new StatusMessageLevel(InformationValue); - /// Warning. - public static StatusMessageLevel Warning { get; } = new StatusMessageLevel(WarningValue); - /// Determines if two values are the same. - public static bool operator ==(StatusMessageLevel left, StatusMessageLevel right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(StatusMessageLevel left, StatusMessageLevel right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator StatusMessageLevel(string value) => new StatusMessageLevel(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is StatusMessageLevel other && Equals(other); - /// - public bool Equals(StatusMessageLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs index 83e2bd3fe8a4..2234d504a59b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// Details of storage account to be used for the Registry. @@ -32,7 +34,7 @@ internal StorageAccountDetails(SystemCreatedStorageAccount systemCreatedStorageA /// 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}" /// - public string ArmResourceId + public ResourceIdentifier ArmResourceId { get => UserCreatedStorageAccount is null ? default : UserCreatedStorageAccount.ArmResourceId; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.cs index eac6d1f506ce..0a751f2c75c0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedAcrAccount.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// The SystemCreatedAcrAccount. @@ -36,7 +38,7 @@ internal SystemCreatedAcrAccount(string acrAccountName, string acrAccountSku, Ar /// 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}" /// - public string ArmResourceId + public ResourceIdentifier ArmResourceId { get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.cs index 0d09cf97dbf4..bc3769318643 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SystemCreatedStorageAccount.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// The SystemCreatedStorageAccount. @@ -48,7 +50,7 @@ internal SystemCreatedStorageAccount(bool? allowBlobPublicAccess, 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}" /// - public string ArmResourceId + public ResourceIdentifier ArmResourceId { get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.cs index 6ed4131e062c..c27b6c93dc65 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownMLAssistConfiguration.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// The UnknownMLAssistConfiguration. - internal partial class UnknownMLAssistConfiguration : MLAssistConfiguration + internal partial class UnknownMLAssistConfiguration : MachineLearningAssistConfiguration { /// Initializes a new instance of UnknownMLAssistConfiguration. /// [Required] Indicates whether MLAssist feature is enabled. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.cs index 7fa0daa1265e..dfe6d0ede2fc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownNodes.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// The UnknownNodes. - internal partial class UnknownNodes : Nodes + internal partial class UnknownNodes : JobNodes { /// Initializes a new instance of UnknownNodes. /// [Required] Type of the Nodes value. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.Serialization.cs index 4216c8ca186e..499dfe757674 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.Serialization.cs @@ -26,7 +26,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Status.Value.ToString()); } writer.WritePropertyName("type"u8); - writer.WriteStringValue(RuleType.ToString()); + writer.WriteStringValue(OutboundRuleType.ToString()); writer.WriteEndObject(); } @@ -36,9 +36,9 @@ internal static UnknownOutboundRule DeserializeUnknownOutboundRule(JsonElement e { return null; } - Optional category = default; - Optional status = default; - RuleType type = "Unknown"; + Optional category = default; + Optional status = default; + OutboundRuleType type = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("category"u8)) @@ -47,7 +47,7 @@ internal static UnknownOutboundRule DeserializeUnknownOutboundRule(JsonElement e { continue; } - category = new RuleCategory(property.Value.GetString()); + category = new OutboundRuleCategory(property.Value.GetString()); continue; } if (property.NameEquals("status"u8)) @@ -56,12 +56,12 @@ internal static UnknownOutboundRule DeserializeUnknownOutboundRule(JsonElement e { continue; } - status = new RuleStatus(property.Value.GetString()); + status = new OutboundRuleStatus(property.Value.GetString()); continue; } if (property.NameEquals("type"u8)) { - type = new RuleType(property.Value.GetString()); + type = new OutboundRuleType(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.cs index 4a85a6832515..07bc7f338f88 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownOutboundRule.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// The UnknownOutboundRule. - internal partial class UnknownOutboundRule : OutboundRule + internal partial class UnknownOutboundRule : MachineLearningOutboundRule { /// Initializes a new instance of UnknownOutboundRule. /// Category of a managed network Outbound Rule of a machine learning workspace. /// Type of a managed network Outbound Rule of a machine learning workspace. - /// Type of a managed network Outbound Rule of a machine learning workspace. - internal UnknownOutboundRule(RuleCategory? category, RuleStatus? status, RuleType ruleType) : base(category, status, ruleType) + /// Type of a managed network Outbound Rule of a machine learning workspace. + internal UnknownOutboundRule(OutboundRuleCategory? category, OutboundRuleStatus? status, OutboundRuleType outboundRuleType) : base(category, status, outboundRuleType) { - RuleType = ruleType; + OutboundRuleType = outboundRuleType; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.Serialization.cs index 7ce32ee5e7f5..f57934802f04 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.Serialization.cs @@ -39,7 +39,7 @@ internal static UnknownWebhook DeserializeUnknownWebhook(JsonElement element) return null; } Optional eventType = default; - WebhookType webhookType = "Unknown"; + MachineLearningWebhookType webhookType = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("eventType"u8)) @@ -54,7 +54,7 @@ internal static UnknownWebhook DeserializeUnknownWebhook(JsonElement element) } if (property.NameEquals("webhookType"u8)) { - webhookType = new WebhookType(property.Value.GetString()); + webhookType = new MachineLearningWebhookType(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.cs index bdaf44a73559..8df46ede7e52 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UnknownWebhook.cs @@ -8,12 +8,12 @@ namespace Azure.ResourceManager.MachineLearning.Models { /// The UnknownWebhook. - internal partial class UnknownWebhook : Webhook + internal partial class UnknownWebhook : MachineLearningWebhook { /// Initializes a new instance of UnknownWebhook. /// Send callback on a specified notification event. /// [Required] Specifies the type of service to send a callback. - internal UnknownWebhook(string eventType, WebhookType webhookType) : base(eventType, webhookType) + internal UnknownWebhook(string eventType, MachineLearningWebhookType webhookType) : base(eventType, webhookType) { WebhookType = webhookType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs index dc6028f2f921..c9dbc5a14531 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// The UserCreatedAcrAccount. @@ -28,7 +30,7 @@ internal UserCreatedAcrAccount(ArmResourceId armResourceIdentifier) /// 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}" /// - public string ArmResourceId + public ResourceIdentifier ArmResourceId { get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs index b1d851338c34..ffb0cb7be9f2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.MachineLearning.Models { /// The UserCreatedStorageAccount. @@ -28,7 +30,7 @@ internal UserCreatedStorageAccount(ArmResourceId armResourceIdentifier) /// 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}" /// - public string ArmResourceId + public ResourceIdentifier ArmResourceId { get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.Serialization.cs index 386b2dc63ab2..fba5626f0872 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.Serialization.cs @@ -104,7 +104,7 @@ internal static VolumeDefinition DeserializeVolumeDefinition(JsonElement element Optional source = default; Optional target = default; Optional consistency = default; - Optional bind = default; + Optional bind = default; Optional volume = default; Optional tmpfs = default; foreach (var property in element.EnumerateObject()) @@ -155,7 +155,7 @@ internal static VolumeDefinition DeserializeVolumeDefinition(JsonElement element bind = null; continue; } - bind = BindOptions.DeserializeBindOptions(property.Value); + bind = MountBindOptions.DeserializeMountBindOptions(property.Value); continue; } if (property.NameEquals("volume"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.cs index 7e4b4249ee5e..545868c9f372 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VolumeDefinition.cs @@ -24,7 +24,7 @@ public VolumeDefinition() /// Bind Options of the mount. /// Volume Options of the mount. /// tmpfs option of the mount. - internal VolumeDefinition(VolumeDefinitionType? definitionType, bool? readOnly, string source, string target, string consistency, BindOptions bind, VolumeOptions volume, TmpfsOptions tmpfs) + internal VolumeDefinition(VolumeDefinitionType? definitionType, bool? readOnly, string source, string target, string consistency, MountBindOptions bind, VolumeOptions volume, TmpfsOptions tmpfs) { DefinitionType = definitionType; ReadOnly = readOnly; @@ -47,7 +47,7 @@ internal VolumeDefinition(VolumeDefinitionType? definitionType, bool? readOnly, /// Consistency of the volume. public string Consistency { get; set; } /// Bind Options of the mount. - public BindOptions Bind { get; set; } + public MountBindOptions Bind { get; set; } /// Volume Options of the mount. internal VolumeOptions Volume { get; set; } /// Indicate whether volume is nocopy. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WebhookType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WebhookType.cs deleted file mode 100644 index c70ed031b367..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WebhookType.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Enum to determine the webhook callback service type. - internal readonly partial struct WebhookType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public WebhookType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AzureDevOpsValue = "AzureDevOps"; - - /// AzureDevOps. - public static WebhookType AzureDevOps { get; } = new WebhookType(AzureDevOpsValue); - /// Determines if two values are the same. - public static bool operator ==(WebhookType left, WebhookType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(WebhookType left, WebhookType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator WebhookType(string value) => new WebhookType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is WebhookType other && Equals(other); - /// - public bool Equals(WebhookType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs index c21a7a91148d..e9f297eaddf2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs @@ -444,7 +444,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal HttpMessage CreateBackfillRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionBackfillContent content) + internal HttpMessage CreateBackfillRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeatureSetVersionBackfillContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -483,7 +483,7 @@ internal HttpMessage CreateBackfillRequest(string subscriptionId, string resourc /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task BackfillAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionBackfillContent content, CancellationToken cancellationToken = default) + public async Task BackfillAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeatureSetVersionBackfillContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -514,7 +514,7 @@ public async Task BackfillAsync(string subscriptionId, string resource /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Backfill(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeaturesetVersionBackfillContent content, CancellationToken cancellationToken = default) + public Response Backfill(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeatureSetVersionBackfillContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs index 9dcfd64f9293..b24ef8dcef0a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs @@ -224,7 +224,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -237,13 +237,13 @@ public async Task> GetAsync(string subsc { case 200: { - OutboundRuleBasicResourceData value = default; + MachineLearningOutboundRuleBasicData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(document.RootElement); + value = MachineLearningOutboundRuleBasicData.DeserializeMachineLearningOutboundRuleBasicData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((OutboundRuleBasicResourceData)null, message.Response); + return Response.FromValue((MachineLearningOutboundRuleBasicData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -257,7 +257,7 @@ public async Task> GetAsync(string subsc /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -270,19 +270,19 @@ public Response Get(string subscriptionId, string { case 200: { - OutboundRuleBasicResourceData value = default; + MachineLearningOutboundRuleBasicData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OutboundRuleBasicResourceData.DeserializeOutboundRuleBasicResourceData(document.RootElement); + value = MachineLearningOutboundRuleBasicData.DeserializeMachineLearningOutboundRuleBasicData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((OutboundRuleBasicResourceData)null, message.Response); + return Response.FromValue((MachineLearningOutboundRuleBasicData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, OutboundRuleBasicResourceData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, MachineLearningOutboundRuleBasicData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -317,7 +317,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, MachineLearningOutboundRuleBasicData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -346,7 +346,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, OutboundRuleBasicResourceData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, MachineLearningOutboundRuleBasicData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs index ebab19966f36..f9792db94521 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs @@ -464,7 +464,7 @@ public Response CreateOrUpdate(string subscript } } - internal HttpMessage CreatePackageRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PackageRequest body) + internal HttpMessage CreatePackageRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, ModelPackageContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -486,9 +486,9 @@ internal HttpMessage CreatePackageRequest(string subscriptionId, string resource request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(body); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -499,20 +499,20 @@ internal HttpMessage CreatePackageRequest(string subscriptionId, string resource /// Name of Azure Machine Learning workspace. /// Container name. This is case-sensitive. /// Version identifier. This is case-sensitive. - /// Package operation request body. + /// Package operation request body. /// The cancellation token to use. - /// , , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task PackageAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PackageRequest body, CancellationToken cancellationToken = default) + public async Task PackageAsync(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, ModelPackageContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNullOrEmpty(version, nameof(version)); - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreatePackageRequest(subscriptionId, resourceGroupName, workspaceName, name, version, body); + using var message = CreatePackageRequest(subscriptionId, resourceGroupName, workspaceName, name, version, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -530,20 +530,20 @@ public async Task PackageAsync(string subscriptionId, string resourceG /// Name of Azure Machine Learning workspace. /// Container name. This is case-sensitive. /// Version identifier. This is case-sensitive. - /// Package operation request body. + /// Package operation request body. /// The cancellation token to use. - /// , , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Package(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PackageRequest body, CancellationToken cancellationToken = default) + public Response Package(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, ModelPackageContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNullOrEmpty(version, nameof(version)); - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreatePackageRequest(subscriptionId, resourceGroupName, workspaceName, name, version, body); + using var message = CreatePackageRequest(subscriptionId, resourceGroupName, workspaceName, name, version, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs index 2e58d37f40c0..577213bbabd8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs @@ -438,7 +438,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal HttpMessage CreatePackageRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PackageRequest body) + internal HttpMessage CreatePackageRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, ModelPackageContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -460,9 +460,9 @@ internal HttpMessage CreatePackageRequest(string subscriptionId, string resource request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(body); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -473,20 +473,20 @@ internal HttpMessage CreatePackageRequest(string subscriptionId, string resource /// Name of Azure Machine Learning registry. This is case-insensitive. /// Container name. This is case-sensitive. /// Version identifier. This is case-sensitive. - /// Package operation request body. + /// Package operation request body. /// The cancellation token to use. - /// , , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task PackageAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PackageRequest body, CancellationToken cancellationToken = default) + public async Task PackageAsync(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, ModelPackageContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); Argument.AssertNotNullOrEmpty(version, nameof(version)); - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreatePackageRequest(subscriptionId, resourceGroupName, registryName, modelName, version, body); + using var message = CreatePackageRequest(subscriptionId, resourceGroupName, registryName, modelName, version, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -504,20 +504,20 @@ public async Task PackageAsync(string subscriptionId, string resourceG /// Name of Azure Machine Learning registry. This is case-insensitive. /// Container name. This is case-sensitive. /// Version identifier. This is case-sensitive. - /// Package operation request body. + /// Package operation request body. /// The cancellation token to use. - /// , , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Package(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PackageRequest body, CancellationToken cancellationToken = default) + public Response Package(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, ModelPackageContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(registryName, nameof(registryName)); Argument.AssertNotNullOrEmpty(modelName, nameof(modelName)); Argument.AssertNotNullOrEmpty(version, nameof(version)); - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreatePackageRequest(subscriptionId, resourceGroupName, registryName, modelName, version, body); + using var message = CreatePackageRequest(subscriptionId, resourceGroupName, registryName, modelName, version, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index 493de8778df3..4e6886960fca 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -72,6 +72,7 @@ override-operation-name: no-property-type-replacement: - ResourceId - VirtualMachineImage +- AllFeatures request-path-to-resource-name: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}: MachineLearningCodeContainer @@ -97,14 +98,24 @@ request-path-to-resource-name: prepend-rp-prefix: - Feature + - FeatureProperties - LabelingJob - Registry + - Webhook + - WebhookType rename-mapping: FeaturesetContainer: MachineLearningFeatureSetContainer + FeaturesetContainerProperties: MachineLearningFeatureSetContainerProperties + FeaturesetJob: MachineLearningFeatureSetJob FeaturesetVersion: MachineLearningFeatureSetVersion + FeaturesetVersionBackfillRequest: FeatureSetVersionBackfillContent + FeaturesetVersionProperties: MachineLearningFeatureSetVersionProperties FeaturestoreEntityContainer: MachineLearningFeatureStoreEntityContainer + FeaturestoreEntityContainerProperties: MachineLearningFeatureStoreEntityContainerProperties FeaturestoreEntityVersion: MachineLearningFeaturestoreEntityVersion + FeaturestoreEntityVersionProperties: MachineLearningFeatureStoreEntityVersionProperties + FeaturestoreJobType: FeatureStoreJobType ComputeInstanceProperties.setupScripts: SetupScriptsSettings Workspace: MachineLearningWorkspace ComputeResource: MachineLearningCompute @@ -459,6 +470,51 @@ rename-mapping: Cron: ComputeStartStopCronSchedule Recurrence: ComputeStartStopRecurrenceSchedule EndpointServiceConnectionStatus: MachineLearningPrivateEndpointServiceConnectionStatus + ArmResourceId.resourceId: -|arm-id + Workspace.properties.hubResourceId: -|arm-id + OutboundRuleBasicResource: MachineLearningOutboundRuleBasic + OutboundRule: MachineLearningOutboundRule + BindOptions: MountBindOptions + BindOptions.createHostPath: DoesCreateHostPath + AcrDetails: RegistryAcrDetails + AllNodes: JobAllNodes + Nodes: JobNodes + AssetProvisioningState: RegistryAssetProvisioningState + BaseEnvironmentId: BaseEnvironmentType + BaseEnvironmentId.resourceId: -|arm-id + BlobReferenceForConsumptionDto.storageAccountArmId: -|arm-id + Collection: DataCollection + Docker: DockerSetting + Endpoint: ContainerEndpoint + Protocol: ContainerCommunicationProtocol + Image: ImageSetting + ConnectionCategory.AzureSqlDb: AzureSqlDB + ConnectionCategory.AzureMySqlDb: AzureMySqlDB + ConnectionCategory.AzurePostgresDb: AzurePostgresDB + EncryptionProperty.cosmosDbResourceId: CosmosDBResourceId|arm-id + EncryptionProperty.searchAccountResourceId: -|arm-id + EncryptionProperty.storageAccountResourceId: -|arm-id + MLAssistConfiguration: MachineLearningAssistConfiguration + MLAssistConfigurationEnabled: MachineLearningAssistEnabledConfiguration + MlflowAutologger: MachineLearningflowAutologger + MLFlowAutologgerState: MachineLearningflowAutologgerState + MultiSelect: LabelCategoryMultiSelect + PackageRequest: ModelPackageContent + PackageResponse: ModelPackageResult + PackageInputPathId.resourceId: -|arm-id + PrivateEndpointResource: RegistryPrivateEndpoint + PrivateEndpointResource.subnetArmId: -|arm-id + PrivateEndpoint: PrivateEndpointBase + PrivateEndpoint.id: -|arm-id + QueueSettings: JobQueueSettings + Ray: RayDistributionConfiguration + RegistryPrivateEndpointConnection.id: -|arm-id + RuleAction: NetworkingRuleAction + RuleCategory: OutboundRuleCategory + RuleStatus: OutboundRuleStatus + RuleType: OutboundRuleType + StatusMessage: JobStatusMessage + StatusMessageLevel: JobStatusMessageLevel directive: - from: swagger-document From 271c98c4886eb3b29a6cae5c2bd39f1248c2e570 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Fri, 29 Sep 2023 09:21:27 +0800 Subject: [PATCH 09/13] update --- .../CHANGELOG.md | 2 +- ...ResourceManager.MachineLearning.netstandard2.0.cs | 8 ++++---- ... => DataCollectionConfiguration.Serialization.cs} | 6 +++--- ...aCollection.cs => DataCollectionConfiguration.cs} | 12 ++++++------ .../Generated/Models/DataCollector.Serialization.cs | 6 +++--- .../src/Generated/Models/DataCollector.cs | 6 +++--- .../src/autorest.md | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{DataCollection.Serialization.cs => DataCollectionConfiguration.Serialization.cs} (90%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{DataCollection.cs => DataCollectionConfiguration.cs} (84%) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md index a287deb848c1..3bb062a60d8b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.2.0-beta.2 (2023-09-28) +## 1.2.0-beta.2 (2023-09-29) ### Features Added diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs index c3452acca185..06cf4f4fab32 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs @@ -2528,9 +2528,9 @@ public DatabaseSource() { } public System.Collections.Generic.IList> StoredProcedureParams { get { throw null; } set { } } public string TableName { get { throw null; } set { } } } - public partial class DataCollection + public partial class DataCollectionConfiguration { - public DataCollection() { } + public DataCollectionConfiguration() { } public string ClientId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.DataCollectionMode? DataCollectionMode { get { throw null; } set { } } public string DataId { get { throw null; } set { } } @@ -2556,8 +2556,8 @@ public DataCollection() { } } public partial class DataCollector { - public DataCollector(System.Collections.Generic.IDictionary collections) { } - public System.Collections.Generic.IDictionary Collections { get { throw null; } } + public DataCollector(System.Collections.Generic.IDictionary collections) { } + public System.Collections.Generic.IDictionary Collections { get { throw null; } } public System.Collections.Generic.IList RequestLoggingCaptureHeaders { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.RollingRateType? RollingRate { get { throw null; } set { } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionConfiguration.Serialization.cs similarity index 90% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionConfiguration.Serialization.cs index d3446757f7de..8017a71bfdef 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionConfiguration.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class DataCollection : IUtf8JsonSerializable + public partial class DataCollectionConfiguration : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -52,7 +52,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataCollection DeserializeDataCollection(JsonElement element) + internal static DataCollectionConfiguration DeserializeDataCollectionConfiguration(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -103,7 +103,7 @@ internal static DataCollection DeserializeDataCollection(JsonElement element) continue; } } - return new DataCollection(clientId.Value, Optional.ToNullable(dataCollectionMode), dataId.Value, Optional.ToNullable(samplingRate)); + return new DataCollectionConfiguration(clientId.Value, Optional.ToNullable(dataCollectionMode), dataId.Value, Optional.ToNullable(samplingRate)); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionConfiguration.cs similarity index 84% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionConfiguration.cs index dbfd7bb848d0..e8afda44573c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollectionConfiguration.cs @@ -7,20 +7,20 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The DataCollection. - public partial class DataCollection + /// The DataCollectionConfiguration. + public partial class DataCollectionConfiguration { - /// Initializes a new instance of DataCollection. - public DataCollection() + /// Initializes a new instance of DataCollectionConfiguration. + public DataCollectionConfiguration() { } - /// Initializes a new instance of DataCollection. + /// Initializes a new instance of DataCollectionConfiguration. /// The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth. /// Enable or disable data collection. /// 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. /// The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default. - internal DataCollection(string clientId, DataCollectionMode? dataCollectionMode, string dataId, double? samplingRate) + internal DataCollectionConfiguration(string clientId, DataCollectionMode? dataCollectionMode, string dataId, double? samplingRate) { ClientId = clientId; DataCollectionMode = dataCollectionMode; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs index 862e18085eb1..fbfcf93afc16 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.Serialization.cs @@ -50,17 +50,17 @@ internal static DataCollector DeserializeDataCollector(JsonElement element) { return null; } - IDictionary collections = default; + IDictionary collections = default; Optional requestLogging = default; Optional rollingRate = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("collections"u8)) { - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, DataCollection.DeserializeDataCollection(property0.Value)); + dictionary.Add(property0.Name, DataCollectionConfiguration.DeserializeDataCollectionConfiguration(property0.Value)); } collections = dictionary; continue; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs index 2aebac9b5f98..adba2b1480a8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataCollector.cs @@ -20,7 +20,7 @@ public partial class DataCollector /// 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. /// /// is null. - public DataCollector(IDictionary collections) + public DataCollector(IDictionary collections) { Argument.AssertNotNull(collections, nameof(collections)); @@ -39,7 +39,7 @@ public DataCollector(IDictionary collections) /// 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. /// - internal DataCollector(IDictionary collections, RequestLogging requestLogging, RollingRateType? rollingRate) + internal DataCollector(IDictionary collections, RequestLogging requestLogging, RollingRateType? rollingRate) { Collections = collections; RequestLogging = requestLogging; @@ -50,7 +50,7 @@ internal DataCollector(IDictionary collections, RequestL /// [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. /// - public IDictionary Collections { get; } + public IDictionary Collections { get; } /// The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. internal RequestLogging RequestLogging { get; set; } /// 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. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index 4e6886960fca..c23dcdb1c375 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -483,7 +483,7 @@ rename-mapping: BaseEnvironmentId: BaseEnvironmentType BaseEnvironmentId.resourceId: -|arm-id BlobReferenceForConsumptionDto.storageAccountArmId: -|arm-id - Collection: DataCollection + Collection: DataCollectionConfiguration Docker: DockerSetting Endpoint: ContainerEndpoint Protocol: ContainerCommunicationProtocol From ad30eb2d777443863827e46562524f093321e52f Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Fri, 29 Sep 2023 16:20:26 +0800 Subject: [PATCH 10/13] update --- ...eManager.MachineLearning.netstandard2.0.cs | 86 +++++++++---------- ...Sample_MachineLearningComputeCollection.cs | 2 +- .../Sample_MachineLearningJobCollection.cs | 6 +- .../ArmMachineLearningModelFactory.cs | 2 +- .../AutologgerSettings.Serialization.cs | 4 +- .../Generated/Models/AutologgerSettings.cs | 4 +- ...nstanceAutologgerSettings.Serialization.cs | 4 +- .../ComputeInstanceAutologgerSettings.cs | 4 +- .../Models/DataDriftMonitoringSignal.cs | 4 +- .../Models/DataQualityMonitoringSignal.cs | 4 +- .../src/Generated/Models/ImageType.cs | 4 +- .../IntellectualProperty.Serialization.cs | 4 +- .../Generated/Models/IntellectualProperty.cs | 4 +- .../Models/IntellectualProtectionLevel.cs | 51 +++++++++++ ...chineLearningAllFeatures.Serialization.cs} | 6 +- ...tures.cs => MachineLearningAllFeatures.cs} | 12 +-- .../Models/MachineLearningCommandJob.cs | 4 +- ...achineLearningComputeInstanceProperties.cs | 2 +- .../Models/MachineLearningFlowAutoLogger.cs | 51 +++++++++++ .../MachineLearningFlowAutoLoggerState.cs | 51 +++++++++++ .../Models/MachineLearningflowAutologger.cs | 15 +++- .../MachineLearningflowAutologgerState.cs | 15 +++- ...nitoringFeatureFilterBase.Serialization.cs | 2 +- .../Models/MonitoringFeatureFilterBase.cs | 2 +- .../src/Generated/Models/ProtectionLevel.cs | 51 ----------- .../src/autorest.md | 8 +- 26 files changed, 262 insertions(+), 140 deletions(-) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProtectionLevel.cs rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{AllFeatures.Serialization.cs => MachineLearningAllFeatures.Serialization.cs} (80%) rename sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/{AllFeatures.cs => MachineLearningAllFeatures.cs} (51%) create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowAutoLogger.cs create mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowAutoLoggerState.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProtectionLevel.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs index 06cf4f4fab32..02e73deaab31 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs @@ -1761,10 +1761,6 @@ public partial class AccessKeyAuthTypeWorkspaceConnectionProperties : Azure.Reso public AccessKeyAuthTypeWorkspaceConnectionProperties() { } public Azure.ResourceManager.MachineLearning.Models.WorkspaceConnectionAccessKey Credentials { get { throw null; } set { } } } - public partial class AllFeatures : Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureFilterBase - { - public AllFeatures() { } - } public partial class AmlCompute : Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeProperties { public AmlCompute() { } @@ -1852,7 +1848,7 @@ public static partial class ArmMachineLearningModelFactory public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningCodeVersionData MachineLearningCodeVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.MachineLearning.Models.AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = default(bool?), bool? isArchived = default(bool?), System.Uri codeUri = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJob MachineLearningCommandJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState? mlflowAutologger = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState?), Azure.Core.ResourceIdentifier codeId = null, string command = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration distribution = null, Azure.Core.ResourceIdentifier environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits limits = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData parameters = null, Azure.ResourceManager.MachineLearning.Models.JobQueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJob MachineLearningCommandJob(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.ResourceIdentifier componentId = null, Azure.Core.ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = null, bool? isArchived = default(bool?), Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = null, System.Collections.Generic.IDictionary secretsConfiguration = null, System.Collections.Generic.IDictionary services = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus?), Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState? mlflowAutologger = default(Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState?), Azure.Core.ResourceIdentifier codeId = null, string command = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration distribution = null, Azure.Core.ResourceIdentifier environmentId = null, System.Collections.Generic.IDictionary environmentVariables = null, System.Collections.Generic.IDictionary inputs = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits limits = null, System.Collections.Generic.IDictionary outputs = null, System.BinaryData parameters = null, Azure.ResourceManager.MachineLearning.Models.JobQueueSettings queueSettings = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = null) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComponentContainerData MachineLearningComponentContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties properties = null) { throw null; } public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, System.Collections.Generic.IDictionary properties = null, System.Collections.Generic.IDictionary tags = null, bool? isArchived = default(bool?), string latestVersion = null, string nextVersion = null, Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState? provisioningState = default(Azure.ResourceManager.MachineLearning.Models.RegistryAssetProvisioningState?)) { throw null; } public static Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData MachineLearningComponentVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MachineLearning.Models.MachineLearningComponentVersionProperties properties = null) { throw null; } @@ -3183,7 +3179,7 @@ public ImageSweepSettings(Azure.ResourceManager.MachineLearning.Models.SamplingA private readonly object _dummy; private readonly int _dummyPrimitive; public ImageType(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ImageType Azureml { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.ImageType AzureML { get { throw null; } } public static Azure.ResourceManager.MachineLearning.Models.ImageType Docker { get { throw null; } } public bool Equals(Azure.ResourceManager.MachineLearning.Models.ImageType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -3248,10 +3244,28 @@ protected InferencingServer() { } public partial class IntellectualProperty { public IntellectualProperty(string publisher) { } - public Azure.ResourceManager.MachineLearning.Models.ProtectionLevel? ProtectionLevel { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel? ProtectionLevel { get { throw null; } set { } } public string Publisher { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct IntellectualProtectionLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IntellectualProtectionLevel(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel All { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel None { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel left, Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel left, Azure.ResourceManager.MachineLearning.Models.IntellectualProtectionLevel right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct IsolationMode : System.IEquatable { private readonly object _dummy; @@ -3568,6 +3582,10 @@ public MachineLearningAksNetworkingConfiguration() { } public string ServiceCidr { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } } + public partial class MachineLearningAllFeatures : Azure.ResourceManager.MachineLearning.Models.MonitoringFeatureFilterBase + { + public MachineLearningAllFeatures() { } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MachineLearningAllocationState : System.IEquatable { @@ -3860,7 +3878,7 @@ public MachineLearningCommandJob(string command, Azure.Core.ResourceIdentifier e public System.Collections.Generic.IDictionary EnvironmentVariables { get { throw null; } set { } } public System.Collections.Generic.IDictionary Inputs { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits Limits { get { throw null; } set { } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState? MlflowAutologger { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState? MlflowAutologger { get { throw null; } set { } } public System.Collections.Generic.IDictionary Outputs { get { throw null; } set { } } public System.BinaryData Parameters { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.JobQueueSettings QueueSettings { get { throw null; } set { } } @@ -4009,7 +4027,7 @@ public MachineLearningComputeInstanceProperties() { } public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } public string IdleTimeBeforeShutdown { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceLastOperation LastOperation { get { throw null; } } - public Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger? MlflowAutologger { get { throw null; } set { } } + public Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger? MlflowAutologger { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.ImageMetadata OSImageMetadata { get { throw null; } } public Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceAssignedUser PersonalComputeInstanceAssignedUser { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList SchedulesComputeStartStop { get { throw null; } } @@ -4797,39 +4815,39 @@ public MachineLearningFlavorData() { } public System.Collections.Generic.IDictionary Data { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningflowAutologger : System.IEquatable + public readonly partial struct MachineLearningFlowAutoLogger : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningflowAutologger(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger other) { throw null; } + public MachineLearningFlowAutoLogger(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologger right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLogger right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MachineLearningflowAutologgerState : System.IEquatable + public readonly partial struct MachineLearningFlowAutoLoggerState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public MachineLearningflowAutologgerState(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState Disabled { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState other) { throw null; } + public MachineLearningFlowAutoLoggerState(string value) { throw null; } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState Disabled { get { throw null; } } + public static Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningflowAutologgerState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState right) { throw null; } + public static implicit operator Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState left, Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState right) { throw null; } public override string ToString() { throw null; } } public partial class MachineLearningFlowModelJobInput : Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput @@ -7450,24 +7468,6 @@ internal ProgressMetrics() { } public long? SkippedDatapointCount { get { throw null; } } public long? TotalDatapointCount { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProtectionLevel : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ProtectionLevel(string value) { throw null; } - public static Azure.ResourceManager.MachineLearning.Models.ProtectionLevel All { get { throw null; } } - public static Azure.ResourceManager.MachineLearning.Models.ProtectionLevel None { get { throw null; } } - public bool Equals(Azure.ResourceManager.MachineLearning.Models.ProtectionLevel other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.MachineLearning.Models.ProtectionLevel left, Azure.ResourceManager.MachineLearning.Models.ProtectionLevel right) { throw null; } - public static implicit operator Azure.ResourceManager.MachineLearning.Models.ProtectionLevel (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.MachineLearning.Models.ProtectionLevel left, Azure.ResourceManager.MachineLearning.Models.ProtectionLevel right) { throw null; } - public override string ToString() { throw null; } - } public partial class PyTorchDistributionConfiguration : Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration { public PyTorchDistributionConfiguration() { } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs index e71a08aaa143..85aa5e05772c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs @@ -737,7 +737,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceCompute() VmSize = "STANDARD_NC6", SubnetId = new ResourceIdentifier("test-subnet-resource-id"), ApplicationSharingPolicy = MachineLearningApplicationSharingPolicy.Personal, - MlflowAutologger = MachineLearningflowAutologger.Enabled, + MlflowAutologger = MachineLearningFlowAutoLogger.Enabled, SshSettings = new MachineLearningComputeInstanceSshSettings() { SshPublicAccess = MachineLearningSshPublicAccess.Disabled, diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs index a19cbb1247c1..21029b3cb1bb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs @@ -636,7 +636,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob() string id = "string"; MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { - MlflowAutologger = MachineLearningflowAutologgerState.Disabled, + MlflowAutologger = MachineLearningFlowAutoLoggerState.Disabled, CodeId = new ResourceIdentifier("string"), Distribution = new TensorFlowDistributionConfiguration() { @@ -770,7 +770,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob() string id = "string"; MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { - MlflowAutologger = MachineLearningflowAutologgerState.Disabled, + MlflowAutologger = MachineLearningFlowAutoLoggerState.Disabled, CodeId = new ResourceIdentifier("string"), Distribution = new TensorFlowDistributionConfiguration() { @@ -987,7 +987,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSweepJob() string id = "string"; MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string")) { - MlflowAutologger = MachineLearningflowAutologgerState.Disabled, + MlflowAutologger = MachineLearningFlowAutoLoggerState.Disabled, CodeId = new ResourceIdentifier("string"), Distribution = new TensorFlowDistributionConfiguration() { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs index b8bd87f7e028..62cd0d038f95 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs @@ -2249,7 +2249,7 @@ public static CocoExportSummary CocoExportSummary(DateTimeOffset? endOn = null, /// Queue settings for the job. /// Compute Resource configuration for the job. /// A new instance for mocking. - public static MachineLearningCommandJob MachineLearningCommandJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, MachineLearningflowAutologgerState? mlflowAutologger = null, ResourceIdentifier codeId = null, string command = null, MachineLearningDistributionConfiguration distribution = null, ResourceIdentifier environmentId = null, IDictionary environmentVariables = null, IDictionary inputs = null, MachineLearningCommandJobLimits limits = null, IDictionary outputs = null, BinaryData parameters = null, JobQueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null) + public static MachineLearningCommandJob MachineLearningCommandJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, MachineLearningFlowAutoLoggerState? mlflowAutologger = null, ResourceIdentifier codeId = null, string command = null, MachineLearningDistributionConfiguration distribution = null, ResourceIdentifier environmentId = null, IDictionary environmentVariables = null, IDictionary inputs = null, MachineLearningCommandJobLimits limits = null, IDictionary outputs = null, BinaryData parameters = null, JobQueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null) { properties ??= new Dictionary(); tags ??= new Dictionary(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs index 41c6fd970d10..d73ae515920f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.Serialization.cs @@ -26,12 +26,12 @@ internal static AutologgerSettings DeserializeAutologgerSettings(JsonElement ele { return null; } - MachineLearningflowAutologgerState mlflowAutologger = default; + MachineLearningFlowAutoLoggerState mlflowAutologger = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("mlflowAutologger"u8)) { - mlflowAutologger = new MachineLearningflowAutologgerState(property.Value.GetString()); + mlflowAutologger = new MachineLearningFlowAutoLoggerState(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs index 9f9ff8e511f7..f84c14542af9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutologgerSettings.cs @@ -12,12 +12,12 @@ internal partial class AutologgerSettings { /// Initializes a new instance of AutologgerSettings. /// [Required] Indicates whether mlflow autologger is enabled. - public AutologgerSettings(MachineLearningflowAutologgerState mlflowAutologger) + public AutologgerSettings(MachineLearningFlowAutoLoggerState mlflowAutologger) { MlflowAutologger = mlflowAutologger; } /// [Required] Indicates whether mlflow autologger is enabled. - public MachineLearningflowAutologgerState MlflowAutologger { get; set; } + public MachineLearningFlowAutoLoggerState MlflowAutologger { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs index a0b73fecbdd0..741bd695e7a4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.Serialization.cs @@ -29,7 +29,7 @@ internal static ComputeInstanceAutologgerSettings DeserializeComputeInstanceAuto { return null; } - Optional mlflowAutologger = default; + Optional mlflowAutologger = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("mlflowAutologger"u8)) @@ -38,7 +38,7 @@ internal static ComputeInstanceAutologgerSettings DeserializeComputeInstanceAuto { continue; } - mlflowAutologger = new MachineLearningflowAutologger(property.Value.GetString()); + mlflowAutologger = new MachineLearningFlowAutoLogger(property.Value.GetString()); continue; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs index 034217f19914..156592d1e4b8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComputeInstanceAutologgerSettings.cs @@ -17,12 +17,12 @@ public ComputeInstanceAutologgerSettings() /// Initializes a new instance of ComputeInstanceAutologgerSettings. /// Indicates whether mlflow autologger is enabled for notebooks. - internal ComputeInstanceAutologgerSettings(MachineLearningflowAutologger? mlflowAutologger) + internal ComputeInstanceAutologgerSettings(MachineLearningFlowAutoLogger? mlflowAutologger) { MlflowAutologger = mlflowAutologger; } /// Indicates whether mlflow autologger is enabled for notebooks. - public MachineLearningflowAutologger? MlflowAutologger { get; set; } + public MachineLearningFlowAutoLogger? MlflowAutologger { get; set; } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.cs index 1bff8932e1fb..1e7bd656421b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataDriftMonitoringSignal.cs @@ -54,7 +54,7 @@ public DataDriftMonitoringSignal(IEnumerable metri /// /// The feature filter which identifies which feature to calculate drift over. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , and . /// /// /// [Required] A list of metrics to calculate and their associated thresholds. @@ -89,7 +89,7 @@ internal DataDriftMonitoringSignal(MonitoringNotificationMode? mode, IDictionary /// /// The feature filter which identifies which feature to calculate drift over. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , and . /// public MonitoringFeatureFilterBase Features { get; set; } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.cs index cb51f2ac6266..be3f84f77fb5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataQualityMonitoringSignal.cs @@ -53,7 +53,7 @@ public DataQualityMonitoringSignal(IEnumerable m /// /// The features to calculate drift over. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , and . /// /// /// [Required] A list of metrics to calculate and their associated thresholds. @@ -85,7 +85,7 @@ internal DataQualityMonitoringSignal(MonitoringNotificationMode? mode, IDictiona /// /// The features to calculate drift over. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , and . /// public MonitoringFeatureFilterBase Features { get; set; } /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageType.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageType.cs index cf1eb8c8df72..b4c951021397 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageType.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageType.cs @@ -23,12 +23,12 @@ public ImageType(string value) } private const string DockerValue = "docker"; - private const string AzuremlValue = "azureml"; + private const string AzureMLValue = "azureml"; /// docker. public static ImageType Docker { get; } = new ImageType(DockerValue); /// azureml. - public static ImageType Azureml { get; } = new ImageType(AzuremlValue); + public static ImageType AzureML { get; } = new ImageType(AzureMLValue); /// Determines if two values are the same. public static bool operator ==(ImageType left, ImageType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.Serialization.cs index e50c192e2844..32629023bede 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.Serialization.cs @@ -31,7 +31,7 @@ internal static IntellectualProperty DeserializeIntellectualProperty(JsonElement { return null; } - Optional protectionLevel = default; + Optional protectionLevel = default; string publisher = default; foreach (var property in element.EnumerateObject()) { @@ -41,7 +41,7 @@ internal static IntellectualProperty DeserializeIntellectualProperty(JsonElement { continue; } - protectionLevel = new ProtectionLevel(property.Value.GetString()); + protectionLevel = new IntellectualProtectionLevel(property.Value.GetString()); continue; } if (property.NameEquals("publisher"u8)) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.cs index 851fdb8019e4..a6575d8b926b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProperty.cs @@ -26,14 +26,14 @@ public IntellectualProperty(string publisher) /// Initializes a new instance of IntellectualProperty. /// Protection level of the Intellectual Property. /// [Required] Publisher of the Intellectual Property. Must be the same as Registry publisher name. - internal IntellectualProperty(ProtectionLevel? protectionLevel, string publisher) + internal IntellectualProperty(IntellectualProtectionLevel? protectionLevel, string publisher) { ProtectionLevel = protectionLevel; Publisher = publisher; } /// Protection level of the Intellectual Property. - public ProtectionLevel? ProtectionLevel { get; set; } + public IntellectualProtectionLevel? ProtectionLevel { get; set; } /// [Required] Publisher of the Intellectual Property. Must be the same as Registry publisher name. public string Publisher { get; set; } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProtectionLevel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProtectionLevel.cs new file mode 100644 index 000000000000..9ef55583177c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/IntellectualProtectionLevel.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Protection level associated with the Intellectual Property. + public readonly partial struct IntellectualProtectionLevel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IntellectualProtectionLevel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllValue = "All"; + private const string NoneValue = "None"; + + /// All means Intellectual Property is fully protected. + public static IntellectualProtectionLevel All { get; } = new IntellectualProtectionLevel(AllValue); + /// None means it is not an Intellectual Property. + public static IntellectualProtectionLevel None { get; } = new IntellectualProtectionLevel(NoneValue); + /// Determines if two values are the same. + public static bool operator ==(IntellectualProtectionLevel left, IntellectualProtectionLevel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IntellectualProtectionLevel left, IntellectualProtectionLevel right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator IntellectualProtectionLevel(string value) => new IntellectualProtectionLevel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IntellectualProtectionLevel other && Equals(other); + /// + public bool Equals(IntellectualProtectionLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAllFeatures.Serialization.cs similarity index 80% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.Serialization.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAllFeatures.Serialization.cs index 4d0573cc836c..fe79fe9c0bc8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAllFeatures.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - public partial class AllFeatures : IUtf8JsonSerializable + public partial class MachineLearningAllFeatures : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AllFeatures DeserializeAllFeatures(JsonElement element) + internal static MachineLearningAllFeatures DeserializeMachineLearningAllFeatures(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -35,7 +35,7 @@ internal static AllFeatures DeserializeAllFeatures(JsonElement element) continue; } } - return new AllFeatures(filterType); + return new MachineLearningAllFeatures(filterType); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAllFeatures.cs similarity index 51% rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.cs rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAllFeatures.cs index 0f7b7e0ebf68..44c80aa11462 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AllFeatures.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAllFeatures.cs @@ -7,18 +7,18 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The AllFeatures. - public partial class AllFeatures : MonitoringFeatureFilterBase + /// The MachineLearningAllFeatures. + public partial class MachineLearningAllFeatures : MonitoringFeatureFilterBase { - /// Initializes a new instance of AllFeatures. - public AllFeatures() + /// Initializes a new instance of MachineLearningAllFeatures. + public MachineLearningAllFeatures() { FilterType = MonitoringFeatureFilterType.AllFeatures; } - /// Initializes a new instance of AllFeatures. + /// Initializes a new instance of MachineLearningAllFeatures. /// [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over. - internal AllFeatures(MonitoringFeatureFilterType filterType) : base(filterType) + internal MachineLearningAllFeatures(MonitoringFeatureFilterType filterType) : base(filterType) { FilterType = filterType; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs index 7d5fab267659..0c852d7a2b95 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.cs @@ -98,9 +98,9 @@ internal MachineLearningCommandJob(string description, IDictionary Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. internal AutologgerSettings AutologgerSettings { get; set; } /// [Required] Indicates whether mlflow autologger is enabled. - public MachineLearningflowAutologgerState? MlflowAutologger + public MachineLearningFlowAutoLoggerState? MlflowAutologger { - get => AutologgerSettings is null ? default(MachineLearningflowAutologgerState?) : AutologgerSettings.MlflowAutologger; + get => AutologgerSettings is null ? default(MachineLearningFlowAutoLoggerState?) : AutologgerSettings.MlflowAutologger; set { AutologgerSettings = value.HasValue ? new AutologgerSettings(value.Value) : null; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs index 3ae8afd2b685..3c242c19c819 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs @@ -91,7 +91,7 @@ public ResourceIdentifier SubnetId /// Specifies settings for autologger. internal ComputeInstanceAutologgerSettings AutologgerSettings { get; set; } /// Indicates whether mlflow autologger is enabled for notebooks. - public MachineLearningflowAutologger? MlflowAutologger + public MachineLearningFlowAutoLogger? MlflowAutologger { get => AutologgerSettings is null ? default : AutologgerSettings.MlflowAutologger; set diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowAutoLogger.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowAutoLogger.cs new file mode 100644 index 000000000000..ee4c7de6c4de --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowAutoLogger.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Indicates whether mlflow autologger is enabled for notebooks. + public readonly partial struct MachineLearningFlowAutoLogger : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MachineLearningFlowAutoLogger(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MachineLearningFlowAutoLogger Enabled { get; } = new MachineLearningFlowAutoLogger(EnabledValue); + /// Disabled. + public static MachineLearningFlowAutoLogger Disabled { get; } = new MachineLearningFlowAutoLogger(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MachineLearningFlowAutoLogger left, MachineLearningFlowAutoLogger right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MachineLearningFlowAutoLogger left, MachineLearningFlowAutoLogger right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MachineLearningFlowAutoLogger(string value) => new MachineLearningFlowAutoLogger(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MachineLearningFlowAutoLogger other && Equals(other); + /// + public bool Equals(MachineLearningFlowAutoLogger other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowAutoLoggerState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowAutoLoggerState.cs new file mode 100644 index 000000000000..f12dfdb42757 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFlowAutoLoggerState.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.MachineLearning.Models +{ + /// Enum to determine the state of mlflow autologger. + public readonly partial struct MachineLearningFlowAutoLoggerState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MachineLearningFlowAutoLoggerState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MachineLearningFlowAutoLoggerState Enabled { get; } = new MachineLearningFlowAutoLoggerState(EnabledValue); + /// Disabled. + public static MachineLearningFlowAutoLoggerState Disabled { get; } = new MachineLearningFlowAutoLoggerState(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MachineLearningFlowAutoLoggerState left, MachineLearningFlowAutoLoggerState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MachineLearningFlowAutoLoggerState left, MachineLearningFlowAutoLoggerState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MachineLearningFlowAutoLoggerState(string value) => new MachineLearningFlowAutoLoggerState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MachineLearningFlowAutoLoggerState other && Equals(other); + /// + public bool Equals(MachineLearningFlowAutoLoggerState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs index 01e09425d6c3..4d69f943ed99 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// Indicates whether mlflow autologger is enabled for notebooks. + /// + /// Indicates whether mlflow autologger is enabled for notebooks. + /// Serialized Name: MlflowAutologger + /// public readonly partial struct MachineLearningflowAutologger : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public MachineLearningflowAutologger(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// + /// Enabled + /// Serialized Name: MlflowAutologger.Enabled + /// public static MachineLearningflowAutologger Enabled { get; } = new MachineLearningflowAutologger(EnabledValue); - /// Disabled. + /// + /// Disabled + /// Serialized Name: MlflowAutologger.Disabled + /// public static MachineLearningflowAutologger Disabled { get; } = new MachineLearningflowAutologger(DisabledValue); /// Determines if two values are the same. public static bool operator ==(MachineLearningflowAutologger left, MachineLearningflowAutologger right) => left.Equals(right); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs index 3d8f02dd50e6..7dfcde780256 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// Enum to determine the state of mlflow autologger. + /// + /// Enum to determine the state of mlflow autologger. + /// Serialized Name: MLFlowAutologgerState + /// public readonly partial struct MachineLearningflowAutologgerState : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public MachineLearningflowAutologgerState(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// + /// Enabled + /// Serialized Name: MLFlowAutologgerState.Enabled + /// public static MachineLearningflowAutologgerState Enabled { get; } = new MachineLearningflowAutologgerState(EnabledValue); - /// Disabled. + /// + /// Disabled + /// Serialized Name: MLFlowAutologgerState.Disabled + /// public static MachineLearningflowAutologgerState Disabled { get; } = new MachineLearningflowAutologgerState(DisabledValue); /// Determines if two values are the same. public static bool operator ==(MachineLearningflowAutologgerState left, MachineLearningflowAutologgerState right) => left.Equals(right); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.Serialization.cs index 17dde5716d38..97510a3c84dc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.Serialization.cs @@ -30,7 +30,7 @@ internal static MonitoringFeatureFilterBase DeserializeMonitoringFeatureFilterBa { switch (discriminator.GetString()) { - case "AllFeatures": return AllFeatures.DeserializeAllFeatures(element); + case "AllFeatures": return MachineLearningAllFeatures.DeserializeMachineLearningAllFeatures(element); case "FeatureSubset": return FeatureSubset.DeserializeFeatureSubset(element); case "TopNByAttribution": return TopNFeaturesByAttribution.DeserializeTopNFeaturesByAttribution(element); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.cs index 8508840c781d..dd5f4113ea1a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringFeatureFilterBase.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models /// /// The MonitoringFeatureFilterBase. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// The available derived classes include , and . /// public abstract partial class MonitoringFeatureFilterBase { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProtectionLevel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProtectionLevel.cs deleted file mode 100644 index 6ebeec2353e0..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ProtectionLevel.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// Protection level associated with the Intellectual Property. - public readonly partial struct ProtectionLevel : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ProtectionLevel(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AllValue = "All"; - private const string NoneValue = "None"; - - /// All means Intellectual Property is fully protected. - public static ProtectionLevel All { get; } = new ProtectionLevel(AllValue); - /// None means it is not an Intellectual Property. - public static ProtectionLevel None { get; } = new ProtectionLevel(NoneValue); - /// Determines if two values are the same. - public static bool operator ==(ProtectionLevel left, ProtectionLevel right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ProtectionLevel left, ProtectionLevel right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ProtectionLevel(string value) => new ProtectionLevel(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProtectionLevel other && Equals(other); - /// - public bool Equals(ProtectionLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index c23dcdb1c375..aced6a85951b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -72,7 +72,6 @@ override-operation-name: no-property-type-replacement: - ResourceId - VirtualMachineImage -- AllFeatures request-path-to-resource-name: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}: MachineLearningCodeContainer @@ -103,6 +102,7 @@ prepend-rp-prefix: - Registry - Webhook - WebhookType + - AllFeatures rename-mapping: FeaturesetContainer: MachineLearningFeatureSetContainer @@ -496,8 +496,8 @@ rename-mapping: EncryptionProperty.storageAccountResourceId: -|arm-id MLAssistConfiguration: MachineLearningAssistConfiguration MLAssistConfigurationEnabled: MachineLearningAssistEnabledConfiguration - MlflowAutologger: MachineLearningflowAutologger - MLFlowAutologgerState: MachineLearningflowAutologgerState + MlflowAutologger: MachineLearningFlowAutoLogger + MLFlowAutologgerState: MachineLearningFlowAutoLoggerState MultiSelect: LabelCategoryMultiSelect PackageRequest: ModelPackageContent PackageResponse: ModelPackageResult @@ -515,6 +515,8 @@ rename-mapping: RuleType: OutboundRuleType StatusMessage: JobStatusMessage StatusMessageLevel: JobStatusMessageLevel + ImageType.azureml: AzureML + ProtectionLevel: IntellectualProtectionLevel directive: - from: swagger-document From ff734493ded32a0e23d9b5287133d7f51ff36871 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Fri, 29 Sep 2023 18:00:57 +0800 Subject: [PATCH 11/13] update --- .../Models/MachineLearningflowAutologger.cs | 60 ------------------- .../MachineLearningflowAutologgerState.cs | 60 ------------------- 2 files changed, 120 deletions(-) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs deleted file mode 100644 index 4d69f943ed99..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologger.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// - /// Indicates whether mlflow autologger is enabled for notebooks. - /// Serialized Name: MlflowAutologger - /// - public readonly partial struct MachineLearningflowAutologger : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MachineLearningflowAutologger(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// - /// Enabled - /// Serialized Name: MlflowAutologger.Enabled - /// - public static MachineLearningflowAutologger Enabled { get; } = new MachineLearningflowAutologger(EnabledValue); - /// - /// Disabled - /// Serialized Name: MlflowAutologger.Disabled - /// - public static MachineLearningflowAutologger Disabled { get; } = new MachineLearningflowAutologger(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(MachineLearningflowAutologger left, MachineLearningflowAutologger right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MachineLearningflowAutologger left, MachineLearningflowAutologger right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MachineLearningflowAutologger(string value) => new MachineLearningflowAutologger(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MachineLearningflowAutologger other && Equals(other); - /// - public bool Equals(MachineLearningflowAutologger other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs deleted file mode 100644 index 7dfcde780256..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningflowAutologgerState.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// - /// Enum to determine the state of mlflow autologger. - /// Serialized Name: MLFlowAutologgerState - /// - public readonly partial struct MachineLearningflowAutologgerState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MachineLearningflowAutologgerState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// - /// Enabled - /// Serialized Name: MLFlowAutologgerState.Enabled - /// - public static MachineLearningflowAutologgerState Enabled { get; } = new MachineLearningflowAutologgerState(EnabledValue); - /// - /// Disabled - /// Serialized Name: MLFlowAutologgerState.Disabled - /// - public static MachineLearningflowAutologgerState Disabled { get; } = new MachineLearningflowAutologgerState(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(MachineLearningflowAutologgerState left, MachineLearningflowAutologgerState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MachineLearningflowAutologgerState left, MachineLearningflowAutologgerState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MachineLearningflowAutologgerState(string value) => new MachineLearningflowAutologgerState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MachineLearningflowAutologgerState other && Equals(other); - /// - public bool Equals(MachineLearningflowAutologgerState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} From d6dbb70c73694dadae34ed413de17842f8985acd Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Fri, 29 Sep 2023 18:42:49 +0800 Subject: [PATCH 12/13] update --- sdk/recoveryservices-datareplication/ci.mgmt.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/recoveryservices-datareplication/ci.mgmt.yml b/sdk/recoveryservices-datareplication/ci.mgmt.yml index d1d25ec16b02..2e3966d67a88 100644 --- a/sdk/recoveryservices-datareplication/ci.mgmt.yml +++ b/sdk/recoveryservices-datareplication/ci.mgmt.yml @@ -10,13 +10,13 @@ pr: - release/* paths: include: - - sdk/recoveryservicesdatareplication/ci.mgmt.yml - - sdk/recoveryservicesdatareplication/Azure.ResourceManager.RecoveryServicesDataReplication/ + - sdk/recoveryservices-datareplication/ci.mgmt.yml + - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/ extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: - ServiceDirectory: recoveryservicesdatareplication + ServiceDirectory: recoveryservices-datareplication LimitForPullRequest: true Artifacts: - name: Azure.ResourceManager.RecoveryServicesDataReplication From 57abd5ebf2ff7ade449c2b43d5cf06139d75d66e Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Fri, 29 Sep 2023 22:14:12 +0800 Subject: [PATCH 13/13] update --- .vscode/cspell.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 9a71dd1082e0..1b363636db59 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -873,6 +873,14 @@ "dpm" ] }, + { + "filename": "**/sdk/recoveryservices-datareplication/**/*.cs", + "words": [ + "dras", + "nics", + "reprotect" + ] + }, { "filename": "**/sdk/recoveryservices-siterecovery/**/*.cs", "words": [